Qt event loop problem
Waldo Bastian
bastian at kde.org
Thu Feb 19 16:24:17 GMT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Konqueror has an interesting crash when it shows a messagebox during startup
(due to a KPart that fails to load). When the messagebox disappears, Qt sends
QApplication::aboutToQuit which confuses the hell out of everything since we
still haven't even properly started.
Does anyone has an idea what to do with this?
Cheers,
Waldo
==32119== Invalid read of size 4
==32119== at 0x4128147A: QString::deref() (tools/qstring.cpp:1523)
==32119== by 0x41281541: QString::operator=(QString const&)
(tools/qstring.cpp:1568)
==32119== by 0x402932BD: KonqView::changeViewMode(QString const&, QString
const&, bool) (konq_view.cc:322)
==32119== by 0x402CA40D: KonqMainWindow::openView(QString, KURL const&,
KonqView*, KonqOpenURLRequest) (konq_mainwindow.cc:823)
==32119== by 0x402C7583: KonqMainWindow::openURL(KonqView*, KURL const&,
QString const&, KonqOpenURLRequest, bool) (konq_mainwindow.cc:269)
==32119== by 0x402A10D7: KonqViewManager::loadViewProfile(KConfig&, QString
const&, KURL const&, KonqOpenURLRequest const&, bool) (konq_viewmgr.cc:1200)
==32119== by 0x402A87DF: KonqMisc::createBrowserWindowFromProfile(QString
const&, QString const&, KURL const&, KParts::URLArgs const&, bool)
(konq_mainwindow.h:127)
==32119== by 0x402A819C: KonqMisc::createNewWindow(KURL const&,
KParts::URLArgs const&, bool) (konq_misc.cc:104)
==32119== by 0x4028364F: kdemain (konq_main.cc:173)
==32119== by 0x8048686: main (konqueror.la.cc:2)
==32119== by 0x41824D3D: __libc_start_main (in /lib/libc.so.6)
==32119== by 0x80485D0: ??? (start.S:102)
==32119== Address 0x49730930 is 132 bytes inside a block of size 156 free'd
==32119== at 0x4002A0B3: __builtin_delete (vg_replace_malloc.c:244)
==32119== by 0x4002A0D1: operator delete(void*) (vg_replace_malloc.c:253)
==32119== by 0x402915AA: KonqView::~KonqView() (konq_view.cc:132)
==32119== by 0x4029F71A: KonqViewManager::clear() (konq_viewmgr.cc:929)
==32119== by 0x402E8FD2: KonqMainWindow::stayPreloaded()
(konq_mainwindow.h:127)
==32119== by 0x402E605F: KonqMainWindow::queryExit()
(konq_mainwindow.cc:4505)
==32119== by 0x408B5184: KMainWindow::shuttingDown()
(in /ext/kde_32/lib/libkdeui.so.4.2.0)
==32119== by 0x408B59D8: KMainWindow::qt_invoke(int, QUObject*)
(in /ext/kde_32/lib/libkdeui.so.4.2.0)
==32119== by 0x403CC947: KParts::MainWindow::qt_invoke(int, QUObject*)
(mainwindow.moc:95)
==32119== by 0x402E9D12: KonqMainWindow::qt_invoke(int, QUObject*)
(konq_mainwindow.moc:659)
==32119== by 0x40FA4508: QObject::activate_signal(QConnectionList*,
QUObject*) (qobject.cpp:2333)
==32119== by 0x40FA43A7: QObject::activate_signal(int) (qobject.cpp:2302)
==32119== by 0x40AB5A97: KApplication::shutDown()
(in /ext/kde_32/lib/libkdecore.so.4.2.0)
==32119== by 0x40AB5C3B: KApplication::qt_emit(int, QUObject*)
(in /ext/kde_32/lib/libkdecore.so.4.2.0)
==32119== by 0x40FA462C: QObject::activate_signal(QConnectionList*,
QUObject*) (qobject.cpp:2355)
==32119== by 0x40FA43A7: QObject::activate_signal(int) (qobject.cpp:2302)
==32119== by 0x412E25A8: QApplication::aboutToQuit()
(.moc/debug-shared-mt/moc_qapplication.cpp:100)
==32119== by 0x40F572DE: QEventLoop::enterLoop() (qeventloop.cpp:210)
==32119== by 0x40F41930: QApplication::enter_loop() (qapplication.cpp:2737)
==32119== by 0x411395B6: QDialog::exec() (dialogs/qdialog.cpp:370)
==32119== by 0x408FCFB9: createKMessageBox(KDialogBase*, QMessageBox::Icon,
QString const&, QStringList const&, QString const&, bool*, int, QString
const&) (in /ext/kde_32/lib/libkdeui.so.4.2.0)
==32119== by 0x408FEE52: KMessageBox::errorWId(unsigned long, QString
const&, QString const&, int) (in /ext/kde_32/lib/libkdeui.so.4.2.0)
==32119== by 0x408FECAE: KMessageBox::error(QWidget*, QString const&,
QString const&, int) (in /ext/kde_32/lib/libkdeui.so.4.2.0)
==32119== by 0x402BE92F: KonqFactory::createView(QString const&, QString
const&, KSharedPtr<KService>*, QValueList<KSharedPtr<KService> >*,
QValueList<KSharedPtr<KService> >*, bool) (konq_factory.cc:154)
==32119== by 0x402931D0: KonqView::changeViewMode(QString const&, QString
const&, bool) (konq_view.cc:312)
==32119== by 0x402CA40D: KonqMainWindow::openView(QString, KURL const&,
KonqView*, KonqOpenURLRequest) (konq_mainwindow.cc:823)
==32119== by 0x402C7583: KonqMainWindow::openURL(KonqView*, KURL const&,
QString const&, KonqOpenURLRequest, bool) (konq_mainwindow.cc:269)
==32119== by 0x402A10D7: KonqViewManager::loadViewProfile(KConfig&, QString
const&, KURL const&, KonqOpenURLRequest const&, bool) (konq_viewmgr.cc:1200)
==32119== by 0x402A87DF: KonqMisc::createBrowserWindowFromProfile(QString
const&, QString const&, KURL const&, KParts::URLArgs const&, bool)
(konq_mainwindow.h:127)
==32119== by 0x402A819C: KonqMisc::createNewWindow(KURL const&,
KParts::URLArgs const&, bool) (konq_misc.cc:104)
==32119== by 0x4028364F: kdemain (konq_main.cc:173)
==32119== by 0x8048686: main (konqueror.la.cc:2)
==32119== by 0x41824D3D: __libc_start_main (in /lib/libc.so.6)
==32119== by 0x80485D0: ??? (start.S:102)
- --
bastian at kde.org -=|[ SUSE, The Linux Desktop Experts ]|=- bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQFANOMxN4pvrENfboIRAvSTAJ9PAgYPkTjhAwJk2KlQGxhr0aUcmACfY8Di
FujJ3mwz9wV6DotMw4wEpjA=
=TxZ8
-----END PGP SIGNATURE-----
More information about the kde-core-devel
mailing list