Bug 21762 - kaffeine uses 100% CPU after changing channels
Summary: kaffeine uses 100% CPU after changing channels
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA6-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2017-09-23 12:58 CEST by Jack M
Modified: 2017-10-05 22:09 CEST (History)
6 users (show)

See Also:
Source RPM: kaffeine-2.0.10-1.mga6.src.rpm
CVE:
Status comment:


Attachments

Description Jack M 2017-09-23 12:58:52 CEST
Description of problem:
Kaffeine uses 100% of the CPU while watching digital tv, after changing some channels. According to the upstream developer, this bug has been fixed in the newest version 2.0.13.
Comment 1 José Jorge 2017-09-23 15:01:21 CEST
Version 2.0.13 pushed to test, after agreement of maintainer.

Status: NEW => ASSIGNED

José Jorge 2017-09-23 15:01:59 CEST

CC: (none) => lists.jjorge
Assignee: lists.jjorge => qa-bugs

Comment 2 Len Lawrence 2017-09-24 18:27:17 CEST
Testing on mga6 for x86_64, Mate desktop.

Before the update there was a lot of CPU activity even before changing channels.  Launched from a terminal it generated a continuous stream of debug messages and certainly after changing channels all eight cores were heavily used.

Updated to version 2.0.13-1 and found that the channels needed to be retuned.
Filtered out radio and tried a few SD and HD channels.  Very few messages in the console and the total cpu usage remained less than 30%.

Stopped kaffeine and tried
$ kaffeine --lastchannel
Came up in digital TV mode, tuned to the last channel selected.
Restarted and selected 'play file'.  Opened 'La Petite Voleuse' which played fine, sound and vision.  Switched to a newsreel clip.  Switched to HD television.
All OK.  Checked the programme guide - titles unreadable for many listings - an old problem.  pavucontrol described the audio stream as VLC media player (?).  Kaffeine audio slider working.  Tried instant record - a minute or so then stopped it.  Played that back OK in vlc but the clip appeared in the user's home directory as ''$'\001''¿®ŋ)¬X°x!9.m2t'.  Reloaded kaffeine to play a Voices of Music video.  OK.  Seek slider worked.
$ kaffeine Bach.m3u
That succeeded in parsing the playlist but did not list it.  Skipping tracks worked - OSD for each track for a couple of seconds.  Pause and resume functioning.  Switched to TV AlJazeera HD and paused and resumed that.
The cpus were never overloaded in any of these operations.

This is definitely OK.

CC: (none) => tarazed25

Len Lawrence 2017-09-24 18:27:33 CEST

Whiteboard: (none) => MGA6-64-OK

Comment 3 William Kenney 2017-09-24 18:56:24 CEST
Len could you share with us what hardware you are using to test this. Like:

HAUPPAUGE COMPUTER WORKS 1191 HVR950Q HDTV TUNER USB ATSC TUNER
https://www.amazon.com/HAUPPAUGE-COMPUTER-WORKS-1191-HVR950Q/dp/B007WM1QTI/ref=sr_1_6?s=electronics&ie=UTF8&qid=1506271953&sr=1-6&keywords=usb+digital+tv+tuner&refinements=p_89%3AHauppauge

Or whatever is needed to get kaffeine to display digital TV stations on Mageia.

Thanks

CC: (none) => wilcal.int

Comment 4 Len Lawrence 2017-09-25 14:21:20 CEST
@wilcal
Bill, this is a PCTV Nova USB stick from a few years back.  The latest Nova stick has different hardware components which are not yet supported by Mageia - I have loaded what I think are the correct firmware files but no go.  The em28xx driver probably needs to be brought into line.  Posted a bug on that more than a year ago.  IIRC the later version can deal with satellite and cable transmissions as well.

Anyway, the older version works out of the box, connected to the TV aerial (antenna).  It contains a Sony CXD2820R card.  The strongest channels come in at SNR ~2500 db.

From lsusb:
Bus 003 Device 002: ID 2013:024f PCTV Systems nanoStick T2 290e

Hope this helps, and sorry for the delay; VirginMedia decided to start upgrading their broadband and television networks at the critical moment - likely to take five hours.

Len
Comment 5 William Kenney 2017-09-25 14:44:43 CEST
It appears that the Hauppauge line is somewhat of a default standard in this market. You think Mageia/Kaffeine would work with one of those?
Comment 6 William Kenney 2017-09-25 14:54:29 CEST
I've asked on the Forum if anyone has had any experience with one of these things:

https://forums.mageia.org/en/viewtopic.php?f=8&t=12014
Comment 7 Len Lawrence 2017-09-25 16:00:14 CEST
Yes I am sure my old WinTV Hauppage device worked with kaffeine in the past, dvb-t only though, no HD.  I usually watch TV via vlc and it did work with that.
There are four TV sockets in the house so I'll try kaffeine with the Hauppage on another machine.
Comment 8 William Kenney 2017-09-25 16:08:17 CEST
Note all the natural disasters lately. What would be nice is to designate a USB ATSC tuner(s) that equally work with some app on Mageia ( Kaffeine/VLC) and also with an Android app ( PadTV ) on a Smartphone. Same device works on both platforms.
Rolf Pedersen 2017-09-25 16:10:22 CEST

CC: (none) => rolfpedersen

Comment 9 José Jorge 2017-09-25 21:31:03 CEST
I tested with PCI hardware DVB-T tuner on x86_64, and confirmed that 100% CPU is not there anymore with this version. Unfortunately, I have no i586 install in this system.
Comment 10 William Kenney 2017-09-25 22:26:01 CEST
Don't let me hold this up. If everyone here is comfortable with this push it on.

I've budgeted a Hauppauge WinTV-HVR-955Q for next month and will tinker with that. If it goes well I'll post it in my thread in the Forum. If there's a problem I'll start a separate bug. I think the 955Q is probably the defacto standard.
Comment 11 Lewis Smith 2017-09-26 13:43:51 CEST
Advisory from comments 0 & 1, also RPMs bug link.
Validating.

Keywords: (none) => advisory, validated_update
CC: (none) => lewyssmith, sysadmin-bugs

Comment 12 William Kenney 2017-10-05 07:32:01 CEST
On real hardware, M6, Plasma, 64-bit

Package(s) under test:
kaffeine, kaffeine-handbook

[root@localhost wilcal]# urpmi kaffeine
Package kaffeine-2.0.13-1.mga6.x86_64 is already installed
[root@localhost wilcal]# urpmi kaffeine-handbook
Package kaffeine-handbook-2.0.13-1.mga6.noarch is already installed

I was able to use the WinTV-HVR-955Q + Mageia 6 to view the video stream
of 4 transmitters, 9 DTV stations.

Hardware used
-------------
Dell Vostro 1015 Laptop
Celeron 925  2.3Ghz  64-bit  1MB L2 cache  800Mhz FSB 45nm
RTL8111/8168B PCI Express 1Gbit Ethernet
Atheros AR9285 WiFi adapter
1ea Crucial 4GB 204-Pin DDR3 SO-DIMM DDR3 1333
HD: Western Digital  WD2500BEVT-7  250GB  5400 RPM 3.0Gb/s
Hauppauge WinTV-HVR-955Q ATSC USB DTV Tuner
Comment 13 Mageia Robot 2017-10-05 22:09:45 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2017-0092.html

Resolution: (none) => FIXED
Status: ASSIGNED => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.