Bug 397532 - Jams of sound and picture n TV programs continuous by about 7 seconds every 15 seconds on an specific Window Manager setup
Summary: Jams of sound and picture n TV programs continuous by about 7 seconds every 1...
Status: RESOLVED DUPLICATE of bug 389783
Alias: None
Product: kaffeine
Classification: Applications
Component: general (show other bugs)
Version: 2.0.15
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Mauro Carvalho Chehab
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-16 18:17 UTC by Wabi
Modified: 2018-11-08 18:29 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wabi 2018-08-16 18:17:13 UTC
There are jams frequently in dvb-c after upgrading to Ubuntu 18.04.
Comment 1 Wabi 2018-08-17 17:06:28 UTC
Move the mouse helps. It's repeated about 1 minute.
Comment 2 Wabi 2018-08-18 19:45:39 UTC
German channels haven't this problem but polish only have.
Comment 3 Wabi 2018-08-18 20:31:43 UTC
There isn't any problems when I switched from Ubuntu to Unity in system starting.
Comment 4 Mauro Carvalho Chehab 2018-11-06 16:46:46 UTC
(In reply to Wabi from comment #3)
> There isn't any problems when I switched from Ubuntu to Unity in system
> starting.

Sorry, but, if you want some action on this bug, you need to better report it:

1) what do you mean by "jams"?
2) What's your current environment (GPU, TV board, CPU, ...)?
3) Please post the Kernel logs (dmesg);
4) Please post Kaffeine debug logs;
5) What do you mean by "switching from Ubuntu to Unity"? Ubuntu is a distribution; Unity is just a windows manager.
Comment 5 Wabi 2018-11-08 08:43:09 UTC
My replies:
1) Jams of sound and picture of tv programs continous by about 7 seconds every 15 seconds
2) Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller, TechnoTrend AG TT-TVStick CT2-4400, Intel(R) Pentium(R) CPU G3260 @ 3.30GHz
3) I don't know when I can get it
4) I don't know when I can get it
5) When I logging on starting Ubuntu 18.04 I can switched between Gnome, Unity and Ubuntu choosing a gear
Comment 6 Mauro Carvalho Chehab 2018-11-08 09:47:05 UTC
(In reply to Wabi from comment #5)
> My replies:
> 1) Jams of sound and picture of tv programs continous by about 7 seconds
> every 15 seconds

Kaffeine sets a Kernel buffer in order to store the data received from the TV card. It creates internally a thread that reads from the buffer. Such thread should be able to fully read the buffer before the next one arrives, as otherside packets will be lost. From your description, I suspect that this is what's happening: something is causing the Kaffeine's thread to be scheduled to wake too late.

That could happen on some situations:
   - the GPU driver is taking a very long time to display the video;
   - the CPU load is too high;
   - the kernel you're using is on voluntary mode (it was compiled with preemption is disabled) and some task is holding the CPU for a very long time.

> 2) Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller,
> TechnoTrend AG TT-TVStick CT2-4400, Intel(R) Pentium(R) CPU G3260 @ 3.30GHz
> 3) I don't know when I can get it
> 4) I don't know when I can get it

Without logs, we can only guess the cause of the jams. Btw, based on what you said, we may also need the Xorg (and/or Wayland) logs.

> 5) When I logging on starting Ubuntu 18.04 I can switched between Gnome,
> Unity and Ubuntu choosing a gear

Gnome and Unity are clear: both are window managers. I suspect that, on Ubuntu, both "profiles" use X11.

I've no idea what your "Ubuntu" profile actually means, but clearly it is doing something bad.

Perhaps this "Ubuntu" profile is loading an userspace video driver that doesn't do video acceleration, or perhaps it is starting a process that is keeping the CPU under a very high load. Do you know if it uses X11 or Wayland?
Comment 7 Mauro Carvalho Chehab 2018-11-08 10:11:42 UTC
(In reply to Wabi from comment #1)
> Move the mouse helps. It's repeated about 1 minute.

That is probably making the scheduler to wake Kaffeine process earlier, in order to handle mouse events. I would expect this kind of behaviour if some other process is running in background, making CPU busy.

(In reply to Wabi from comment #2)
> German channels haven't this problem but polish only have.

Perhaps that polish channel is using a higher resolution or require a different kind of video acceleration. I would expect this kind of behavior if, for such channel, instead of using the GPU for doing a video decoding, it is doing it in software.

Btw, there was a reported bug that Kaffeine eats too much CPU when doing video de-interlacing. Perhaps, for this polish channel, it is doing software de-interlacing, with can be very CPU intensitive specially on high-res channels. On Kaffeine 2.0.15, the default changed to "Disabled", as most channels nowadays don't need de-interlacing. Yet, Kaffeine stores your preference. So, I suggest you to double-check if de-interlacing is disabled on your setup.

This is at this menu:

    Playback -> Video -> Deinterlace

The first option there is "Disabled". If you change via this menu, the setting will be persistent.
Comment 8 Mauro Carvalho Chehab 2018-11-08 10:22:17 UTC
(In reply to Mauro Carvalho Chehab from comment #7)
> Btw, there was a reported bug that Kaffeine eats too much CPU when doing
> video de-interlacing. 

The bug in question is:
    https://bugs.kde.org/show_bug.cgi?id=389783

This bug also seems to be a duplicate of the same issue:
    https://bugs.kde.org/show_bug.cgi?id=387750
Comment 9 Wabi 2018-11-08 16:18:20 UTC
After updating system this bug seems to be deleted. I had deintarlace enabled before.
Comment 10 Mauro Carvalho Chehab 2018-11-08 18:29:09 UTC
(In reply to Wabi from comment #9)
> After updating system this bug seems to be deleted. I had deintarlace
> enabled before.

Ok, I'll close this one too. It is likely the deinterlace setting.

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