Weird crash on startup in DaapCollectionFactory

Mark Kretschmann kretschmann at kde.org
Sun Aug 30 18:25:57 CEST 2009


Ahoy,

the line that (sometimes) crashes is:

    QStringList sl = AmarokConfig::manuallyAddedServers();

So it does nothing more than reading a config value. Interestingly
though the method is invoked by this:

    //don't block Amarok's startup by connecting to DAAP servers
    QTimer::singleShot( 1000, this, SLOT( connectToManualServers() ) );


Event loop trickery can have subtle side effects, as we have seen with
our friend BlockingQuery. So maybe it's got to do with the singleShot?
Also I should mention that I'm not actually using DAAP at all.


Backtrace:

Thread 1 (Thread 0x7f9a9601c7a0 (LWP 3383)):
[KCrash Handler]
#5  0x00007f9a77f8ae20 in QBasicAtomicInt::ref (this=0x10101) at
/usr/include/qt4/QtCore/qatomic_x86_64.h:121
#6  0x00007f9a77f8fcbd in QList (this=0x7fff7825e130, l=...) at
/usr/include/qt4/QtCore/qlist.h:111
#7  0x00007f9a77f8ef19 in QStringList (this=0x7fff7825e130, l=...) at
/usr/include/qt4/QtCore/qstringlist.h:71
#8  0x00007f9a77f8f32f in AmarokConfig::manuallyAddedServers () at
/home/mark/kde/build/amarok/src/collection/daap/../../amarokconfig.h:1714
#9  0x00007f9a77f8cbf9 in
DaapCollectionFactory::connectToManualServers (this=0x1863990) at
/home/mark/kde/src/amarok/src/collection/daap/DaapCollection.cpp:72
#10 0x00007f9a77f8e601 in DaapCollectionFactory::qt_metacall
(this=0x1863990, _c=QMetaObject::InvokeMetaMethod, _id=0,
_a=0x7fff7825e280)
    at /home/mark/kde/build/amarok/src/collection/daap/DaapCollection.moc:81
#11 0x00007f9a93a9ed2c in QMetaObject::activate(QObject*, int, int,
void**) () from /usr/lib/libQtCore.so.4
#12 0x00007f9a93aa3d6f in ?? () from /usr/lib/libQtCore.so.4
#13 0x00007f9a93a98cd3 in QObject::event(QEvent*) () from
/usr/lib/libQtCore.so.4
#14 0x00007f9a94617efc in QApplicationPrivate::notify_helper(QObject*,
QEvent*) () from /usr/lib/libQtGui.so.4
#15 0x00007f9a9461f1ce in QApplication::notify(QObject*, QEvent*) ()
from /usr/lib/libQtGui.so.4
#16 0x00007f9a95b8f4d6 in KApplication::notify(QObject*, QEvent*) ()
from /usr/lib/libkdeui.so.5
#17 0x00007f9a93a89b7c in QCoreApplication::notifyInternal(QObject*,
QEvent*) () from /usr/lib/libQtCore.so.4
#18 0x00007f9a93ab47b2 in ?? () from /usr/lib/libQtCore.so.4
#19 0x00007f9a93ab21ad in ?? () from /usr/lib/libQtCore.so.4
#20 0x00007f9a8c320ade in g_main_context_dispatch () from
/usr/lib/libglib-2.0.so.0
#21 0x00007f9a8c3244a8 in ?? () from /usr/lib/libglib-2.0.so.0
#22 0x00007f9a8c3245d0 in g_main_context_iteration () from
/usr/lib/libglib-2.0.so.0
#23 0x00007f9a93ab20f6 in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
() from /usr/lib/libQtCore.so.4
#24 0x00007f9a946ac3de in ?? () from /usr/lib/libQtGui.so.4
#25 0x00007f9a93a88482 in
QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /usr/lib/libQtCore.so.4
#26 0x00007f9a93a88854 in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from
/usr/lib/libQtCore.so.4
#27 0x00007f9a93a8aa09 in QCoreApplication::exec() () from
/usr/lib/libQtCore.so.4
#28 0x0000000000403a87 in main (argc=4, argv=0x7fff78260018) at
/home/mark/kde/src/amarok/src/main.cpp:142

-- 
Mark Kretschmann
Amarok Developer
www.kde.org - amarok.kde.org


More information about the Amarok-devel mailing list