Bug 215432

Summary: Launching Amarok from Dolphin: Crash in Playlist::Actions::engineNewTrackPlaying()
Product: [Applications] amarok Reporter: nothy <Northendra.Murti>
Component: PlaybackAssignee: 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
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.26.8.tex3 i686

What I was doing when the application crashed:
If  open dolphin and click on a mp3 file Amarok 2.2.1 will crash after displaying the splash screen. Sometimes if I close out the crash display and click on the mp3 file again Amarok will launch and play the file.

If I open Amarok and I can select the same mp3 file from the menu and it plays fine

 -- Backtrace:
Application: Amarok (amarok), signal: Segmentation fault
[KCrash Handler]
#9  0xb74ed824 in Playlist::Controller::insertOptioned () from /usr/lib/libamaroklib.so.1
#10 0xb74ee40f in Playlist::Controller::slotFinishDirectoryLoader () from /usr/lib/libamaroklib.so.1
#11 0xb7406396 in Playlist::Controller::qt_metacall () from /usr/lib/libamaroklib.so.1
#12 0xb6fded36 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#13 0xb6fdfa87 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#14 0xb73ffc71 in Playlist::Controller::metaObject () from /usr/lib/libamaroklib.so.1
#15 0xb7864bc7 in KConfigGroup::writeEntry<bool> () from /usr/lib/libamaroklib.so.1
#16 0xb78651a9 in KConfigGroup::writeEntry<bool> () from /usr/lib/libamaroklib.so.1
#17 0xb74e7910 in Playlist::Controller::insertOptioned () from /usr/lib/libamaroklib.so.1
#18 0xb785af5e in App::handleCliArgs () from /usr/lib/libamaroklib.so.1
#19 0xb785c731 in App::newInstance () from /usr/lib/libamaroklib.so.1
#20 0xb7d6687f in KUniqueApplication::qt_metacast () from /usr/lib/libkdeui.so.5
#21 0xb7d66fbc in KUniqueApplication::newInstance () from /usr/lib/libkdeui.so.5
#22 0xb5ec29a0 in qDBusAddSpyHook () from /usr/lib/libQtDBus.so.4
#23 0xb5ec3c29 in qDBusAddSpyHook () from /usr/lib/libQtDBus.so.4
#24 0xb5ec42ce in qDBusAddSpyHook () from /usr/lib/libQtDBus.so.4
#25 0xb5ec4868 in qDBusAddSpyHook () from /usr/lib/libQtDBus.so.4
#26 0xb6fd8b57 in QObject::event () from /usr/lib/libQtCore.so.4
#27 0xb6fc7daa in QCoreApplication::event () from /usr/lib/libQtCore.so.4
#28 0xb65dc496 in QApplication::event () from /usr/lib/libQtGui.so.4
#29 0xb7850e99 in App::event () from /usr/lib/libamaroklib.so.1
#30 0xb65d67ec in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#31 0xb65de30e in QApplication::notify () from /usr/lib/libQtGui.so.4
#32 0xb7d5f271 in KApplication::notify () from /usr/lib/libkdeui.so.5
#33 0xb6fc842d in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#34 0xb6fc90fb in QCoreApplicationPrivate::sendPostedEvents () from /usr/lib/libQtCore.so.4
#35 0xb6fc92cc in QCoreApplication::sendPostedEvents () from /usr/lib/libQtCore.so.4
#36 0xb6ff4c0b in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#37 0xb3d1a32c in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#38 0xb3d1dd68 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#39 0xb3d1de8e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#40 0xb6ff4721 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#41 0xb6679b3a in QX11Info::copyX11Data () from /usr/lib/libQtGui.so.4
#42 0xb6fc6a6d in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#43 0xb6fc6ec1 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#44 0xb56923f2 in Phonon::PulseSupport::PulseSupport () from /usr/lib/libphonon.so.4
#45 0xb5692458 in Phonon::PulseSupport::getInstance () from /usr/lib/libphonon.so.4
#46 0xb567986d in Phonon::AudioOutput::setMuted () from /usr/lib/libphonon.so.4
#47 0xb7870109 in EngineController::initializePhonon () from /usr/lib/libamaroklib.so.1
#48 0xb78710e9 in EngineController::EngineController () from /usr/lib/libamaroklib.so.1
#49 0xb7871288 in EngineController::instance () from /usr/lib/libamaroklib.so.1
#50 0xb78712b4 in The::engineController () from /usr/lib/libamaroklib.so.1
#51 0xb787437a in EngineObserver::EngineObserver$base () from /usr/lib/libamaroklib.so.1
#52 0xb75f4e48 in KRandomSequence::randomize<KSharedPtr<Meta::Track> > () from /usr/lib/libamaroklib.so.1
#53 0xb7781568 in PlaylistManager::import () from /usr/lib/libamaroklib.so.1
#54 0xb77816b8 in PlaylistManager::import () from /usr/lib/libamaroklib.so.1
#55 0xb7500105 in Playlist::Model::Model () from /usr/lib/libamaroklib.so.1
#56 0xb7502989 in Meta::MetaCapability::create<Meta::SourceInfoCapability> () from /usr/lib/libamaroklib.so.1
#57 0xb7502ae8 in Meta::MetaCapability::create<Meta::SourceInfoCapability> () from /usr/lib/libamaroklib.so.1
#58 0xb74eb0db in Playlist::Controller::Controller () from /usr/lib/libamaroklib.so.1
#59 0xb74eb21e in Playlist::Controller::instance () from /usr/lib/libamaroklib.so.1
#60 0xb74eb254 in The::playlistController () from /usr/lib/libamaroklib.so.1
#61 0xb785af4a in App::handleCliArgs () from /usr/lib/libamaroklib.so.1
#62 0xb785c731 in App::newInstance () from /usr/lib/libamaroklib.so.1
#63 0xb7d6687f in KUniqueApplication::qt_metacast () from /usr/lib/libkdeui.so.5
#64 0xb7d66fbc in KUniqueApplication::newInstance () from /usr/lib/libkdeui.so.5
#65 0xb5ec29a0 in qDBusAddSpyHook () from /usr/lib/libQtDBus.so.4
#66 0xb5ec3bb0 in qDBusAddSpyHook () from /usr/lib/libQtDBus.so.4
#67 0xb5ec42ce in qDBusAddSpyHook () from /usr/lib/libQtDBus.so.4
#68 0xb5ec4868 in qDBusAddSpyHook () from /usr/lib/libQtDBus.so.4
#69 0xb6fd8b57 in QObject::event () from /usr/lib/libQtCore.so.4
#70 0xb6fc7daa in QCoreApplication::event () from /usr/lib/libQtCore.so.4
#71 0xb65dc496 in QApplication::event () from /usr/lib/libQtGui.so.4
#72 0xb7850e99 in App::event () from /usr/lib/libamaroklib.so.1
#73 0xb65d67ec in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#74 0xb65de30e in QApplication::notify () from /usr/lib/libQtGui.so.4
#75 0xb7d5f271 in KApplication::notify () from /usr/lib/libkdeui.so.5
#76 0xb6fc842d in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#77 0xb6fc90fb in QCoreApplicationPrivate::sendPostedEvents () from /usr/lib/libQtCore.so.4
#78 0xb6fc92cc in QCoreApplication::sendPostedEvents () from /usr/lib/libQtCore.so.4
#79 0xb6ff4c0b in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#80 0xb3d1a32c in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#81 0xb3d1dd68 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#82 0xb3d1de8e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#83 0xb6ff4721 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#84 0xb6679b3a in QX11Info::copyX11Data () from /usr/lib/libQtGui.so.4
#85 0xb6fc6a6d in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#86 0xb6fc6ec1 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#87 0xb56923f2 in Phonon::PulseSupport::PulseSupport () from /usr/lib/libphonon.so.4
#88 0xb5692458 in Phonon::PulseSupport::getInstance () from /usr/lib/libphonon.so.4
#89 0xb567986d in Phonon::AudioOutput::setMuted () from /usr/lib/libphonon.so.4
#90 0xb7870109 in EngineController::initializePhonon () from /usr/lib/libamaroklib.so.1
#91 0xb78710e9 in EngineController::EngineController () from /usr/lib/libamaroklib.so.1
#92 0xb7871288 in EngineController::instance () from /usr/lib/libamaroklib.so.1
#93 0xb78712b4 in The::engineController () from /usr/lib/libamaroklib.so.1
#94 0xb7889c63 in MainWindow::MainWindow () from /usr/lib/libamaroklib.so.1
#95 0xb7854295 in App::continueInit () from /usr/lib/libamaroklib.so.1
#96 0xb7856c80 in App::App () from /usr/lib/libamaroklib.so.1
#97 0x08051cee in _start ()
#98 0xb626ba36 in __libc_start_main () from /lib/i686/libc.so.6
#99 0x08048f51 in _start ()

Reported using DrKonqi
Comment 1 Juan 2009-11-20 17:00:48 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
Comment 2 Texstar 2009-11-22 03:19:53 UTC
Same crash for me as well.
Comment 3 Myriam Schweingruber 2009-11-22 09:48:14 UTC
Setting status to confirmed
Comment 4 Myriam Schweingruber 2009-11-24 20:41:26 UTC
Can somebody not running a PCLinuxOS confirm this bug?
Comment 5 Myriam Schweingruber 2009-11-28 20:13:39 UTC
Setting target and keyword. Please reassign if it's not Amarok related.
Comment 6 Myriam Schweingruber 2009-11-30 00:12:22 UTC
*** Bug 216742 has been marked as a duplicate of this bug. ***
Comment 7 Myriam Schweingruber 2009-11-30 00:13:38 UTC
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".
Comment 8 Myriam Schweingruber 2009-12-01 13:58:57 UTC
*** Bug 216929 has been marked as a duplicate of this bug. ***
Comment 9 Myriam Schweingruber 2009-12-01 13:59:43 UTC
Adapting title.
Comment 10 Mark Kretschmann 2009-12-01 14:17:22 UTC
Erm. This title is about as long as the bible. How could anyone read it?
Comment 11 abahadirdogan 2009-12-06 16:58:50 UTC
*** Bug 217600 has been marked as a duplicate of this bug. ***
Comment 12 Myriam Schweingruber 2009-12-12 21:15:56 UTC
*** Bug 218432 has been marked as a duplicate of this bug. ***
Comment 13 Myriam Schweingruber 2009-12-16 20:01:04 UTC
*** Bug 218710 has been marked as a duplicate of this bug. ***
Comment 14 Mikko C. 2009-12-18 14:32:02 UTC
*** Bug 219183 has been marked as a duplicate of this bug. ***
Comment 15 Mark Kretschmann 2009-12-20 08:56:39 UTC
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();
 }
Comment 16 Texstar 2009-12-20 12:19:46 UTC
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.
Comment 17 Myriam Schweingruber 2009-12-20 15:41:34 UTC
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
Comment 18 Dario Andres 2009-12-24 14:36:19 UTC
*** Bug 219944 has been marked as a duplicate of this bug. ***
Comment 19 Mikko C. 2010-01-04 09:46:18 UTC
*** Bug 221201 has been marked as a duplicate of this bug. ***
Comment 20 Mikko C. 2010-01-05 16:21:19 UTC
*** Bug 221412 has been marked as a duplicate of this bug. ***
Comment 21 Myriam Schweingruber 2010-01-14 18:43:11 UTC
*** Bug 222722 has been marked as a duplicate of this bug. ***
Comment 22 Myriam Schweingruber 2010-01-14 18:44:40 UTC
Based on a new report filed against 2.2.2, I reopen this :( See the backtrace in bug 222722
Comment 23 Mark Kretschmann 2010-01-15 11:46:41 UTC
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
Comment 24 Myriam Schweingruber 2010-01-15 12:01:06 UTC
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.
Comment 25 Myriam Schweingruber 2010-01-15 16:04:09 UTC
Karel: are you absolutely sure you were using Amarok 2.2.2 final and not the beta version? Nobody can reproduce this here.
Comment 26 Karel Kozlík 2010-01-15 17:54:43 UTC
 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
Comment 27 Myriam Schweingruber 2010-01-15 20:00:37 UTC
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
Comment 28 felix 2010-01-17 20:36:03 UTC
Created attachment 39986 [details]
New crash information added by DrKonqi

Still crashes while lauchning a mp3 from dolphin. 

Kubuntu lucid lynx - all updates.
Comment 29 Myriam Schweingruber 2010-01-17 23:22:16 UTC
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
Comment 30 felix 2010-01-17 23:50:36 UTC
I added my backtrace cause you said "if one can reproduce..".

Lets hope it will be gone with release. I'll report in otherwise ;)
Comment 31 Myriam Schweingruber 2010-02-04 23:08:08 UTC
*** Bug 225530 has been marked as a duplicate of this bug. ***
Comment 32 Texstar 2010-02-05 00:05:02 UTC
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?
Comment 33 Myriam Schweingruber 2010-02-05 12:24:50 UTC
*** Bug 225612 has been marked as a duplicate of this bug. ***
Comment 34 Texstar 2010-02-16 21:44:36 UTC
Amarok 2.2.2.90 works when clicking on a music file from dolphin in KDE 4.4.0. Excellent!
Comment 35 Mikko C. 2010-04-03 12:21:06 UTC
*** Bug 233086 has been marked as a duplicate of this bug. ***
Comment 36 Mikko C. 2010-06-13 13:59:07 UTC
*** Bug 241642 has been marked as a duplicate of this bug. ***
Comment 37 Mikko C. 2010-10-16 11:07:59 UTC
*** Bug 254339 has been marked as a duplicate of this bug. ***
Comment 38 Mikko C. 2010-11-06 13:37:43 UTC
*** Bug 256224 has been marked as a duplicate of this bug. ***