Bug 302806

Summary: KScd 4.8.4 doesn't play a CD
Product: [Unmaintained] kscd Reporter: Toralf Förster <toralf.foerster>
Component: generalAssignee: Multimedia Developers <kde-multimedia>
Status: RESOLVED FIXED    
Severity: normal CC: fitzcarraldo1, sitter, tdfischer
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Toralf Förster 2012-06-30 18:32:27 UTC
Although the device notifier gives the choice to use Kscd and Kscd is started (and shows the correct titel list) - it doesn't start to paly the CD.

In .xsesion-errors I get :
WARNING: Phonon::createPath: Cannot connect  Phonon::MediaObject ( no objectName ) to  Phonon::AudioOutput ( no objectName ). 
file:///usr/share/apps/plasma/plasmoids/notifier/contents/ui/devicenotifier.qml:262: Unable to assign [undefined] to bool mounted
file:///usr/share/apps/plasma/plasmoids/notifier/contents/ui/devicenotifier.qml:246: Unable to assign [undefined] to QString emblemIcon
file:///usr/share/apps/plasma/plasmoids/notifier/contents/ui/devicenotifier.qml:246: Unable to assign [undefined] to QString emblemIcon
file:///usr/share/apps/plasma/plasmoids/notifier/contents/ui/devicenotifier.qml:262: Unable to assign [undefined] to bool mounted
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
kscd is already running
file:///usr/share/apps/plasma/plasmoids/notifier/contents/ui/DeviceItem.qml:62: TypeError: Result of expression 'notifierDialog.highlightItem' [null] is not an object.



Reproducible: Always



Expected Results:  
e

i
Comment 1 Torrie Fischer 2012-07-10 18:06:53 UTC
Which phonon backend and version are you using?
Comment 2 Toralf Förster 2012-07-10 19:35:23 UTC
kde-base/phonon-kde 4.8.4
media-libs/phonon 4.5.1-r1
media-libs/phonon-gstreamer 4.5.0
Comment 3 Fitzcarraldo 2012-07-14 15:43:58 UTC
I have the same, or similar, problem with KsCD. I have tried with both the GStreamer Phonon Backend and the VLC Phonon Backend (logging out and back in again, in each case). KsCD does not work in either case.

My installation details:

$ uname -a
Linux meshedgedx 3.3.5-gentoo #1 SMP Tue May 15 02:12:43 BST 2012 x86_64 Intel(R) Core(TM) i7 CPU Q 720 @ 1.60GHz GenuineIntel GNU/Linux

The packages I have got installed:

$ eix -I phonon
[I] kde-base/phonon-kde
     Available versions:  (4) 4.7.4 4.8.3 (~)4.8.4
        {{alsa aqua debug pulseaudio}}
     Installed versions:  4.8.4(4)(00:24:51 30/06/12)(alsa pulseaudio -aqua -debug)
     Homepage:            http://phonon.kde.org
     Description:         Phonon KDE Integration

[I] media-libs/phonon
     Available versions:  4.4.2 (~)4.4.3 4.5.0 4.5.1-r1 (~)4.6.0-r1 **9999 {{alsa aqua debug +gstreamer pulseaudio vlc zeitgeist}}
     Installed versions:  4.6.0-r1(16:27:21 20/02/12)(pulseaudio vlc -aqua -debug -gstreamer -zeitgeist)
     Homepage:            https://projects.kde.org/projects/kdesupport/phonon
     Description:         KDE multimedia API

[I] media-libs/phonon-gstreamer
     Available versions:  4.5.0 (~)4.5.1 (~)4.6.0 **9999 {{alsa debug +network}}
     Installed versions:  4.6.0(17:48:40 20/02/12)(alsa network -debug)
     Homepage:            https://projects.kde.org/projects/kdesupport/phonon/phonon-gstreamer
     Description:         Phonon GStreamer backend

[I] media-libs/phonon-vlc
     Available versions:  0.4.1 (~)0.5.0 **9999 {{debug}}
     Installed versions:  0.5.0(16:27:54 20/02/12)(-debug)
     Homepage:            https://projects.kde.org/projects/kdesupport/phonon/phonon-vlc
     Description:         Phonon VLC backend

Found 4 matches.

$ eix -I kscd
[I] kde-base/kscd
     Available versions:  (4) 4.7.4-r1 4.8.3 (~)4.8.4
        {{aqua debug +handbook}}
     Installed versions:  4.8.4(4)(06:07:04 30/06/12)(-aqua -debug)
     Homepage:            http://www.kde.org/
     Description:         KDE CD player

I do have /dev/cdrom linked to /dev/sr0:

# ls -la /dev/cdrom
lrwxrwxrwx 1 root root 3 Jul 14 15:51 /dev/cdrom -> sr0
# ls -la /dev/sr0
brw-rw----+ 1 root cdrom 11, 0 Jul 14 15:51 /dev/sr0

At the end of the file ~/.xsession-errors I see the following messages. I don't whether or not they are relevant to the KsCD problem:

kded(7172)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
file:///usr/share/apps/plasma/plasmoids/notifier/contents/ui/devicenotifier.qml:262: Unable to assign [undefined] to bool mounted
file:///usr/share/apps/plasma/plasmoids/notifier/contents/ui/devicenotifier.qml:246: Unable to assign [undefined] to QString emblemIcon
file:///usr/share/apps/plasma/plasmoids/notifier/contents/ui/devicenotifier.qml:262: Unable to assign [undefined] to bool mounted
file:///usr/share/apps/plasma/plasmoids/notifier/contents/ui/devicenotifier.qml:246: Unable to assign [undefined] to QString emblemIcon
plasma-desktop(7289)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
file:///usr/share/apps/plasma/plasmoids/notifier/contents/ui/DeviceItem.qml:62: TypeError: Result of expression 'notifierDialog.highlightItem' [null] is not an object.
Warning: option --plugin-path no longer exists.
Warning: option --plugin-path no longer exists.
[0x2e904d8] main services discovery error: no suitable services discovery module
Object::connect: No such signal Phonon::VLC::MediaObject::angleChanged(int) in /var/tmp/portage/media-libs/phonon-4.6.0-r1/work/phonon-4.6.0/phonon/mediacontroller.cpp:64
Object::connect: No such signal Phonon::VLC::MediaObject::availableAnglesChanged(int) in /var/tmp/portage/media-libs/phonon-4.6.0-r1/work/phonon-4.6.0/phonon/mediacontroller.cpp:65
plasma-desktop(7289)/plasma StatusNotifierItemSource::refreshCallback: DBusMenu disabled for this application 
[0x7fa2c4002088] main stream error: cannot pre fill buffer

I have tried both GStreamer Phonon Backend and VLC Phonon Backend, and KsCD does not work with either.

KsCD spins up the Audio CD, shows the track list and, in the case of the GStreamer Phonon Backend, also displays the name of the first track scrolling in the KsCD window. In both cases the Eject button in KsCD works. But KsCD does not play any music. This has been the case for several releases of KsCD and KDE now (sorry, can't recall in which release the problem first started).

If I use the VLC Phonon Backend and launch KsCD from the command line I see the following error messages in the Konsole window and no music is played when I click Play:

$ kscd
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Warning: option --plugin-path no longer exists.
Warning: option --plugin-path no longer exists.
[0x2bbbfe8] main services discovery error: no suitable services discovery module
Object::connect: No such signal Phonon::VLC::MediaObject::angleChanged(int) in /var/tmp/portage/media-libs/phonon-4.6.0-r1/work/phonon-4.6.0/phonon/mediacontroller.cpp:64
Object::connect: No such signal Phonon::VLC::MediaObject::availableAnglesChanged(int) in /var/tmp/portage/media-libs/phonon-4.6.0-r1/work/phonon-4.6.0/phonon/mediacontroller.cpp:65
[0x7f7240002088] main stream error: cannot pre fill buffer

If I use the GStreamer Phonon Backend and launch KsCD from the command line I see the following messages in the Konsole window and no music is played when I click Play:

$ kscd
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Setting new source 
New source:  QUrl( "" )  
Transitioning to state "playing" 
State change 
Moving from "null" 0 to "ready" 1 
2 
Transitioning to state "null"

The following media players _do_ play the same Audio CD on the same machine in the same KDE installation: Amarok (works sometimes, other times not); Audacious; GNOME MPlayer; SMPlayer; VLC, Xine.

(In case it helps debug the problem with KsCD, Amarok displays the error message: 'Could not enter folder /mnt/cdrom' but does sometimes play the Audio CD anyway.)

Apart from KsCD, the following media players do _not_ play the same Audio CD on the same machine in the same KDE installation: Clementine (error message: 'Error while loading audio CD'); Dragon Player (Audio CD spins up, but nothing is displayed in the Dragon Player window and nothing else happens).






kded(7172)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
file:///usr/share/apps/plasma/plasmoids/notifier/contents/ui/devicenotifier.qml:67: TypeError: Result of expression 'data[last]' [undefined] is not an object.
file:///usr/share/apps/plasma/plasmoids/notifier/contents/ui/devicenotifier.qml:262: Unable to assign [undefined] to bool mounted
file:///usr/share/apps/plasma/plasmoids/notifier/contents/ui/devicenotifier.qml:246: Unable to assign [undefined] to QString emblemIcon
file:///usr/share/apps/plasma/plasmoids/notifier/contents/ui/devicenotifier.qml:262: Unable to assign [undefined] to bool mounted
file:///usr/share/apps/plasma/plasmoids/notifier/contents/ui/devicenotifier.qml:246: Unable to assign [undefined] to QString emblemIcon
plasma-desktop(7289)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
file:///usr/share/apps/plasma/plasmoids/notifier/contents/ui/DeviceItem.qml:62: TypeError: Result of expression 'notifierDialog.highlightItem' [null] is not an object.
Warning: option --plugin-path no longer exists.
Warning: option --plugin-path no longer exists.
[0x26f94d8] main services discovery error: no suitable services discovery module
Object::connect: No such signal Phonon::VLC::MediaObject::angleChanged(int) in /var/tmp/portage/media-libs/phonon-4.6.0-r1/work/phonon-4.6.0/phonon/mediacontroller.cpp:64
Object::connect: No such signal Phonon::VLC::MediaObject::availableAnglesChanged(int) in /var/tmp/portage/media-libs/phonon-4.6.0-r1/work/phonon-4.6.0/phonon/mediacontroller.cpp:65
[0x7fb960002088] main stream error: cannot pre fill buffer
Comment 4 Fitzcarraldo 2014-01-17 06:45:11 UTC
Well, since KDE 4.11.3, KsCD can play Audio CDs on my main laptop. I assume this was a result of an upgrade to Phonon and/or the Phonon backends.
Comment 5 Harald Sitter 2014-01-17 08:26:08 UTC
I did fix something somewhere, everywhere, with regards audiocds. Perhaps that's why :P

However, you were using phonon-vlc, while the original report appears to affect phonon-gstreamer. I did also, at some point, fiddle with its audiocd support, but I am not sure it works as expected with KSCD as of right now.
Comment 6 Toralf Förster 2014-01-17 17:06:17 UTC
well - at least it works here now (again) in version 4.12.0 - thx