Bug 205528 - Amarok-git fails to startup when ipod is mounted
Summary: Amarok-git fails to startup when ipod is mounted
Status: RESOLVED FIXED
Alias: None
Product: amarok
Classification: Applications
Component: Podcast (show other bugs)
Version: 2.3-GIT
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-28 21:44 UTC by Nikolay Mikheev
Modified: 2009-12-09 11:34 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolay Mikheev 2009-08-28 21:44:42 UTC
Version:            (using KDE 4.3.0)
Compiler:          gcc-4.4.1 
OS:                Linux
Installed from:    Gentoo Packages

Amarok can't start when my ipod classic 160Gb is mounted. It shows splash screen, wait some time, then in console prints these:
<unknown program name>(14010)/: Communication problem with  "amarok" , it probably crashed. 
Error message was:  "org.freedesktop.DBus.Error.NoReply" : " "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken." "

If i unmount ipod, start amarok, then mount again - everything works. Probably this is a bug of git version, but i'm not sure.

I've tried to build it with kde from trunk, but bug is still here.
Comment 1 Mikko C. 2009-08-28 21:47:51 UTC
start 'amarok -d' and post the output. Also install amarok with +debug and get a backtrace.
Comment 2 Nikolay Mikheev 2009-08-28 22:34:14 UTC
There's no any difference between starting with "-d" or without.
Here's output:
vooft@vooft ~ $ amarok -d
Object::connect: No such signal BrowserCategoryList::leavingTree() in /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/widgets/SearchWidget.cpp:54
Object::connect:  (sender name:   'internet')

** (<unknown>:23959): WARNING **: iTunesDB and ArtworkDB artwork sizes inconsistent (0+0 != 0)


** (<unknown>:23959): WARNING **: iTunesDB and ArtworkDB artwork sizes inconsistent (0+0 != 0)


** (<unknown>:23959): WARNING **: iTunesDB and ArtworkDB artwork sizes inconsistent (0+0 != 0)


** (<unknown>:23959): WARNING **: iTunesDB and ArtworkDB artwork sizes inconsistent (0+0 != 0)


** (<unknown>:23959): WARNING **: iTunesDB and ArtworkDB artwork sizes inconsistent (0+0 != 0)

Maybe i made smth wrong? I've added flag +debug to it's uses, recompile amarok and amarok-utils, but nothing was changed.
Comment 3 Mikko C. 2009-08-28 22:43:51 UTC
you should get the KDE crash dialog when amarok crashes. Maybe you don't have drkonqi installed?
If you do, then use gdb to run amarok. More info on how to get backtraces on gentoo: http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 4 Nikolay Mikheev 2009-08-28 22:57:58 UTC
Yeah, drkonqi was not installed.

Output is here:
Application: Amarok (amarok), signal: Aborted
[KCrash Handler]
#5  0x00007fb9398be285 in raise () from /lib/libc.so.6
#6  0x00007fb9398bf642 in abort () from /lib/libc.so.6
#7  0x00007fb93aa8d464 in qt_message_output () from /usr/lib64/qt4/libQtCore.so.4
#8  0x00007fb93aa8d580 in qFatal () from /usr/lib64/qt4/libQtCore.so.4
#9  0x00007fb93b4c6bc2 in ?? () from /usr/lib64/libamaroklib.so.1
#10 0x00007fb93b5b1a58 in ?? () from /usr/lib64/libamaroklib.so.1
#11 0x00007fb93b6844f1 in ?? () from /usr/lib64/libamaroklib.so.1
#12 0x00007fb93b6845af in ?? () from /usr/lib64/libamaroklib.so.1
#13 0x00007fb93b5c0796 in Meta::MediaDeviceHandler::parseTracks () from /usr/lib64/libamaroklib.so.1
#14 0x00007fb93b5b4599 in MediaDeviceCollection::startFullScanDevice () from /usr/lib64/libamaroklib.so.1
#15 0x00007fb93b5b4371 in MediaDeviceCollection::slotAttemptConnectionDone () from /usr/lib64/libamaroklib.so.1
#16 0x00007fb928c24afe in Meta::IpodHandler::init () from /usr/lib64/kde4/amarok_collection-ipodcollection.so
#17 0x00007fb93b5b4b35 in MediaDeviceCollectionFactoryBase::slotDeviceDetected () from /usr/lib64/libamaroklib.so.1
#18 0x00007fb93b5b49d2 in MediaDeviceCollectionFactoryBase::qt_metacall () from /usr/lib64/libamaroklib.so.1
#19 0x00007fb93ab8d1ed in QMetaObject::activate () from /usr/lib64/qt4/libQtCore.so.4
#20 0x00007fb93b5c7bdf in ConnectionAssistant::identified () from /usr/lib64/libamaroklib.so.1
#21 0x00007fb93b5c7e1f in ConnectionAssistant::tellIdentified () from /usr/lib64/libamaroklib.so.1
#22 0x00007fb93b702527 in MediaDeviceMonitor::checkOneDevice () from /usr/lib64/libamaroklib.so.1
#23 0x00007fb93b7028c5 in MediaDeviceMonitor::checkDevicesFor () from /usr/lib64/libamaroklib.so.1
#24 0x00007fb93b70296b in MediaDeviceMonitor::registerDeviceType () from /usr/lib64/libamaroklib.so.1
#25 0x00007fb93b638e73 in CollectionManager::init () from /usr/lib64/libamaroklib.so.1
#26 0x00007fb93b639227 in CollectionManager::instance () from /usr/lib64/libamaroklib.so.1
#27 0x00007fb93b5cecf3 in ServiceFactory::ServiceFactory () from /usr/lib64/libamaroklib.so.1
#28 0x00007fb9292ca679 in ?? () from /usr/lib64/kde4/amarok_service_lastfm.so
#29 0x00007fb9292c80ba in create_plugin () from /usr/lib64/kde4/amarok_service_lastfm.so
#30 0x00007fb93b7045e4 in ?? () from /usr/lib64/libamaroklib.so.1
#31 0x00007fb93b5de28b in ?? () from /usr/lib64/libamaroklib.so.1
#32 0x00007fb93b5de3bf in ?? () from /usr/lib64/libamaroklib.so.1
#33 0x00007fb93b529793 in Playlist::Model::Model () from /usr/lib64/libamaroklib.so.1
#34 0x00007fb93b52dac4 in ?? () from /usr/lib64/libamaroklib.so.1
#35 0x00007fb93b52dbaf in ?? () from /usr/lib64/libamaroklib.so.1
#36 0x00007fb93b52dbc9 in The::playlist () from /usr/lib64/libamaroklib.so.1
#37 0x00007fb93b6b071c in StatusBar::StatusBar () from /usr/lib64/libamaroklib.so.1
#38 0x00007fb93b6fdc21 in MainWindow::MainWindow () from /usr/lib64/libamaroklib.so.1
#39 0x00007fb93b6e340e in App::continueInit () from /usr/lib64/libamaroklib.so.1
#40 0x00007fb93b6e5aa9 in App::App () from /usr/lib64/libamaroklib.so.1
#41 0x0000000000405270 in _start ()

Afaik, ipod should be processed by ipodcollection handler, not by mediadevicecollection, but maybe i'm wrong.
Comment 5 Mikko C. 2009-08-29 08:10:22 UTC
you haven't compiled amarok with +debug.
see all the ?? () from /usr/lib64/libamaroklib.so.1
Comment 6 Nikolay Mikheev 2009-08-29 21:00:55 UTC
I've added +debug, but some symbols were stripped, sorry :)

Application: Amarok (amarok), signal: Aborted
[KCrash Handler]
#5  0x00007fd0c4a98285 in raise () from /lib/libc.so.6
#6  0x00007fd0c4a99642 in abort () from /lib/libc.so.6
#7  0x00007fd0c5c67464 in qt_message_output () from /usr/lib64/qt4/libQtCore.so.4
#8  0x00007fd0c5c67580 in qFatal () from /usr/lib64/qt4/libQtCore.so.4
#9  0x00007fd0c66a1992 in QList<QString>::first (this=0x7fff44147890) at /usr/include/qt4/QtCore/qlist.h:252
#10 0x00007fd0c6792d38 in SqlPodcastProvider (this=0x4c69060) at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/podcasts/sql/SqlPodcastProvider.cpp:74
#11 0x00007fd0c68656f1 in PlaylistManager (this=0x4c68c30) at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/playlistmanager/PlaylistManager.cpp:70
#12 0x00007fd0c68657af in PlaylistManager::instance () at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/playlistmanager/PlaylistManager.cpp:54
#13 0x00007fd0c67a1a76 in Meta::MediaDeviceHandler::parseTracks (this=0x24e6260)
    at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/collection/mediadevicecollection/handler/MediaDeviceHandler.cpp:921
#14 0x00007fd0c6795879 in MediaDeviceCollection::startFullScanDevice (this=0x24e5ce0)
    at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/collection/mediadevicecollection/MediaDeviceCollection.cpp:176
#15 0x00007fd0c6795651 in MediaDeviceCollection::slotAttemptConnectionDone (this=0x24e5ce0, success=<value optimized out>)
    at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/collection/mediadevicecollection/MediaDeviceCollection.cpp:219
#16 0x00007fd0b1aa5afe in Meta::IpodHandler::init (this=0x24e6260) at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/collection/ipodcollection/handler/IpodHandler.cpp:333
#17 0x00007fd0c6795e15 in MediaDeviceCollectionFactoryBase::slotDeviceDetected (this=0x2478710, info=0x24e5680)
    at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/collection/mediadevicecollection/MediaDeviceCollection.cpp:94
#18 0x00007fd0c6795cb2 in MediaDeviceCollectionFactoryBase::qt_metacall (this=0x2478710, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff441482f0)
    at /tmp/portage/media-sound/amarok-9999/work/amarok-9999_build/src/MediaDeviceCollection.moc:71
#19 0x00007fd0c5d671ed in QMetaObject::activate () from /usr/lib64/qt4/libQtCore.so.4
#20 0x00007fd0c67a8ebf in ConnectionAssistant::identified (this=0x753f, _t1=0x24e5680) at /tmp/portage/media-sound/amarok-9999/work/amarok-9999_build/src/ConnectionAssistant.moc:82
#21 0x00007fd0c67a90ff in ConnectionAssistant::tellIdentified (this=0x24ea490, udi=@0x251af28)
    at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/collection/mediadevicecollection/support/ConnectionAssistant.cpp:50
#22 0x00007fd0c68e5567 in MediaDeviceMonitor::checkOneDevice (this=<value optimized out>, assistant=0x24ea490, udi=@0x251af28)
    at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/MediaDeviceMonitor.cpp:118
#23 0x00007fd0c68e5905 in MediaDeviceMonitor::checkDevicesFor (this=<value optimized out>, assistant=<value optimized out>)
    at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/MediaDeviceMonitor.cpp:131
#24 0x00007fd0c68e59ab in MediaDeviceMonitor::registerDeviceType (this=0x24b1310, assistant=0x24ea490) at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/MediaDeviceMonitor.cpp:158
#25 0x00007fd0c681a153 in CollectionManager::init (this=0x247cf70) at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/collection/CollectionManager.cpp:152
#26 0x00007fd0c681a507 in CollectionManager::instance () at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/collection/CollectionManager.cpp:65
#27 0x00007fd0c67affd3 in ServiceFactory (this=0x2484090) at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/services/ServiceBase.cpp:37
#28 0x00007fd0b214b679 in LastFmServiceFactory (this=0x753f) at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/services/lastfm/LastFmService.h:46
#29 0x00007fd0b21490ba in create_plugin () at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/services/lastfm/LastFmService.cpp:64
#30 0x00007fd0c68e7624 in PluginManager::createFromService (service=) at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/PluginManager.cpp:109
#31 0x00007fd0c67bf56b in ServicePluginManager::collect (this=0x2486550) at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/services/ServicePluginManager.cpp:65
#32 0x00007fd0c67bf69f in ServicePluginManager::instance () at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/services/ServicePluginManager.cpp:32
#33 0x00007fd0c670aa93 in Model (this=0x2465300, parent=<value optimized out>) at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/playlist/PlaylistModel.cpp:65
#34 0x00007fd0c670edc4 in ModelStack (this=0x2464b40) at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/playlist/PlaylistModelStack.cpp:58
#35 0x00007fd0c670eeaf in Playlist::ModelStack::instance () at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/playlist/PlaylistModelStack.cpp:41
#36 0x00007fd0c670eec9 in The::playlist () at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/playlist/PlaylistModelStack.cpp:28
#37 0x00007fd0c689191c in StatusBar (this=0x24532d0, parent=<value optimized out>) at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/statusbar/StatusBar.cpp:90
#38 0x00007fd0c68e0c61 in MainWindow (this=0x215c380) at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/MainWindow.cpp:136
#39 0x00007fd0c68c4f8e in App::continueInit (this=0x7fff44149350) at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/App.cpp:647
#40 0x00007fd0c68c7629 in App (this=0x7fff44149350) at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/App.cpp:221
#41 0x0000000000405348 in main (argc=1, argv=0x7fff4414af48) at /tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/main.cpp:208
Comment 7 Mikko C. 2009-08-29 22:52:03 UTC
Bart will more likely know what's going on there
Comment 8 Bart Cerneels 2009-08-30 16:00:34 UTC
Looks like you have a completely messed up database there.

Just to test please do this in a terminal:
# cd ~/.kde/share/apps/amarok
# mv msqle mysqle-backup

and start amarok in debug again with:
# amarok --debug --nofork

and don't forget the backtrace if it still craches.

Bart
Comment 9 Nikolay Mikheev 2009-08-30 20:46:46 UTC
I moved mysqle directory and started with "--debug --nofork" options.

http://paste.org.ru/?fsaktn -- here's output in console.
http://paste.org.ru/?h4e6b2 -- here's output in crash dialog.
Comment 10 Bart Cerneels 2009-08-30 23:20:10 UTC
I just noticed that your backtrace has absolutely nothing to do with the ipod you mention in the report. Are you sure this is the same crash and does it only happen with the ipod mounted?

Try a rev after v2.1.1-1678-g5531416 (from just a minute ago) and see if there is any change.
Comment 11 Nikolay Mikheev 2009-08-31 11:01:14 UTC
No, it still crashes with ipod mounted and don't crash when ipod is unmounted, but, it seems, in another place.

Here's output and backtrace: http://paste.org.ru/?z8cdw0
Comment 12 Bart Cerneels 2009-08-31 11:12:21 UTC
Seems like sqlStorage is invalid. But this can normally only happen if your install is seriously fucked up. Nothing should work in this case.

Are you using an external MySql server? If you don't know you didn't because mysqle is the default.
Comment 13 Myriam Schweingruber 2009-09-14 00:23:04 UTC
Nikolay, any news on this?
Comment 14 Nikolay Mikheev 2009-09-14 08:43:07 UTC
I've recompiled almost everything: Qt, MySQL, libgpod, kdelibs, phonon, xine, amarok - but it still fails only when ipod is attached. Without this one amarok starts fine.
I don't know what to do else.
Comment 15 Bart Cerneels 2009-09-14 13:01:29 UTC
I really need confirmation of a second user for this. While it's possible this is caused by one singleton being constructed before the other, it might just as well be a messed up setup.
Comment 16 Nikolay Mikheev 2009-09-24 21:57:45 UTC
Good day!
I've just rebuild the lastest revision and amarok starts and works fine! 
Thanks for your attention!