After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 318401 - Can't play DVDs on a pmount setup
Can't play DVDs on a pmount setup
Status: RESOLVED FIXED
Product: totem
Classification: Core
Component: general
1.2.x
Other Linux
: Normal major
: ---
Assigned To: General Totem maintainer(s)
General Totem maintainer(s)
: 333677 (view as bug list)
Depends on: 319689 320663
Blocks:
 
 
Reported: 2005-10-10 00:22 UTC by Sylvain BERTRAND
Modified: 2006-03-09 14:46 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12


Attachments
totem-not-in-fstab.patch (1.53 KB, patch)
2005-10-13 03:34 UTC, Bastien Nocera
none Details | Review
fix (4.50 KB, patch)
2005-10-23 16:53 UTC, Ronald Bultje
none Details | Review
oops (4.50 KB, patch)
2005-10-23 20:07 UTC, Ronald Bultje
none Details | Review
something else (4.81 KB, patch)
2005-10-23 20:34 UTC, Ronald Bultje
none Details | Review

Description Sylvain BERTRAND 2005-10-10 00:22:57 UTC
Distribution/Version: Gentoo 2005.1

1 - Disable the automounting options in gnome preferences.
2 - Put a video DVD in the DVD drive (it is *not* automagically mounted since it
was disable in the prefs).
3 - Open totem 1.2.0.
4 - In totem 1.2.0, in the file menu, click "play disc...".
5 - An error message is then displayed complaining about being unabled to find
the mount point of /dev/hdc (my DVD drive). My /etc/fstab is pure HAL/DBUS, then
it does not contains any entries for my DVD drive.
Comment 1 Sebastien Bacher 2005-10-10 22:13:33 UTC
that's a totem issue, reassigning
Comment 2 Sebastien Bacher 2005-10-10 22:47:02 UTC
This is due to src/plparse/totem-disc.c: cd_cache_get_dev_from_drives ()

"...
      mnt = gnome_vfs_drive_get_activation_uri (drive);
      if (mnt && strncmp (mnt, "file://", 7) == 0) {
        g_free (pdev2);
        *mountpoint = g_strdup (mnt + 7);
        g_free (mnt);
        gnome_vfs_drive_ref (drive);
        found = TRUE;
        break;
      } else if..."

gnome_vfs_drive_get_activation_uri () returns the mount-path for non-hal
gnomevfs, but NULL for an hal version (bug #312171), so the mountpoint is not
set by the function




Comment 3 Bastien Nocera 2005-10-11 16:39:19 UTC
Could you please get the output of list_cddrives /dev/hdc on that machine?
Comment 4 Sylvain BERTRAND 2005-10-11 20:32:05 UTC
Here is the output of "$ and #list_cddrives /dev/hdc" from the
nautilus-cd-burner 2.12.1 package with an empty DVD drive (video DVD output and
audio CD output below):
--------------------------------------------------------------------------------

** (process:23474): WARNING **: No HAL devices found for UDI
'/org/freedesktop/Hal/devices/storage_model_ASUS_DVD_ROM_E616'
name: ASUS DVD-ROM E616 device: /dev/hdc max_speed_read: 48
door: closed
type: CD Drive/DVD Drive
media type: Couldn't open media
Could not fully determine drive profile 0: Error reading disc information

** (process:23474): WARNING **: No HAL devices found for UDI
'/org/freedesktop/Hal/devices/storage_model_ASUS_DVD_ROM_E616'
media size: Could not be determined
CD-Recorder/SCSI devices only: max_speed_write: 0 id: /dev/hdc
--------------------------------------------------------------------------------
I run hal-0.5.4, dbus-0.36.2 and when using the hal-device-manager 0.5.4 I have
for my DVD drive the following lines:
block.device string /dev/hdc
...
info.udi string /org/freedesktop/Hal/devices/storage_model_ASUS_DVD_ROM_E616

================================================================================
Here is the output of "$ and #list_cddrives /dev/hdc" from the
nautilus-cd-burner 2.12.1 package with a video DVD inside the drive:
--------------------------------------------------------------------------------
name: ASUS DVD-ROM E616 device: /dev/hdc max_speed_read: 48
door: closed
type: CD Drive/DVD Drive
media type: DVD (has-data)
media size: 0.00 MiB
CD-Recorder/SCSI devices only: max_speed_write: 0 id: /dev/hdc

--------------------------------------------------------------------------------
================================================================================
Here is the output of "$ and #list_cddrives /dev/hdc" from the
nautilus-cd-burner 2.12.1 package with a audio CD inside the drive:
--------------------------------------------------------------------------------
name: ASUS DVD-ROM E616 device: /dev/hdc max_speed_read: 48
door: closed
type: CD Drive/DVD Drive
media type: Commercial CD or Audio CD (has-audio)
media size: 356.46 MiB approx. or 40 mins 34 secs
CD-Recorder/SCSI devices only: max_speed_write: 0 id: /dev/hdc

--------------------------------------------------------------------------------
Comment 5 Bastien Nocera 2005-10-12 13:25:45 UTC
Sorry, I got that all wrong (reminescence of maintaining nautilus-cd-burner).
I would have needed the output of "disc-test /dev/hdc" which is in the Totem
sources.
Comment 6 Sebastien Bacher 2005-10-12 14:48:28 UTC
Bastien, any reason to ignore my comments on this? If that's not the issue just
say it :)
Comment 7 Sylvain BERTRAND 2005-10-12 21:42:22 UTC
"$disc-test /dev/hdc" output with en empty DVD drive:
----------------------------------------------------------------------------------
Error: Failed to find mountpoint for device /dev/hdc in /etc/fstab

List of connected drives:
/dev/hda1
/dev/hda2
/dev/hda3
/dev/hdd1
/dev/hdc
List of mounted volumes:
/dev/hdd1
sysfs
usbfs
proc
shm
devpts
udev
rootfs
/dev/root
--------------------------------------------------------------------------------
================================================================================
"$disc-test /dev/hdc" with a video DVD(not mounted) in the drive:
----------------------------------------------------------------------------------
Error: Failed to find mountpoint for device /dev/hdc in /etc/fstab

List of connected drives:
/dev/hda1
/dev/hda2
/dev/hda3
/dev/hdd1
/dev/hdc
List of mounted volumes:
/dev/hdd1
sysfs
usbfs
proc
shm
devpts
udev
rootfs
/dev/root
--------------------------------------------------------------------------------
================================================================================
"$disc_test /dev/hdc" with a mounted video DVD:
--------------------------------------------------------------------------------
/dev/hdc contains a DVD
--------------------------------------------------------------------------------
================================================================================
"$disc_test /dev/hdc" with an audio CD(autodetected):
--------------------------------------------------------------------------------
/dev/hdc contains a Audio CD
--------------------------------------------------------------------------------
Comment 8 Bastien Nocera 2005-10-13 03:33:42 UTC
Sebastien, it might be the problem, but that doesn't give me a solution.

The patch attached below might work, but I bet Totem won't be able to mount the
DVD itself (try with disc_test again).
Comment 9 Bastien Nocera 2005-10-13 03:34:31 UTC
Created attachment 53396 [details] [review]
totem-not-in-fstab.patch

Don't require an activation URI to create a CdCache.
Comment 10 Sylvain BERTRAND 2005-10-16 19:51:41 UTC
Tested the patch against Totem 1.2.0, still not working (got the same error).
Comment 11 Bastien Nocera 2005-10-17 13:22:28 UTC
Is nautilus able to mount the device by itself?
What's the output of hal-device (you can remove everything but the section
/dev/hdc if you want)?
Comment 12 Sylvain BERTRAND 2005-10-18 22:40:27 UTC
Yes nautilus is able to mount the DVD/CD volume itself.
"$hal-device" output for /dev/hdc with an empty drive:
----------------------------------------------------------------------------------
9: udi = '/org/freedesktop/Hal/devices/storage_model_ASUS_DVD_ROM_E616'
  info.addons = { 'hald-addon-storage' } (string list)
  storage.policy.desired_mount_point = 'cdrom'  (string)
  storage.policy.mount_filesystem = 'auto'  (string)
  storage.policy.should_mount = true  (bool)
  block.storage_device =
'/org/freedesktop/Hal/devices/storage_model_ASUS_DVD_ROM_E616'  (string)
  info.udi = '/org/freedesktop/Hal/devices/storage_model_ASUS_DVD_ROM_E616' 
(string)
  storage.cdrom.write_speed = 0  (0x0)  (int)
  storage.cdrom.read_speed = 8448  (0x2100)  (int)
  storage.cdrom.support_media_changed = true  (bool)
  storage.cdrom.dvdplusrdl = false  (bool)
  storage.cdrom.dvdplusrw = false  (bool)
  storage.cdrom.dvdplusr = false  (bool)
  storage.cdrom.dvdram = false  (bool)
  storage.cdrom.dvdrw = false  (bool)
  storage.cdrom.dvdr = false  (bool)
  storage.cdrom.dvd = true  (bool)
  storage.cdrom.cdrw = false  (bool)
  storage.cdrom.cdr = false  (bool)
  storage.firmware_version = '2.0'  (string)
  storage.requires_eject = true  (bool)
  storage.hotpluggable = false  (bool)
  info.capabilities = { 'storage', 'block', 'storage.cdrom' } (string list)
  info.category = 'storage'  (string)
  info.product = 'ASUS DVD-ROM E616'  (string)
  storage.removable = true  (bool)
  storage.physical_device = '/org/freedesktop/Hal/devices/pci_1106_571_ide_1_0'
 (string)
  storage.drive_type = 'cdrom'  (string)
  storage.vendor = ''  (string)
  storage.model = 'ASUS DVD-ROM E616'  (string)
  storage.automount_enabled_hint = true  (bool)
  storage.media_check_enabled = true  (bool)
  storage.no_partitions_hint = true  (bool)
  storage.bus = 'ide'  (string)
  block.is_volume = false  (bool)
  block.minor = 0  (0x0)  (int)
  block.major = 22  (0x16)  (int)
  block.device = '/dev/hdc'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  info.parent = '/org/freedesktop/Hal/devices/pci_1106_571_ide_1_0'  (string)
  linux.sysfs_path_device = '/sys/block/hdc'  (string)
  linux.sysfs_path = '/sys/block/hdc'  (string)
-------------------------------------------------------------------------------
===============================================================================
"$hal-device" with a video DVD(not mounted) in the drive:
-------------------------------------------------------------------------------
0: udi = '/org/freedesktop/Hal/devices/volume_label_BLADE_RUNNER_16X9LB_D4_SIDE_A'
  info.udi =
'/org/freedesktop/Hal/devices/volume_label_BLADE_RUNNER_16X9LB_D4_SIDE_A'  (string)
  info.product = 'BLADE_RUNNER_16X9LB_D4_SIDE_A'  (string)
  volume.disc.is_svcd = false  (bool)
  volume.disc.is_vcd = false  (bool)
  volume.disc.is_videodvd = true  (bool)
  volume.disc.is_rewritable = false  (bool)
  volume.disc.is_appendable = false  (bool)
  volume.disc.is_blank = false  (bool)
  volume.disc.has_data = true  (bool)
  volume.disc.has_audio = false  (bool)
  volume.disc.type = 'dvd_rom'  (string)
  volume.size = 4514578432  (0x10d170000)  (uint64)
  volume.num_blocks = 8817536  (0x868b80)  (int)
  volume.block_size = 2048  (0x800)  (int)
  info.capabilities = { 'volume', 'block' } (string list)
  info.category = 'volume'  (string)
  volume.is_partition = true  (bool)
  volume.is_disc = true  (bool)
  volume.is_mounted = false  (bool)
  volume.mount_point = ''  (string)
  volume.label = 'BLADE_RUNNER_16X9LB_D4_SIDE_A'  (string)
  volume.uuid = ''  (string)
  volume.fsversion = ''  (string)
  volume.fsusage = 'filesystem'  (string)
  volume.fstype = 'udf'  (string)
  block.storage_device =
'/org/freedesktop/Hal/devices/storage_model_ASUS_DVD_ROM_E616'  (string)
  block.is_volume = true  (bool)
  block.minor = 0  (0x0)  (int)
  block.major = 22  (0x16)  (int)
  block.device = '/dev/hdc'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  info.parent = '/org/freedesktop/Hal/devices/storage_model_ASUS_DVD_ROM_E616' 
(string)
  linux.sysfs_path_device = '/sys/block/hdc/fakevolume'  (string)
  linux.sysfs_path = '/sys/block/hdc/fakevolume'  (string)


....


10: udi = '/org/freedesktop/Hal/devices/storage_model_ASUS_DVD_ROM_E616'
  info.addons = { 'hald-addon-storage' } (string list)
  storage.policy.desired_mount_point = 'cdrom'  (string)
  storage.policy.mount_filesystem = 'auto'  (string)
  storage.policy.should_mount = true  (bool)
  block.storage_device =
'/org/freedesktop/Hal/devices/storage_model_ASUS_DVD_ROM_E616'  (string)
  info.udi = '/org/freedesktop/Hal/devices/storage_model_ASUS_DVD_ROM_E616' 
(string)
  storage.cdrom.write_speed = 0  (0x0)  (int)
  storage.cdrom.read_speed = 8448  (0x2100)  (int)
  storage.cdrom.support_media_changed = true  (bool)
  storage.cdrom.dvdplusrdl = false  (bool)
  storage.cdrom.dvdplusrw = false  (bool)
  storage.cdrom.dvdplusr = false  (bool)
  storage.cdrom.dvdram = false  (bool)
  storage.cdrom.dvdrw = false  (bool)
  storage.cdrom.dvdr = false  (bool)
  storage.cdrom.dvd = true  (bool)
  storage.cdrom.cdrw = false  (bool)
  storage.cdrom.cdr = false  (bool)
  storage.firmware_version = '2.0'  (string)
  storage.requires_eject = true  (bool)
  storage.hotpluggable = false  (bool)
  info.capabilities = { 'storage', 'block', 'storage.cdrom' } (string list)
  info.category = 'storage'  (string)
  info.product = 'ASUS DVD-ROM E616'  (string)
  storage.removable = true  (bool)
  storage.physical_device = '/org/freedesktop/Hal/devices/pci_1106_571_ide_1_0'
 (string)
  storage.drive_type = 'cdrom'  (string)
  storage.vendor = ''  (string)
  storage.model = 'ASUS DVD-ROM E616'  (string)
  storage.automount_enabled_hint = true  (bool)
  storage.media_check_enabled = true  (bool)
  storage.no_partitions_hint = true  (bool)
  storage.bus = 'ide'  (string)
  block.is_volume = false  (bool)
  block.minor = 0  (0x0)  (int)
  block.major = 22  (0x16)  (int)
  block.device = '/dev/hdc'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  info.parent = '/org/freedesktop/Hal/devices/pci_1106_571_ide_1_0'  (string)
  linux.sysfs_path_device = '/sys/block/hdc'  (string)
  linux.sysfs_path = '/sys/block/hdc'  (string)
-------------------------------------------------------------------------------
===============================================================================
"$hal-device" with a nautilus mounted video DVD:
-------------------------------------------------------------------------------
0: udi = '/org/freedesktop/Hal/devices/volume_label_BLADE_RUNNER_16X9LB_D4_SIDE_A'
  info.udi =
'/org/freedesktop/Hal/devices/volume_label_BLADE_RUNNER_16X9LB_D4_SIDE_A'  (string)
  info.product = 'BLADE_RUNNER_16X9LB_D4_SIDE_A'  (string)
  volume.disc.is_svcd = false  (bool)
  volume.disc.is_vcd = false  (bool)
  volume.disc.is_videodvd = true  (bool)
  volume.disc.is_rewritable = false  (bool)
  volume.disc.is_appendable = false  (bool)
  volume.disc.is_blank = false  (bool)
  volume.disc.has_data = true  (bool)
  volume.disc.has_audio = false  (bool)
  volume.disc.type = 'dvd_rom'  (string)
  volume.size = 4514578432  (0x10d170000)  (uint64)
  volume.num_blocks = 8817536  (0x868b80)  (int)
  volume.block_size = 2048  (0x800)  (int)
  info.capabilities = { 'volume', 'block' } (string list)
  info.category = 'volume'  (string)
  volume.is_partition = true  (bool)
  volume.is_disc = true  (bool)
  volume.is_mounted = true  (bool)
  volume.mount_point = '/media/hdc'  (string)
  volume.label = 'BLADE_RUNNER_16X9LB_D4_SIDE_A'  (string)
  volume.uuid = ''  (string)
  volume.fsversion = ''  (string)
  volume.fsusage = 'filesystem'  (string)
  volume.fstype = 'udf'  (string)
  block.storage_device =
'/org/freedesktop/Hal/devices/storage_model_ASUS_DVD_ROM_E616'  (string)
  block.is_volume = true  (bool)
  block.minor = 0  (0x0)  (int)
  block.major = 22  (0x16)  (int)
  block.device = '/dev/hdc'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  info.parent = '/org/freedesktop/Hal/devices/storage_model_ASUS_DVD_ROM_E616' 
(string)
  linux.sysfs_path_device = '/sys/block/hdc/fakevolume'  (string)
  linux.sysfs_path = '/sys/block/hdc/fakevolume'  (string)


...

10: udi = '/org/freedesktop/Hal/devices/storage_model_ASUS_DVD_ROM_E616'
  info.addons = { 'hald-addon-storage' } (string list)
  storage.policy.desired_mount_point = 'cdrom'  (string)
  storage.policy.mount_filesystem = 'auto'  (string)
  storage.policy.should_mount = true  (bool)
  block.storage_device =
'/org/freedesktop/Hal/devices/storage_model_ASUS_DVD_ROM_E616'  (string)
  info.udi = '/org/freedesktop/Hal/devices/storage_model_ASUS_DVD_ROM_E616' 
(string)
  storage.cdrom.write_speed = 0  (0x0)  (int)
  storage.cdrom.read_speed = 8448  (0x2100)  (int)
  storage.cdrom.support_media_changed = true  (bool)
  storage.cdrom.dvdplusrdl = false  (bool)
  storage.cdrom.dvdplusrw = false  (bool)
  storage.cdrom.dvdplusr = false  (bool)
  storage.cdrom.dvdram = false  (bool)
  storage.cdrom.dvdrw = false  (bool)
  storage.cdrom.dvdr = false  (bool)
  storage.cdrom.dvd = true  (bool)
  storage.cdrom.cdrw = false  (bool)
  storage.cdrom.cdr = false  (bool)
  storage.firmware_version = '2.0'  (string)
  storage.requires_eject = true  (bool)
  storage.hotpluggable = false  (bool)
  info.capabilities = { 'storage', 'block', 'storage.cdrom' } (string list)
  info.category = 'storage'  (string)
  info.product = 'ASUS DVD-ROM E616'  (string)
  storage.removable = true  (bool)
  storage.physical_device = '/org/freedesktop/Hal/devices/pci_1106_571_ide_1_0'
 (string)
  storage.drive_type = 'cdrom'  (string)
  storage.vendor = ''  (string)
  storage.model = 'ASUS DVD-ROM E616'  (string)
  storage.automount_enabled_hint = true  (bool)
  storage.media_check_enabled = true  (bool)
  storage.no_partitions_hint = true  (bool)
  storage.bus = 'ide'  (string)
  block.is_volume = false  (bool)
  block.minor = 0  (0x0)  (int)
  block.major = 22  (0x16)  (int)
  block.device = '/dev/hdc'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  info.parent = '/org/freedesktop/Hal/devices/pci_1106_571_ide_1_0'  (string)
  linux.sysfs_path_device = '/sys/block/hdc'  (string)
  linux.sysfs_path = '/sys/block/hdc'  (string)
-------------------------------------------------------------------------------
===============================================================================
"$hal-device" with an autodetected audio CD in the drive:
-------------------------------------------------------------------------------
0: udi = '/org/freedesktop/Hal/devices/volume_part_1_size_325468160'
  info.udi = '/org/freedesktop/Hal/devices/volume_part_1_size_325468160'  (string)
  volume.disc.is_rewritable = false  (bool)
  volume.disc.is_appendable = false  (bool)
  volume.disc.is_blank = false  (bool)
  volume.disc.has_data = false  (bool)
  volume.disc.has_audio = true  (bool)
  volume.disc.type = 'cd_rom'  (string)
  volume.size = 325468160  (0x13664000)  (uint64)
  volume.num_blocks = 635680  (0x9b320)  (int)
  volume.block_size = 2048  (0x800)  (int)
  info.capabilities = { 'volume', 'block' } (string list)
  info.category = 'volume'  (string)
  volume.is_partition = true  (bool)
  volume.is_disc = true  (bool)
  volume.is_mounted = false  (bool)
  volume.mount_point = ''  (string)
  volume.label = ''  (string)
  volume.uuid = ''  (string)
  volume.fsversion = ''  (string)
  volume.fsusage = ''  (string)
  volume.fstype = ''  (string)
  block.storage_device =
'/org/freedesktop/Hal/devices/storage_model_ASUS_DVD_ROM_E616'  (string)
  block.is_volume = true  (bool)
  block.minor = 0  (0x0)  (int)
  block.major = 22  (0x16)  (int)
  block.device = '/dev/hdc'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  info.parent = '/org/freedesktop/Hal/devices/storage_model_ASUS_DVD_ROM_E616' 
(string)
  linux.sysfs_path_device = '/sys/block/hdc/fakevolume'  (string)
  linux.sysfs_path = '/sys/block/hdc/fakevolume'  (string)


...


10: udi = '/org/freedesktop/Hal/devices/storage_model_ASUS_DVD_ROM_E616'
  info.addons = { 'hald-addon-storage' } (string list)
  storage.policy.desired_mount_point = 'cdrom'  (string)
  storage.policy.mount_filesystem = 'auto'  (string)
  storage.policy.should_mount = true  (bool)
  block.storage_device =
'/org/freedesktop/Hal/devices/storage_model_ASUS_DVD_ROM_E616'  (string)
  info.udi = '/org/freedesktop/Hal/devices/storage_model_ASUS_DVD_ROM_E616' 
(string)
  storage.cdrom.write_speed = 0  (0x0)  (int)
  storage.cdrom.read_speed = 8448  (0x2100)  (int)
  storage.cdrom.support_media_changed = true  (bool)
  storage.cdrom.dvdplusrdl = false  (bool)
  storage.cdrom.dvdplusrw = false  (bool)
  storage.cdrom.dvdplusr = false  (bool)
  storage.cdrom.dvdram = false  (bool)
  storage.cdrom.dvdrw = false  (bool)
  storage.cdrom.dvdr = false  (bool)
  storage.cdrom.dvd = true  (bool)
  storage.cdrom.cdrw = false  (bool)
  storage.cdrom.cdr = false  (bool)
  storage.firmware_version = '2.0'  (string)
  storage.requires_eject = true  (bool)
  storage.hotpluggable = false  (bool)
  info.capabilities = { 'storage', 'block', 'storage.cdrom' } (string list)
  info.category = 'storage'  (string)
  info.product = 'ASUS DVD-ROM E616'  (string)
  storage.removable = true  (bool)
  storage.physical_device = '/org/freedesktop/Hal/devices/pci_1106_571_ide_1_0'
 (string)
  storage.drive_type = 'cdrom'  (string)
  storage.vendor = ''  (string)
  storage.model = 'ASUS DVD-ROM E616'  (string)
  storage.automount_enabled_hint = true  (bool)
  storage.media_check_enabled = true  (bool)
  storage.no_partitions_hint = true  (bool)
  storage.bus = 'ide'  (string)
  block.is_volume = false  (bool)
  block.minor = 0  (0x0)  (int)
  block.major = 22  (0x16)  (int)
  block.device = '/dev/hdc'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  info.parent = '/org/freedesktop/Hal/devices/pci_1106_571_ide_1_0'  (string)
  linux.sysfs_path_device = '/sys/block/hdc'  (string)
  linux.sysfs_path = '/sys/block/hdc'  (string)
-------------------------------------------------------------------------------
Comment 13 Bastien Nocera 2005-10-19 07:42:22 UTC
We'll probably need to use gnome-vfs to mount the device...
Comment 14 Baptiste Mille-Mathias 2005-10-19 07:54:37 UTC
Had the same problem this week end.
Comment 15 Amaury Jacquot 2005-10-23 15:39:15 UTC
I have a similar problem here.
the fun thing is that thoggen is able to find and load the disc perfectly... 

here's my version of disc-test output:

sxpert src # ./disc-test  /dev/sr0
Error: Failed to find mountpoint for device /dev/sr0 in /etc/fstab

List of connected drives:
/dev/sda1
/dev/sda2
/dev/sda3
/dev/sda4
/dev/sda5
/dev/sda6
/dev/sda7
/dev/sda8
/dev/sr0
epia-storage:/mnt/storage
List of mounted volumes:
/dev/sda5
/dev/sda8
sysfs
binfmt_misc
usbfs
proc
epia-storage:/mnt/storage
shm
devpts
udev
debug
rootfs
/dev/root
Comment 16 Ronald Bultje 2005-10-23 16:53:31 UTC
Created attachment 53792 [details] [review]
fix

This should do the trick.
Comment 17 Mikhail Zabaluev 2005-10-23 19:03:26 UTC
The second patch doesn't seem to make any difference. When the DVD in the drive
is not mounted, the same error message is displayed.

./disc-test /dev/hdc
Error: Failed to find mountpoint for device /dev/hdc in /etc/fstab

List of connected drives:
/dev/hda1
/dev/hda2
/dev/hda3
/dev/hda5
/dev/hda6
/dev/hda7
/dev/hda8
/dev/hda9
/dev/hda10
/dev/hdc
Comment 18 Ronald Bultje 2005-10-23 20:07:50 UTC
Created attachment 53803 [details] [review]
oops

Without the 'break;' which screws up everything that it was supposed to fix...
Comment 19 Ronald Bultje 2005-10-23 20:13:58 UTC
Also, note to self, that error message which mentions a /dev/<chinese-text> and
/etc/somekitchentable is no longer accurate and, in addition, it totally sucks,
because it doesn't tell end users that their /etc/fstab is totally screwed if it
fails using the above patch and they should sue their distro maker or get off
their ass and use a real distro. So I should change that before I apply this. We
can possibly consider making it a g_warning() since it should never trigger in
any real case.
Comment 20 Ronald Bultje 2005-10-23 20:28:58 UTC
And according to a report on IRC, the URI is still NULL, even after mounting, so
I need to obtain the mountpoint differently...
Comment 21 Ronald Bultje 2005-10-23 20:34:59 UTC
Created attachment 53806 [details] [review]
something else

How about this?
Comment 22 Ronald Bultje 2005-10-23 20:53:52 UTC
I'm being told this one works, but ejects after the unmount. So either we want
to not use gnome-vfs to unmount, or we need to fix the fact that gnome-vfs
ejects-on-unmount.
Comment 23 Bastien Nocera 2005-10-23 22:55:38 UTC
Rewording the title. This problem only occurs on Ubuntu, as it's the only one to
use pmount right now...
Comment 24 Sylvain BERTRAND 2005-10-23 23:31:02 UTC
I use Gentoo 2005.1 with a pure DBUS/HAL/PMOUNT setup (no entry for my DVD drive
in fstab).
The latest patch cured the error message for 1 video DVD inserted, but
re-appeared on the 2nd video DVD inserted and even segfault.
In more details: I insert the first video DVD, I click on the "Play disc..."
menu item... it starts fine... I eject it with the "eject" menu item, change the
video DVD(or keep the same) and click again on the "Play disc..." menu item,
then the mount point message re-appears and after acknowledging it, totem segfaults.
Comment 25 Ronald Bultje 2005-10-24 01:04:59 UTC
I'm interested in a backtrace. I can't fix problems without backtraces.
Comment 26 Bastien Nocera 2005-10-24 15:23:23 UTC
gnome_vfs_drive_unmount uses gnome_vfs_volume_unmount, which calls
mount_unmount_operation with should_eject = FALSE, so i don't see why it should
eject the CD.
Comment 27 Sylvain BERTRAND 2005-10-25 00:12:54 UTC
Not a totem issue. It's a DBUS/HAL/PMOUNT/GNOME-VFS issue which corrupts
everything and makes Totem crash. If I play to mount/eject/mount/eject/mount a
video DVD, it creates new DVD drives towards infinity...
Till this issue is not corrected I cannot test properly the patch (which does
work til I have only one dvd drive and not plenty).
Comment 28 Sylvain BERTRAND 2005-10-27 20:31:19 UTC
I patched my gnome-vfs with the file provided in bug 319689. I fooled around a
bit with the "play disc..." menu item and eject menu item. I got a common use
case reporting the previous issue:
1 - start totem.
2 - Insert a video DVD in the drive.
3 - Click in the "play disc" menu item.
4 - Pause the movie.
5 - Click on the "eject" menu item.
6 - Keep or change the video DVD.
7 - Click on the "play disc" menu item.
Then you get the fstab mount point error.

After following the steps above I get easily errors playing with the eject and
"play disc" menu items:
*** glibc detected *** corrupted double-linked list: 0xb6f48818 ***
eject: unable to find and open the device: `\uffff\uffffX\uffff
eject: too many arguments

Sometimes, it crashes. When it crashed, I had different and meaning less
backtraces (but looked like gstreamer multithreading issues).
Comment 29 Ronald Bultje 2005-10-27 21:10:28 UTC
Please see my comment 25 for the glibc corruption message. Use "export
MALLOC_CHECK=2" (or the malloc(3) manpage, "man malloc 3") to make it abort
right at that point, and use gdb to get the actual backtrace (see
http://live.gnome.org/GettingTraces).
Comment 30 Ronald Bultje 2005-10-27 21:11:16 UTC
Actually, it is export MALLOC_CHECK_=2, mind the underscore...
Comment 31 Sylvain BERTRAND 2005-10-27 22:56:48 UTC
Here is the BT of one of my crash:


Comment 32 Bastien Nocera 2005-10-29 19:22:55 UTC
Don't change the strings if you want this patch to go in the current stable
branch. Looks alright otherwise.
Comment 33 Ronald Bultje 2005-10-31 23:22:53 UTC
Could Sylvain's crash be because of the g_value_take_string() instead of
g_value_set_string() in line 1441? Sylvain, can you change that line from take
into set and see if that fixes it? Thank you.

Bastien: once I've got a hold on that crash, I'll commit.
Comment 34 Sylvain BERTRAND 2005-11-01 18:32:35 UTC
Cannot make it crash anymore with the "take" into "set" modification... but I
still have the "fstab mount point issue".
So with the latest patch of bug 319689 (against gnome-vfs 2.12.1.1), the latest
patch provided (at the time of this message) of this very bug and the "take"
into "set modification (hal 0.5.4, dbus 0.36.2, gamin 0.1.7, pmount 0.9.6) as
far as I tried I couldn't make it crash anymore but I still got the "fstab mount
point issue" using the common use case I described above.
I can notice that video DVDs are mounted and umounted quickly before playing.
Comment 35 Ronald Bultje 2005-11-01 23:11:50 UTC
Can you literally quote the "fstab mount point issue" error that you get? I'll
have a look (and thanks a bunch for helping testing my patches so far!).
Comment 36 Sylvain BERTRAND 2005-11-02 00:40:12 UTC
I get (LANG=POSIX):
"Failed to play Audio/Video Disc
Failed to find mountpoint for /dev/hdc"

My fstab does not contain an entry for /dev/hdc since it's a pure pmount/hal setup.
Comment 37 Ronald Bultje 2005-11-03 17:36:00 UTC
gnome_vfs_drive_get_mounted_volumes() does not contain this mountpoint the
second time, but it does the first time. That is odd. That may be a gnomevfs bug...
Comment 38 Sylvain BERTRAND 2005-11-08 20:13:51 UTC
Got a new issue with my patched Totem and Gnome-vfs:
1 - Mount a video DVD.
2 - Start Totem.
3 - Click on the play disc menu item (showing a mounted video DVD).
I get the following error pop up:
"Failed to play Audio/Video Disc
Reason unknown"
Comment 39 Sylvain BERTRAND 2005-11-08 22:30:19 UTC
Here is the bt for the main thread for the above issue:

  • #0 __kernel_vsyscall
  • #1 poll
    from /lib/libc.so.6
  • #2 g_main_loop_get_context
    from /usr/lib/libglib-2.0.so.0
  • #3 ??
  • #4 ??
  • #5 ??
  • #6 g_main_context_query
    from /usr/lib/libglib-2.0.so.0
  • #7 ??
  • #8 ??
  • #9 ??
  • #10 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #11 ??
  • #12 ??
  • #13 ??
  • #14 ??
  • #15 ??
  • #16 ??
  • #17 g_thread_use_default_impl
    from /usr/lib/libglib-2.0.so.0
  • #18 glib_mem_profiler_table
    from /usr/lib/libglib-2.0.so.0
  • #19 ??
    from /usr/lib/libglib-2.0.so.0
  • #20 ??
  • #21 ??
  • #22 ??
    from /usr/lib/libglib-2.0.so.0
  • #23 ??
  • #24 ??
  • #25 ??
  • #26 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #27 ??
  • #28 _dl_runtime_resolve
    from /lib/ld-linux.so.2
  • #29 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #30 ??
  • #31 ??
  • #32 ??
  • #33 main
    at totem.c line 3510

Comment 40 Bastien Nocera 2005-11-24 21:57:32 UTC
Committed to CVS HEAD. If you can reproduce the crasher, and have a backtrace
with debug, please file a new bug.

2005-11-24  Bastien Nocera  <hadess@hadess.net>

        * src/plparse/totem-disc.c: (cd_cache_get_dev_from_drives),
        (cb_mount_done), (cd_cache_open_mountpoint), (cb_umount_done),
        (cd_cache_free), (cd_cache_disc_is_vcd), (cd_cache_disc_is_dvd):
        patch from Ronald Bultje <rbultje@ronald.bitfreak.net> to allow
        playback of DVDs and VCDs on a pmount setup (Closes: #318401)
Comment 41 Bastien Nocera 2006-03-09 14:46:42 UTC
*** Bug 333677 has been marked as a duplicate of this bug. ***