New user registration is currently disabled due to spam abuse / Регистрация новых пользователей в настоящее время приостановлена из-за злоупотреблений спаммерами

Ошибки в GoldenDict 0.9

Сообщаем о найденных ошибках сюда

Ошибки в GoldenDict 0.9

Postby ravenger » Sun May 24, 2009 8:56 pm

- Если запустить GD и сразу закрыть его (пока все словари еще не загрузились), то он сворачивается в трей и намертво виснет. Ошибка так и осталась, может это конечно проблема только на Windows 7, надо чтобы протестировали на других версиях
- При просмотре словарей на вкладке Dictionary, информация о них обновляется только если щелкать на них мышкой, если пролистывать клавиатурой, то ничего не меняется
- Немного раздражает, что если у словаря длинное имя, то на вкладке Dictionary, интерфейс постоянно подгоняется под длинный размер текста
ravenger
 
Posts: 15
Joined: Mon May 11, 2009 12:05 pm

Re: Ошибки в GoldenDict 0.9

Postby ikm » Sun May 24, 2009 10:57 pm

ravenger wrote:- Если запустить GD и сразу закрыть его (пока все словари еще не загрузились), то он сворачивается в трей и намертво виснет. Ошибка так и осталась, может это конечно проблема только на Windows 7, надо чтобы протестировали на других версиях

Я пока не знаю, в чем тут может быть дело. То, что это Windows-specific, всё усложняет.

ravenger wrote:- Немного раздражает, что если у словаря длинное имя, то на вкладке Dictionary, интерфейс постоянно подгоняется под длинный размер текста

В будущих версиях там будет строка ввода с помощью которого можно будет отредактировать имя, так что это временно.
ikm
Автор GoldenDict
 
Posts: 1595
Joined: Wed Feb 04, 2009 10:40 am

Re: Ошибки в GoldenDict 0.9

Postby zulix » Mon May 25, 2009 1:17 pm

У меня ошибка при компиляции:

[aist@localhost goldendict-0.9.0-src]$ uname -a
Linux localhost 2.6.29-ARCH #1 SMP PREEMPT Wed May 20 06:42:43 UTC 2009 x86_64 Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz GenuineIntel GNU/Linux

[aist@localhost goldendict-0.9.0-src]$ gcc -v
Используются внутренние спецификации.
Целевая архитектура: x86_64-unknown-linux-gnu
Параметры конфигурации: ../configure --prefix=/usr --enable-shared --enable-languages=c,c++,fortran,objc,obj-c++ --enable-threads=posix --mandir=/usr/share/man --infodir=/usr/share/info --enable-__cxa_atexit --disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch --with-tune=generic
Модель многопоточности: posix
gcc версия 4.4.0 (GCC)

Название : qt
Версия : 4.5.1

Code: Select all
[aist@localhost goldendict-0.9.0-src]$ make
/usr/bin/lrelease locale/ru.ts
Updating 'locale/ru.qm'...
    Generated 475 translation(s) (475 finished and 0 unfinished)
/usr/bin/uic dictgroupwidget.ui -o build/ui_dictgroupwidget.h
/usr/bin/uic groups.ui -o build/ui_groups.h
/usr/bin/uic mainwindow.ui -o build/ui_mainwindow.h
/usr/bin/uic sources.ui -o build/ui_sources.h
/usr/bin/uic initializing.ui -o build/ui_initializing.h
/usr/bin/uic groupselectorwidget.ui -o build/ui_groupselectorwidget.h
/usr/bin/uic scanpopup.ui -o build/ui_scanpopup.h
/usr/bin/uic articleview.ui -o build/ui_articleview.h
/usr/bin/uic preferences.ui -o build/ui_preferences.h
/usr/bin/uic about.ui -o build/ui_about.h
/usr/bin/uic editdictionaries.ui -o build/ui_editdictionaries.h
/usr/bin/uic orderandprops.ui -o build/ui_orderandprops.h
g++ -c -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -Wall -W -D_REENTRANT -DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\" -DPROGRAM_VERSION=\"0.9.0\" -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtWebKit -I/usr/include -I. -Ibuild -Ibuild -o build/folding.o folding.cc
g++ -c -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -Wall -W -D_REENTRANT -DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\" -DPROGRAM_VERSION=\"0.9.0\" -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtWebKit -I/usr/include -I. -Ibuild -Ibuild -o build/main.o main.cc
g++ -c -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -Wall -W -D_REENTRANT -DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\" -DPROGRAM_VERSION=\"0.9.0\" -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtWebKit -I/usr/include -I. -Ibuild -Ibuild -o build/dictionary.o dictionary.cc
g++ -c -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -Wall -W -D_REENTRANT -DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\" -DPROGRAM_VERSION=\"0.9.0\" -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtWebKit -I/usr/include -I. -Ibuild -Ibuild -o build/config.o config.cc
g++ -c -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -Wall -W -D_REENTRANT -DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\" -DPROGRAM_VERSION=\"0.9.0\" -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtWebKit -I/usr/include -I. -Ibuild -Ibuild -o build/sources.o sources.cc
g++ -c -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -Wall -W -D_REENTRANT -DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\" -DPROGRAM_VERSION=\"0.9.0\" -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtWebKit -I/usr/include -I. -Ibuild -Ibuild -o build/mainwindow.o mainwindow.cc
g++ -c -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -Wall -W -D_REENTRANT -DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\" -DPROGRAM_VERSION=\"0.9.0\" -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtWebKit -I/usr/include -I. -Ibuild -Ibuild -o build/utf8.o utf8.cc
g++ -c -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -Wall -W -D_REENTRANT -DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\" -DPROGRAM_VERSION=\"0.9.0\" -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtWebKit -I/usr/include -I. -Ibuild -Ibuild -o build/file.o file.cc
g++ -c -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -Wall -W -D_REENTRANT -DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\" -DPROGRAM_VERSION=\"0.9.0\" -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtWebKit -I/usr/include -I. -Ibuild -Ibuild -o build/bgl_babylon.o bgl_babylon.cc
g++ -c -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -Wall -W -D_REENTRANT -DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\" -DPROGRAM_VERSION=\"0.9.0\" -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtWebKit -I/usr/include -I. -Ibuild -Ibuild -o build/bgl.o bgl.cc
g++ -c -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -Wall -W -D_REENTRANT -DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\" -DPROGRAM_VERSION=\"0.9.0\" -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtWebKit -I/usr/include -I. -Ibuild -Ibuild -o build/initializing.o initializing.cc
g++ -c -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -Wall -W -D_REENTRANT -DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\" -DPROGRAM_VERSION=\"0.9.0\" -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtWebKit -I/usr/include -I. -Ibuild -Ibuild -o build/article_netmgr.o article_netmgr.cc
article_netmgr.cc: In member function ‘virtual qint64 ArticleResourceReply::readData(char*, qint64)’:
article_netmgr.cc:190: предупреждение: сравнение знакового и беззнакового целых выражений
gcc -c -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -Wall -W -D_REENTRANT -DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\" -DPROGRAM_VERSION=\"0.9.0\" -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtWebKit -I/usr/include -I. -Ibuild -Ibuild -o build/dictzip.o dictzip.c
dictzip.c: В функции ‘dict_read_header’:
dictzip.c:310: предупреждение: при передаче аргумента 2 ‘crc32’: указуемые типы различаются знаковостью
/usr/include/zlib.h:1305: замечание: expected ‘const Bytef *’ but argument is of type ‘char *’
dictzip.c: В функции ‘dict_data_read_’:
dictzip.c:696: предупреждение: в присваивании указуемые типы различаются знаковостью
dictzip.c:698: предупреждение: в присваивании указуемые типы различаются знаковостью
dictzip.c:601: предупреждение: параметр ‘preFilter’ не используется
dictzip.c:601: предупреждение: параметр ‘postFilter’ не используется
g++ -c -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -Wall -W -D_REENTRANT -DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\" -DPROGRAM_VERSION=\"0.9.0\" -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtWebKit -I/usr/include -I. -Ibuild -Ibuild -o build/btreeidx.o btreeidx.cc
btreeidx.cc: In function ‘BtreeIndexing::IndexInfo BtreeIndexing::buildIndex(const BtreeIndexing::IndexedWords&, File::Class&)’:
btreeidx.cc:983: предупреждение: формат ‘%u’ предполагает тип ‘unsigned int’, но аргумент 2 имеет тип ‘size_t’
g++ -c -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -Wall -W -D_REENTRANT -DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\" -DPROGRAM_VERSION=\"0.9.0\" -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtWebKit -I/usr/include -I. -Ibuild -Ibuild -o build/stardict.o stardict.cc
stardict.cc: In function ‘void Stardict::handleIdxSynFile(const std::string&, BtreeIndexing::IndexedWords&, ChunkedStorage::Writer&, std::vector<unsigned int, std::allocator<unsigned int> >*, bool)’:
stardict.cc:962: предупреждение: формат ‘%u’ предполагает тип ‘unsigned int’, но аргумент 2 имеет тип ‘size_t’
stardict.cc: In member function ‘void Stardict::<unnamed>::StardictDictionary::loadArticle(uint32_t, std::string&, std::string&)’:
stardict.cc:316: предупреждение: ‘entrySize’ may be used uninitialized in this function
g++ -c -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -Wall -W -D_REENTRANT -DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\" -DPROGRAM_VERSION=\"0.9.0\" -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtWebKit -I/usr/include -I. -Ibuild -Ibuild -o build/chunkedstorage.o chunkedstorage.cc
In file included from chunkedstorage.cc:4:
chunkedstorage.hh:35: ошибка: нет декларации ‘uint32_t’ в этой области видимости
chunkedstorage.hh:35: ошибка: некорректный аргумент шаблона 1
chunkedstorage.hh:35: ошибка: некорректный аргумент шаблона 2
chunkedstorage.hh:44: ошибка: ‘uint32_t’ does not name a type
chunkedstorage.hh:51: ошибка: ‘uint32_t’ does not name a type
chunkedstorage.hh:77: ошибка: нет декларации ‘uint32_t’ в этой области видимости
chunkedstorage.hh:77: ошибка: некорректный аргумент шаблона 1
chunkedstorage.hh:77: ошибка: некорректный аргумент шаблона 2
chunkedstorage.hh:83: ошибка: ‘uint32_t’ has not been declared
chunkedstorage.hh:88: ошибка: expected ‘;’ before ‘(’ token
chunkedstorage.cc:38: ошибка: нет элемента-функции ‘uint32_t ChunkedStorage::Writer::startNewBlock()’ в классе ‘ChunkedStorage::Writer’
chunkedstorage.cc: In member function ‘void ChunkedStorage::Writer::saveCurrentChunk()’:
chunkedstorage.cc:82: ошибка: запрос элемента ‘push_back’ в ‘((ChunkedStorage::Writer*)this)->ChunkedStorage::Writer::offsets’, имеющего не классовый тип ‘int’
chunkedstorage.cc: At global scope:
chunkedstorage.cc:93: ошибка: нет элемента-функции ‘uint32_t ChunkedStorage::Writer::finish()’ в классе ‘ChunkedStorage::Writer’
chunkedstorage.cc:124: ошибка: прототип для ‘ChunkedStorage::Reader::Reader(File::Class&, uint32_t)’ не имеет соответствия в классе ‘ChunkedStorage::Reader’
chunkedstorage.hh:76: ошибка: претенденты: ChunkedStorage::Reader::Reader(const ChunkedStorage::Reader&)
chunkedstorage.hh:83: ошибка:                 ChunkedStorage::Reader::Reader(File::Class&, int)
chunkedstorage.cc:132: ошибка: нет элемента-функции ‘char* ChunkedStorage::Reader::getBlock(uint32_t, std::vector<char, std::allocator<char> >&)’ в классе ‘ChunkedStorage::Reader’
make: *** [build/chunkedstorage.o] Ошибка 1
[aist@localhost goldendict-0.9.0-src]$

zulix
 
Posts: 8
Joined: Thu Apr 02, 2009 6:32 pm

Re: Ошибки в GoldenDict 0.9

Postby ikm » Mon May 25, 2009 1:23 pm

Вставьте в chunkedstorage.hh строчку #include <stdint.h> в дополнение к уже там имеющимся.
ikm
Автор GoldenDict
 
Posts: 1595
Joined: Wed Feb 04, 2009 10:40 am

Re: Ошибки в GoldenDict 0.9

Postby zulix » Mon May 25, 2009 1:35 pm

Спасибо, все заработало, отличная программа
zulix
 
Posts: 8
Joined: Thu Apr 02, 2009 6:32 pm

Re: Ошибки в GoldenDict 0.9

Postby Biochemist » Sat Nov 21, 2009 6:55 am

Добрый день всем!

Обнаружены следующие глюки при работе с GoldenDict 0.9.0 (скомпилированный Git от 07 Nov 2009). Компьютер ‒ домашний ноутбук Dell Precision M6400 (процессор Intel Core2 Extreme QX9300 2.5 GHz 4-х ядерный, оперативная память 8 Gb DDR3, видеокарта nVidia Quadro FX3700M с 1 Gb памяти), операционная система Microsoft Windows 7 x64 Ultimate (English).

1. Словари Babylon (файлы с расширением .bgl) остаются в списке используемых словарей, даже если папка, в которой они находятся, помечена как неиспользуемая (Edit → Dictionaries → Sources, снята галочка с папки). И поиск по ним продолжается. При этом словари всех других форматов (кроме Babylon (BGL), у меня есть словари в форматах DSL, Dictd и StarDict) ведут себя нормально и исчезают с панели словарей. Проблема решается только физическим удалением словарей Babylon (BGL-файлы) из данной папки.

2. Каждый раз при запуске GoldenDict происходит повторная индексация какого-либо из уже установленных словарей в формате Dictd. Эту проблему я описывал в теме «Тормоза при запуске в Win7» (http://goldendict.berlios.de/forum/viewtopic.php?f=10&t=643&start=10), поскольку этот баг замедляет запуск программы GoldenDict (впрочем, незначительно) и формально может быть соотнесён с указанной темой. Что я только ни делал, чтобы избавиться от этого явления (сносил, переустанавливал, отключал и снова подключал), но ничего не помогло. К сожалению, мой запрос об этом баге в теме «Тормоза при запуске в Win7» остался без ответа, вероятно, из-за малой распространённости словарей Dictd среди пользователей программы GoldenDict. Кроме того, найденный баг не влиял на дальнейшую работу GoldenDict, и, возможно, был признан неактуальным. В теме «Тормоза при запуске в Win7» я привёл ссылки на большое количество словарей Dictd в Internet; все желающие могут легко воспроизвести этот баг на своих компьютерах.

А в остальном, я программой GoldenDict 0.9.0 очень доволен, большое спасибо всем разработчикам и их помощникам-программистам!
Biochemist
 
Posts: 22
Joined: Mon Oct 19, 2009 9:03 pm


Return to Ошибки

Who is online

Users browsing this forum: No registered users and 14 guests