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 559

Summary: Kaffeine crashes while access to xine after startup
Product: TDE Reporter: Slávek Banko <slavek.banko>
Component: non-core programsAssignee: Timothy Pearson <kb9vqf>
Status: RESOLVED FIXED    
Severity: blocker CC: bugwatch, darrella, dzfixes-box1
Priority: P5    
Version: R14.0.0 [Trinity]   
Hardware: All   
OS: Debian Squeeze   
Compiler Version: TDE Version String:
Application Version: Application Name:
Attachments: backtrace after access to xine settings

Description Slávek Banko 2011-10-26 13:18:23 CDT
Kaffeine crashes while access to xine after running Kaffeine, possible to access video.

Steps to crash on settings:
1. Run kaffine
2. Settings / Xine Settings
3. Kaffeine crashes

Steps to crash on show video from DVB card:
1. Run kaffeine
2. Switch to DVB
3. Run selected channel
4. Kaffeine crashes

If you run the audio from any mp3 file before opening the xine settings or running TV program, kaffeine is ok.

Slavek
Comment 1 Slávek Banko 2011-10-26 13:23:25 CDT
Created attachment 110 [details]
backtrace after access to xine settings
Comment 2 Slávek Banko 2011-11-10 07:23:13 CST
We tried, that problem still remains in trinity 3.5.13.
I think that bug #511 is also a problem with xine initialization.
Comment 3 Timothy Pearson 2012-01-21 12:33:45 CST
This may be an old unresolved KDE3.5.10 bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=427911
https://bugzilla.novell.com/show_bug.cgi?id=391304

What graphics hardware and drivers are you using?
Comment 4 Slávek Banko 2012-01-23 11:12:29 CST
I would say that the problem does not depend on the graphics card / driver. I watch him on the MGA and ATI (both with open source drivers).

With 3.5.13 in addition there is a crash when stopping successfully playing video / audio.
Comment 5 Timothy Pearson 2012-01-25 19:22:51 CST
(In reply to comment #4)
> I would say that the problem does not depend on the graphics card / driver. I
> watch him on the MGA and ATI (both with open source drivers).
> 
> With 3.5.13 in addition there is a crash when stopping successfully playing
> video / audio.

I noticed that both crashes occur on Debian Squeeze.  It is possible that the ffmpeg library on Squeeze contains a bug:
https://bugs.kde.org/show_bug.cgi?id=279829

That bug report is valid with the latest Kaffeine, and the crash is very similar.  I cannot reproduce the bug on Ubuntu, and I know that Ubuntu builds its ffmpeg packages differently than Debian does.

Does the KDE4 version of kaffine crash on your system?
Comment 6 Slávek Banko 2012-02-06 15:22:59 CST
(Odpověď na komentář #5)
> I noticed that both crashes occur on Debian Squeeze.  It is possible that the
> ffmpeg library on Squeeze contains a bug:
> https://bugs.kde.org/show_bug.cgi?id=279829
> 
> That bug report is valid with the latest Kaffeine, and the crash is very
> similar.  I cannot reproduce the bug on Ubuntu, and I know that Ubuntu builds
> its ffmpeg packages differently than Debian does.
> 
> Does the KDE4 version of kaffine crash on your system?

Even though very reluctantly, I installed the KDE4 kaffeine + necessary packages. I tried both audio and some video, and all without hesitation.
Comment 7 David Hare 2012-02-09 07:25:59 CST

> If you run the audio from any mp3 file before opening the xine settings or
> running TV program, kaffeine is ok.

Are you saying this is a possible workaround to use dvb?

I ask because I administer a machine used as a pvr, which cannot be upgraded from Lenny till this is sorted

I reported bug #511 but do not access that machine very often, so have limited info, except dvb crashes (tde) kaffeine immediately and one probably useless backtrace
Comment 8 Slávek Banko 2012-02-15 13:59:22 CST
(Odpověď na komentář #7)
> 
> Are you saying this is a possible workaround to use dvb?
> 

It's a workaround in part - only for 3.5.12. In 3.5.13, you could not stop playing because they reliably Stop leads to crash kaffeine.
Comment 9 Slávek Banko 2012-02-23 13:43:43 CST
(Odpověď na komentář #8)
> (Odpověď na komentář #7)
> > 
> > Are you saying this is a possible workaround to use dvb?
> > 

I have a reliable workaround!

I examined the differences between 3.5.12 and 3.5.13 and fell into my eye, that after the "stop" is now displayed the file "logo". And it was a good guideline. Logo file is located in /opt/trinity/share/apps/kaffeine and it is a single picture - jpeg. When I was replaced picture by video (logo.avi copied as a logo), kaffeine is stable again!

It seems that xine does not like ordinary pictures.
Comment 10 Timothy Pearson 2012-02-23 13:50:44 CST
Excellent debugging!  Image corruption did not show up in the backtrace and I would never have guessed it myself.

I'm going to mark this PATCHAVAIL as we now know what has to be updated in GIT.
Comment 11 Slávek Banko 2012-02-23 14:05:47 CST
(Odpověď na komentář #10)
> Excellent debugging!  Image corruption did not show up in the backtrace and I
> would never have guessed it myself.
> 
> I'm going to mark this PATCHAVAIL as we now know what has to be updated in GIT.

The problem is that the image is not damaged - I have downloaded the original kaffeine from Lenny, 3.5.12 and 3.5.13. A picture is identical in all versions.

It seems that xine is dissatisfied with the fact that it is a picture - it's not video.
Comment 12 Timothy Pearson 2012-02-23 14:13:51 CST
It might be wise to report this to the Xine developers.  To fix this bug I can create a single frame "movie" out of the original image.
Comment 13 Timothy Pearson 2012-02-23 15:34:58 CST
Fixed in GIT hash 508cb34.  Can you apply this patch to 3.5.13 and verify that the problem is resolved?  If kaffeine still crashes please reopen this bug report.
Comment 14 Slávek Banko 2012-02-27 08:17:24 CST
(Odpověď na komentář #13)
> Fixed in GIT hash 508cb34.  Can you apply this patch to 3.5.13 and verify that
> the problem is resolved?  If kaffeine still crashes please reopen this bug
> report.

The patch successfully applied to 3.5.13 and it works correctly - packages included into prepared updates.
Comment 15 David Hare 2012-03-06 14:16:09 CST
Confirmed here, it is fixed as described, also bug 511, was the same problem. Many thanks Slávek Banko. Kaffeine will be perfect when bug 727 (annoyance but not showstopper) is sorted.
Comment 16 Slávek Banko 2012-03-10 11:40:39 CST
(Odpověď na komentář #15)
> Confirmed here, it is fixed as described, also bug 511, was the same problem.
> Many thanks Slávek Banko. Kaffeine will be perfect when bug 727 (annoyance but
> not showstopper) is sorted.

If it solves another bug, so why not: I have included the rest of the patches addressing bug #727 into the prepared updates for 3.5.13. (Part I've had already fixed without my knowing it is linked to #727.)

To kaffeine was perfect, it is still necessary to solve #859 :)