Page 1 of 1

Exception when adding file with subtitles (0.9.6)

Posted: Tue Feb 28, 2012 10:42 pm
by magao
When adding any .mkv with ASS subtitles (that I've tried), the subtitles are not correctly added and the following exception is displayed. The last version that I know of that does not suffer this bug is svn4366 (it's been a while since I upgraded).

Code: Select all

frmMain.cs - updateUIafterScanSystem System.ArgumentNullException: Value cannot be null.
Parameter name: key
    at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
    at Handbrake.Controls.Subtitles.AutomaticSubtitleSelection()
    at Handbrake.frmMain.drp_dvdtitle_SelectedIndexChanged(Object sender, EventArgs e)
    at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
    at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
    at Handbrake.frmMain.SourceScanScanCompleted(Object sender, EventArgs e)
Scan log:

Code: Select all

HandBrake 0.9.6 2012022800
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
CPU: Intel(R) Core(TM) i7 CPU         860  @ 2.80GHz
Ram: 8183 MB, Screen: 1680x1050
Temp Dir: G:\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: [elided]\AppData\Roaming\HandBrake\HandBrake\0.9.6.4466

-------------------------------------------
 -i "[elided].mkv" -t0  --min-duration=10 -v 
[08:28:01] hb_init: starting libhb thread
HandBrake 0.9.6 (2012022800) - MinGW x86_64 - http://handbrake.fr
8 CPUs detected
Opening [elided].mkv...
[08:28:01] hb_scan: path=[elided].mkv, title_index=0
libbluray/bdnav/index_parse.c:157: indx_parse(): error opening [elided].mkv/BDMV/index.bdmv
libbluray/bluray.c:1471: nav_get_title_list([elided].mkv) failed (0000000001CDDC10)
[08:28:01] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
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.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[08:28:01] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '[elided].mkv':
  Duration: 00:23:40.73, start: 0.000000, bitrate: N/A
    Chapter #0.0: start 0.033000, end 81.999000
    Metadata:
      title           : Intro
    Chapter #0.1: start 81.999000, end 172.005000
    Metadata:
      title           : OP
    Chapter #0.2: start 172.005000, end 644.978000
    Metadata:
      title           : Part A
    Chapter #0.3: start 644.978000, end 1319.526000
    Metadata:
      title           : Part B
    Chapter #0.4: start 1319.526000, end 1409.942000
    Metadata:
      title           : ED
    Chapter #0.5: start 1409.942000, end 1420.730000
    Metadata:
      title           : Preview
    Stream #0.0(eng): Video: h264 (High 10), yuv420p10le, 1280x720, PAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Stream #0.1: Subtitle: ass (default)
    Stream #0.2(jpn): Audio: aac, 48000 Hz, stereo, s16 (default)
    Metadata:
      title           : Commie
    Stream #0.3: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : arabtype.ttf
      mimetype        : application/x-truetype-font
    Stream #0.4: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : BRADHITC.TTF
      mimetype        : application/x-truetype-font
    Stream #0.5: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : COMIRG.TTF
      mimetype        : application/x-truetype-font
    Stream #0.6: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : deComic.ttf
      mimetype        : application/x-truetype-font
    Stream #0.7: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : depthcore.ttf
      mimetype        : application/x-truetype-font
    Stream #0.8: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : HARLC__.TTF
      mimetype        : application/x-truetype-font
    Stream #0.9: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : JAPAB_.TTF
      mimetype        : application/x-truetype-font
    Stream #0.10: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : LT.ttf
      mimetype        : application/x-truetype-font
    Stream #0.11: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : LT_3italic.ttf
      mimetype        : application/x-truetype-font
    Stream #0.12: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : macron finnetier 0.3.ttf
      mimetype        : application/x-truetype-font
    Stream #0.13: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : 04B_03_.TTF
      mimetype        : application/x-truetype-font
    Stream #0.14: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : American Purpose Casual 01.ttf
      mimetype        : application/x-truetype-font
[08:28:01] scan: decoding previews for title 1
Scanning title 1 of 1...
Scanning title 1 of 1...
[08:28:01] scan: 10 previews, 1280x720, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[08:28:01] scan: title (0) job->width:1280, job->height:720
[08:28:01] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: [elided].mkv
  + duration: 00:23:40
  + size: 1280x720, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:01:21
    + 2: cells 0->0, 0 blocks, duration 00:01:30
    + 3: cells 0->0, 0 blocks, duration 00:07:52
    + 4: cells 0->0, 0 blocks, duration 00:11:14
    + 5: cells 0->0, 0 blocks, duration 00:01:30
    + 6: cells 0->0, 0 blocks, duration 00:00:10
  + audio tracks:
    + 1, Japanese (aac) (2.0 ch) (iso639-2: jpn)
  + subtitle tracks:
    + 1, Unknown (iso639-2: und) (Text)(SSA)
HandBrake has exited.

Re: Exception when adding file with subtitles (0.9.6)

Posted: Wed Feb 29, 2012 7:53 am
by s55
Set the "Subtitle" selection to none in "Audio and Subtitles" under options. Looks like a bug in that code.

I'm not able to immeadiatly re-create this, so will need to debug further when I get time.

Re: Exception when adding file with subtitles (0.9.6)

Posted: Wed Feb 29, 2012 9:19 pm
by magao
Just rolled back to a working version for now. BTW looks like the format of presets.xml has changed since svn4366 which made keeping presets impossible for the rollback. Not a problem except I also lost my user presets as a result while trying to fix things.