Bug 263514

Summary: Closing gmenview after watching an .mp4 file crash [@ Phonon::Xine::VideoWidget::xineCallback]
Product: [Frameworks and Libraries] Phonon Reporter: Bruno Friedmann <bruno>
Component: Xine backendAssignee: Harald Sitter <sitter>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: ManuelStol, martin.sandsmark, myriam
Priority: NOR    
Version: 4.4.3 (KDE 4.6.x)   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
New crash information added by DrKonqi

Description Bruno Friedmann 2011-01-18 08:24:40 UTC
Application: gwenview (2.5.0)
KDE Platform Version: 4.5.95 (4.6 RC2)
Qt Version: 4.7.1
Operating System: Linux 2.6.37-desktop x86_64
Distribution: "openSUSE 11.4 Milestone 5 of 6 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:
I was browsing some file ( mainly picture in a folder ), and watch one .mp4
http://dl.dropbox.com/u/13333867/osc10/20102010022.mp4

then I close gmenview, and get this crash.

The crash can be reproduced some of the time.

-- Backtrace:
Application: Gwenview (gwenview), signal: Segmentation fault
pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
	in ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
[Current thread is 1 (Thread 0x7fe84ddbb760 (LWP 14669))]

Thread 7 (Thread 0x7fe83b07d700 (LWP 14674)):
#0  0x00007fe84962e0a4 in __pthread_mutex_lock (mutex=0x8d1c58) at pthread_mutex_lock.c:61
#1  0x00007fe84731f6c8 in g_main_context_iteration (context=0x8d1c50, may_block=1) at gmain.c:3153
#2  0x00007fe84ceee9c6 in QEventDispatcherGlib::processEvents (this=0x851d50, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#3  0x00007fe84cec3092 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#4  0x00007fe84cec32a5 in QEventLoop::exec (this=0x7fe83b07cde0, flags=...) at kernel/qeventloop.cpp:201
#5  0x00007fe84cdd8214 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#6  0x00007fe84cea49a8 in QInotifyFileSystemWatcherEngine::run (this=0x8b0590) at io/qfilesystemwatcher_inotify.cpp:248
#7  0x00007fe84cddaa8e in QThreadPrivate::start (arg=0x8b0590) at thread/qthread_unix.cpp:285
#8  0x00007fe84962ba3f in start_thread (arg=0x7fe83b07d700) at pthread_create.c:297
#9  0x00007fe84ab603dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7fe82d52e700 (LWP 15130)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007fe82a720981 in metronom_sync_loop (this=0x10f5e00) at metronom.c:870
#2  0x00007fe84962ba3f in start_thread (arg=0x7fe82d52e700) at pthread_create.c:297
#3  0x00007fe84ab603dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fe82cd2d700 (LWP 15131)):
[KCrash Handler]
#6  windowType (this=0x4545454545454545) at ../../src/gui/kernel/qwidget.h:924
#7  isWindow (this=0x4545454545454545) at ../../src/gui/kernel/qwidget.h:932
#8  QWidget::x (this=0x4545454545454545) at kernel/qwidget.cpp:3409
#9  0x00007fe82a9a4ec9 in Phonon::Xine::VideoWidget::xineCallback (this=0x4545454545454545, x=@0x7fe82cd2cccc, y=@0x7fe82cd2ccc8, width=@0x7fe82cd2ccd4, height=@0x7fe82cd2ccd0, ratio=@0x7fe82cd2ccc0, videoWidth=640, videoHeight=352, videoRatio=<value optimized out>, mayResize=true) at /usr/src/debug/phonon-4.4.3/xine/videowidget.cpp:140
#10 0x00007fe82a9a4f76 in Phonon::Xine::frame_output_cb (user_data=<value optimized out>, video_width=<value optimized out>, video_height=<value optimized out>, video_pixel_aspect=<value optimized out>, dest_x=0x7fe82cd2ccdc, dest_y=0x7fe82cd2ccd8, dest_width=<value optimized out>, dest_height=0x7fe82cd2ccd0, dest_pixel_aspect=0x7fe82cd2ccc0, win_x=0x7fe82cd2cccc, win_y=0x7fe82cd2ccc8) at /usr/src/debug/phonon-4.4.3/xine/videowidget.cpp:125
#11 0x00007fe82a73bb43 in _x_vo_scale_redraw_needed (this=0x10fe590) at vo_scale.c:256
#12 0x00007fe820ba452e in xv_redraw_needed (this_gen=0x10fe1e0, frame_gen=<value optimized out>) at video_out_xcbxv.c:676
#13 xv_display_frame (this_gen=0x10fe1e0, frame_gen=<value optimized out>) at video_out_xcbxv.c:733
#14 0x00007fe82a72e253 in overlay_and_display_frame (this=0x10f6a50, img=0xd5a560, vpts=<value optimized out>) at video_out.c:1039
#15 0x00007fe82a72e72b in video_out_loop (this_gen=0x10f6a50) at video_out.c:1201
#16 0x00007fe84962ba3f in start_thread (arg=0x7fe82cd2d700) at pthread_create.c:297
#17 0x00007fe84ab603dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#18 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fe82016e700 (LWP 15132)):
#0  0x00007fe84962ccb5 in pthread_join (threadid=140635161155328, thread_return=0x7fe82016d558) at pthread_join.c:89
#1  0x00007fe82a72d588 in vo_exit (this_gen=0x10f6a50) at video_out.c:1648
#2  0x00007fe82a9a4a04 in Phonon::Xine::VideoWidgetXT::~VideoWidgetXT (this=0xa235f0, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /usr/src/debug/phonon-4.4.3/xine/videowidget.cpp:241
#3  0x00007fe82a9a4a59 in Phonon::Xine::VideoWidgetXT::~VideoWidgetXT (this=0xa235f0, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /usr/src/debug/phonon-4.4.3/xine/videowidget.cpp:248
#4  0x00007fe82a97d37f in ~QExplicitlySharedDataPointer (this=<value optimized out>, data=0x9d6da0) at /usr/include/QtCore/qshareddata.h:161
#5  node_destruct (this=<value optimized out>, data=0x9d6da0) at /usr/include/QtCore/qlist.h:418
#6  QList<QExplicitlySharedDataPointer<Phonon::Xine::SharedData> >::free (this=<value optimized out>, data=0x9d6da0) at /usr/include/QtCore/qlist.h:742
#7  0x00007fe82a98bef3 in ~KeepReference (this=0xa6b110, __in_chrg=<value optimized out>) at /usr/src/debug/phonon-4.4.3/xine/keepreference.h:45
#8  Phonon::Xine::KeepReference<10000>::~KeepReference (this=0xa6b110, __in_chrg=<value optimized out>) at /usr/src/debug/phonon-4.4.3/xine/keepreference.h:45
#9  0x00007fe82a97e89d in Phonon::Xine::XineThread::event (this=<value optimized out>, e=<value optimized out>) at /usr/src/debug/phonon-4.4.3/xine/xinethread.cpp:101
#10 0x00007fe84b2ccd44 in QApplicationPrivate::notify_helper (this=0x69f9a0, receiver=0x1071a70, e=0x9e1a00) at kernel/qapplication.cpp:4445
#11 0x00007fe84b2d524a in QApplication::notify (this=<value optimized out>, receiver=0x1071a70, e=0x9e1a00) at kernel/qapplication.cpp:4324
#12 0x00007fe84cec3c3c in QCoreApplication::notifyInternal (this=0x7fff9f1175a0, receiver=0x1071a70, event=0x9e1a00) at kernel/qcoreapplication.cpp:732
#13 0x00007fe84cec7435 in sendEvent (receiver=0x0, event_type=0, data=0xfc7760) at kernel/qcoreapplication.h:215
#14 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xfc7760) at kernel/qcoreapplication.cpp:1373
#15 0x00007fe84ceee7d3 in sendPostedEvents (s=<value optimized out>) at kernel/qcoreapplication.h:220
#16 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:277
#17 0x00007fe84731ec63 in g_main_dispatch (context=0xd589a0) at gmain.c:2440
#18 g_main_context_dispatch (context=0xd589a0) at gmain.c:3013
#19 0x00007fe84731f440 in g_main_context_iterate (context=0xd589a0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:3091
#20 0x00007fe84731f6e0 in g_main_context_iteration (context=0xd589a0, may_block=1) at gmain.c:3154
#21 0x00007fe84ceee96f in QEventDispatcherGlib::processEvents (this=0xd558c0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#22 0x00007fe84cec3092 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#23 0x00007fe84cec32a5 in QEventLoop::exec (this=0x7fe82016ddd0, flags=...) at kernel/qeventloop.cpp:201
#24 0x00007fe84cdd8214 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#25 0x00007fe82a97e694 in Phonon::Xine::XineThread::run (this=0x1071a70) at /usr/src/debug/phonon-4.4.3/xine/xinethread.cpp:143
#26 0x00007fe84cddaa8e in QThreadPrivate::start (arg=0x1071a70) at thread/qthread_unix.cpp:285
#27 0x00007fe84962ba3f in start_thread (arg=0x7fe82016e700) at pthread_create.c:297
#28 0x00007fe84ab603dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#29 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fe81f767700 (LWP 15133)):
#0  0x00007fe84ab57263 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fe84427748f in poll_func (ufds=0x152a360, nfds=2, timeout=-1, userdata=0x1525e90) at pulse/thread-mainloop.c:75
#2  0x00007fe844269256 in pa_mainloop_poll (m=0x1525d80) at pulse/mainloop.c:879
#3  0x00007fe844269889 in pa_mainloop_iterate (m=0x1525d80, block=<value optimized out>, retval=0x0) at pulse/mainloop.c:961
#4  0x00007fe844269940 in pa_mainloop_run (m=0x1525d80, retval=0x0) at pulse/mainloop.c:979
#5  0x00007fe84427742b in thread (userdata=0x1525d40) at pulse/thread-mainloop.c:94
#6  0x00007fe842b95cf8 in internal_thread_func (userdata=0x1525f50) at pulsecore/thread-posix.c:83
#7  0x00007fe84962ba3f in start_thread (arg=0x7fe81f767700) at pthread_create.c:297
#8  0x00007fe84ab603dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fe81af65700 (LWP 15134)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fe82a732bbb in fifo_peek_int (this_gen=0x152b490) at audio_out.c:348
#2  fifo_peek (this_gen=0x152b490) at audio_out.c:388
#3  ao_loop (this_gen=0x152b490) at audio_out.c:1015
#4  0x00007fe84962ba3f in start_thread (arg=0x7fe81af65700) at pthread_create.c:297
#5  0x00007fe84ab603dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fe84ddbb760 (LWP 14669)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007fe84cdda845 in thread_sleep (ti=0x7fff9f117390) at thread/qthread_unix.cpp:435
#2  0x00007fe84cdda9b0 in QThread::msleep (msecs=<value optimized out>) at thread/qthread_unix.cpp:461
#3  0x00007fe82a994e22 in Phonon::Xine::Backend::~Backend (this=0xd58df0, __in_chrg=<value optimized out>) at /usr/src/debug/phonon-4.4.3/xine/backend.cpp:111
#4  0x00007fe82a994f39 in Phonon::Xine::Backend::~Backend (this=0xd58df0, __in_chrg=<value optimized out>) at /usr/src/debug/phonon-4.4.3/xine/backend.cpp:123
#5  0x00007fe84a12d0d7 in Phonon::FactoryPrivate::~FactoryPrivate (this=0xfbcbf0, __in_chrg=<value optimized out>) at /usr/src/debug/phonon-4.4.3/phonon/factory.cpp:221
#6  0x00007fe84a12d219 in Phonon::FactoryPrivate::~FactoryPrivate (this=0xfbcbf0, __in_chrg=<value optimized out>) at /usr/src/debug/phonon-4.4.3/phonon/factory.cpp:225
#7  0x00007fe84cec678e in qt_call_post_routines () at kernel/qcoreapplication.cpp:203
#8  0x00007fe84b2d4378 in QApplication::~QApplication (this=0x7fff9f1175a0, __in_chrg=<value optimized out>) at kernel/qapplication.cpp:1084
#9  0x00000000004400b4 in _start ()

Reported using DrKonqi
Comment 1 Manuel Stol 2011-11-14 06:21:31 UTC
Created attachment 65641 [details]
New crash information added by DrKonqi

gwenview (2.7.2) on KDE Platform 4.7.3 (4.7.3) using Qt 4.7.4

- What I was doing when the application crashed:
Closed Gwenview by clicking the window's close button ([X]) in the upper right corner.

-- Backtrace (Reduced):
#6  isWindow (this=<optimized out>) at .moc/release-shared/moc_qwidget.cpp:361
#7  QWidget::x (this=0x4545454545454545) at kernel/qwidget.cpp:3504
#8  0x00007f2baf220519 in Phonon::Xine::VideoWidget::xineCallback (this=0x4545454545454545, x=@0x7f2ba8aa2ce8, y=@0x7f2ba8aa2cec, width=@0x7f2ba8aa2ce0, height=@0x7f2ba8aa2ce4, ratio=@0x7f2ba8aa2cd0, videoWidth=640, videoHeight=480, videoRatio=<optimized out>, mayResize=true) at /usr/src/debug/phonon-backend-xine-4.4.4/xine/videowidget.cpp:140
#9  0x00007f2baf2205c6 in Phonon::Xine::frame_output_cb (user_data=<optimized out>, video_width=<optimized out>, video_height=<optimized out>, video_pixel_aspect=<optimized out>, dest_x=0x7f2ba8aa2cd8, dest_y=0x7f2ba8aa2cdc, dest_width=<optimized out>, dest_height=0x7f2ba8aa2ce4, dest_pixel_aspect=0x7f2ba8aa2cd0, win_x=0x7f2ba8aa2ce8, win_y=0x7f2ba8aa2cec) at /usr/src/debug/phonon-backend-xine-4.4.4/xine/videowidget.cpp:125
#10 0x00007f2baefb4f22 in _x_vo_scale_redraw_needed (this=0xf2bce0) at vo_scale.c:256
Comment 2 Myriam Schweingruber 2011-11-14 08:40:45 UTC
Please use either the gstreamer or the vlc backend, the xine backend is deprecated and unmaintained: http://lists.kde.org/?l=kde-announce&m=130744384419151
Comment 3 Manuel Stol 2011-11-17 18:29:29 UTC
Created attachment 65789 [details]
New crash information added by DrKonqi

gwenview (2.7.2) on KDE Platform 4.7.3 (4.7.3) using Qt 4.7.4

- What I was doing when the application crashed:
Closed Gwenview by clicking the window's close button ([X]) in the upper-right corner, while the .wmv file was still playing.

-- Backtrace (Reduced):
#6  isWindow (this=<optimized out>) at .moc/release-shared/moc_qwidget.cpp:361
#7  QWidget::x (this=0x4545454545454545) at kernel/qwidget.cpp:3504
#8  0x00007fd2f1263519 in Phonon::Xine::VideoWidget::xineCallback (this=0x4545454545454545, x=@0x7fd2ea2e2cc8, y=@0x7fd2ea2e2ccc, width=@0x7fd2ea2e2cc0, height=@0x7fd2ea2e2cc4, ratio=@0x7fd2ea2e2cb0, videoWidth=1280, videoHeight=720, videoRatio=<optimized out>, mayResize=true) at /usr/src/debug/phonon-backend-xine-4.4.4/xine/videowidget.cpp:140
#9  0x00007fd2f12635c6 in Phonon::Xine::frame_output_cb (user_data=<optimized out>, video_width=<optimized out>, video_height=<optimized out>, video_pixel_aspect=<optimized out>, dest_x=0x7fd2ea2e2cb8, dest_y=0x7fd2ea2e2cbc, dest_width=<optimized out>, dest_height=0x7fd2ea2e2cc4, dest_pixel_aspect=0x7fd2ea2e2cb0, win_x=0x7fd2ea2e2cc8, win_y=0x7fd2ea2e2ccc) at /usr/src/debug/phonon-backend-xine-4.4.4/xine/videowidget.cpp:125
#10 0x00007fd2f0ff83c2 in _x_vo_scale_redraw_needed (this=0xe48650) at vo_scale.c:256