Bug 116204 - kio_audiocd messes up the system with 3.5 RC1
Summary: kio_audiocd messes up the system with 3.5 RC1
Status: CONFIRMED
Alias: None
Product: AudioCD-KIO
Classification: Frameworks and Libraries
Component: General (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-12 21:47 UTC by Christopher Martin
Modified: 2018-11-20 16:12 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Martin 2005-11-12 21:47:01 UTC
Version:           3.5.0-RC1 (using KDE Devel)
Installed from:    Compiled sources
OS:                Linux

Whereas kio_audiocd 3.4.3 works well enough, after compiling 3.5.0 RC1, I find that kio_audiocd causes severe problems. I insert a disc, and any attempt to use the ioslave in Konqueror results in the drive spinning up, spinning down; repeat. kio_audiocd reports an error and does nothing useful, but the spinning doesn't stop. I can't eject the drive, or even forcibly kill the kio_audiocd process (or processes, as they seem to accumulate). A 'eject '/dev/hdd' as root sometimes works, but at the cost of an ATAPI reset and disabling DMA on the drive. 

So obviously something is messed up. Whether the root of the problem is in the kernel (2.6.14) or kio_audiocd, the problem appears to be revealed by the new kio_audiocd.

Any ideas on how to start debugging?
Comment 1 icefox 2005-11-14 09:52:32 UTC
odd, nothing major was changed for 3.5.  Some different place you can try to see what happens would be in KAudioCreator and KSCD Do they both produce the same results?
Comment 2 Christopher Martin 2005-11-15 20:58:16 UTC
KSCD works, but Kaudiocreator does not.

Interestingly, I rebuilt kdebase against a newer dbus/hal, and the behaviour changed a little; rather than spinning up and down forever, the drive now stops after a few tries. But audiocd:/ etc. remains broken. Reverting to kdemultimedia 3.4.3 still fixes the problem, so it does seem to a kio_audiocd issue at core (or kernel).

The system logs, I've noticed, contain the following:

cdrom: This disc doesn't have any tracks I recognize!
cdrom: This disc doesn't have any tracks I recognize!
cdrom: This disc doesn't have any tracks I recognize!
cdrom: This disc doesn't have any tracks I recognize!
cdrom: This disc doesn't have any tracks I recognize!
cdrom: This disc doesn't have any tracks I recognize!
cdrom: dropping to single frame dma
cdrom: This disc doesn't have any tracks I recognize!
hdd: request sense failure: status=0x59 { DriveReady SeekComplete DataRequest Error }
hdd: request sense failure: error=0x00 { }
hdd: status error: status=0x59 { DriveReady SeekComplete DataRequest Error }
hdd: status error: error=0x00 { }
ide: failed opcode was: unknown
hdd: drive not ready for command

What's more, switching the CD to another drive works. Whatever changed in kio_audiocd must be trying to access the hardware in a dodgy way, such that certain drives choke, causing kernel confusion, unkillable processes, general brokeness, etc. This would also explain why not everyone has noticed this issue.
Comment 3 Christopher Martin 2005-11-27 16:42:37 UTC
Anything I can do to help further? Let me know.

Cheers,
Christopher Martin
Comment 4 Imr 2005-12-08 19:35:51 UTC
I confirm this problem.
This is happening to me with kde 3.5 and mandriva's cooker rpms.
Same messages:

Dec  8 18:40:49 monolith kernel: cdrom: This disc doesn't have any tracks I recognize!
Dec  8 18:40:51 monolith kernel: hdc: request sense failure: status=0x59 { DriveReady SeekComplete DataRequest Error }
Dec  8 18:40:51 monolith kernel: hdc: request sense failure: error=0x00 { }

I have tried many different rpms recompiled by different persons included me, and I have this problem in every case. Reverting to kde 3.4.2 fixes the problem every time (I have tried on my 2006, on a fresh 2006 and on a fresh cooker).

The driver is a LG CD writer.

Do you need any further infos or tests done?
Comment 5 Imr 2005-12-08 19:46:18 UTC
Trying with kaudiocreator produces the same problem:
Dec  8 19:42:47 monolith kernel: cdrom: This disc doesn't have any tracks I recognize!
Dec  8 19:43:10 monolith ntpd[3448]: kernel time sync enabled 0001

Then, trying to use grip which works if I dont launch audiocd or kaudiocreator before does this:
Dec  8 19:44:02 monolith kernel: hdc: request sense failure: status=0x59 { DriveReady SeekComplete DataRequest Error }
Dec  8 19:44:02 monolith kernel: hdc: request sense failure: error=0x00 { }
Comment 6 Imr 2005-12-09 06:30:23 UTC
It seems it is not only related to audiocd and kaudiocreator since I had the same problem with kscd.
Playing kscd with grip open lead to the same above problems but kscd managed to continue being usable. Grip on the other hand froze and I had to restart the PC to get my drive back.
I'm back to kde 3.4.2 but I'd like to know against what this bug must be reported?
Comment 7 Joshua 2005-12-09 18:48:50 UTC
I have similar issues on gento 2.6.14 with kde 3.5 stable.  Here are some of the things I have noticed:

- It takes forever to open up audiocd:/ and it show way too many tracks (100's) , sucks up most of my cpu and usually takes my machine down.

- doing dmesg shows this:
printk: 121 messages suppressed.
sg_write: data in/out 30576/30576 bytes for SCSI command 0xbe--guessing data in;
   program kio_audiocd not setting count and/or reply_len properly
Note that I am using a usb cd/rw


- In kaudiocreator itself if I try to rip a track it says it is processing but never goes beyond 0% - no errors are shown

if I kdesu first then it rips slowly and the messages about not setting count are still there.

I have check and modified permissions on all my devices, as well as cdparanoia to see if it would help.

- cdparanoia rips just fine from command line,

Please see this: http://forums.suselinuxsupport.de/lofiversion/index.php/t17248.html
The last post has some mention of this though it does not seem to be useful for me with my setup but perhaps it can help.
Comment 8 icefox 2005-12-17 22:39:52 UTC
Ok, this sounds like it is a problem with libkcompactdisc
Comment 9 Sergey Morozov 2006-03-17 11:50:39 UTC
I have similar issues on Debian unstable with 2.6.15.6 kernel and kde 3.5.1 (libata is enabled):

- I can rip CD with cdparanoia. But the ripping is very slow. Dmesg shows " sg_write: data in/out xxx/xxx bytes for SCSI command 0xbe--guessing data in; 
   program kio_audiocd not setting count and/or reply_len properly"

- In konqueror opening audiocd:/ eats all memory on my machine. It is possible to open some CDs but there are hundreds of tracks.

- kaudiocdcreator read TOC correctly but never goes beyond 0%. Also there are no error messages in .xsessions-errors.

How could I help to resolve this problem?