Bug 364225 - Audio CD not playable
Summary: Audio CD not playable
Status: RESOLVED FIXED
Alias: None
Product: kaffeine
Classification: Applications
Component: general (other bugs)
Version First Reported In: 2.0.3
Platform: Compiled Sources Linux
: NOR grave
Target Milestone: ---
Assignee: Mauro Carvalho Chehab
URL:
Keywords:
: 382607 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-06-11 19:32 UTC by eldrad.ulthran
Modified: 2018-10-28 17:08 UTC (History)
2 users (show)

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


Attachments
Output of dmseg (69.51 KB, text/plain)
2016-06-13 23:43 UTC, eldrad.ulthran
Details
new output of dmesg (67.59 KB, text/plain)
2016-06-14 17:32 UTC, eldrad.ulthran
Details

Note You need to log in before you can comment on or make changes to this bug.
Description eldrad.ulthran 2016-06-11 19:32:09 UTC
I'm using a self compiled kaffeine 2.0.3. on OpenSuse 13.2.
When I start kaffeine via

kaffeine --audiocd

(having an actual audio CD in the drive), kaffeine starts, I hear the drive spinning, but after some seconds the attempt is stopped. In the console I get the following message:

[00007f900c0075f8] core stream error: cannot pre fill buffer

Exactly the same happens if I start kaffeine without any options and click on the button "play audio-cd".

The title bar of the window tells "cdda:///dev/sr0 — Kaffeine"

Oddly enough, if I start vlc itself and start playing the CD, I get the very same error message in the console, but the CD is played without any problems!

Reproducible: Always
Comment 1 Mauro Carvalho Chehab 2016-06-13 23:36:29 UTC
(In reply to eldrad.ulthran from comment #0)
> I'm using a self compiled kaffeine 2.0.3. on OpenSuse 13.2.
> When I start kaffeine via
> 
> kaffeine --audiocd
> 
> (having an actual audio CD in the drive), kaffeine starts, I hear the drive
> spinning, but after some seconds the attempt is stopped. In the console I
> get the following message:
> 
> [00007f900c0075f8] core stream error: cannot pre fill buffer
> 
> Exactly the same happens if I start kaffeine without any options and click
> on the button "play audio-cd".
> 
> The title bar of the window tells "cdda:///dev/sr0 — Kaffeine"
> 
> Oddly enough, if I start vlc itself and start playing the CD, I get the very
> same error message in the console, but the CD is played without any problems!

What version of VLC do you have installed? Kaffeine seems to be a more reliable to read problems with VLC from the git tree. Do you have some Kernel logs (output of the dmesg command)?
Comment 2 eldrad.ulthran 2016-06-13 23:43:37 UTC
Created attachment 99485 [details]
Output of dmseg
Comment 3 eldrad.ulthran 2016-06-13 23:45:50 UTC
(In reply to Mauro Carvalho Chehab from comment #1)
> What version of VLC do you have installed? Kaffeine seems to be a more
> reliable to read problems with VLC from the git tree. Do you have some
> Kernel logs (output of the dmesg command)?

I'm using vlc 2.2.4-2.1 from Suse's packman repository. I attached the output of the commmand dmesg, I hope, this is what you asked for?
Comment 4 Mauro Carvalho Chehab 2016-06-14 01:22:28 UTC
(In reply to eldrad.ulthran from comment #3)
> (In reply to Mauro Carvalho Chehab from comment #1)
> > What version of VLC do you have installed? Kaffeine seems to be a more
> > reliable to read problems with VLC from the git tree. Do you have some
> > Kernel logs (output of the dmesg command)?
> 
> I'm using vlc 2.2.4-2.1 from Suse's packman repository. I attached the
> output of the commmand dmesg, I hope, this is what you asked for?

Yes, it is, but I'm not seeing any messages there related to the CD you're trying to play, except for:

[    1.880268] sr0: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
[    1.880271] cdrom: Uniform CD-ROM driver Revision: 3.20
[    1.880362] sr 3:0:0:0: Attached scsi CD-ROM sr0

Given that VLC produced some error messages, I would be expecting something like:

[ 1395.937993] blk_update_request: I/O error, dev sr0, sector 4
[ 1395.937997] Buffer I/O error on dev sr0, logical block 1, async page read
[ 1395.949883] Buffer I/O error on dev sr0, logical block 256, async page read
[ 1395.961967] Buffer I/O error on dev sr0, logical block 257, async page read

Did you get the dmesg after trying to play the audio CD?
Comment 5 eldrad.ulthran 2016-06-14 17:32:25 UTC
Created attachment 99501 [details]
new output of dmesg

run explicitly after trying to read a CD
Comment 6 Patrick Silva 2016-12-28 01:52:35 UTC
I cant play audio cd on Arch too. When I run "kaffeine --audiocd" terminal says

27-12-16 23:49:37.745 [Info    ] Using built-in dvb device manager
[00007f933000b618] core stream error: cannot pre fill buffer
Comment 7 Mauro Carvalho Chehab 2017-07-30 14:24:13 UTC
*** Bug 382607 has been marked as a duplicate of this bug. ***
Comment 8 Andrey Bychkov 2018-10-26 06:46:13 UTC
Hello all! I fixed it's problem.
PR on github
https://github.com/KDE/kaffeine/pull/3
my msg on forum
https://forum.kde.org/viewtopic.php?f=19&t=154030&p=404026&hilit=kaffeine#p404026
Comment 9 Mauro Carvalho Chehab 2018-10-28 14:56:10 UTC
(In reply to Andrey Bychkov from comment #8)
> Hello all! I fixed it's problem.
> PR on github
> https://github.com/KDE/kaffeine/pull/3
> my msg on forum
> https://forum.kde.org/viewtopic.
> php?f=19&t=154030&p=404026&hilit=kaffeine#p404026

Just applied the fix, together with some other patches on the top of that doing some improvements. Please test.
Comment 10 Patrick Silva 2018-10-28 15:14:57 UTC
I have just installed keffeine-git on Arch Linux.
Now kaffeine can play audio cd! \o/
However there is no cover art or visualization during playback.
Comment 11 Mauro Carvalho Chehab 2018-10-28 17:08:46 UTC
(In reply to Patrick Silva from comment #10)
> I have just installed keffeine-git on Arch Linux.
> Now kaffeine can play audio cd! \o/

Good!

> However there is no cover art or visualization during playback.

It relies on libVLC that doesn't have either. I suspect it would be possible to place some overlay on the top of that in order to do something like that (or to add support at libVLC).