Play Disc stopped working
#1
Hi folks,

I'm running 2:16.0~git20160220.1020-final-0trusty on ubuntu 14.04, kernel is 3.19.1. I had a usb bluray drive that got revoked and could not play encrypted material anymore. I bought a new drive and generally speaking it is working fine.

Code:
[   41.223181] usb 2-1: new SuperSpeed USB device number 2 using xhci_hcd
[   41.239723] usb 2-1: New USB device found, idVendor=0411, idProduct=01b8
[   41.239727] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   41.239730] usb 2-1: Product: BUFFALO Optical Drive
[   41.239731] usb 2-1: Manufacturer: BUFFALO
[   41.239733] usb 2-1: SerialNumber: 00000102A16C
[   41.257386] usb-storage 2-1:1.0: USB Mass Storage device detected
[   41.257469] scsi host4: usb-storage 2-1:1.0
[   41.257550] usbcore: registered new interface driver usb-storage
[   42.256301] scsi 4:0:0:0: CD-ROM            PIONEER  BD-RW   BDR-209M 8.11 PQ: 0 ANSI: 0
[   42.287795] sr 4:0:0:0: [sr0] scsi3-mmc drive: 125x/125x writer dvd-ram cd/rw xa/form2 cdda tray
[   42.287800] cdrom: Uniform CD-ROM driver Revision: 3.20
[   42.287989] sr 4:0:0:0: Attached scsi CD-ROM sr0
[   42.288284] sr 4:0:0:0: Attached scsi generic sg1 type 5

While troubleshooting the earlier drive I did a bunch of steps fooling around with symlinks to makemkv libmmbd. At one point I did apt-get remove on libaacs and kodi and added them back.

The problem I have now is the following:

- If I attach the drive and/or insert a disc, option "Play Disc" does not appear in kodi home screen
- Even though disc does not automount, entry <DISC_LABEL> appears in Videos -> Files list
- Clicking on that entry takes you to / (root)
- Bringing up context menu on that entry, there is the option "Play Disc" which does not do anything (even in debug log there is nothing), and option "Play" which, if selected at this point, hangs kodi
- However, if I mount the disc manually, either via 'mount -t udf' or 'udisks --poll-for-media', browsing <DISC_LABEL> works fine, and choosing the option "Play" from the context menu plays the disc. "Play Disc" still doesn't do anything, though
- If the disc is unmounted and I eject it by pressing the eject button on the drive itself, the disc get ejected, but the tray closes itself immediately. However if you press the same button while the disc is mounted, then the disc gets ejected and tray stays open

Effectively the issue looks very similar to this old bug.

Debug log with dbus component logging displays the following when a disc is inserted in the drive:

Code:
15:20:22 T:140092121344000   DEBUG: UDisks: DeviceChanged (/org/freedesktop/UDisks/devices/sda)
15:20:22 T:140092121344000   DEBUG: DBus: Creating message to org.freedesktop.UDisks on /org/freedesktop/UDisks/devices/sda with interface org.freedesktop.DBus.Properties and method GetAll
15:20:22 T:140092121344000   DEBUG: UDisks: DeviceChanged - DeviceUDI /org/freedesktop/UDisks/devices/sda: IsFileSystem false HasFileSystem  IsSystemInternal true IsMounted false IsRemovable false IsPartition false IsOptical false
15:20:22 T:140090223359744   DEBUG: Thread JobWorker 140090223359744 terminating (autodelete)
15:20:22 T:140090709878528   DEBUG: Thread JobWorker 140090709878528 terminating (autodelete)
15:20:22 T:140090726663936   DEBUG: Thread JobWorker 140090726663936 terminating (autodelete)
15:20:22 T:140092121344000   DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/ImageLib-x86_64-linux.so)
15:20:24 T:140092121344000   DEBUG: UDisks: DeviceAdded (/org/freedesktop/UDisks/devices/sr0)
15:20:24 T:140092121344000   DEBUG: DBus: Creating message to org.freedesktop.UDisks on /org/freedesktop/UDisks/devices/sr0 with interface org.freedesktop.DBus.Properties and method GetAll
15:20:24 T:140092121344000   DEBUG: UDisks: Is not able to mount DeviceUDI /org/freedesktop/UDisks/devices/sr0: IsFileSystem false HasFileSystem  IsSystemInternal false IsMounted false IsRemovable true IsPartition false IsOptical false
15:20:24 T:140092121344000   DEBUG: UDisks: DeviceAdded - DeviceUDI /org/freedesktop/UDisks/devices/sr0: IsFileSystem false HasFileSystem  IsSystemInternal false IsMounted false IsRemovable true IsPartition false IsOptical false
15:20:24 T:140092121344000   DEBUG: UDisks: DeviceChanged (/org/freedesktop/UDisks/devices/sr0)
15:20:24 T:140092121344000   DEBUG: DBus: Creating message to org.freedesktop.UDisks on /org/freedesktop/UDisks/devices/sr0 with interface org.freedesktop.DBus.Properties and method GetAll
15:20:24 T:140092121344000   DEBUG: UDisks: DeviceChanged - DeviceUDI /org/freedesktop/UDisks/devices/sr0: IsFileSystem false HasFileSystem  IsSystemInternal false IsMounted false IsRemovable true IsPartition false IsOptical false
15:20:27 T:140092121344000    INFO: CheckIdle - Closing session to http://feeds.feedburner.com (easy=0x7f69300010c0, multi=0x7f6930000f90)
15:20:28 T:140092121344000   DEBUG: UDisks: DeviceChanged (/org/freedesktop/UDisks/devices/sr0)
15:20:28 T:140092121344000   DEBUG: DBus: Creating message to org.freedesktop.UDisks on /org/freedesktop/UDisks/devices/sr0 with interface org.freedesktop.DBus.Properties and method GetAll
15:20:28 T:140092121344000   DEBUG: UDisks: DeviceChanged - DeviceUDI /org/freedesktop/UDisks/devices/sr0: IsFileSystem true HasFileSystem udf IsSystemInternal false IsMounted false IsRemovable true IsPartition false IsOptical true

1. Why is "Play Disc" option disabled?
2. Is it necessary for the disc to be mounted in order to be played? I thought not, but vlc also refuses to play the disc unless I mount it. The one difference is that when I start the system with regular ubuntu desktop, this happens automatically when the disc is inserted. Not so when I start kodi session.

Issue is more or less the same regardless of whether I insert a bluray, dvd or cd disc.

Something I did during my troubleshooting of earlier drive created this problem, I just don't understand what. Previously, with old drive, if I'd insert a bluray drive, "Play Disc" option would appear and work normally, ie if I'd select that I'd be presented with the bluray menu. I couldn't play the main title, as aacs would not decrypt it, but that's a different issue (and that's solved now with the new drive).

Thanks for looking!
-- Stanislav
Reply
#2
It shouldn't have something to do with that bug from 2012 Wink

Your drive isn't seen as an optical drive:

Quote:IsOptical false

It's more related to this:

http://forum.kodi.tv/showthread.php?tid=257696

but that never was solved and the fact yours is a USB drive, it might be different in some ways.

Maybe open a bug at bug tracker?!
Reply
#3
Thanks, I created http://trac.kodi.tv/ticket/16600
Reply

Logout Mark Read Team Forum Stats Members Help
Play Disc stopped working0