totem hangs when try to play DVD

Bug #466389 reported by Sergey N. Yatskevich
104
This bug affects 15 people
Affects Status Importance Assigned to Milestone
gstreamer0.10 (Debian)
Fix Released
Unknown
libdvdnav (Ubuntu)
Fix Released
Low
Unassigned
Karmic
Fix Released
Medium
Unassigned

Bug Description

Totem hangs when I try to play DVD. I try to run totem from command line and got following messages before it is hangs:

libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdnav: DVD Title: 4F_2
libdvdnav: DVD Serial Number: 42769C95___MVB__
libdvdnav: DVD Title (Alternative):
libdvdnav: Unable to find map file '/home/snc/.dvdnav/4F_2.map'
libdvdnav: DVD disk reports itself with Region mask 0x00c00000. Regions: 1 2 3 4 5 6

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00000125
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00000168
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x00000423
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x000c3849
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_1.VOB at 0x0012898c
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_1.VOB at 0x00189e4a
libdvdread: Elapsed time 0
libdvdread: Found 5 VTS's
libdvdread: Elapsed time 0
libdvdnav: *** pgci_ut handle is NULL ***
libdvdnav: *** pgci_ut handle is NULL ***
libdvdnav: DVD disk reports itself with Region mask 0x00c00000. Regions: 1 2 3 4 5 6

After this totem hangs completly.

ProblemType: Bug
Architecture: i386
Date: Sat Oct 31 13:39:53 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/totem
Package: libgstreamer0.10-0 0.10.25-2
ProcEnviron:
 LANG=ru_RU.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: gstreamer0.10
Uname: Linux 2.6.31-14-generic i686

Revision history for this message
Sergey N. Yatskevich (syatskevich) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please try to obtain a backtrace following the instructions at http://wiki.ubuntu.com/DebuggingProgramCrash and upload the backtrace (as an attachment) to the bug report. This will greatly help us in tracking down your problem.

Changed in gstreamer0.10 (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Sergey N. Yatskevich (syatskevich) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

The issue is an upstream one and it would be nice if somebody having it could send the bug the to the people writting the software (https://wiki.ubuntu.com/Bugs/Upstream/GNOME)

Changed in gstreamer0.10 (Ubuntu):
status: Incomplete → New
Revision history for this message
Sergey N. Yatskevich (syatskevich) wrote :

I investigate the problem in some more details and found that it is happen only when I try play DVD-Video without menus. If I play DVD-Video with menus it is shown perfectly. You can easy reproduce this problem by build DVD-Video without menus from any MPEG stream with dvdauthor. This DVD-Video perfectly played with xine and any hardware players but not Totem+gstreamer.

Solution of this problem is very important for me because I have many self created DVD-Videos without menus (with my Video Camera and transcode+mencoder+dvdauthor).

P.S. there is another strange problem. I have DVD-Video that is played by hardware player but not totem+gstreamer with symptoms:
snc@snc-s6410/~> totem
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.

** (totem:5608): WARNING **: Problem inhibiting the screensaver: Method "Inhibit" with signature "ss" on interface "org.gnome.ScreenSaver" doesn't exist

** Message: no file info
** Message: Error: Не удалось прочесть информацию о структуре DVD.
resindvdsrc.c(361): rsn_dvdsrc_start (): /GstPlayBin2:play/GstURIDecodeBin:uridecodebin0/RsnDvdBin:source/resinDvdSrc:dvdsrc:
system error: File exists

At UI level totem shows dialog with message "An error occurred, Could not open location; you might not have permission to open the file". All files are presented and can be successfully copyed from DVD-Video disc.

Revision history for this message
captnbli (peterg-miller) wrote :

For me it affects all dvds, not just those without titles. Also I cannot play dvds with vlc, unlike other bug reporters with similar issues.

Has anyone reported upstream yet?

Revision history for this message
captnbli (peterg-miller) wrote :

OK, I would really like to know how, and even if, I should report it upstream. Should I report against gstreamer because it reports the issue, or is it just how that library is being used? If so, do I report against brasero, totem, what?

And then there is the question of duplicates. Given the complexity of the search criteria and the lack of consistency in the bug reports, it is not really possible to know if you are reporting a duplicate, especially for a newbie (to bugzilla) like me. It's all very confronting, and I'm a developer. Heaven help the average user who is expected to do this himself. Really, for Ubuntu to take off, all this hassle needs to be removed. It's bad enough trying to work around the myriad of software choices, configuration and complexity, without having to jump through all these hoops.

I installed Karmic, and my dvds don't play. I would really like to just to be able to simply report it.

I'm going to try to report it against brasero in gnome bugzilla.

If you are looking at this issue, please see the duplicate bug report for 472540 as I think it may be different in some respects.

Revision history for this message
Sebastien Bacher (seb128) wrote :

you should rather report it against gstreamer or totem which are players than against the cd burner software

Revision history for this message
prower2000@hotmail.com (prower2000-gmail) wrote :

Well hello again Sebastien :> Again I'm reporting on a bug that also affects me, in 9.10 DVD's are completely unplayable (9.04 they worked correctly), and it's -again- an upstream issue that shouldn't be reported here? Exactly what showstopper bugs in Karmic _ARE_ we allowed to report? And when can we expect them to be fixed, 10.04 perhaps?

"Report it upstream" is _NOT_ a solution, particularly when the same media player under other distributions doesn't _HAVE_ the same problem. Is the bug going to be assigned to somebody or is it just going to be ignored?

Revision history for this message
Sebastien Bacher (seb128) wrote :

> going to be assigned to somebody or is it just going to be ignored?

it's going to be assigned to somebody at some point but since we got hundred of bug a day and the team is pretty limited there is several thousand bugs which are not being worked, it's a simple manpower issue

Revision history for this message
Sebastien Bacher (seb128) wrote :

you are allowed to report bugs btw, it's just that upstream work on the code and know their software where we distribute it, it has a better change to get a reply by the writers and you can help the overworked team by forwarding the issue

Revision history for this message
Sebastien Bacher (seb128) wrote :

on what distro did you try and it's working? do they use the same GNOME version too?

Revision history for this message
prower2000@hotmail.com (prower2000-gmail) wrote :

Well, since you asked, I tested it out in Fedora's rawhide (which is using Gnome 2.28) and they played just fine. In totem.

Revision history for this message
prower2000@hotmail.com (prower2000-gmail) wrote :

Oh yes, they work in Mandriva 2010 as well. gnome-libs 2.28.

So?

Revision history for this message
Sebastien Bacher (seb128) wrote :

so it could be an issue in your ubuntu install or a libdvdnav bug or those distro could have changes or different versions dunno, there is nobody working actively on dvd in ubuntu and that's working there

Revision history for this message
prower2000@hotmail.com (prower2000-gmail) wrote :

If you hadn't noticed I wasn't even the first person to report this bug, so it's not just my installation.

Nice to know that there's "nobody working actively on dvd in ubuntu" at least, is that supposed to be reassuring?

Revision history for this message
Sebastien Bacher (seb128) wrote :

no, it's supposed to be honest, work is done for free mostly by volunteers and there is not always enough people to work on everything you are welcome to look at dvd issues though if you want to try solving some of those

Revision history for this message
prower2000@hotmail.com (prower2000-gmail) wrote :

I'm already _looking_ at a DVD issue. DVD's won't _PLAY_ in Karmic.

I'm beginning to regret ever having replied to this bug in the first place, I might as well wait until 10.04.

Revision history for this message
captnbli (peterg-miller) wrote :

Well, I got as far as installing a dev version of w32codecs from here: https://bugs.launchpad.net/medibuntu/+bug/428775/comments/12. And then I could install the non-free codecs from the medibuntu repos. However, still no go. I get some sort of playback now, but it is all broken up. Actually I get slightly different, but broken, behavior out of each of my three media players. Although the link above sounds like it helps some people.

Sebastien, there is a company behind Ubuntu, and it seems like the support side of it is falling down as a result of a problematic release. It seems like QA procedures need to be beefed up for the pre-release cycle. I appreciate the effort of volunteers, and if the pre-release could be done better, there would not be as much pressure on you guys now.

I am in awe of some of the open source software that is out there. Moovidia is an incredible UI, for instance. If there were more consistency in the Linux + Ubuntu ecosystem it would be even more effective.

Jono Bacon, are you there?

Cheers,
The Captn

Revision history for this message
prower2000 (prower2000) wrote :

QA procedures needing to be beefed up is a given...how can you possibly go through an entire cycle of testing for a distribution without somebody popping a DVD in a drive at least -ONCE- to see if it played? It's ridiculous. It makes you wonder if there was really any QA work done on Karmic at _all_ to be quite frank, this isn't the only glaringly obvious bug that apparently has been given a complete miss.

If you're wondering why Karmic is getting some bad press look no further than Launchpad. In the meantime, for anyone who would still like to watch their DVD's in Karmic without having to wait for someone to fix this (which I doubt will happen for months), VLC is a good alternative. So is moving back to 9.04 in my opinion.

Revision history for this message
Sergey N. Yatskevich (syatskevich) wrote :

Hi all, this bug is not totems or gstreamers bug. This is libdvdnav bug only.

Description: dvdnav_reset lock internal mutex and call dvdnav_clear that try to lock the same mutex too. Because this mutex is not recursive mutex libdvdnav is deadlocked.

I write simple patch that solve this problem. I test it and it works for me. See atachment.

Revision history for this message
prower2000 (prower2000) wrote :

Preliminary results from my own machine seem to indicate that things are working smoothly when the patch is applied (at least in the 32-bit iteration of Karmic), excellent work Sergey, thank you very much. If we can get this included as a patch to libdvdnav in the repositories that would be great, although if the bug isn't known about upstream perhaps someone could send the patch along to them as well? I'm sure they'd appreciate it! :>

Revision history for this message
captnbli (peterg-miller) wrote :

OK, but that's a source code patch. Therefore I would have to compile etc. I don't really want to get into that.

So, the real issue is in http://packages.qa.debian.org/libd/libdvdnav.html? The only alternative to building myself is to wait until a dev version with this fix goes in?

Revision history for this message
Sergey N. Yatskevich (syatskevich) wrote :

I attach patched version of libdvdnav.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for the work on there, could you send the change to upstream or debian? You should also subscribe ubuntu-main-sponsors to the bug to get review

Revision history for this message
Sergey N. Yatskevich (syatskevich) wrote :

I subscribe ubuntu-main-sponsors to the bug.

I am sorry but I don't found any live upstream of libdvdnav. I post link to this bug to the libdvdnav package of the ubuntu but there is no any reaction on them. This is very strange for me because this package is critical to view DVD on Linux.

Revision history for this message
Sergey N. Yatskevich (syatskevich) wrote :

I am sorry. Debian team is accepted patch allready. So no more actions needed.

Revision history for this message
Lukáš Zapletal (lzap) wrote :

I vote for this bug. My Totem/VLC cannot play DVDs too. I tried my own non-encrypted DVD and it does not work too.

The error is (VLC):

libdvdnav: Using dvdnav version 4.1.3
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdnav: DVD Title:
libdvdnav: DVD Serial Number:
libdvdnav: DVD Title (Alternative):
libdvdnav: Unable to find map file '/home/lzap/.dvdnav/.map'
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00000116
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00000250
libdvdread: Elapsed time 0
libdvdread: Found 1 VTS's
libdvdread: Elapsed time 0
libdvdnav: Language 'en' not found, using 'de' instead
libdvdnav: Menu Languages available: de
libdvdnav: Language 'en' not found, using 'de' instead
libdvdnav: Menu Languages available: de
libdvdnav: Language 'en' not found, using 'de' instead
libdvdnav: Menu Languages available: de
libdvdnav: *** pgci_ut handle is NULL ***
vlc: /build/buildd/libdvdnav-4.1.3/src/vm/vm.c:1744: get_ID: Assertion `pgcit != ((void *)0)' failed.

Revision history for this message
eden6000 (eden6000) wrote :

Great work Sergey, for me too, Karmic i386+totem, problem solved, dvds are read fine now. I'm still wondering why your solution isn't in official ubuntu's repositories.... thank you very much!
Stefano

Revision history for this message
VPablo (villumar) wrote :

Sorry Sergey but your deb don't work for me:

$ aptitude show libdvdnav4
Paquete: libdvdnav4
Estado: instalado
Instalado automáticamente: sí
Versión: 4.1.3-3
Prioridad: opcional
Sección: universe/libs
Desarrollador: Ubuntu MOTU Developers <email address hidden>
Tamaño sin comprimir: 274k
Depende de: libc6 (>= 2.4), libdvdread4 (>= 4.1.3)
Sugiere: libdvdcss2
Descripción: DVD navigation library
 libdvdnav is a DVD navigation library, which provides an interface to the
 advanced features of DVDs, like menus and naviation. It contains the VM and
 other parts useful for writing DVD players. It's based on Ogle, but was
 modified to be used by xine and mplayer.

$ totem
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
** Message: no file info
** Message: Error: No se pudo leer la información del título para el DVD.
resindvdsrc.c(361): rsn_dvdsrc_start (): /GstPlayBin2:play/GstURIDecodeBin:uridecodebin0/RsnDvdBin:source/resinDvdSrc:dvdsrc:
system error: El archivo ya existe

Revision history for this message
VPablo (villumar) wrote :

I'm sorry but it seems to work now, possibly when restarted, I don't know but works, thanks.

Revision history for this message
Brian O'Keefe (okeefe) wrote :

I have the same problem exactly. Is there a x86-64 bit version of the patched libdvdnav? Can't install the 32 bit version.

Revision history for this message
Brian O'Keefe (okeefe) wrote :

BTW, VLC works perfectly for the same DVD

Revision history for this message
Sergey N. Yatskevich (syatskevich) wrote :

I am sorry, but I have only i386 version of Ubuntu installed so I can't build x86-64 variant. May be someone else help you... The source patch is arch indepeneded.

Revision history for this message
Brian O'Keefe (okeefe) wrote :

How do I apply the source patch? If you can help I would appreciate it.

Revision history for this message
Darius Kulikauskas (dkulikauskas) wrote :

I also have this problem on 64-bit Ubuntu 9.10.

Revision history for this message
Steve Langasek (vorlon) wrote :

This has been fixed in Debian and propagated to Lucid from there. Thank you for your contribution to Ubuntu!

Changed in gstreamer0.10 (Ubuntu):
status: New → Fix Released
Revision history for this message
prower2000 (prower2000) wrote :

Any word on when this fix will be pushed out for Karmic? That's what most of us are using at the moment. :> Or are we actually going to have to wait for 10.04 to be released before we can play DVD's in Ubuntu again?

Revision history for this message
LeoRochael (leorochael) wrote :

Fix is not released if it's not on Karmic, the latest actually released version

Changed in gstreamer0.10 (Ubuntu):
status: Fix Released → Fix Committed
Revision history for this message
Steve Langasek (vorlon) wrote :

That's not how bug states are used in Ubuntu. Please see https://wiki.ubuntu.com/StableReleaseUpdates for information on getting bugs fixed in released versions of Ubuntu.

Changed in gstreamer0.10 (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
prower2000@hotmail.com (prower2000-gmail) wrote :

Well how about we just keep the conversation simple and ask one question -- this bug prevents DVD's of any type being played in Karmic. Is it going to be fixed in Karmic or not? I checked the automatically generated list of SRU's, this one isn't on it even though a community member has PROVIDED a patch that has been confirmed as working for several users.

Is it going to be fixed in Karmic or not?

Revision history for this message
Sebastien Bacher (seb128) wrote :

it will be fixed if somebody wants to work on the fix and do the sru steps to get it uploaded

Revision history for this message
Martin Pitt (pitti) wrote :

Patch available for sponsoring, subscribing sponsoring team and SRU team.

Changed in gstreamer0.10 (Ubuntu Karmic):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Martin Pitt (pitti) wrote :

sponsored

affects: gstreamer0.10 (Ubuntu) → libdvdnav (Ubuntu)
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted into karmic-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in libdvdnav (Ubuntu Karmic):
status: Triaged → Fix Committed
tags: added: verification-needed
Revision history for this message
Dmitry Lebedev (dmytro-lebedev) wrote :

I have the same issue with totem hanging when trying to play some DVDs both either from "auto-run" dialog or from the "Play disk..." menu item. Of course, one can play VOBs directly, but it seems to be not really user-friendly. So it has to be fixed.

Since I firstly encountered this problem I have made the following changes to my Ubuntu 9.10 amd64:
- enabled karmic-proposed repository to get all possible related fixes, especially patched libdvdnav4;
- added streamer-developers PPA, that fixed another issue with one of the DVDs, playing with no sound as described in thread https://bugs.launchpad.net/ubuntu/+source/totem/+bug/403098;
- added medibuntu repository as described in thread http://ubuntuforums.org/showthread.php?t=766683 and tried to solve the problem installing libdvdcss2 and w64codecs from there, which did not help.

Finally I have installed totem-dbg and made a backtrace. Additionally can inform that in system monitor totem is in "sync_page" state during hang. Hope it helps developers.

Revision history for this message
Tomasz Melcer (liori) wrote :

I was asked by Onkar Shinde at https://bugs.launchpad.net/ubuntu/+source/libdvdnav/+bug/512576 to comment on this bug. I had problems with playing menu tracks on DVD. Updating libdvdnav to -proposed fixed that to me, and now all DVDs work for me. However, I don't have any DVDs without menu track, so I cannot check this case.

Martin Pitt (pitti)
tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libdvdnav - 4.1.3-3ubuntu1

---------------
libdvdnav (4.1.3-3ubuntu1) karmic-proposed; urgency=low

  * Add 02-deadlock.patch: Fix deadlock with DVD playback. Patch from Sergey
    N. Yatskevich, thanks! (LP: #466389)
 -- Martin Pitt <email address hidden> Thu, 11 Feb 2010 10:21:11 +0100

Changed in libdvdnav (Ubuntu Karmic):
status: Fix Committed → Fix Released
Changed in gstreamer0.10 (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.