Bug 401216 - Freeze after switching TV channels
Summary: Freeze after switching TV channels
Status: REPORTED
Alias: None
Product: kaffeine
Classification: Applications
Component: general (show other bugs)
Version: 2.0.17
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Mauro Carvalho Chehab
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-19 18:25 UTC by i-bugs-kde-org-ushfas
Modified: 2020-04-24 12:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Kaffeine Output (165.50 KB, text/plain)
2018-11-19 18:26 UTC, i-bugs-kde-org-ushfas
Details
GDB thread dump (16.17 KB, text/plain)
2018-11-19 18:26 UTC, i-bugs-kde-org-ushfas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description i-bugs-kde-org-ushfas 2018-11-19 18:25:43 UTC
SUMMARY

Switching to next channel sometimes freezes kaffeine. No log messages in the console. Switch between fullscreen and not fullscreen works and also quiting.

The amount of channel switching varies (5-15). I have the feeling that in fullscreen mode it happens earlier.

There are also a lot of warnings which are hard to interpret for me.


STEPS TO REPRODUCE
1. Start kaffeine
2. Switch channels multiple times with Page-Down

OBSERVED RESULT
Freezes and the new channel isn't shown.


EXPECTED RESULT
The video of the new TV channel is shown.

SOFTWARE/OS VERSIONS
Fedora 29
kaffeine-2.0.15-2.fc29.x86_64
qt5-qtbase-5.11.1-9.fc29.x86_64

ADDITIONAL INFORMATION
I ran kaffeine with -d to get some debug information. I ran gdb with "thread apply all bt" to get a thread dump. Both are attached.
Comment 1 i-bugs-kde-org-ushfas 2018-11-19 18:26:26 UTC
Created attachment 116407 [details]
Kaffeine Output
Comment 2 i-bugs-kde-org-ushfas 2018-11-19 18:26:59 UTC
Created attachment 116408 [details]
GDB thread dump
Comment 3 Mauro Carvalho Chehab 2019-05-03 19:36:28 UTC
I found a longstanding bug at Kaffeine, with got fixed at version 2.0.17:

https://cgit.kde.org/kaffeine.git/commit/?id=7960208dad913d331ffdd6a129bfdc935337a4e5

Basically, it is a race condition that happens during scan time, but may also happen while doing channel switch.

Could you please test if Kaffeine 2.0.17 solves the issue you're facing?
Comment 4 tbs_gmbh 2020-04-24 12:52:42 UTC
Hi, 
Our TBS Tuner devices also have the same issue with switching channels on Kaffeine Player. The race condition is still happening in v2.0.18. I have added a 1-second delay to release DVB tuner from the previous playback and the freeze no longer happens again. Please find my GitHub pull request commit here:

https://github.com/KDE/kaffeine/pull/4/commits/866c8b519f65aee741ae92cd2459834f52f6c672

Thanks.