Bug 193050 - KTorrent crashes when playing a video that has not finished downloading with the media player plugin (XIOError, QCursor::pos, QMouseEvent, Phonon::SeekSlider, Phonon::MediaObject::currentSourceChanged)
Summary: KTorrent crashes when playing a video that has not finished downloading with ...
Status: RESOLVED DUPLICATE of bug 196320
Alias: None
Product: Phonon
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 4.3.0 (KDE 4.2.0)
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Matthias Kretz
URL:
Keywords:
: 205751 208593 220290 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-05-17 21:48 UTC by Gabriel
Modified: 2010-12-05 22:16 UTC (History)
6 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 Gabriel 2009-05-17 21:48:17 UTC
Version:            (using KDE 4.2.3)
OS:                Linux
Installed from:    Unlisted Binary Package

I'm downloading a film and when I try to play it KTorrent crashes (not always, it's kind of random). The video uses the mkv container.

I'm on Arch Linux using their KDE packages. 

Application: KTorrent (ktorrent), signal SIGSEGV
   from /lib/libpthread.so.0
[Current thread is 0 (LWP 11262)]

Thread 11 (Thread 0x7f08f4f95950 (LWP 11267)):
#0  0x00007f08fea8de6d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f08ef1ee581 in metronom_sync_loop () from /usr/lib/libxine.so.1
#2  0x00007f08fea893b4 in start_thread () from /lib/libpthread.so.0
#3  0x00007f08fd45689d in clone () from /lib/libc.so.6

Thread 10 (Thread 0x7f08ea140950 (LWP 11268)):
[KCrash Handler]
#5  0x0000000001ac78e0 in ?? ()
#6  0x00007f08ef1eb98e in close_internal () from /usr/lib/libxine.so.1
#7  0x00007f08ef1ebc5b in xine_open () from /usr/lib/libxine.so.1
#8  0x00007f08ef44cabd in Phonon::Xine::XineStream::xineOpen () from /usr/lib/kde4/plugins/phonon_backend/phonon_xine.so
#9  0x00007f08ef44e657 in Phonon::Xine::XineStream::event () from /usr/lib/kde4/plugins/phonon_backend/phonon_xine.so
#10 0x00007f08fe02240d in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#11 0x00007f08fe02a68a in QApplication::notify () from /usr/lib/libQtGui.so.4
#12 0x00007f090039dcc6 in KApplication::notify () from /usr/lib/libkdeui.so.5
#13 0x00007f08fede539c in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#14 0x00007f08fede600a in QCoreApplicationPrivate::sendPostedEvents () from /usr/lib/libQtCore.so.4
#15 0x00007f08fee0ed83 in ?? () from /usr/lib/libQtCore.so.4
#16 0x00007f08f9abc01a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#17 0x00007f08f9abf6e0 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#18 0x00007f08f9abf87c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#19 0x00007f08fee0ea0f in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#20 0x00007f08fede3c42 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#21 0x00007f08fede400d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#22 0x00007f08fecf9d08 in QThread::exec () from /usr/lib/libQtCore.so.4
#23 0x00007f08ef4476c2 in Phonon::Xine::XineThread::run () from /usr/lib/kde4/plugins/phonon_backend/phonon_xine.so
#24 0x00007f08fecfcc62 in ?? () from /usr/lib/libQtCore.so.4
#25 0x00007f08fea893b4 in start_thread () from /lib/libpthread.so.0
#26 0x00007f08fd45689d in clone () from /lib/libc.so.6

Thread 9 (Thread 0x7f08e9736950 (LWP 11271)):
#0  0x00007f08ef6c00a8 in snd_ctl_hw_read () from /usr/lib/libasound.so.2
#1  0x00007f08ef6bab28 in snd_hctl_handle_events () from /usr/lib/libasound.so.2
#2  0x00007f08ef6c47ad in snd_mixer_handle_events () from /usr/lib/libasound.so.2
#3  0x00007f08e973b878 in ao_alsa_handle_event_thread () from /usr/lib/xine/plugins/1.26/xineplug_ao_out_alsa.so
#4  0x00007f08fea893b4 in start_thread () from /lib/libpthread.so.0
#5  0x00007f08fd45689d in clone () from /lib/libc.so.6

Thread 8 (Thread 0x7f08e8f35950 (LWP 11272)):
#0  0x00007f08fea8dbe9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f08ef1ff5c3 in ao_loop () from /usr/lib/libxine.so.1
#2  0x00007f08fea893b4 in start_thread () from /lib/libpthread.so.0
#3  0x00007f08fd45689d in clone () from /lib/libc.so.6

Thread 7 (Thread 0x7f08e1db7950 (LWP 11279)):
#0  0x00007f08fd44e343 in poll () from /lib/libc.so.6
#1  0x00007f090116f261 in net::DownloadThread::waitForSocketReady () from /usr/lib/libbtcore.so.10
#2  0x00007f090116f31c in net::DownloadThread::update () from /usr/lib/libbtcore.so.10
#3  0x00007f090116fd69 in net::NetworkThread::run () from /usr/lib/libbtcore.so.10
#4  0x00007f08fecfcc62 in ?? () from /usr/lib/libQtCore.so.4
#5  0x00007f08fea893b4 in start_thread () from /lib/libpthread.so.0
#6  0x00007f08fd45689d in clone () from /lib/libc.so.6

Thread 6 (Thread 0x7f08e15b6950 (LWP 11280)):
#0  0x00007f08fea8dbe9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f08fecfdc59 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#2  0x00007f090116ec24 in net::UploadThread::update () from /usr/lib/libbtcore.so.10
#3  0x00007f090116fd69 in net::NetworkThread::run () from /usr/lib/libbtcore.so.10
#4  0x00007f08fecfcc62 in ?? () from /usr/lib/libQtCore.so.4
#5  0x00007f08fea893b4 in start_thread () from /lib/libpthread.so.0
#6  0x00007f08fd45689d in clone () from /lib/libc.so.6

Thread 5 (Thread 0x7f08e27be950 (LWP 12330)):
#0  0x00007f08fd450202 in select () from /lib/libc.so.6
#1  0x00007f08ef2164a4 in xine_usec_sleep () from /usr/lib/libxine.so.1
#2  0x00007f08ef1fc09b in video_out_loop () from /usr/lib/libxine.so.1
#3  0x00007f08fea893b4 in start_thread () from /lib/libpthread.so.0
#4  0x00007f08fd45689d in clone () from /lib/libc.so.6

Thread 4 (Thread 0x7f08e03a8950 (LWP 12331)):
#0  0x00007f08fea8dbe9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f08ef1f1f7b in fifo_buffer_get () from /usr/lib/libxine.so.1
#2  0x00007f08ef1f7d5e in video_decoder_loop () from /usr/lib/libxine.so.1
#3  0x00007f08fea893b4 in start_thread () from /lib/libpthread.so.0
#4  0x00007f08fd45689d in clone () from /lib/libc.so.6

Thread 3 (Thread 0x7f08df9da950 (LWP 12332)):
#0  0x00007f08fea8dbe9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f08ef1f1f7b in fifo_buffer_get () from /usr/lib/libxine.so.1
#2  0x00007f08ef1f8e0e in audio_decoder_loop () from /usr/lib/libxine.so.1
#3  0x00007f08fea893b4 in start_thread () from /lib/libpthread.so.0
#4  0x00007f08fd45689d in clone () from /lib/libc.so.6

Thread 2 (Thread 0x7f08df1d9950 (LWP 12333)):
#0  0x00007f08fea8dbe9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f08ef20222b in listener_loop () from /usr/lib/libxine.so.1
#2  0x00007f08fea893b4 in start_thread () from /lib/libpthread.so.0
#3  0x00007f08fd45689d in clone () from /lib/libc.so.6

Thread 1 (Thread 0x7f090162e760 (LWP 11262)):
#0  0x00007f08fea8de6d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f08fecfc6b5 in ?? () from /usr/lib/libQtCore.so.4
#2  0x00007f08fecfc80e in QThread::msleep () from /usr/lib/libQtCore.so.4
#3  0x00007f08ef45fac2 in Phonon::Xine::Backend::~Backend () from /usr/lib/kde4/plugins/phonon_backend/phonon_xine.so
#4  0x00007f08fa7600f0 in Phonon::FactoryPrivate::~FactoryPrivate () from /usr/lib/libphonon.so.4
#5  0x00007f08fd3bf992 in exit () from /lib/libc.so.6
#6  0x00007f08fe07fb68 in ?? () from /usr/lib/libQtGui.so.4
#7  0x00007f090039d688 in KApplication::xioErrhandler () from /usr/lib/libkdeui.so.5
#8  0x00007f08fba0e53e in _XIOError () from /usr/lib/libX11.so.6
#9  0x00007f08fba1583f in process_responses () from /usr/lib/libX11.so.6
#10 0x00007f08fba15e00 in _XReply () from /usr/lib/libX11.so.6
#11 0x00007f08fba038ff in XQueryPointer () from /usr/lib/libX11.so.6
#12 0x00007f08fe09df2d in QCursor::pos () from /usr/lib/libQtGui.so.4
#13 0x00007f08fe03ae66 in QMouseEvent::QMouseEvent () from /usr/lib/libQtGui.so.4
#14 0x00007f08fa7678ea in Phonon::SeekSliderPrivate::_k_currentSourceChanged () from /usr/lib/libphonon.so.4
#15 0x00007f08fa767ca1 in Phonon::SeekSlider::qt_metacall () from /usr/lib/libphonon.so.4
#16 0x00007f08fedfadb2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#17 0x00007f08fa7506b5 in Phonon::MediaObject::currentSourceChanged () from /usr/lib/libphonon.so.4
#18 0x00007f08fa750990 in Phonon::MediaObjectPrivate::_k_currentSourceChanged () from /usr/lib/libphonon.so.4
#19 0x00007f08fa7522a3 in Phonon::MediaObject::qt_metacall () from /usr/lib/libphonon.so.4
#20 0x00007f08fedfadb2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#21 0x00007f08ef456945 in Phonon::Xine::MediaObject::currentSourceChanged () from /usr/lib/kde4/plugins/phonon_backend/phonon_xine.so
#22 0x00007f08ef45818b in Phonon::Xine::MediaObject::setSourceInternal () from /usr/lib/kde4/plugins/phonon_backend/phonon_xine.so
#23 0x00007f08efdf7c7a in kt::MediaPlayer::play () from /usr/lib/kde4/ktmediaplayerplugin.so
#24 0x00007f08efdefe29 in kt::MediaPlayerPlugin::onDoubleClicked () from /usr/lib/kde4/ktmediaplayerplugin.so
#25 0x00007f08efdeff25 in kt::MediaPlayerPlugin::play () from /usr/lib/kde4/ktmediaplayerplugin.so
#26 0x00007f08efdef058 in kt::MediaPlayerPlugin::qt_metacall () from /usr/lib/kde4/ktmediaplayerplugin.so
#27 0x00007f08fedfadb2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#28 0x00007f08fe01c3f7 in QAction::triggered () from /usr/lib/libQtGui.so.4
#29 0x00007f08fe01d870 in QAction::activate () from /usr/lib/libQtGui.so.4
#30 0x00007f08fe3c7aba in ?? () from /usr/lib/libQtGui.so.4
#31 0x00007f08fe3c7d55 in QAbstractButton::mouseReleaseEvent () from /usr/lib/libQtGui.so.4
#32 0x00007f08fe4999ea in QToolButton::mouseReleaseEvent () from /usr/lib/libQtGui.so.4
#33 0x00007f08fe07365f in QWidget::event () from /usr/lib/libQtGui.so.4
#34 0x00007f08fe02240d in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#35 0x00007f08fe02adea in QApplication::notify () from /usr/lib/libQtGui.so.4
#36 0x00007f090039dcc6 in KApplication::notify () from /usr/lib/libkdeui.so.5
#37 0x00007f08fede539c in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#38 0x00007f08fe02a038 in QApplicationPrivate::sendMouseEvent () from /usr/lib/libQtGui.so.4
#39 0x00007f08fe093f19 in ?? () from /usr/lib/libQtGui.so.4
#40 0x00007f08fe092c5d in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#41 0x00007f08fe0ba354 in ?? () from /usr/lib/libQtGui.so.4
#42 0x00007f08f9abc01a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#43 0x00007f08f9abf6e0 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#44 0x00007f08f9abf87c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#45 0x00007f08fee0ea0f in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#46 0x00007f08fe0b9aff in ?? () from /usr/lib/libQtGui.so.4
#47 0x00007f08fede3c42 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#48 0x00007f08fede400d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#49 0x00007f08fede62d4 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#50 0x0000000000423e23 in _start ()
Comment 1 Dario Andres 2009-05-17 22:35:14 UTC
Looks like a Phonon issue:

Thread 10 (Thread 0x7f08ea140950 (LWP 11268)):
[KCrash Handler]
#5  0x0000000001ac78e0 in ?? ()
#6  0x00007f08ef1eb98e in close_internal () from /usr/lib/libxine.so.1
#7  0x00007f08ef1ebc5b in xine_open () from /usr/lib/libxine.so.1
#8  0x00007f08ef44cabd in Phonon::Xine::XineStream::xineOpen () from
/usr/lib/kde4/plugins/phonon_backend/phonon_xine.so
#9  0x00007f08ef44e657 in Phonon::Xine::XineStream::event () from
/usr/lib/kde4/plugins/phonon_backend/phonon_xine.so

Reassigning.
Comment 2 Dario Andres 2009-09-02 04:01:09 UTC
*** Bug 205751 has been marked as a duplicate of this bug. ***
Comment 3 Joris Guisson 2009-10-31 10:51:47 UTC
*** Bug 208593 has been marked as a duplicate of this bug. ***
Comment 4 Jonathan Thomas 2009-12-16 17:31:34 UTC
If this crash is still an issue for you, could you please get a crash from ktorrent using gdb as described at http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_with_GDB please? Thank in advance.
Comment 5 Dario Andres 2009-12-27 22:18:22 UTC
From bug 220290:
---
Version of the application: 3.2.4
KDE Version: 4.3.2 (KDE 4.3.2)

Thread 9 (Thread 0xb5473b70 (LWP 8894)):
[KCrash Handler]
#6  0x01494c77 in close_internal (stream=0xab66cf90) at xine.c:451
#7  0x01494ce6 in xine_close (stream=0xab66cf90) at xine.c:500
#8  0x05c1bbc4 in Phonon::Xine::XineStream::event (this=0x9e31ce0,
ev=0xa2d3668) at ../../xine/xinestream.cpp:1238
...
Thread 1 (Thread 0xb772d700 (LWP 8886)):
...
#5  0x011542e9 in _XSend () from /usr/lib/libX11.so.6
#6  0x01154480 in _XReply () from /usr/lib/libX11.so.6
#7  0x01141e8d in XQueryPointer () from /usr/lib/libX11.so.6
#8  0x041d5900 in QCursor::pos () at kernel/qcursor_x11.cpp:156
#9  0x0416df44 in QMouseEvent (this=0xbfb3e638,
type=QEvent::MouseButtonRelease, position=..., button=Qt::LeftButton,
buttons=..., modifiers=...) at kernel/qevent.cpp:154
#10 0x06e394ef in Phonon::SeekSliderPrivate::_k_currentSourceChanged
(this=0xb5701c10) at ../3rdparty/phonon/phonon/seekslider.cpp:148
#11 0x06e3991e in Phonon::SeekSlider::qt_metacall (this=0xb5700ff8,
_c=QMetaObject::InvokeMetaMethod, _id=9, _a=0xbfb3e788) at
.moc/release-shared/moc_seekslider.cpp:101
Comment 6 Dario Andres 2009-12-27 22:18:24 UTC
*** Bug 220290 has been marked as a duplicate of this bug. ***
Comment 7 Myriam Schweingruber 2010-02-09 23:27:36 UTC
Dario, isn't this the same as bug 196320? At least the backtraces seem to indicate so, we should merge it with bug 196320 which already has a lot of dupes
Comment 8 Dario Andres 2010-02-10 12:29:40 UTC
Backtraces seem a bit different, this one mentiones xine_open() and it has some other functions prior to the XIOError in thread1 (related to the PhononSeekSlider); while the other report doesn't contain this, and it is about xine_close()... I don't know, may be they all have the same root cause.
Comment 9 Myriam Schweingruber 2010-04-04 18:24:50 UTC
Martin, any ideas?
Comment 10 Myriam Schweingruber 2010-05-03 10:15:09 UTC

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