By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 2186

Summary: Kaffeine crashes when attempting to play MP4 video
Product: TDE Reporter: Kristopher <gamrat.kristopher>
Component: tdemultimediaAssignee: Timothy Pearson <kb9vqf>
Status: NEW ---    
Severity: normal CC: bugwatch, gamrat.kristopher, kb9vqf, michele.calgaro
Priority: P5    
Version: R14.0.x [Trinity]   
Hardware: Other   
OS: Linux   
Compiler Version: TDE Version String:
Application Version: Application Name:
Attachments: Kaffeine backtrace

Description Kristopher 2014-11-10 19:53:34 CST
When attempting to play MP4 videos in Kaffeine, Kaffeine crashes. Despite the -dbg package being installed, neither gdb nor TDE Crash Handler can produce a backtrace.

This *might* be related to bug #1679 , however that report does not mention MP4, and my crash occurs *only* for MP4 -- older formats (including regular MPEG videos and MP3 audio) do *not* produce the crash.
Comment 1 Kristopher 2014-11-10 19:56:58 CST
(In reply to Kristopher from comment #0)
> When attempting to play MP4 videos in Kaffeine, Kaffeine crashes. Despite
> the -dbg package being installed, neither gdb nor TDE Crash Handler can
> produce a backtrace.
> 
> This *might* be related to bug #1679 , however that report does not mention
> MP4, and my crash occurs *only* for MP4 -- older formats (including regular
> MPEG videos and MP3 audio) do *not* produce the crash.

The bug may be partially caused by a bug in Xine: attempting to use Xine in KMplayer to mplay MP4 videos seems impossible, however using mplayer via KMplayer seems to work just fine.

However, KMplayer seems a bit more graceful: while there is not error message, KMplayer does *not* crash but instead continues to run and simply stops trying to play the video.
Comment 2 Michele Calgaro 2014-11-10 21:54:06 CST
>Despite the -dbg package being installed, neither gdb nor TDE Crash Handler can 
>produce a backtrace.
Try running "kaffeine --nofork" from command line. Then gdb should be able to attached the crashed process.

We had problems with Kaboodle recently (see bug 1905 and bug 2010), also related to the xine version used. It may be worth to read through the comments in there.
Comment 3 Kristopher 2014-11-11 18:24:34 CST
Created attachment 2347 [details]
Kaffeine backtrace
Comment 4 Timothy Pearson 2014-11-11 18:46:18 CST
(In reply to Kristopher from comment #3)
> Created attachment 2347 [details]
> Kaffeine backtrace

SIGFPE.  That's strange.  Do these videos play correctly in the Xine UI?
Comment 5 Kristopher 2014-11-11 18:59:02 CST
(In reply to Timothy Pearson from comment #4)
> (In reply to Kristopher from comment #3)
> > Created attachment 2347 [details]
> > Kaffeine backtrace
> 
> SIGFPE.  That's strange.  Do these videos play correctly in the Xine UI?

No, asking xine-ui to play it does not produce any action from xine-ui, and having Konqueror attempt to *force* xine-ui to play it causes xine-ui to open then immediately close (though as far as I can see, it doesn't produce a crash from xine-ui, just a normal exit).
Comment 6 Kristopher 2014-11-11 19:00:47 CST
The file command verifies the file type as MP4:

ISO Media, MPEG v4 system, version 1
Comment 7 Timothy Pearson 2014-11-11 19:04:47 CST
(In reply to Kristopher from comment #5)
> (In reply to Timothy Pearson from comment #4)
> > (In reply to Kristopher from comment #3)
> > > Created attachment 2347 [details]
> > > Kaffeine backtrace
> > 
> > SIGFPE.  That's strange.  Do these videos play correctly in the Xine UI?
> 
> No, asking xine-ui to play it does not produce any action from xine-ui, and
> having Konqueror attempt to *force* xine-ui to play it causes xine-ui to
> open then immediately close (though as far as I can see, it doesn't produce
> a crash from xine-ui, just a normal exit).

Xine probably traps the SIGFPE and exits; perhaps we should simply do the same?

In any case either the file is corrupt or there is a software/hardware problem on your computer (Xine bugs fall into the latter category).

Tim
Comment 8 Kristopher 2014-11-11 19:21:37 CST
(In reply to Timothy Pearson from comment #7)
> (In reply to Kristopher from comment #5)
> > (In reply to Timothy Pearson from comment #4)
> > > (In reply to Kristopher from comment #3)
> > > > Created attachment 2347 [details]
> > > > Kaffeine backtrace
> > > 
> > > SIGFPE.  That's strange.  Do these videos play correctly in the Xine UI?
> > 
> > No, asking xine-ui to play it does not produce any action from xine-ui, and
> > having Konqueror attempt to *force* xine-ui to play it causes xine-ui to
> > open then immediately close (though as far as I can see, it doesn't produce
> > a crash from xine-ui, just a normal exit).
> 
> Xine probably traps the SIGFPE and exits; perhaps we should simply do the
> same?
> 
> In any case either the file is corrupt or there is a software/hardware
> problem on your computer (Xine bugs fall into the latter category).
> 
> Tim

I think we can reasonably assume it's software: the file command *does* correctly identify the file type, and it plays correctly in mplayer without crashing KMplayer (which I tested with Output set to OpenGL and OpenGL MT), TDE, or Xorg. This suggests that the file is not corrupt (else it would have issues playing), and that the hardware is not at fault (else using features like OpenGL for any length of time would likely overload it or cause it to crash the Xorg driver).
Comment 9 Timothy Pearson 2014-11-11 22:03:30 CST
I'll take your word for it then; we'll just assume it's a Xine library bug.

If someone gets around to this before I do a SIGFPE trap needs to be added to Kaffeine; the trap should close Kaffeine as gracefully as possible.  Recovering from the error would be even better but seeing as xine-ui terminates immediately on playback of this file I don't think recovery from the SIGFPE exception is allowed (http://fixunix.com/unix/335322-catching-sigfpe-signal.html#post860484 seems to confirm this).

Tim