| Summary: | k3b hang on startup "scanning for cd devices" | ||
|---|---|---|---|
| Product: | [Applications] k3b | Reporter: | steve nospam <stevenospam2000> |
| Component: | general | Assignee: | Sebastian Trueg <trueg> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Debian testing | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
Patched k3bdevice.cpp source file.
Hopefully better feature detection. |
||
|
Description
steve nospam
2005-05-12 00:16:00 UTC
I would be happy to provide more documentation if someone would tell me what they'd like to see. I found that I had the same problem with x-cd-roast. I asked x-cd-roast folks for assistance and was told to try hdc=ide-scsi which solved the problem in x-cd-roast but k3b still hangs. I haven't found instructions to debug k3b so I guess I'll just quit trying to use it. I'll leave this problem open in case someone has some suggestions. ide-scsi on a 2.6 kernel is generally a bad idea. it is deprecated and has been unstable for quite some time in the 2.6 branch (I don't know if it is fixed now). Please check what exactly is reported on the system console when you open k3b and it hangs (without ide-scsi, please) By the system console, do you mean /var/log/syscon? It reports nothing except "missing interrupt hdc" after about a minute and keeps reporting the same until I reboot. I agree and would rather not use ide-scsi. Is there a debug switch for k3b so I can record what is happening? --- Sebastian Trueg <trueg@informatik.uni-freiburg.de> wrote: > > ------- Additional Comments From trueg informatik > uni-freiburg de 2005-05-24 08:42 ------- > ide-scsi on a 2.6 kernel is generally a bad idea. it > is deprecated and has been unstable for quite some > time in the 2.6 branch (I don't know if it is fixed > now). Please check what exactly is reported on the > system console when you open k3b and it hangs > (without ide-scsi, please) > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com k3b produces a lot of output on stderr. You could pipe that into a file with something like: k3b 2>&1 > file I think that's the way to pipe stderr to stdout. --- Sebastian Trueg <trueg@informatik.uni-freiburg.de> wrote: > k3b produces a lot of output on stderr. You could > pipe that into a file with something like: > > k3b 2>&1 > file > > I think that's the way to pipe stderr to stdout. > The command: k3b > k3berr 2>&1 causes the file k3berr to be created but it is empty. __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new Resources site http://smallbusiness.yahoo.com/resources/ then could you please compile k3b 0.12beta1 from source and try that the same way since it seems the debian package has deaktivated debugging output. --- Sebastian Trueg <trueg@informatik.uni-freiburg.de> wrote: > then could you please compile k3b 0.12beta1 from > source and try that the same way since it seems the > debian package has deaktivated debugging output. > OK, .12beta1 has been compiled. Here's the stderr output: steve@sandbox:~$ cat k3berr QObject::connect: No such signal K3bFLACDecoderFactory::objectCreated(QObject*) QObject::connect: (sender name: 'unnamed') QObject::connect: (receiver name: 'unnamed') k3b: (K3bPluginManager) lib libk3bflacdecoder not a K3b plugin k3b: (K3bCdrecordProgram) checking for Debian cdrecord wrapper script. k3b: (K3bCdrecordProgram) Debian Wrapper script size fits. Checking file. k3b: (K3bCdrecordProgram) Found Debian Wrapper script. k3b: linux kernel version: 2.6.11.7 k3b: (K3bCdrecordProgram) Using cdrecord.mmap k3b: (K3bExternalBinManager) Cdrecord 2.1.1a01 features: gracetime, overburn, cdtext, clone, tao, cuefile, xamix, plain-atapi, hacked-atapi k3b: (K3bExternalBinManager) 2 1 1 a01 seems to be cdrecord version >= 1.11a02, using burnfree instead of burnproof k3b: (K3bExternalBinManager) seems to be cdrecord version >= 1.11a31, support for Just Link via burnfree driveroption k3b: /dev/hdc resolved to /dev/hdc k3b: /dev/hdc is block device (0) k3b: /dev/hdc seems to be cdrom k3b: (K3bDevice::Device) /dev/hdc: init() k3b: (K3bDevice::Device) /dev/hdc: GET_CONFIGURATION length: 4. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com is this an old drive? Becasue it returns a bogus length. Please try this version of k3bdevice.cpp. Maybe it solves the problem. Created attachment 11255 [details]
Patched k3bdevice.cpp source file.
--- Sebastian Trueg <trueg@informatik.uni-freiburg.de> wrote: > ------- Additional Comments From trueg informatik > uni-freiburg de 2005-05-29 17:32 ------- > Created an attachment (id=11255) > --> > (http://bugs.kde.org/attachment.cgi?id=11255&action=view) > Patched k3bdevice.cpp source file. > Yes, it's an old drive. Maybe 1999? I downloaded the source file and copied it to /home/steve/k3b-0.12beta2/libk3bdevice/k3bdevice.cpp I then did a ./configure and make and install. The symptoms are the same and the output is: steve@sandbox:~$ cat k3berr k3b: (K3bCdrecordProgram) checking for Debian cdrecord wrapper script. k3b: (K3bCdrecordProgram) Debian Wrapper script size fits. Checking file. k3b: (K3bCdrecordProgram) Found Debian Wrapper script. k3b: linux kernel version: 2.6.11.7 k3b: (K3bCdrecordProgram) Using cdrecord.mmap k3b: (K3bExternalBinManager) Cdrecord 2.1.1a01 features: gracetime, overburn, cdtext, clone, tao, cuefile, xamix, plain-atapi, hacked-atapi k3b: (K3bExternalBinManager) 2 1 1 a01 seems to be cdrecord version >= 1.11a02, using burnfree instead of burnproof k3b: (K3bExternalBinManager) seems to be cdrecord version >= 1.11a31, support for Just Link via burnfree driveroption k3b: /dev/hdc resolved to /dev/hdc k3b: /dev/hdc is block device (0) k3b: /dev/hdc seems to be cdrom k3b: (K3bDevice::Device) /dev/hdc: init() k3b: (K3bDevice::Device) /dev/hdc: GET_CONFIGURATION length: 4. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Created attachment 11261 [details]
Hopefully better feature detection.
please try the new patch. just copy it to libk3bdevice and only compile and install in libk3bdevice. K3B now starts and does not hang. Whoopee! Here's the output. sandbox:~# cat k3berr k3b: (K3bCdrecordProgram) checking for Debian cdrecord wrapper script. k3b: (K3bCdrecordProgram) Debian Wrapper script size fits. Checking file. k3b: (K3bCdrecordProgram) Found Debian Wrapper script. k3b: linux kernel version: 2.6.11.7 k3b: (K3bCdrecordProgram) Using cdrecord.mmap k3b: (K3bExternalBinManager) Cdrecord 2.1.1a01 features: gracetime, overburn, cdtext, clone, tao, cuefile, xamix, plain-atapi, hacked-atapi k3b: (K3bExternalBinManager) 2 1 1 a01 seems to be cdrecord version >= 1.11a02, using burnfree instead of burnproof k3b: (K3bExternalBinManager) seems to be cdrecord version >= 1.11a31, support for Just Link via burnfree driveroption k3b: /dev/hdc resolved to /dev/hdc k3b: /dev/hdc is block device (0) k3b: /dev/hdc seems to be cdrom k3b: (K3bDevice::Device) /dev/hdc: init() k3b: (K3bDevice::ScsiCommand) failed: k3b: command: MODE SENSE (5a) k3b: errorcode: 70 k3b: sense key: ILLEGAL REQUEST (5) k3b: asc: 24 k3b: ascq: 0 k3b: (K3bDevice::Device) /dev/hdc: MODE SENSE length det failed. k3b: (K3bDevice::Device) /dev/hdc: modeSense 0x05 failed! k3b: (K3bDevice::Device) /dev/hdc: Cannot check write modes. k3b: (K3bDevice::ScsiCommand) failed: k3b: command: MODE SENSE (5a) k3b: errorcode: 70 k3b: sense key: ILLEGAL REQUEST (5) k3b: asc: 24 k3b: ascq: 0 k3b: (K3bDevice::Device) /dev/hdc: MODE SENSE length det failed. k3b: (K3bDevice::DeviceManager) Link: /dev/cdrom -> /dev/hdc k3b: (K3bDevice::DeviceManager) SCANNING FOR GENERIC DEVICES. k3b: Could not resolve /dev/sg0 k3b: (K3bDevice::Device) Error: could not open device /dev/sg0for reading k3b: could not open device /dev/sg0 (No such file or directory) k3b: Could not resolve /dev/sg1 k3b: (K3bDevice::Device) Error: could not open device /dev/sg1for reading k3b: could not open device /dev/sg1 (No such file or directory) k3b: Could not resolve /dev/sg2 k3b: (K3bDevice::Device) Error: could not open device /dev/sg2for reading k3b: could not open device /dev/sg2 (No such file or directory) k3b: Could not resolve /dev/sg3 k3b: (K3bDevice::Device) Error: could not open device /dev/sg3for reading k3b: could not open device /dev/sg3 (No such file or directory) k3b: Could not resolve /dev/sg4 k3b: (K3bDevice::Device) Error: could not open device /dev/sg4for reading k3b: could not open device /dev/sg4 (No such file or directory) k3b: Could not resolve /dev/sg5 k3b: (K3bDevice::Device) Error: could not open device /dev/sg5for reading k3b: could not open device /dev/sg5 (No such file or directory) k3b: Could not resolve /dev/sg6 k3b: (K3bDevice::Device) Error: could not open device /dev/sg6for reading k3b: could not open device /dev/sg6 (No such file or directory) k3b: Could not resolve /dev/sg7 k3b: (K3bDevice::Device) Error: could not open device /dev/sg7for reading k3b: could not open device /dev/sg7 (No such file or directory) k3b: Could not resolve /dev/sg8 k3b: (K3bDevice::Device) Error: could not open device /dev/sg8for reading k3b: could not open device /dev/sg8 (No such file or directory) k3b: Could not resolve /dev/sg9 k3b: (K3bDevice::Device) Error: could not open device /dev/sg9for reading k3b: could not open device /dev/sg9 (No such file or directory) k3b: Could not resolve /dev/sg10 k3b: (K3bDevice::Device) Error: could not open device /dev/sg10for reading k3b: could not open device /dev/sg10 (No such file or directory) k3b: Could not resolve /dev/sg11 k3b: (K3bDevice::Device) Error: could not open device /dev/sg11for reading k3b: could not open device /dev/sg11 (No such file or directory) k3b: Could not resolve /dev/sg12 k3b: (K3bDevice::Device) Error: could not open device /dev/sg12for reading k3b: could not open device /dev/sg12 (No such file or directory) k3b: Could not resolve /dev/sg13 k3b: (K3bDevice::Device) Error: could not open device /dev/sg13for reading k3b: could not open device /dev/sg13 (No such file or directory) k3b: Could not resolve /dev/sg14 k3b: (K3bDevice::Device) Error: could not open device /dev/sg14for reading k3b: could not open device /dev/sg14 (No such file or directory) k3b: Could not resolve /dev/sg15 k3b: (K3bDevice::Device) Error: could not open device /dev/sg15for reading k3b: could not open device /dev/sg15 (No such file or directory) k3b: (K3bDevice::DeviceManager) scanning fstab: /dev/hda1 k3b: /dev/hda1 resolved to /dev/hda1 k3b: /dev/hda1 is block device (1) k3b: (K3bDevice::ScsiCommand) failed: k3b: command: INQUIRY (12) k3b: errorcode: 0 k3b: sense key: NO SENSE (2) k3b: asc: 0 k3b: ascq: 0 k3b: ERROR: (K3bDevice::Device) Unable to do inquiry. k3b: (K3bDevice::DeviceManager) scanning fstab: /dev/hda2 k3b: /dev/hda2 resolved to /dev/hda2 k3b: /dev/hda2 is block device (2) k3b: (K3bDevice::ScsiCommand) failed: k3b: command: INQUIRY (12) k3b: errorcode: 0 k3b: sense key: NO SENSE (2) k3b: asc: 0 k3b: ascq: 0 k3b: ERROR: (K3bDevice::Device) Unable to do inquiry. k3b: (K3bDevice::DeviceManager) scanning fstab: /dev/hdb1 k3b: /dev/hdb1 resolved to /dev/hdb1 k3b: /dev/hdb1 is block device (65) k3b: (K3bDevice::ScsiCommand) failed: k3b: command: INQUIRY (12) k3b: errorcode: 0 k3b: sense key: NO SENSE (2) k3b: asc: 0 k3b: ascq: 0 k3b: ERROR: (K3bDevice::Device) Unable to do inquiry. k3b: (K3bDevice::DeviceManager) scanning fstab: /dev/hdb2 k3b: /dev/hdb2 resolved to /dev/hdb2 k3b: /dev/hdb2 is block device (66) k3b: (K3bDevice::ScsiCommand) failed: k3b: command: INQUIRY (12) k3b: errorcode: 0 k3b: sense key: NO SENSE (2) k3b: asc: 0 k3b: ascq: 0 k3b: ERROR: (K3bDevice::Device) Unable to do inquiry. k3b: (K3bDevice::DeviceManager) scanning fstab: proc k3b: Could not resolve proc k3b: (K3bDevice::Device) Error: could not open device procfor reading k3b: could not open device proc (No such file or directory) k3b: Could not resolve proc k3b: proc resolved to proc k3b: (K3bDevice::Device) Error: could not open device procfor reading k3b: could not open device proc (No such file or directory) k3b: (K3bDevice::DeviceManager) scanning fstab: /dev/fd0 k3b: /dev/fd0 resolved to /dev/fd0 k3b: /dev/fd0 is block device (0) k3b: (K3bDevice::ScsiCommand) failed: k3b: command: INQUIRY (12) k3b: errorcode: 0 k3b: sense key: NO SENSE (2) k3b: asc: 0 k3b: ascq: 0 k3b: ERROR: (K3bDevice::Device) Unable to do inquiry. k3b: (K3bDevice::DeviceManager) scanning fstab: /dev/cdrom k3b: (K3bDevice::DeviceManager) found device for /dev/cdrom: /dev/hdc k3b: (K3bDevice::DeviceManager) scanning fstab: /dev/sg1 k3b: Could not resolve /dev/sg1 k3b: (K3bDevice::Device) Error: could not open device /dev/sg1for reading k3b: could not open device /dev/sg1 (No such file or directory) k3b: Could not resolve /dev/sg1 k3b: /dev/sg1 resolved to /dev/sg1 k3b: (K3bDevice::Device) Error: could not open device /dev/sg1for reading k3b: could not open device /dev/sg1 (No such file or directory) k3b: (K3bDevice::DeviceManager) scanning fstab: /dev/sda1 k3b: Could not resolve /dev/sda1 k3b: (K3bDevice::Device) Error: could not open device /dev/sda1for reading k3b: could not open device /dev/sda1 (No such file or directory) k3b: Could not resolve /dev/sda1 k3b: /dev/sda1 resolved to /dev/sda1 k3b: (K3bDevice::Device) Error: could not open device /dev/sda1for reading k3b: could not open device /dev/sda1 (No such file or directory) k3b: (K3bDevice::DeviceManager) scanning fstab: tmpfs k3b: Could not resolve tmpfs k3b: (K3bDevice::Device) Error: could not open device tmpfsfor reading k3b: could not open device tmpfs (No such file or directory) k3b: Could not resolve tmpfs k3b: tmpfs resolved to tmpfs k3b: (K3bDevice::Device) Error: could not open device tmpfsfor reading k3b: could not open device tmpfs (No such file or directory) k3b: (K3bDevice::DeviceManager) scanning fstab: usbfs k3b: Could not resolve usbfs k3b: (K3bDevice::Device) Error: could not open device usbfsfor reading k3b: could not open device usbfs (No such file or directory) k3b: Could not resolve usbfs k3b: usbfs resolved to usbfs k3b: (K3bDevice::Device) Error: could not open device usbfsfor reading k3b: could not open device usbfs (No such file or directory) k3b: Could not resolve /dev/scd0 k3b: /dev/scd0 resolved to /dev/scd0 k3b: (K3bDevice::Device) Error: could not open device /dev/scd0for reading k3b: could not open device /dev/scd0 (No such file or directory) k3b: /dev/hdb resolved to /dev/hdb k3b: /dev/hdb is block device (64) k3b: (K3bDevice::ScsiCommand) failed: k3b: command: INQUIRY (12) k3b: errorcode: 0 k3b: sense key: NO SENSE (2) k3b: asc: 0 k3b: ascq: 0 k3b: ERROR: (K3bDevice::Device) Unable to do inquiry. k3b: (K3bDevice::DeviceManager) scanning fstab: /dev/hda1 k3b: /dev/hda1 resolved to /dev/hda1 k3b: /dev/hda1 is block device (1) k3b: (K3bDevice::ScsiCommand) failed: k3b: command: INQUIRY (12) k3b: errorcode: 0 k3b: sense key: NO SENSE (2) k3b: asc: 0 k3b: ascq: 0 k3b: ERROR: (K3bDevice::Device) Unable to do inquiry. k3b: (K3bDevice::DeviceManager) scanning fstab: /dev/hda2 k3b: /dev/hda2 resolved to /dev/hda2 k3b: /dev/hda2 is block device (2) k3b: (K3bDevice::ScsiCommand) failed: k3b: command: INQUIRY (12) k3b: errorcode: 0 k3b: sense key: NO SENSE (2) k3b: asc: 0 k3b: ascq: 0 k3b: ERROR: (K3bDevice::Device) Unable to do inquiry. k3b: (K3bDevice::DeviceManager) scanning fstab: /dev/hdb1 k3b: /dev/hdb1 resolved to /dev/hdb1 k3b: /dev/hdb1 is block device (65) k3b: (K3bDevice::ScsiCommand) failed: k3b: command: INQUIRY (12) k3b: errorcode: 0 k3b: sense key: NO SENSE (2) k3b: asc: 0 k3b: ascq: 0 k3b: ERROR: (K3bDevice::Device) Unable to do inquiry. k3b: (K3bDevice::DeviceManager) scanning fstab: /dev/hdb2 k3b: /dev/hdb2 resolved to /dev/hdb2 k3b: /dev/hdb2 is block device (66) k3b: (K3bDevice::ScsiCommand) failed: k3b: command: INQUIRY (12) k3b: errorcode: 0 k3b: sense key: NO SENSE (2) k3b: asc: 0 k3b: ascq: 0 k3b: ERROR: (K3bDevice::Device) Unable to do inquiry. k3b: (K3bDevice::DeviceManager) scanning fstab: proc k3b: Could not resolve proc k3b: (K3bDevice::Device) Error: could not open device procfor reading k3b: could not open device proc (No such file or directory) k3b: Could not resolve proc k3b: proc resolved to proc k3b: (K3bDevice::Device) Error: could not open device procfor reading k3b: could not open device proc (No such file or directory) k3b: (K3bDevice::DeviceManager) scanning fstab: /dev/fd0 k3b: /dev/fd0 resolved to /dev/fd0 k3b: /dev/fd0 is block device (0) k3b: (K3bDevice::ScsiCommand) failed: k3b: command: INQUIRY (12) k3b: errorcode: 0 k3b: sense key: NO SENSE (2) k3b: asc: 0 k3b: ascq: 0 k3b: ERROR: (K3bDevice::Device) Unable to do inquiry. k3b: (K3bDevice::DeviceManager) scanning fstab: /dev/cdrom k3b: (K3bDevice::DeviceManager) found device for /dev/cdrom: /dev/hdc k3b: (K3bDevice::DeviceManager) scanning fstab: /dev/sg1 k3b: Could not resolve /dev/sg1 k3b: (K3bDevice::Device) Error: could not open device /dev/sg1for reading k3b: could not open device /dev/sg1 (No such file or directory) k3b: Could not resolve /dev/sg1 k3b: /dev/sg1 resolved to /dev/sg1 k3b: (K3bDevice::Device) Error: could not open device /dev/sg1for reading k3b: could not open device /dev/sg1 (No such file or directory) k3b: (K3bDevice::DeviceManager) scanning fstab: /dev/sda1 k3b: Could not resolve /dev/sda1 k3b: (K3bDevice::Device) Error: could not open device /dev/sda1for reading k3b: could not open device /dev/sda1 (No such file or directory) k3b: Could not resolve /dev/sda1 k3b: /dev/sda1 resolved to /dev/sda1 k3b: (K3bDevice::Device) Error: could not open device /dev/sda1for reading k3b: could not open device /dev/sda1 (No such file or directory) k3b: (K3bDevice::DeviceManager) scanning fstab: tmpfs k3b: Could not resolve tmpfs k3b: (K3bDevice::Device) Error: could not open device tmpfsfor reading k3b: could not open device tmpfs (No such file or directory) k3b: Could not resolve tmpfs k3b: tmpfs resolved to tmpfs k3b: (K3bDevice::Device) Error: could not open device tmpfsfor reading k3b: could not open device tmpfs (No such file or directory) k3b: (K3bDevice::DeviceManager) scanning fstab: usbfs k3b: Could not resolve usbfs k3b: (K3bDevice::Device) Error: could not open device usbfsfor reading k3b: could not open device usbfs (No such file or directory) k3b: Could not resolve usbfs k3b: usbfs resolved to usbfs k3b: (K3bDevice::Device) Error: could not open device usbfsfor reading k3b: could not open device usbfs (No such file or directory) k3b: (K3bCdrecordProgram) checking for Debian cdrecord wrapper script. k3b: (K3bCdrecordProgram) Debian Wrapper script size fits. Checking file. k3b: (K3bCdrecordProgram) Found Debian Wrapper script. k3b: linux kernel version: 2.6.11.7 k3b: (K3bCdrecordProgram) Using cdrecord.mmap k3b: (K3bExternalBinManager) Cdrecord 2.1.1a01 features: gracetime, overburn, cdtext, clone, tao, cuefile, xamix, plain-atapi, hacked-atapi k3b: (K3bExternalBinManager) 2 1 1 a01 seems to be cdrecord version >= 1.11a02, using burnfree instead of burnproof k3b: (K3bExternalBinManager) seems to be cdrecord version >= 1.11a31, support for Just Link via burnfree driveroption k3b: Devices: k3b: ------------------------------ k3b: Blockdevice: /dev/hdc k3b: Generic device: k3b: Vendor: ATAPI k3b: Description: 50X CDROM k3b: Version: 1.30 k3b: MountDevice: /dev/cdrom k3b: Mountpoint: /cdrom k3b: Write speed: 0 k3b: Profiles: Error k3b: Devicetype: CD-ROM k3b: Writing modes: None k3b: Reader aliases: /dev/hdc, /dev/cdrom k3b: ------------------------------ k3b: (K3bFileTreeView::addCdDeviceBranches) k3b: (K3bFileTreeView::addCdDeviceBranches) done k3b: (K3bFileTreeView::addCdDeviceBranches) k3b: (K3bFileTreeView::addCdDeviceBranches) done k3b: linux kernel version: 2.6.11.7 k3b: linux kernel version: 2.6.11.7 k3b: (K3bCore) System problems: k3b: - none - sandbox:~# __________________________________ Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html SVN commit 419745 by trueg: Only request the features from the device that K3b acually uses instead of the list of all features. BUGS: 105489 M +44 -411 k3bdevice.cpp |