Bug 214069 - Amarok crashed during KDE session restore after login (volumefadereffect)
Summary: Amarok crashed during KDE session restore after login (volumefadereffect)
Status: RESOLVED DUPLICATE of bug 188602
Alias: None
Product: Phonon
Classification: Frameworks and Libraries
Component: Xine backend (show other bugs)
Version: 4.3.0 (KDE 4.2.0)
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Matthias Kretz
URL:
Keywords:
: 214923 217749 218720 220487 221312 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-11-11 04:54 UTC by Thilo-Alexander Ginkel
Modified: 2010-08-19 00:56 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
phonon-xine log (13.02 KB, text/plain)
2009-11-11 21:56 UTC, Thilo-Alexander Ginkel
Details
ksystemsettings screenshot (120.03 KB, image/png)
2009-11-11 21:57 UTC, Thilo-Alexander Ginkel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thilo-Alexander Ginkel 2009-11-11 04:54:39 UTC
Application that crashed: amarok
Version of the application: 2.2.0
KDE Version: 4.3.3 (KDE 4.3.3)
Qt Version: 4.5.2
Operating System: Linux 2.6.31-14-generic x86_64
Distribution: Ubuntu 9.10

 -- Backtrace:
Application: Amarok (amarok), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f73827847a0 (LWP 5226))]

Thread 5 (Thread 0x7f7365585910 (LWP 5269)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:220
#1  0x00007f73710f0c91 in metronom_sync_loop (this=0x1ffab00) at metronom.c:870
#2  0x00007f737a69ea04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3  0x00007f737fe257bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f736497c910 (LWP 5274)):
[KCrash Handler]
#5  xine_post_input (this_gen=0x0, name=0x7f7371386db9 "parameters") at xine_interface.c:875
#6  0x00007f73713769e4 in Phonon::Xine::VolumeFaderEffectXT::createInstance (this=0x2175960) at ../../xine/volumefadereffect.cpp:123
#7  0x00007f737135bed2 in Phonon::Xine::EffectXT::ensureInstance (this=0x2175960) at ../../xine/effect.cpp:70
#8  0x00007f737135c06d in Phonon::Xine::EffectXT::audioOutputPort (this=0x0) at ../../xine/effect.cpp:45
#9  0x00007f737135eaf2 in Phonon::Xine::AudioOutputXT::rewireTo (this=0x1e60eb0, source=0x7f7371386db9) at ../../xine/audiooutput.cpp:332
#10 0x00007f737134c505 in Phonon::Xine::XineThread::event (this=<value optimized out>, e=<value optimized out>) at ../../xine/xinethread.cpp:130
#11 0x00007f7380e29efc in QApplicationPrivate::notify_helper (this=0x1e626c0, receiver=0x1f76b70, e=0x21763d0) at kernel/qapplication.cpp:4056
#12 0x00007f7380e311ce in QApplication::notify (this=0x7fff15e7d1e0, receiver=0x1f76b70, e=0x21763d0) at kernel/qapplication.cpp:4021
#13 0x00007f73822bbe56 in KApplication::notify (this=0x7fff15e7d1e0, receiver=0x1f76b70, event=0x21763d0) at ../../kdeui/kernel/kapplication.cpp:302
#14 0x00007f7380509c2c in QCoreApplication::notifyInternal (this=0x7fff15e7d1e0, receiver=0x1f76b70, event=0x21763d0) at kernel/qcoreapplication.cpp:610
#15 0x00007f738050a80a in QCoreApplication::sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x1f76e50) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#16 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x1f76e50) at kernel/qcoreapplication.cpp:1247
#17 0x00007f7380532533 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#18 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:210
#19 0x00007f7378fd6bbe in g_main_dispatch (context=0x1f772c0) at /build/buildd/glib2.0-2.22.2/glib/gmain.c:1960
#20 IA__g_main_context_dispatch (context=0x1f772c0) at /build/buildd/glib2.0-2.22.2/glib/gmain.c:2513
#21 0x00007f7378fda588 in g_main_context_iterate (context=0x1f772c0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>)
    at /build/buildd/glib2.0-2.22.2/glib/gmain.c:2591
#22 0x00007f7378fda6b0 in IA__g_main_context_iteration (context=0x1f772c0, may_block=1) at /build/buildd/glib2.0-2.22.2/glib/gmain.c:2654
#23 0x00007f73805321a6 in QEventDispatcherGlib::processEvents (this=0x1f771f0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#24 0x00007f7380508532 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#25 0x00007f7380508904 in QEventLoop::exec (this=0x7f736497bfb0, flags=) at kernel/qeventloop.cpp:201
#26 0x00007f73804206cb in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#27 0x00007f737134b56e in Phonon::Xine::XineThread::run (this=0x1f76b70) at ../../xine/xinethread.cpp:143
#28 0x00007f7380423445 in QThreadPrivate::start (arg=0x1f76b70) at thread/qthread_unix.cpp:188
#29 0x00007f737a69ea04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#30 0x00007f737fe257bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#31 0x0000000000000000 in ?? ()
The current source language is "auto; currently asm".

Thread 3 (Thread 0x7f736417b910 (LWP 5275)):
#0  0x00007f737fe19373 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f736deb220f in poll_func (ufds=0x200dd60, nfds=2, timeout=-1, userdata=0x200dc40) at pulse/thread-mainloop.c:75
#2  0x00007f736dea25e6 in pa_mainloop_poll (m=0x200e080) at pulse/mainloop.c:879
#3  0x00007f736dea3eb9 in pa_mainloop_iterate (m=0x200e080, block=<value optimized out>, retval=0x0) at pulse/mainloop.c:961
#4  0x00007f736dea3f70 in pa_mainloop_run (m=0x200e080, retval=0x0) at pulse/mainloop.c:979
#5  0x00007f736deb212b in thread (userdata=0x200c5d0) at pulse/thread-mainloop.c:94
#6  0x00007f736dc73050 in internal_thread_func (userdata=0x200e1c0) at pulsecore/thread-posix.c:72
#7  0x00007f737a69ea04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#8  0x00007f737fe257bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()
The current source language is "auto; currently c".

Thread 2 (Thread 0x7f735f979910 (LWP 5278)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f7371101983 in fifo_peek_int (this_gen=<value optimized out>) at audio_out.c:348
#2  fifo_peek (this_gen=<value optimized out>) at audio_out.c:388
#3  ao_loop (this_gen=<value optimized out>) at audio_out.c:1015
#4  0x00007f737a69ea04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#5  0x00007f737fe257bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f73827847a0 (LWP 5226)):
#0  0x00007f7377ae529d in ?? () from /usr/lib/libxcb.so.1
#1  0x00007f7377ae57d7 in ?? () from /usr/lib/libxcb.so.1
#2  0x00007f7377ae5a85 in xcb_writev () from /usr/lib/libxcb.so.1
#3  0x00007f737f3ddd4a in _XSend (dpy=0x1e82bc0, data=0x0, size=<value optimized out>) at ../../src/xcb_io.c:332
#4  0x00007f737f3de295 in _XFlush (dpy=0x1e82bc0) at ../../src/xcb_io.c:349
#5  0x00007f737f3b611a in XFlush (dpy=0x1e82bc0) at ../../src/Flush.c:41
#6  0x00007f7380e77e9a in QWidget::setCursor (this=0x21e6320, cursor=...) at kernel/qwidget.cpp:4623
#7  0x00007f73811e300a in QLineEditPrivate::init (this=0x21a8e50, txt=...) at widgets/qlineedit.cpp:2780
#8  0x00007f73811e333a in QLineEdit (this=0x21e6320, parent=0x21acc30) at widgets/qlineedit.cpp:275
#9  0x00007f73823871e9 in KLineEdit (this=0x7f73827847a0, parent=0x1) at ../../kdeui/widgets/klineedit.cpp:206
#10 0x00007f7381d7e0c9 in LineEdit (this=0x7f73827847a0, parent=0x1) at /build/buildd/amarok-2.2.0/src/widgets/LineEdit.cpp:25
#11 0x00007f7381d8ad68 in SearchWidget::init (this=0x21905d0, parent=<value optimized out>, advanced=false) at /build/buildd/amarok-2.2.0/src/widgets/SearchWidget.cpp:66
#12 0x00007f7381d8b06a in SearchWidget (this=0x21905d0, parent=0x2185320, caller=0x2185320, advanced=false) at /build/buildd/amarok-2.2.0/src/widgets/SearchWidget.cpp:41
#13 0x00007f73819a8f01 in BrowserCategoryList (this=0x2185320, parent=<value optimized out>, name=<value optimized out>) at /build/buildd/amarok-2.2.0/src/browsers/BrowserCategoryList.cpp:44
#14 0x00007f7381b47ac0 in ServiceBrowser (this=0x7f73827847a0, parent=0x1, name=...) at /build/buildd/amarok-2.2.0/src/browsers/servicebrowser/ServiceBrowser.cpp:42
#15 0x00007f7381b47d5f in ServiceBrowser::instance () at /build/buildd/amarok-2.2.0/src/browsers/servicebrowser/ServiceBrowser.cpp:34
#16 0x00007f7381b3542a in ServicePluginManager (this=0x21b0610) at /build/buildd/amarok-2.2.0/src/services/ServicePluginManager.cpp:40
#17 0x00007f7381b3548f in ServicePluginManager::instance () at /build/buildd/amarok-2.2.0/src/services/ServicePluginManager.cpp:32
#18 0x00007f7381a47482 in Model (this=0x21b0640, parent=<value optimized out>) at /build/buildd/amarok-2.2.0/src/playlist/PlaylistModel.cpp:65
#19 0x00007f7381a49334 in ModelStack (this=0x1e5fd80) at /build/buildd/amarok-2.2.0/src/playlist/PlaylistModelStack.cpp:58
#20 0x00007f7381a4941f in Playlist::ModelStack::instance () at /build/buildd/amarok-2.2.0/src/playlist/PlaylistModelStack.cpp:41
#21 0x00007f7381a49439 in The::playlist () at /build/buildd/amarok-2.2.0/src/playlist/PlaylistModelStack.cpp:28
#22 0x00007f7381c58078 in StatusBar (this=0x2174f10, parent=<value optimized out>) at /build/buildd/amarok-2.2.0/src/statusbar/StatusBar.cpp:90
#23 0x00007f7381cd4075 in MainWindow (this=0x1e525a0) at /build/buildd/amarok-2.2.0/src/MainWindow.cpp:138
#24 0x00007f7381caf5e7 in App::continueInit (this=0x7fff15e7d1e0) at /build/buildd/amarok-2.2.0/src/App.cpp:673
#25 0x00007f7381cb0a4e in App (this=0x7fff15e7d1e0) at /build/buildd/amarok-2.2.0/src/App.cpp:225
#26 0x0000000000409ebd in main (argc=<value optimized out>, argv=0x7fff15e7ef88) at /build/buildd/amarok-2.2.0/src/main.cpp:223
The current source language is "auto; currently asm".

Reported using DrKonqi
Comment 1 Thilo-Alexander Ginkel 2009-11-11 04:57:13 UTC
My apologies if this is a duplicate of an existing bug. The crash is reproducible, so if you would like me to change anything  and reproduce the issue, please let me know.
Comment 2 Myriam Schweingruber 2009-11-11 10:51:52 UTC
Not much we can do about, since this is a crash in Xine. Martin?
Comment 3 Dario Andres 2009-11-11 13:12:45 UTC
The backtrace is related to bug 188602, which states that reintalled xine "fixed" the issue.. Could you check this ? (you need to reinstall the "libxine1" and "phonon-xine" packages (I'm not really sure if this are the proper names))
Thanks
Comment 4 Thilo-Alexander Ginkel 2009-11-11 21:56:36 UTC
Created attachment 38274 [details]
phonon-xine log

Unfortunately, re-installing libxine1, libxine1-bin and phonon-backend-xine did not help.

I had a look at the xine and Phonon source code, though.

Before hitting xine_interface.c:875
  xine_post_input (this_gen=0x0, name=0x7f7371386db9 "parameters")
(which segfaults because this_gen is null) the code tried to create a new plugin instance by calling
  xine_post_init(m_xine, "KVolumeFader", 1, &audioPort, 0);

So, apparently the instantiation of the KVolumeFader did not work.

I enabled xine's debug logging by setting PHONON_XINE_VERBOSITY=255. This resulted in the attached output.

So, apparently, Phonon tries to access an unnamed output device (probably my onboard audio, which mysteriously disappeared).

Is there any way to get rid of this spurious entry? I already deleted my phonondevicesrc and it was re-created without the spurious entry, but I can still see the unnamed entry in ksystemsettings (see second attachment).
Comment 5 Thilo-Alexander Ginkel 2009-11-11 21:57:21 UTC
Created attachment 38275 [details]
ksystemsettings screenshot
Comment 6 Thilo-Alexander Ginkel 2009-11-11 22:20:14 UTC
Just a brief update: The empty entry is not my onboard audio, which correctly came back as an additional entry after I re-enabled it in the BIOS. Unfortunately, the spurious output remained...
Comment 7 Myriam Schweingruber 2009-12-11 23:48:22 UTC
*** Bug 214923 has been marked as a duplicate of this bug. ***
Comment 8 Myriam Schweingruber 2009-12-11 23:49:02 UTC
Confirmed by duplicate.
Comment 9 Myriam Schweingruber 2009-12-12 00:02:08 UTC
*** Bug 217749 has been marked as a duplicate of this bug. ***
Comment 10 Myriam Schweingruber 2009-12-16 20:04:46 UTC
*** Bug 218720 has been marked as a duplicate of this bug. ***
Comment 11 Dario Andres 2009-12-30 22:59:42 UTC
*** Bug 220487 has been marked as a duplicate of this bug. ***
Comment 12 Myriam Schweingruber 2010-01-05 01:01:30 UTC
*** Bug 221312 has been marked as a duplicate of this bug. ***
Comment 13 Johannes M. Wagner 2010-01-19 01:40:54 UTC
well, seems like i found a workaround AGAIN, which i had found some weeks ago: make sure to remove pulseaudio from your system, then rm the $HOME/.xine directory...

after that, amarok will startup again quite fine.
Comment 14 Maximiliano Boscovich 2010-01-19 01:46:54 UTC
(In reply to comment #13)
> well, seems like i found a workaround AGAIN, which i had found some weeks ago:
> make sure to remove pulseaudio from your system, then rm the $HOME/.xine
> directory...
> 
> after that, amarok will startup again quite fine.

Thank you very very much Johannes!!! i just removed ${HOME}/.xine directory, and amarok started to work again!!! thank you again, it's great be part of this community. 
Regards from Argentina.
Comment 15 Myriam Schweingruber 2010-08-14 11:18:00 UTC
Can you all please remove $HOME/.xine and confirm this works for you?
Comment 16 Maximiliano Boscovich 2010-08-14 18:31:25 UTC
(In reply to comment #15)
> Can you all please remove $HOME/.xine and confirm this works for you?

Yes Myriam, it worked for me. I removed $HOME/.xine, and then amarok started to work fine. Regards.
Comment 17 Myriam Schweingruber 2010-08-19 00:56:59 UTC
Thank you for the feedback. Closing, marking as duplicate of original bug 188602

*** This bug has been marked as a duplicate of bug 188602 ***