Crashes when pgci_ut handle is NULL

Bug #570790 reported by jessesmith
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
libdvdnav (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I'm trying to use VLC 1.0.2 on Ubuntu 9.10. This version of Ubuntu uses libdvdnav_4.1.3

When playing most DVD iso files, this combination of VLC and libdvdread works well. However, some iso files causes VLC to crash at start-up with the error message shown at the bottom of this report.

It seems that libdvdread aborts if pgci_ut is set to NULL. I've tried removing the assert() calls that are causing the abort and instead returned error values. When that happens, VLC spits out an infinite loop of

libdvdnav: *** pgci_ut handle is NULL ***

At the moment, I'm uncertain whether the issue is with libdvdread not handling the error properly, or if it is VLC that fails to catch the issue. I've found the latest version of mplayer can play the DVD iso files, so it's not just a case of a corrupted file.

The original error output is included below and here is a link to a bug report I've filed against VLC for the same issue:
https://bugs.launchpad.net/ubuntu/+source/vlc/+bug/570716

VLC media player 1.0.2 Goldeneye
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/jesse/.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 0x00000119
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00000253
libdvdread: Elapsed time 0
libdvdread: Found 1 VTS's
libdvdread: Elapsed time 0
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.
Aborted

Related branches

affects: libdvdread (Ubuntu) → libdvdnav (Ubuntu)
Revision history for this message
Alexander Anisimov (alenyashka) wrote :

I confirm. This bug affects to me too in Ubuntu 10.04. I try to play DVD with mplayer and get the following output

Playing dvdnav://.
libdvdread: Using libdvdcss version 1.2.10 for DVD access

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 0x0000011e
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00000155
libdvdread: Elapsed time 0
libdvdread: Found 1 VTS's
libdvdread: Elapsed time 0
libdvdnav: Using dvdnav version MPlayer-custom
libdvdnav: DVD Title: 80letBHMT
libdvdnav: DVD Serial Number: 3B9398BBC46C6744
libdvdnav: DVD Title (Alternative):
libdvdnav: Unable to find map file '/home/alexanis/.dvdnav/80letBHMT.map'
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
Title: '80letBHMT'
mplayer: libdvdnav/vm/vm.c:1772: get_ID: Assertion `pgcit != ((void *)0)' failed.

Revision history for this message
JB VideoLAN (jb-videolan) wrote :

The upstream code is wrong.

Changed in libdvdnav (Ubuntu):
status: New → Confirmed
Revision history for this message
JB VideoLAN (jb-videolan) wrote :

Fixed upstream.

Changed in libdvdnav (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libdvdnav - 5.0.3-1

---------------
libdvdnav (5.0.3-1) unstable; urgency=medium

  * Team upload.

  [ Dylan Aïssi ]
  * New upstream release
    - Fix two wrong asserts (LP: #1236939, #570790)
  * Remove 0001-dvdnav_get_position.patch, fixed in upstream.
  * Add minimun (>= 5.0.2) libdvdread version in d/control

  [ Benjamin Drung ]
  * Add new dvdnav_open_stream function to symbols file

 -- Sebastian Ramacher <email address hidden> Sun, 30 Aug 2015 15:13:48 +0200

Changed in libdvdnav (Ubuntu):
status: Fix Committed → 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.