Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 301785 - media-sound/sound-juicer-2.28.1 can't find CD-ROM drives if gvfs was merged with USE="-hal"
Summary: media-sound/sound-juicer-2.28.1 can't find CD-ROM drives if gvfs was merged w...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-22 00:04 UTC by Tiago Madeira
Modified: 2011-05-27 15:05 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
error.log (error.log,11.48 KB, text/plain)
2010-04-18 16:29 UTC, Pacho Ramos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tiago Madeira 2010-01-22 00:04:50 UTC
I start Sound Juicer and it gives me: “No CD-ROM drives found. Sound Juicer could not find any CD-ROM drives to read.”

If I try “sound-juicer -d /dev/cdrom” it gives me: “Sound Juicer could not use the CD-ROM device '/dev/cdrom'. HAL daemon may not be running.”

- HAL is running...
/home/tiago # /etc/init.d/hald start
* WARNING: hald has already been started
(and after restarting it the problem continues)

- My CD driver is working fine, including audio CDs:
~ $ dcd d
Track  Time  (11 tracks / 65:45)
*  1   3:18
   2   7:41
   3   8:26
   4   3:57
   5   7:46
   6   3:33
   7   3:58
   8   2:37
   9   7:57
  10   6:47
  11   9:43

- It's not a permission problem (I am in all the groups related and the same problem occurs when I type sound-juicer as root)

- I don't use GNOME or anything related (I think this can be the reason, anyway I believe this is a bug).

Reproducible: Always

Steps to Reproduce:
1. $ sound-juicer
2. $ sound-juicer -d /dev/cdrom

Actual Results:  
Sound Juicer could not find CD-ROM drives.

Expected Results:  
Sound Juicer should work.

# emerge --info
Portage 2.2_rc61 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.32-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.32-gentoo-r1-i686-Intel-R-_Pentium-R-_Dual_CPU_T2390_@_1.86GHz-with-gentoo-2.1.6
Timestamp of tree: Tue, 19 Jan 2010 07:00:01 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.1.6
sys-apps/openrc:     0.6.0
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA Broadcom dlj-1.1 skype-eula"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="en ru pt pt_BR"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi alac alsa bash-completion berkdb bzip2 cdr cjk cleartype cli cracklib crypt cups cxx cyrillic dbus dhcpcd djvu dri dvd dvdr dvdread dvi encode ffmpeg flac fortran gdbm gif gmp gpm hal iconv id3 id3tag imap ipv6 jpeg kpathsea lame laptop latex mad midi mmx modules mp3 mpeg mudflap ncurses nls nptl nptlonly ogg oggflac opengl openmp openssl pam pcre pdf perl png pop pppd pulseaudio python qt3support readline reflection session smp smtp spl sqlite sse sse2 ssl ssse3 svg symlink sysfs taglib tcpd theora threads tiff truetype unicode v4l2 vim-syntax vim-with-x vorbis wavpack win32codecs x86 xcb xetex xml xorg zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru pt pt_BR" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-01-27 22:17:55 UTC
emerge -pv gvfs hal consolekit dbus please devicekit-disks ?
Comment 2 Pacho Ramos gentoo-dev 2010-02-18 18:45:23 UTC
Works fine here, please provide requested information. Would be also interesting to see if sound-juicer-2.26 works for you
Comment 3 Pacho Ramos gentoo-dev 2010-03-13 11:18:52 UTC
Please get back to us
Comment 4 Philipp Riegger 2010-04-12 10:54:28 UTC
Please reopen. I have the same problem with 2.28.2.

jesper ~ # emerge -pv gvfs hal consolekit dbus devicekit-disks

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-apps/dbus-1.2.24  USE="X -debug -doc (-selinux) -test" 0 kB [0]
[ebuild   R   ] sys-auth/consolekit-0.4.1  USE="-debug -doc pam policykit" 0 kB [0]
[ebuild   R   ] gnome-base/gvfs-1.6.0-r1  USE="archive avahi -bash-completion -bluetooth cdda -doc fuse gdu gnome gnome-keyring gphoto2 -hal http -samba udev" 0 kB [1]
[ebuild   R   ] sys-apps/hal-0.5.14-r2  USE="X acpi apm consolekit crypt -debug -dell -disk-partition -doc -laptop policykit (-selinux)" 0 kB [0]
[ebuild   R   ] sys-apps/devicekit-disks-009  USE="-bash-completion -debug -doc" 0 kB [0]

Total: 5 packages (5 reinstalls), Size of downloads: 0 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /mnt/space/gentoo/layman/gnome
jesper ~ # 


I will try adding USE="hal" to some random packages and see if it changes anything.
Comment 5 Philipp Riegger 2010-04-12 11:00:39 UTC
If I compile gvfs with USE="hal" it works. 
Comment 6 Pacho Ramos gentoo-dev 2010-04-12 20:04:15 UTC
Reopening then, seems that sound-juicer requires gvfs to be compiled with hal support 
Comment 7 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-04-12 20:55:58 UTC
do you have brasero installed on your machine ?
Comment 8 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-04-12 20:57:56 UTC
also could you paste your emerge -pv gvfs brasero sound-juicer ?
Comment 9 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-04-12 21:04:41 UTC
Also, sound-juicer -d /dev/cdrom is a bad idea, you should use sound-juicer --brasero-media-debug -d /dev/cdrom or /dev/sr0. I will actually show what libbrasero-media finds, the hal error popup is most likely a corner case in the code. Ftr, I get the popup here, but here is the output on the console:

$ sound-juicer --brasero-media-debug -d /dev/cdrom
(sound-juicer:21693): BraseroMedia-DEBUG: At brasero-media.c:530: Initializing Brasero-media 2.28.3
(sound-juicer:21693): BraseroMedia-DEBUG: At brasero-medium-monitor.c:657: Probing drives and media
(sound-juicer:21693): BraseroMedia-DEBUG: At brasero-medium-monitor.c:662: Found 1 drives
(sound-juicer:21693): BraseroMedia-DEBUG: At brasero-medium-monitor.c:378: Testing drive /dev/sr0
(sound-juicer:21693): BraseroMedia-DEBUG: At scsi-sg.c:177: Getting handle
(sound-juicer:21693): BraseroMedia-DEBUG: At scsi-sg.c:196: Handle ready
(sound-juicer:21693): BraseroMedia-DEBUG: At brasero-medium-monitor.c:387: Drive is optical
(sound-juicer:21693): BraseroMedia-DEBUG: At brasero-drive.c:1470: Initializing drive /dev/sr0 from device
(sound-juicer:21693): BraseroMedia-DEBUG: At brasero-drive.c:1109: Setting GDrive 0x82f6b0
(sound-juicer:21693): BraseroMedia-DEBUG: At brasero-drive.c:1039: Still initializing the drive properties
(sound-juicer:21693): BraseroMedia-DEBUG: At brasero-medium-monitor.c:678: Found 1 volumes
(sound-juicer:21693): BraseroMedia-DEBUG: At brasero-drive.c:1345: Trying to open device /dev/sr0
(sound-juicer:21693): BraseroMedia-DEBUG: At scsi-sg.c:177: Getting handle
(sound-juicer:21693): BraseroMedia-DEBUG: At scsi-sg.c:196: Handle ready
(sound-juicer:21693): BraseroMedia-DEBUG: At brasero-drive.c:1372: No medium inserted
(sound-juicer:21693): BraseroMedia-DEBUG: At brasero-drive.c:1398: Device ready
(sound-juicer:21693): BraseroMedia-DEBUG: At brasero-drive.c:1219: Checking supported profiles
(sound-juicer:21693): BraseroMedia-DEBUG: At scsi-get-configuration.c:125: Unaligned data (60) setting to max (65530)
(sound-juicer:21693): BraseroMedia-DEBUG: At scsi-get-configuration.c:160: Sizes mismatch asked 65530 / received 60
(sound-juicer:21693): BraseroMedia-DEBUG: At brasero-drive.c:1230: Dectected medium is 0x0
(sound-juicer:21693): BraseroMedia-DEBUG: At brasero-drive.c:1434: Drive caps are 127
(sound-juicer:21693): BraseroMedia-DEBUG: At brasero-drive.c:1049: Setting new probe
(sound-juicer:21693): BraseroMedia-DEBUG: At brasero-drive.c:949: Trying to open device /dev/sr0
(sound-juicer:21693): BraseroMedia-DEBUG: At scsi-sg.c:177: Getting handle
(sound-juicer:21693): BraseroMedia-DEBUG: At scsi-sg.c:196: Handle ready
(sound-juicer:21693): BraseroMedia-DEBUG: At brasero-drive.c:980: No medium inserted

-> One drive found but no medium found, which is correct and still getting the hal not running message even with hal running (although I have gvfs[-hal]).

Ftr, gvfs[hal] alone is useless since it is only used to build the cdda backend which you can get with gvfs[udev,cdda] as well.
Comment 10 David W Noon 2010-04-15 17:30:37 UTC
(In reply to comment #9)
> Ftr, gvfs[hal] alone is useless since it is only used to build the cdda backend
> which you can get with gvfs[udev,cdda] as well.

The current stable gvfs does not support udev.

I use stable packages, and my gvfs is built with both hal and cdda enabled.  I use this on both x86 and amd64 systems.  [Indeed, the USE flags for gvfs are identical on both machines.]  I only get the "No CD-ROM devices found." message box on the amd64 box; sound-juicer works properly on the x86 box.

Now, there is one significant difference: I use GNOME on the amd64 box and Xfce on the x86 box.  I shall test sound-juicer under GNOME on the x86 box later today.
Comment 11 David W Noon 2010-04-17 10:37:19 UTC
(In reply to comment #10)
> on the x86 box.  I shall test sound-juicer under GNOME on the x86 box later
> today.

The result is that sound-juicer works on the x86 box under both GNOME and Xfce, and it does not find the CD-ROM on the amd64 box under both GNOME and Xfce.

I looked through my recent rips on the amd64 box and found that it was working on 15th March 2010.  The only pieces of software involved with this problem that have changed since then are: sys-apps/dbus, updated on 10th April; and dev-libs/dbus-glib, updated on 5th April.  [Neither of these updates has yet been applied on my x86 boxes.]

Later today I shall mask off those new releases, one by one, and see if functionality is restored.
Comment 12 David W Noon 2010-04-18 14:20:10 UTC
(In reply to comment #11)
> Later today I shall mask off those new releases, one by one, and see if
> functionality is restored.

I firstly masked =sys-apps/dbus-1.2.24, so that dbus reverted to =sys-apps/dbus-1.2.3-r1.  After rebooting, this immediately restored functionality to sound-juicer, plus it solved a few other minor niggles in GNOME.

We seem to have our culprit.

Can anybody else do the same to confirm this?
Comment 13 Pacho Ramos gentoo-dev 2010-04-18 16:28:55 UTC
I get the error only if running with -d /dev/cdrom, working fine with /dev/sr0 instead
Comment 14 Pacho Ramos gentoo-dev 2010-04-18 16:29:41 UTC
Created attachment 228295 [details]
error.log

This is the output of "sound-juicer --brasero-media-debug -d /dev/cdrom"
Comment 15 David W Noon 2010-04-18 17:25:11 UTC
(In reply to comment #13)
> I get the error only if running with -d /dev/cdrom, working fine with /dev/sr0
> instead

This seems to be a somewhat distinct error from the one Tiago Madeira originally reported to start this bug.  The problem I had produced the same message box with "No CD-ROM drives found.", which causes me to believe that my problem is the same as Tiago's.  This was cured, at least for me, by downgrading dbus.

When this problem is worked around, I can select either of my optical drives by using the Edit|Preferences dialogue within sound-juicer.  I have ripped a CD today to confirm that sound-juicer is working fully once more.
Comment 16 Stefan Palme 2010-06-01 16:16:00 UTC
I have the same problem. Maybe it is relevant that I use my CD-ROM drive as IDE device:
> dmesg|grep hda
hda: HL-DT-STDVD-RAM GSA-H54L, ATAPI CD/DVD-ROM drive
hda: host max PIO5 wanted PIO255(auto-tune) selected PIO4
hda: UDMA/66 mode selected
ide-cd: hda: ATAPI 48X DVD-ROM DVD-R/RAM CD-R/RW drive, 2048kB Cache

> sound-juicer --brasero-media-debug -d /dev/hda
(sound-juicer:32414): BraseroMedia-DEBUG: At brasero-media.c:530: Initializing Brasero-media 2.28.3
(sound-juicer:32414): BraseroMedia-DEBUG: At brasero-medium-monitor.c:657: Probing drives and media
(sound-juicer:32414): BraseroMedia-DEBUG: At brasero-medium-monitor.c:662: Found 1 drives
(sound-juicer:32414): BraseroMedia-DEBUG: At brasero-medium-monitor.c:378: Testing drive /dev/fd0
(sound-juicer:32414): BraseroMedia-DEBUG: At scsi-sg.c:177: Getting handle
(sound-juicer:32414): BraseroMedia-DEBUG: At scsi-sg.c:180: No handle: Permission denied
(sound-juicer:32414): BraseroMedia-DEBUG: At brasero-medium-monitor.c:678: Found 0 volumes
Comment 17 Pacho Ramos gentoo-dev 2010-12-10 19:53:01 UTC
Maybe you could try with Gnome 2.32 :-/
Comment 18 Gilles Dartiguelongue (RETIRED) gentoo-dev 2011-01-28 16:46:14 UTC
Please get back to us.
Comment 19 Philipp Riegger 2011-02-02 21:21:19 UTC
Works for me with latest ~amd64 in-tree ebuilds (should be 2.23.something).
Comment 20 Cody Harris 2011-02-06 16:40:20 UTC
Having the same problem:
sound-juicer --brasero-media-debug -d /dev/sr0
BraseroMedia: (at brasero-media.c:533) Initializing Brasero-media 2.30.3
BraseroMedia: (at brasero-medium-monitor.c:657) Probing drives and media
BraseroMedia: (at brasero-medium-monitor.c:662) Found 0 drives
BraseroMedia: (at brasero-medium-monitor.c:678) Found 0 volumes

emerge -pv dbus hal gvfs hal consolekit dbus brasero sound-juicer
[ebuild   R   ] sys-apps/dbus-1.4.1  USE="X -debug -doc (-selinux) -static-libs -test" 0 kB [0]
[ebuild   R   ] sys-auth/consolekit-0.4.3  USE="pam policykit -debug -doc -test" 0 kB [0]
[ebuild   R   ] gnome-base/gvfs-1.6.6-r1  USE="avahi bash-completion bluetooth cdda fuse gphoto2 hal http iphone samba udev -archive -doc -gdu -gnome -gnome-keyring" 0 kB [0]
[ebuild   R   ] sys-apps/hal-0.5.14-r4  USE="X acpi crypt laptop -apm -debug -dell -disk-partition -doc (-selinux)" 0 kB [0]
[ebuild   R   ] app-cdr/brasero-2.30.3  USE="cdr css libburn -beagle -doc -nautilus -playlist -test" 0 kB [0]
[ebuild   R   ] media-sound/sound-juicer-2.28.2-r1  USE="-debug -test" 0 kB [?=>0]

on amd64
Comment 21 Oliver Charles 2011-05-27 15:05:58 UTC
Same here:


deimos linux # sound-juicer --brasero-media-debug -d /dev/cdrom
BraseroMedia: (at brasero-media.c:533) Initializing Brasero-media 2.32.1
BraseroMedia: (at brasero-medium-monitor.c:657) Probing drives and media
BraseroMedia: (at brasero-medium-monitor.c:662) Found 0 drives
BraseroMedia: (at brasero-medium-monitor.c:678) Found 0 volumes
deimos linux # emerge -pv dbus hal gvfs hal consolekit dbus brasero sound-juicer

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-apps/dbus-1.4.6  USE="X -debug -doc (-selinux) -static-libs -test" 0 kB
[ebuild   R   ] gnome-base/gvfs-1.6.7  USE="bluetooth gdu http udev -archive -avahi -bash-completion -cdda -doc -fuse -gnome -gnome-keyring -gphoto2 -ios -samba" 0 kB
[ebuild   R   ] sys-apps/hal-0.5.14-r4  USE="X acpi crypt -apm -debug -dell -disk-partition -doc -laptop (-selinux)" 7 kB
[ebuild   R   ] sys-auth/consolekit-0.4.4  USE="pam policykit -debug -doc -test" 0 kB
[ebuild   R   ] app-cdr/brasero-2.32.1  USE="cdr css libburn -doc (-introspection) -nautilus -playlist -test" 0 kB
[ebuild   R   ] media-sound/sound-juicer-2.32.0  USE="-debug -test" 0 kB

Total: 6 packages (6 reinstalls), Size of downloads: 7 kB

---


deimos linux # cdparanoia -vsQ
cdparanoia III release 10.2 (September 11, 2008)

Using cdda library version: 10.2
Using paranoia library version: 10.2
Checking /dev/cdrom for cdrom...
	Testing /dev/cdrom for SCSI/MMC interface
		SG_IO device: /dev/sr0

CDROM model sensed sensed: HL-DT-ST DVDRAM GSA-H66N CB00 

Checking for SCSI emulation...
	Drive is ATAPI (using SG_IO host adaptor emulation)

Checking for MMC style command set...
	Drive is MMC style
	DMA scatter/gather table entries: 1
	table entry size: 131072 bytes
	maximum theoretical transfer: 55 sectors
	Setting default read size to 27 sectors (63504 bytes).

Verifying CDDA command set...
	Expected command set reads OK.

Attempting to set cdrom to full speed... 
	drive returned OK.

Table of contents (audio tracks only):
track        length               begin        copy pre ch
===========================================================
  1.    18702 [04:09.27]        0 [00:00.00]    no   no  2
  2.    16248 [03:36.48]    18702 [04:09.27]    no   no  2
  3.    24430 [05:25.55]    34950 [07:46.00]    no   no  2
  4.    15820 [03:30.70]    59380 [13:11.55]    no   no  2
  5.    17837 [03:57.62]    75200 [16:42.50]    no   no  2
  6.    20340 [04:31.15]    93037 [20:40.37]    no   no  2
  7.    33783 [07:30.33]   113377 [25:11.52]    no   no  2
  8.    16467 [03:39.42]   147160 [32:42.10]    no   no  2
  9.    24268 [05:23.43]   163627 [36:21.52]    no   no  2
 10.    21417 [04:45.42]   187895 [41:45.20]    no   no  2
TOTAL  209312 [46:30.62]    (audio only)