Bug 214213

Summary: gwenview, crash, video file
Product: [Applications] gwenview Reporter: Kiril Vladimiroff <v.kiril>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andresbajotierra
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Kiril Vladimiroff 2009-11-12 01:53:42 UTC
Application that crashed: gwenview
Version of the application: 2.3.3
KDE Version: 4.3.3 (KDE 4.3.3)
Qt Version: 4.5.3
Operating System: Linux 2.6.31-ARCH x86_64

What I was doing when the application crashed:
This crash of gwenview is always reproducable when I'm viewing a photo after photo(with the next button) and everything is fine. But when go to a video file and the click the Next button... gwenview crashes

 -- Backtrace:
Application: Gwenview (gwenview), signal: Floating point exception
[Current thread is 1 (Thread 0x7fde0345e760 (LWP 23723))]

Thread 12 (Thread 0x7fddf76f5710 (LWP 23724)):
#0  0x00007fddfec5b07c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fde0246cc6b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fde02dc169c in Gwenview::SemanticInfoThread::run() () from /usr/lib/libgwenviewlib.so.4
#3  0x00007fde0246bba5 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007fddfec5681a in start_thread () from /lib/libpthread.so.0
#5  0x00007fde003a08cd in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 11 (Thread 0x7fddee5fc710 (LWP 23726)):
#0  0x00007fddfec5b3e9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fde0246cbd2 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fde02462d32 in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007fde0246bba5 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007fddfec5681a in start_thread () from /lib/libpthread.so.0
#5  0x00007fde003a08cd in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7fddf6886710 (LWP 23728)):
#0  0x00007fddfec5b3e9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fddedbb6581 in metronom_sync_loop () from /usr/lib/libxine.so.1
#2  0x00007fddfec5681a in start_thread () from /lib/libpthread.so.0
#3  0x00007fde003a08cd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7fdde80cb710 (LWP 23729)):
#0  0x00007fddfec5dae4 in __lll_lock_wait () from /lib/libpthread.so.0
#1  0x00007fddfec58fe5 in _L_lock_512 () from /lib/libpthread.so.0
#2  0x00007fddfec58e08 in pthread_mutex_lock () from /lib/libpthread.so.0
#3  0x00007fdde86db2e8 in xv_clean_output_area () from /usr/lib/xine/plugins/1.26/xineplug_vo_out_xcbxv.so
#4  0x00007fdde86dd5e5 in xv_redraw_needed () from /usr/lib/xine/plugins/1.26/xineplug_vo_out_xcbxv.so
#5  0x00007fddedbc45d2 in video_out_loop () from /usr/lib/libxine.so.1
#6  0x00007fddfec5681a in start_thread () from /lib/libpthread.so.0
#7  0x00007fde003a08cd in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7fdde78ca710 (LWP 23730)):
#0  0x00007fde003980d3 in poll () from /lib/libc.so.6
#1  0x00007fddfcfd799c in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#2  0x00007fddfcfd7ce0 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007fde02579176 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007fde0254f532 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007fde0254f904 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007fde02468e4b in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007fddee77a394 in Phonon::Xine::XineThread::run() () from /usr/lib/qt/plugins/phonon_backend/phonon_xine.so
#8  0x00007fde0246bba5 in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007fddfec5681a in start_thread () from /lib/libpthread.so.0
#10 0x00007fde003a08cd in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7fdde6886710 (LWP 23733)):
#0  0x00007fde003980d3 in poll () from /lib/libc.so.6
#1  0x00007fdde688b839 in ao_alsa_handle_event_thread () from /usr/lib/xine/plugins/1.26/xineplug_ao_out_alsa.so
#2  0x00007fddfec5681a in start_thread () from /lib/libpthread.so.0
#3  0x00007fde003a08cd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7fdde6085710 (LWP 23734)):
#0  0x00007fddfec5b07c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fddedbc75c3 in ao_loop () from /usr/lib/libxine.so.1
#2  0x00007fddfec5681a in start_thread () from /lib/libpthread.so.0
#3  0x00007fde003a08cd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fdde5884710 (LWP 23735)):
#0  0x00007fde003980d3 in poll () from /lib/libc.so.6
#1  0x00007fddfa1f189a in _xcb_conn_wait () from /usr/lib/libxcb.so.1
#2  0x00007fddfa1f37ac in xcb_wait_for_reply () from /usr/lib/libxcb.so.1
#3  0x00007fdde86dba84 in create_ximage () from /usr/lib/xine/plugins/1.26/xineplug_vo_out_xcbxv.so
#4  0x00007fdde86dbec7 in xv_update_frame_format () from /usr/lib/xine/plugins/1.26/xineplug_vo_out_xcbxv.so
#5  0x00007fddedbc1f35 in vo_get_frame () from /usr/lib/libxine.so.1
#6  0x00007fddeb686a8b in get_buffer () from /usr/lib/xine/plugins/1.26/xineplug_decode_ff.so
#7  0x00007fddeae63866 in ?? () from /usr/lib/libavcodec.so.52
#8  0x00007fddead5b3eb in avcodec_decode_video () from /usr/lib/libavcodec.so.52
#9  0x00007fddeb6861a2 in ff_decode_data () from /usr/lib/xine/plugins/1.26/xineplug_decode_ff.so
#10 0x00007fddedbc006f in video_decoder_loop () from /usr/lib/libxine.so.1
#11 0x00007fddfec5681a in start_thread () from /lib/libpthread.so.0
#12 0x00007fde003a08cd in clone () from /lib/libc.so.6
#13 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fdde5083710 (LWP 23736)):
[KCrash Handler]
#5  0x00007fddedbc4995 in ao_update_resample_factor () from /usr/lib/libxine.so.1
#6  0x00007fddedbc6448 in ao_open () from /usr/lib/libxine.so.1
#7  0x00007fdddda32e2a in dvaudio_decode_data () from /usr/lib/xine/plugins/1.26/xineplug_decode_dvaudio.so
#8  0x00007fddedbc14d4 in audio_decoder_loop () from /usr/lib/libxine.so.1
#9  0x00007fddfec5681a in start_thread () from /lib/libpthread.so.0
#10 0x00007fde003a08cd in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fdde4882710 (LWP 23737)):
#0  0x00007fddfec5b07c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fddedbca22b in listener_loop () from /usr/lib/libxine.so.1
#2  0x00007fddfec5681a in start_thread () from /lib/libpthread.so.0
#3  0x00007fde003a08cd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fdddda31710 (LWP 23738)):
#0  0x00007fddfec5b07c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fddedbb9e93 in buffer_pool_alloc () from /usr/lib/libxine.so.1
#2  0x00007fddddc39e8f in demux_raw_dv_send_chunk () from /usr/lib/xine/plugins/1.26/xineplug_dmx_rawdv.so
#3  0x00007fddedbcea21 in demux_loop () from /usr/lib/libxine.so.1
#4  0x00007fddfec5681a in start_thread () from /lib/libpthread.so.0
#5  0x00007fde003a08cd in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fde0345e760 (LWP 23723)):
#0  0x00007fde003980d3 in poll () from /lib/libc.so.6
#1  0x00007fddfa1f189a in _xcb_conn_wait () from /usr/lib/libxcb.so.1
#2  0x00007fddfa1f37ac in xcb_wait_for_reply () from /usr/lib/libxcb.so.1
#3  0x00007fddfdd30f33 in _XReply () from /usr/lib/libX11.so.6
#4  0x00007fddfdd1e780 in XQueryPointer () from /usr/lib/libX11.so.6
#5  0x00007fde00b3e6dd in QCursor::pos() () from /usr/lib/libQtGui.so.4
#6  0x00007fde00acdea1 in QApplicationPrivate::sendSyntheticEnterLeave(QWidget*) () from /usr/lib/libQtGui.so.4
#7  0x00007fde00b1bcda in QWidget::setVisible(bool) () from /usr/lib/libQtGui.so.4
#8  0x00007fde00b1b1df in QWidget::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libQtGui.so.4
#9  0x00007fde010c8a15 in QFrame::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libQtGui.so.4
#10 0x00007fde02560059 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#11 0x00007fde00b1526f in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#12 0x00007fde00e6ed26 in QFrame::event(QEvent*) () from /usr/lib/libQtGui.so.4
#13 0x00007fde00ac707c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#14 0x00007fde00ace34e in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#15 0x00007fde01b868f6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#16 0x00007fde02550bfc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#17 0x00007fde0255180a in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#18 0x00007fde02579583 in ?? () from /usr/lib/libQtCore.so.4
#19 0x00007fddfcfd41fe in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#20 0x00007fddfcfd7bb8 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#21 0x00007fddfcfd7ce0 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#22 0x00007fde02579123 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#23 0x00007fde00b5a14e in ?? () from /usr/lib/libQtGui.so.4
#24 0x00007fde0254f532 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#25 0x00007fde0254f904 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#26 0x00007fde02551ab9 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#27 0x00000000004405e0 in _start ()

Reported using DrKonqi
Comment 1 Dario Andres 2009-11-12 13:44:12 UTC
According to the backtrace, the crash is caused by the code that is decoding the audio of the video (in libxine), which is not developed by KDE:
---

[KCrash Handler]
#5  0x00007fddedbc4995 in ao_update_resample_factor () from
/usr/lib/libxine.so.1
#6  0x00007fddedbc6448 in ao_open () from /usr/lib/libxine.so.1
#7  0x00007fdddda32e2a in dvaudio_decode_data () from
/usr/lib/xine/plugins/1.26/xineplug_decode_dvaudio.so
#8  0x00007fddedbc14d4 in audio_decoder_loop () from /usr/lib/libxine.so.1

- Could you identify which file is Gwenview trying to display when crashing ? If it is only one file (or one kind of files), you might try to play that files in another applications  (like DragonPlayer, gxine or xine-ui) to see if they also crash.

Thanks
Comment 2 Kiril Vladimiroff 2009-11-12 14:14:10 UTC
(In reply to comment #1)
> According to the backtrace, the crash is caused by the code that is decoding
> the audio of the video (in libxine), which is not developed by KDE:
> ---
> 
> [KCrash Handler]
> #5  0x00007fddedbc4995 in ao_update_resample_factor () from
> /usr/lib/libxine.so.1
> #6  0x00007fddedbc6448 in ao_open () from /usr/lib/libxine.so.1
> #7  0x00007fdddda32e2a in dvaudio_decode_data () from
> /usr/lib/xine/plugins/1.26/xineplug_decode_dvaudio.so
> #8  0x00007fddedbc14d4 in audio_decoder_loop () from /usr/lib/libxine.so.1
> 
> - Could you identify which file is Gwenview trying to display when crashing ?
> If it is only one file (or one kind of files), you might try to play that files
> in another applications  (like DragonPlayer, gxine or xine-ui) to see if they
> also crash.
> 
> Thanks

It is not only one file. This happens with each video file. The video is playing fine as well. But when I click at the "Next" button(while I'm at the video) in gwenview it crashes instead of show me the next photo/video in the folder.

It is good for me if gwenview does not opens the video files at all(like some temp solution), but I don't know how to set it.
Comment 3 Dario Andres 2009-11-12 14:17:42 UTC
This could be related to bug 196512, but I wonder why the traces are different. 
- Have you tried to play those movie files in the video players I suggested ?
Thanks
Comment 4 Kiril Vladimiroff 2009-12-08 15:22:42 UTC
(In reply to comment #3)
> This could be related to bug 196512, but I wonder why the traces are different. 
> - Have you tried to play those movie files in the video players I suggested ?
> Thanks
You don't understand me. The movies are playing fine as well in gwenview and in any other video player. It just crashes when I hit the "Next" button to see next video/image in the folder.
Comment 5 Dario Andres 2009-12-09 00:33:15 UTC
Thanks

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