Bug 2279869

Summary: Amarok cannot play CDs
Product: [Fedora] Fedora Reporter: Rupert Pupkin <rashid_usm>
Component: amarokAssignee: Rex Dieter <rdieter>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 42CC: aurelien, jgrulich, kde-sig, marcdeop, pierre.juhen, rdieter
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rupert Pupkin 2024-05-09 11:14:29 UTC
I cannot play CDs with Amarok because they are always shown to have 0 tracks.


Reproducible: Always

Steps to Reproduce:
1.  Insert an audio CD into the DVD drive in my computer.
2.  Wait for the system tray pop-up for new device "Audio CD".
3.  Either click on the option "Play audio CD with Amarok" (phrasing could be different, I use the German language pack) or start Amarok from the menu.

Actual Results:  
In the left column, a new entry "Music CD" pops up which says "0 tracks". I cannot do anything with this new entry except clicking the "Eject" symbol, which ejects the CD from the drive.


Expected Results:  
The new entry "Music CD" should show the list of tracks of the CD and I should be able to play the tracks.


The same issue also happens when Amarok is already open when I insert the audio CD.

I can successfully play CDs in VLC and Dragon Player and can rip the tracks in K3B. I can also open the audio CD in Dolphin.

I had already opened a bug for this issue at https://bugs.kde.org/show_bug.cgi?id=486517

I was told there that the problem is that Amarok is still a Qt5 application and, because of that, needs https://src.fedoraproject.org/rpms/kf5-audiocd-kio. But Fedora 40 no longer provides this package. It only provides https://src.fedoraproject.org/rpms/audiocd-kio, which I assume is the Qt6 variant of that module. 

Here is the log output of calling "amarok --debug" and then inserting a CD into my DVD writer:

amarok: BEGIN: bool IpodCollectionFactory::identifySolidDevice(const QString&) const
amarok:   Device "/org/freedesktop/UDisks2/block_devices/sr0" doesn't have PortableMediaPlayer ipod interface or StorageAccess interface -> cannot be and iPod
amarok: END__: bool IpodCollectionFactory::identifySolidDevice(const QString&) const [Took: 0s]
amarok: BEGIN: void MediaDeviceCache::slotAddSolidDevice(const QString&)
amarok:   [MediaDeviceCache] Found new Solid device with udi =  "/org/freedesktop/UDisks2/block_devices/sr0"
amarok:   [MediaDeviceCache] Device name is =  "HL-DT-ST DVDRAM GH22NS50"  and was made by  ""
amarok:   [MediaDeviceCache] device is an Audio CD
amarok:   BEGIN: void MountPointManager::slotDeviceAdded(const QString&)
amarok:     [MountPointManager] looking for udi  "/org/freedesktop/UDisks2/block_devices/sr0"
amarok:     [MountPointManager] Did not find device from Solid for udi  "/org/freedesktop/UDisks2/block_devices/sr0"
amarok:   END__: void MountPointManager::slotDeviceAdded(const QString&) [Took: 0s]
amarok:   BEGIN: void MediaDeviceMonitor::deviceAdded(const QString&)
amarok:     BEGIN: void MediaDeviceMonitor::checkDevice(const QString&)
amarok:       OpticalDisc
amarok:       AudioCd
amarok:       [MediaDeviceMonitor] Device identified with udi:  "/org/freedesktop/UDisks2/block_devices/sr0"
amarok:       BEGIN: virtual void ConnectionAssistant::tellIdentified(const QString&)
amarok:         BEGIN: const QString MediaDeviceCache::device(const QString&) const
amarok:         END__: const QString MediaDeviceCache::device(const QString&) const [Took: 0.001s]
amarok:         BEGIN: Collections::AudioCdCollection::AudioCdCollection(MediaDeviceInfo*)
amarok:           [AudioCdCollection] Getting Audio CD info
amarok:           BEGIN: Meta::MediaDeviceHandler::MediaDeviceHandler(QObject*)
amarok:           END__: Meta::MediaDeviceHandler::MediaDeviceHandler(QObject*) [Took: 0s]
amarok:         END__: Collections::AudioCdCollection::AudioCdCollection(MediaDeviceInfo*) [Took: 0s]
amarok:         BEGIN: void Collections::MediaDeviceCollection::slotAttemptConnectionDone(bool)
amarok:           [MediaDeviceCollection] starting full scan
amarok:           BEGIN: virtual void Collections::AudioCdCollection::startFullScan()
amarok:             BEGIN: void Collections::AudioCdCollection::readCd()
amarok:             END__: void Collections::AudioCdCollection::readCd() [Took: 0.005s]
amarok:           END__: virtual void Collections::AudioCdCollection::startFullScan() [Took: 0.005s]
amarok:         END__: void Collections::MediaDeviceCollection::slotAttemptConnectionDone(bool) [Took: 0.005s]
amarok:       END__: virtual void ConnectionAssistant::tellIdentified(const QString&) [Took: 0.007s]
amarok:       [MediaDeviceMonitor] Device already identified with udi:  "/org/freedesktop/UDisks2/block_devices/sr0"
amarok:     END__: void MediaDeviceMonitor::checkDevice(const QString&) [Took: 0.007s]
amarok:   END__: void MediaDeviceMonitor::deviceAdded(const QString&) [Took: 0.007s]
amarok: END__: void MediaDeviceCache::slotAddSolidDevice(const QString&) [Took: 0.009s]
amarok: BEGIN: void Collections::AudioCdCollection::slotEntriesJobDone(KJob*)
amarok:   [WARNING] [AudioCdCollection] void Collections::AudioCdCollection::slotEntriesJobDone(KJob*) "Erstellung des Ein-/Ausgabemoduls nicht möglich. Unbekanntes Protokoll „audiocd“." "Unbekanntes Protokoll „audiocd“."
amarok:   [WARNING] [AudioCdCollection] void Collections::AudioCdCollection::slotEntriesJobDone(KJob*) haven't found .txt file under audiocd:/, but continuing
amarok:   BEGIN: void Collections::AudioCdCollection::noInfoAvailable()
amarok:     BEGIN: bool MainWindow::isWaitingForCd() const
amarok:       [MainWindow] waiting?:  false
amarok:     END__: bool MainWindow::isWaitingForCd() const [Took: 0s]
amarok:     BEGIN: void CollectionManager::slotNewCollection(Collections::Collection*)
amarok:       [CollectionManager] new Collection  "AudioCd"
amarok:     END__: void CollectionManager::slotNewCollection(Collections::Collection*) [Took: 0s]
amarok:   END__: void Collections::AudioCdCollection::noInfoAvailable() [Took: 0.004s]
amarok: END__: void Collections::AudioCdCollection::slotEntriesJobDone(KJob*) [Took: 0.004s]

Comment 1 Pierre Juhen 2024-12-17 15:15:07 UTC
Hi

I tried to run it on Fedora 41.

Tried to install kf5-audiocd-kio and kf5-audiocd-kio-doc from Fedora 39.

But kf5-libkcompactdisc is also needed, but conficts with libkcompactdisc from Fedora 41.

I then stopped because the problem is not important enough for me to break My Fedora 41 system (VLC works)

I will wait for kf6 version of amarok.

Regards,

Pierre

Comment 2 Aoife Moloney 2025-04-25 10:39:56 UTC
This message is a reminder that Fedora Linux 40 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 40 on 2025-05-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '40'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 40 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 3 Rupert Pupkin 2025-04-25 19:11:26 UTC
I have

Comment 4 Rupert Pupkin 2025-04-25 19:12:55 UTC
I have verified that the issue still persists in Fedora 42 and have changed the version number accordingly.

Comment 5 marcdeop 2025-04-27 10:36:13 UTC
I am working on building Amarok 3.3 on Fedora. As it will be Qt6 only, hopefully this issue will be fixed :-)

It might take a bit of time though as it needs a bunch of updates in different libs and, as of right now, still in _beta_