Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
4.8.0
-
None
-
Windows
Description
Qt Assistant crashed when the attached code is used to invoke the Qt Assistant. This can be recreated by editing the simpletextviewer example by adding the following code snippet.
const char * path = "doc/browse.html"; QTextStream tstream(proc); tstream << QLatin1String("SetSource qthelp://com.trolltech.examples.simpletextviewer/") << QLatin1String(path) << QLatin1String(";"); tstream << QLatin1String("syncContents;");
stack trace for the bug is as follows.
QtSqld4.dll!QSqlQuery::exec(const QString & query="SELECT a.Name, b.Name FROM NamespaceTable a, FolderTable b WHERE a.id=b.NamespaceId and a.Id=1") Line 332 + 0x5 bytes QtHelpd4.dll!QHelpDBReader::urlOfPath(const QString & relativePath="index.html") Line 426 + 0x2c bytes QtHelpd4.dll!QHelpContentItem::url() Line 155 + 0x1a bytes C++ QtHelpd4.dll!QHelpContentWidget::indexOf(const QUrl & link={...}) Line 522 + 0x56 bytes assistant.exe!ContentWindow::syncToContent(const QUrl & url={...}) Line 69 + 0x14 bytes assistant.exe!MainWindow::syncContents() Line 744 + 0xf bytes assistant.exe!RemoteControl::handleSyncContentsCommand() Line 235 assistant.exe!RemoteControl::handleCommandString(const QString & cmdString="SetSource qthelp://com.trolltech.examples.simpletextviewer/doc/browse.html; syncContents;SetSource qthelp://com.trolltech.examples.simpletextviewer/doc/index.html ") Line 160 + 0x8 bytes assistant.exe!RemoteControl::qt_static_metacall(QObject * _o=0x02c071f8, QMetaObject::Call _c=InvokeMetaMethod, int _id=1, void * * _a=0x026b0190) Line 53 + 0xf bytes QtCored4.dll!QMetaCallEvent::placeMetaCall(QObject * object=0x02c071f8) Line 505 + 0x1d bytes QtCored4.dll!QObject::event(QEvent * e=0x02b85900) Line 1175 + 0x14 bytes QtGuid4.dll!QApplicationPrivate::notify_helper(QObject * receiver=0x02c071f8, QEvent * e=0x02b85900) Line 4499 + 0x11 bytes QtGuid4.dll!QApplication::notify(QObject * receiver=0x02c071f8, QEvent * e=0x02b85900) Line 3881 + 0x10 bytes C++ QtCored4.dll!QCoreApplication::notifyInternal(QObject * receiver=0x02c071f8, QEvent * event=0x02b85900) Line 857 + 0x15 bytes QtCored4.dll!QCoreApplication::sendEvent(QObject * receiver=0x02c071f8, QEvent * event=0x02b85900) Line 212 + 0x39 bytes QtCored4.dll!QCoreApplicationPrivate::sendPostedEvents(QObject * receiver=0x00000000, int event_type=0, QThreadData * data=0x003f9e58) Line 1481 + 0xd bytes QtCored4.dll!qt_internal_proc(HWND__ * hwnd=0x00150a78, unsigned int message=1025, unsigned int wp=0, long lp=0) Line 480 + 0x10 bytes user32.dll!7e418734() [Frames below may be incorrect and/or missing, no symbols loaded for user32.dll] user32.dll!7e418816() user32.dll!7e4189cd() user32.dll!7e418a10() QtCored4.dll!QEventDispatcherWin32::processEvents(QFlags<enum QEventLoop::ProcessEventsFlag> flags={...}) Line 793 C++ QtGuid4.dll!QGuiEventDispatcherWin32::processEvents(QFlags<enum QEventLoop::ProcessEventsFlag> flags={...}) Line 1200 + 0x15 bytes QtCored4.dll!QEventLoop::processEvents(QFlags<enum QEventLoop::ProcessEventsFlag> flags={...}) Line 131 QtCored4.dll!QEventLoop::exec(QFlags<enum QEventLoop::ProcessEventsFlag> flags={...}) Line 185 + 0x2d bytes QtCored4.dll!QCoreApplication::exec() Line 1129 + 0x15 bytes C QtGuid4.dll!QApplication::exec() Line 3761 assistant.exe!main(int argc=4, char * * argv=0x003f9ca8) Line 417 + 0x6 bytes assistant.exe!WinMain(HINSTANCE__ * instance=0x00400000, HINSTANCE__ * prevInstance=0x00000000, char * __formal=0x00162332, int cmdShow=10) Line 132 + 0x12 bytes assistant.exe!__tmainCRTStartup() Line 547 + 0x2c bytes assistant.exe!WinMainCRTStartup() Line 371 kernel32.dll!7c817077() QtCLucened4.dll!lucene::store::TransactionalRAMDirectory::transAbort() Line 133 + 0xe bytes