Summary: | Launching Amarok from Dolphin: Crash in Playlist::Actions::engineNewTrackPlaying() | ||
---|---|---|---|
Product: | [Applications] amarok | Reporter: | nothy <Northendra.Murti> |
Component: | Playback | Assignee: | Amarok Developers <amarok-bugs-dist> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | abahadirdogan, admincj, ahern, gael07ol, grakkio, jc.edu.ar, kozlik, madsplinter, mitja.jez, nhn, octavian.szolga, out.there, phil_sokrates, terry, texstar, tonicorrado, valorie.zimmerman, wsmith_cbu |
Priority: | NOR | ||
Version: | 2.2.2 | ||
Target Milestone: | 2.3.0 | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 2.3.0 | |
Sentry Crash Report: | |||
Attachments: | New crash information added by DrKonqi |
Description
nothy
2009-11-20 16:23:18 UTC
in x86_64 run just fine, i can't confirm this Application that crashed: amarok Version of the application: 2.2.1 KDE Version: 4.3.3 (KDE 4.3.3) Qt Version: 4.5.3 Operating System: Linux 2.6.31.5 x86_64 Arch Same crash for me as well. Setting status to confirmed Can somebody not running a PCLinuxOS confirm this bug? Setting target and keyword. Please reassign if it's not Amarok related. *** Bug 216742 has been marked as a duplicate of this bug. *** Backtrace from the duplicate in Comment #6: Thread 1 (Thread 0x7ffb3805f7a0 (LWP 6514)): [KCrash Handler] #5 0x00007ffb370f3f89 in Playlist::Actions::engineNewTrackPlaying (this=<value optimized out>) at /build/buildd/amarok-2.2.1/src/playlist/PlaylistActions.cpp:402 #6 0x00007ffb37442949 in EngineSubject::newTrackPlaying (this=<value optimized out>) at /build/buildd/amarok-2.2.1/src/EngineObserver.cpp:195 #7 0x00007ffb3743a63b in EngineController::slotNewTrackPlaying (this=0x1fcfc50, source=<value optimized out>) at /build/buildd/amarok-2.2.1/src/EngineController.cpp:966 #8 0x00007ffb37441cd2 in EngineController::qt_metacall (this=0x1fcfc50, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff1fb46ce0) at /build/buildd/amarok-2.2.1/obj-x86_64-linux-gnu/src/EngineController.moc:144 #9 0x00007ffb35bc8ddc in QMetaObject::activate (sender=0x1fd0040, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x18) at kernel/qobject.cpp:3113 #10 0x00007ffb320c3ef5 in Phonon::MediaObject::currentSourceChanged (this=0x7fff1fb46a30, _t1=<value optimized out>) at .moc/release-shared/moc_mediaobject.cpp:228 #11 0x00007ffb320c4263 in Phonon::MediaObjectPrivate::_k_currentSourceChanged (this=0x1fd0200, source=...) at ../3rdparty/phonon/phonon/mediaobject.cpp:446 #12 0x00007ffb320c5c3c in Phonon::MediaObject::qt_metacall (this=0x1fd0040, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff1fb46e60) at .moc/release-shared/moc_mediaobject.cpp:138 #13 0x00007ffb35bc8ddc in QMetaObject::activate (sender=0x1fbdd70, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x18) at kernel/qobject.cpp:3113 #14 0x00007ffb25b8ec65 in ?? () from /usr/lib/qt4/plugins/phonon_backend/phonon_xine.so #15 0x00007ffb25b9083b in ?? () from /usr/lib/qt4/plugins/phonon_backend/phonon_xine.so #16 0x00007ffb3743edf1 in EngineController::playUrl (this=0x1fcfc50, url=<value optimized out>, offset=<value optimized out>) at /build/buildd/amarok-2.2.1/src/EngineController.cpp:424 #17 0x00007ffb3743f67f in EngineController::play (this=0x1fcfc50, track=<value optimized out>, offset=0) at /build/buildd/amarok-2.2.1/src/EngineController.cpp:363 #18 0x00007ffb370f5525 in Playlist::Actions::play (this=0x26152f0, trackid=7360850614434317507, now=<value optimized out>) at /build/buildd/amarok-2.2.1/src/playlist/PlaylistActions.cpp:212 #19 0x00007ffb37105e15 in Playlist::Controller::insertOptioned (this=<value optimized out>, list=<value optimized out>, options=<value optimized out>) at /build/buildd/amarok-2.2.1/src/playlist/PlaylistController.cpp:141 #20 0x00007ffb371062a5 in Playlist::Controller::slotFinishDirectoryLoader (this=0x25853a0, tracks=<value optimized out>) at /build/buildd/amarok-2.2.1/src/playlist/PlaylistController.cpp:522 #21 0x00007ffb370325b3 in Playlist::Controller::qt_metacall (this=0x25853a0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff1fb47810) at /build/buildd/amarok-2.2.1/obj-x86_64-linux-gnu/src/moc_PlaylistController.cpp:145 #22 0x00007ffb35bc8ddc in QMetaObject::activate (sender=0x1f188a0, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x18) at kernel/qobject.cpp:3113 #23 0x00007ffb3702dc02 in DirectoryLoader::finished (this=0x7fff1fb46a30, _t1=<value optimized out>) at /build/buildd/amarok-2.2.1/obj-x86_64-linux-gnu/src/moc_DirectoryLoader.cpp:88 #24 0x00007ffb374345ca in DirectoryLoader::finishUrlList (this=0x1f188a0) at /build/buildd/amarok-2.2.1/src/DirectoryLoader.cpp:146 #25 0x00007ffb37434b43 in DirectoryLoader::init (this=0x1f188a0, urls=...) at /build/buildd/amarok-2.2.1/src/DirectoryLoader.cpp:103 #26 0x00007ffb370fe7f7 in Playlist::Controller::insertOptioned (this=0x25853a0, urls=..., options=33) at /build/buildd/amarok-2.2.1/src/playlist/PlaylistController.cpp:185 #27 0x00007ffb3742b891 in App::handleCliArgs () at /build/buildd/amarok-2.2.1/src/App.cpp:360 #28 0x00007ffb3742ce71 in App::newInstance (this=0x7fff1fb4a920) at /build/buildd/amarok-2.2.1/src/App.cpp:1228 #29 0x00007ffb37b9ecb6 in KUniqueApplicationAdaptor::newInstance (this=0x1f81180, asn_id=<value optimized out>, args=...) at ../../kdeui/kernel/kuniqueapplication.cpp:459 #30 0x00007ffb37b9f2a6 in KUniqueApplicationAdaptor::qt_metacall (this=0x1f81180, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff1fb48460) at ./kuniqueapplication_p.moc:75 #31 0x00007ffb33857ad4 in QDBusConnectionPrivate::deliverCall (this=<value optimized out>, object=<value optimized out>, msg=<value optimized out>, metaTypes=..., slotIdx=<value optimized out>) at qdbusintegrator.cpp:891 #32 0x00007ffb33858c69 in QDBusConnectionPrivate::activateCall (this=<value optimized out>, object=0x1f81180, flags=337, msg=...) at qdbusintegrator.cpp:796 #33 0x00007ffb33859547 in QDBusConnectionPrivate::activateObject (this=<value optimized out>, node=..., msg=<value optimized out>, pathStartPos=<value optimized out>) at qdbusintegrator.cpp:1347 #34 0x00007ffb338597c8 in QDBusActivateObjectEvent::placeMetaCall (this=0x2229c40) at qdbusintegrator.cpp:1464 #35 0x00007ffb35bc30f9 in QObject::event (this=0x7fff1fb4a920, e=0x2229c40) at kernel/qobject.cpp:1111 #36 0x00007ffb364ddb4d in QApplication::event (this=0x7fff1fb4a920, e=0x2229c40) at kernel/qapplication.cpp:2317 #37 0x00007ffb37421b3c in App::event (this=0x7fff1fb46a30, event=0x18) at /build/buildd/amarok-2.2.1/src/App.cpp:824 #38 0x00007ffb364d3efc in QApplicationPrivate::notify_helper (this=0x1edff70, receiver=0x7fff1fb4a920, e=0x2229c40) at kernel/qapplication.cpp:4056 #39 0x00007ffb364db1ce in QApplication::notify (this=0x7fff1fb4a920, receiver=0x7fff1fb4a920, e=0x2229c40) at kernel/qapplication.cpp:4021 #40 0x00007ffb37b97e56 in KApplication::notify (this=0x7fff1fb4a920, receiver=0x7fff1fb4a920, event=0x2229c40) at ../../kdeui/kernel/kapplication.cpp:302 #41 0x00007ffb35bb3c2c in QCoreApplication::notifyInternal (this=0x7fff1fb4a920, receiver=0x7fff1fb4a920, event=0x2229c40) at kernel/qcoreapplication.cpp:610 #42 0x00007ffb35bb480a in QCoreApplication::sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x1d9f810) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213 #43 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x1d9f810) at kernel/qcoreapplication.cpp:1247 #44 0x00007ffb35bdc533 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218 #45 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:210 #46 0x00007ffb2e156bbe in g_main_context_dispatch () from /lib/libglib-2.0.so.0 #47 0x00007ffb2e15a588 in ?? () from /lib/libglib-2.0.so.0 #48 0x00007ffb2e15a6b0 in g_main_context_iteration () from /lib/libglib-2.0.so.0 #49 0x00007ffb35bdc1a6 in QEventDispatcherGlib::processEvents (this=0x1d9f470, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327 #50 0x00007ffb365684be in QGuiEventDispatcherGlib::processEvents (this=0x7fff1fb46a30, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202 #51 0x00007ffb35bb2532 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149 #52 0x00007ffb35bb2904 in QEventLoop::exec (this=0x7fff1fb49230, flags=) at kernel/qeventloop.cpp:201 #53 0x00007ffb37c20e50 in KWallet::Wallet::openWallet (name=<value optimized out>, w=<value optimized out>, ot=KWallet::Wallet::Synchronous) at ../../kdeui/util/kwallet.cpp:252 #54 0x00007ffb11c858d1 in LastFmServiceConfig (this=0x7fff1fb495c0) at /build/buildd/amarok-2.2.1/src/services/lastfm/LastFmServiceConfig.cpp:39 #55 0x00007ffb11c6abd9 in LastFmService::init (this=0x2577aa0) at /build/buildd/amarok-2.2.1/src/services/lastfm/LastFmService.cpp:220 #56 0x00007ffb11c71f70 in LastFmService (this=0x2577aa0, parent=<value optimized out>, name=<value optimized out>, username=..., password=<value optimized out>, sessionKey=<value optimized out>, scrobble=true, fetchSimilar=true) at /build/buildd/amarok-2.2.1/src/services/lastfm/LastFmService.cpp:199 #57 0x00007ffb11c721b3 in LastFmServiceFactory::createLastFmService (this=<value optimized out>) at /build/buildd/amarok-2.2.1/src/services/lastfm/LastFmService.cpp:147 #58 0x00007ffb11c7235b in LastFmServiceFactory::init (this=0x7fff1fb46a30) at /build/buildd/amarok-2.2.1/src/services/lastfm/LastFmService.cpp:84 #59 0x00007ffb3722c975 in ServiceFactory::trackForUrl (this=<value optimized out>, url=...) at /build/buildd/amarok-2.2.1/src/services/ServiceBase.cpp:53 #60 0x00007ffb372e57cf in CollectionManager::trackForUrl (this=<value optimized out>, url=...) at /build/buildd/amarok-2.2.1/src/collection/CollectionManager.cpp:403 #61 0x00007ffb372b776a in Meta::XSPFPlaylist::tracks (this=0x23ce7b0) at /build/buildd/amarok-2.2.1/src/meta/XSPFPlaylist.cpp:206 #62 0x00007ffb37115d23 in Model (this=0x222cf50, parent=<value optimized out>) at /build/buildd/amarok-2.2.1/src/playlist/PlaylistModel.cpp:76 #63 0x00007ffb371180e4 in ModelStack (this=0x22315d0) at /build/buildd/amarok-2.2.1/src/playlist/PlaylistModelStack.cpp:58 #64 0x00007ffb37118228 in Playlist::ModelStack::instance () at /build/buildd/amarok-2.2.1/src/playlist/PlaylistModelStack.cpp:41 #65 0x00007ffb37118259 in The::playlist () at /build/buildd/amarok-2.2.1/src/playlist/PlaylistModelStack.cpp:28 #66 0x00007ffb373ade75 in StatusBar (this=0x20f74b0, parent=<value optimized out>) at /build/buildd/amarok-2.2.1/src/statusbar/StatusBar.cpp:88 #67 0x00007ffb374561dc in MainWindow (this=0x1ff16c0) at /build/buildd/amarok-2.2.1/src/MainWindow.cpp:157 #68 0x00007ffb37424bf9 in App::continueInit (this=0x7fff1fb4a920) at /build/buildd/amarok-2.2.1/src/App.cpp:675 #69 0x00007ffb374274b0 in App (this=0x7fff1fb4a920) at /build/buildd/amarok-2.2.1/src/App.cpp:222 #70 0x0000000000409dea in main (argc=<value optimized out>, argv=<value optimized out>) at /build/buildd/amarok-2.2.1/src/main.cpp:225 The current source language is "auto; currently c". *** Bug 216929 has been marked as a duplicate of this bug. *** Adapting title. Erm. This title is about as long as the bible. How could anyone read it? *** Bug 217600 has been marked as a duplicate of this bug. *** *** Bug 218432 has been marked as a duplicate of this bug. *** *** Bug 218710 has been marked as a duplicate of this bug. *** *** Bug 219183 has been marked as a duplicate of this bug. *** commit 45d4f4f4b92d73178551d4476258e024710cfac9 Author: Mark Kretschmann <kretschmann@kde.org> Date: Sun Dec 20 08:49:46 2009 +0100 Fix potential crash on startup (0-pointer). This could happen if you started Amarok e.g. from Dolphin directly, for playing music. At the point where handleCliArgs() is processed, the MainWindow has not yet been constructed. Hence the crash. Please test :) BUG: 215432 diff --git a/src/playlist/PlaylistActions.cpp b/src/playlist/PlaylistActions.cpp index 37c2f0c..d5fbb3a 100644 --- a/src/playlist/PlaylistActions.cpp +++ b/src/playlist/PlaylistActions.cpp @@ -400,7 +400,8 @@ Playlist::Actions::engineNewTrackPlaying() m_nextTrackCandidate = 0; - if( AmarokConfig::autoScrollPlaylist() ) + // mainWindow() can be 0 on startup, so we have to check for it + if( The::mainWindow() && AmarokConfig::autoScrollPlaylist() ) The::mainWindow()->playlistWidget()->currentView()->scrollToActiveTrack(); } I applied the patch to Amarok 2.2.1.90 and I get the bootsplash of Amarok, the music starts to play and thats it. Amarok never appears on the screen or in the system tray. I will try the patch with 2.2.1. Texstar, you don't understand: this is fixed in 2.2-git, just applying the patch to a much earlier version will probably not help, there might have been other changes in trunk since *** Bug 219944 has been marked as a duplicate of this bug. *** *** Bug 221201 has been marked as a duplicate of this bug. *** *** Bug 221412 has been marked as a duplicate of this bug. *** *** Bug 222722 has been marked as a duplicate of this bug. *** Based on a new report filed against 2.2.2, I reopen this :( See the backtrace in bug 222722 Pasting BT from other report here (it's without debug symbols though -> fairly useless): Thread 1 (Thread 0x7ff5374757a0 (LWP 5745)): [KCrash Handler] #5 0x00007ff5364a8713 in Playlist::Actions::engineNewTrackPlaying() () from /usr/lib/libamaroklib.so.1 #6 0x00007ff53682a379 in ?? () from /usr/lib/libamaroklib.so.1 #7 0x00007ff536821d53 in EngineController::slotNewTrackPlaying(Phonon::MediaSource const&) () from /usr/lib/libamaroklib.so.1 #8 0x00007ff536829702 in EngineController::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libamaroklib.so.1 #9 0x00007ff534f76ddc in QMetaObject::activate (sender=0x24aa6b0, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x18) at kernel/qobject.cpp:3113 #10 0x00007ff531db0ef5 in Phonon::MediaObject::currentSourceChanged (this=0x7fff116f8130, _t1=<value optimized out>) at .moc/release-shared/moc_mediaobject.cpp:228 #11 0x00007ff531db1263 in Phonon::MediaObjectPrivate::_k_currentSourceChanged (this=0x255efe0, source=...) at ../3rdparty/phonon/phonon/mediaobject.cpp:446 #12 0x00007ff531db2c3c in Phonon::MediaObject::qt_metacall (this=0x24aa6b0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff116f8570) at .moc/release-shared/moc_mediaobject.cpp:138 #13 0x00007ff534f76ddc in QMetaObject::activate (sender=0x26d5720, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x18) at kernel/qobject.cpp:3113 #14 0x00007ff52342ec65 in ?? () from /usr/lib/qt4/plugins/phonon_backend/phonon_xine.so #15 0x00007ff52343083b in ?? () from /usr/lib/qt4/plugins/phonon_backend/phonon_xine.so #16 0x00007ff536824ca9 in EngineController::playUrl(KUrl const&, unsigned int) () from /usr/lib/libamaroklib.so.1 #17 0x00007ff53682553f in EngineController::play(KSharedPtr<Meta::Track> const&, unsigned int) () from /usr/lib/libamaroklib.so.1 #18 0x00007ff5364a9dc5 in Playlist::Actions::play(unsigned long long, bool) () from /usr/lib/libamaroklib.so.1 #19 0x00007ff5364bb5c5 in Playlist::Controller::insertOptioned(QList<KSharedPtr<Meta::Track> >, int) () from /usr/lib/libamaroklib.so.1 #20 0x00007ff5364bbac5 in Playlist::Controller::slotFinishDirectoryLoader(QList<KSharedPtr<Meta::Track> > const&) () from /usr/lib/libamaroklib.so.1 Karel, if you can reproduce this, please install the debugging packages and see here on how to get a better backtrace: http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports Since you are using Ubuntu, you will need amarok-dbg and phonon-dbg at least, ideally you should also have kdelibs5-dbg, libqt4-dbg and libglib2.0-0-dbg installed. Karel: are you absolutely sure you were using Amarok 2.2.2 final and not the beta version? Nobody can reproduce this here. I tried to reproduce this again but neither I has been successfull with it. Ok I will install the debugging packages just for the case it will occur again. Yes, I am useing Amarok 2.2.2. It's from Kubuntu Backports PPA repository: deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu karmic main Thank you for the feedback. Closing for now, feel free to reopen it if you can reproduce it with a valid backtrace for Amarok 2.2.2 Created attachment 39986 [details]
New crash information added by DrKonqi
Still crashes while lauchning a mp3 from dolphin.
Kubuntu lucid lynx - all updates.
Felix, you are using Amarok on an Alpha distribution, I don't think this can be considered... FWIW, I can't reproduce this here, using Amarok 2.2.3-git on Kubuntu 9.10, KDE 4.4 RC 1 I added my backtrace cause you said "if one can reproduce..". Lets hope it will be gone with release. I'll report in otherwise ;) *** Bug 225530 has been marked as a duplicate of this bug. *** Amarok 2.2.2 with KDE 4.3.98 RC3 when selecting a mp3 file from dolphin will display the Amarok splash screen and start playing the file but it never docks into the system tray. I guess we will need an Amarok 2.2.3 for KDE 4.4? *** Bug 225612 has been marked as a duplicate of this bug. *** Amarok 2.2.2.90 works when clicking on a music file from dolphin in KDE 4.4.0. Excellent! *** Bug 233086 has been marked as a duplicate of this bug. *** *** Bug 241642 has been marked as a duplicate of this bug. *** *** Bug 254339 has been marked as a duplicate of this bug. *** *** Bug 256224 has been marked as a duplicate of this bug. *** |