Bug 384093 - Kaffeine crashes randomly when watching DVB-T
Summary: Kaffeine crashes randomly when watching DVB-T
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kaffeine
Classification: Applications
Component: general (show other bugs)
Version: 2.0.1
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Mauro Carvalho Chehab
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-28 00:16 UTC by voncloft
Modified: 2017-09-26 19:44 UTC (History)
0 users

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 voncloft 2017-08-28 00:16:58 UTC
I will be watching tv with my antenna in kaffeine (DVB-T) with a Hauppauge HVR-2255 tuner card and it will work for a while then all of a sudden Kaffeine will crash and close.

I did a gdb backtrace and received the following information:

Any information needed please let me know - not sure what is going on.

(Too long to post on here)

https://pastebin.com/cetYFEe6
Comment 1 Christoph Feck 2017-09-17 15:33:35 UTC
If this is reproducible, please add the backtrace for all threads. The command is:

thread apply all bt
Comment 2 voncloft 2017-09-17 16:03:26 UTC
Running Kaffeine at the moment - if it crashes I will post the information ASAP
Comment 3 voncloft 2017-09-17 16:19:54 UTC
Blanked screen application did not close out:
Results posted here:

https://pastebin.com/cEwXPMWD
Comment 4 voncloft 2017-09-21 00:18:12 UTC
...anyone?
Comment 5 Mauro Carvalho Chehab 2017-09-21 00:42:15 UTC
(In reply to voncloft from comment #4)
> ...anyone?

On both backtraces, the issue seemed to me as it is related to some bug at libVLC. It is hard to tell exactly where, as you don't have all symbol tables.

What version of VLC do you have? You could try to upgrade it and see if a newer version fixes it.
Comment 6 voncloft 2017-09-21 22:26:28 UTC
https://packages.gentoo.org/packages/media-video/vlc

Using 2.2.6
Comment 7 voncloft 2017-09-21 22:26:58 UTC
How do I add the symbols?
Comment 8 Mauro Carvalho Chehab 2017-09-23 19:53:00 UTC
(In reply to voncloft from comment #7)
> How do I add the symbols?

That depends on the distribution. In Fedora, by installing the -debug packages for the libraries that are used by Kaffeine, e. g.:

    # dnf debuginfo-install kaffeine

I guess that, on gentoo, you'll need to recompile the packages with some extra options to /etc/portage/make.conf. Googling it, I found this page that might be helpful:
https://wiki.gentoo.org/wiki/Debugging
Comment 9 voncloft 2017-09-24 21:38:45 UTC
Looks like I forgot to add --args to gdb /usr/bin/kaffeine

Running with new flag until it crashes will output bt full when crashes again.
Comment 10 voncloft 2017-09-24 21:39:54 UTC
meant: thread apply all bt
not bt full
Comment 11 voncloft 2017-09-24 21:54:54 UTC
https://pastebin.com/tPBFX9kr
Comment 12 Christoph Feck 2017-09-25 22:17:08 UTC
Did you wait for the crash? Backtrace from comment #11 shows all threads waiting, none crashed.
Comment 13 Christoph Feck 2017-09-25 22:19:52 UTC
(at least I don't spot it ... the output from gdb right at the crash includes a single line backtrace and the thread number; this might help)
Comment 14 Christoph Feck 2017-09-25 22:21:39 UTC
Ah, I see it ... Thread 8 tries to lock an invalid mutex. This is a bug in the audio libraries from vlc.
Comment 15 Christoph Feck 2017-09-25 22:24:10 UTC
https://trac.videolan.org/vlc/ticket/18732 says it is a gentoo issue. Please follow the links there.
Comment 16 voncloft 2017-09-26 19:10:26 UTC
Thank you for pointing out vlc is at fault - I upgraded to 2.2.6-r2
"looks" promising.
Comment 17 voncloft 2017-09-26 19:44:26 UTC
Think the new vlc upgrade fixed it.

Thanks for your help.