[Fixed][4328svn_win_64] Crashes reading .m2ts files.

Archive of historical bug reports.
Please use the GitHub link above to report issues.
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
Post Reply
ClickClick5
Posts: 15
Joined: Sun Oct 30, 2011 5:40 pm

[Fixed][4328svn_win_64] Crashes reading .m2ts files.

Post by ClickClick5 »

.mp4, .avi, and .vob scan correctly. When using the 64bit build on Windows, Handbrake crashes as soon as it scans the .m2ts file for titles. This crash was also found in the previous build too. 32bit works ok, and th 64bit Ubuntu build works ok too.
This did not happen on the 4311 build.

Here is the most info I can get:

(Log from handbrake)
HandBrake svn4328 2011103001
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
CPU: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
Ram: 16367 MB, Screen: 1680x1050
Temp Dir: C:\Users\ClickClick5\AppData\Local\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\ClickClick5\AppData\Roaming\HandBrake\HandBrake\0.9.5.4328

-------------------------------------------
-i "E:\Band Of Brothers (HD)\file.m2ts" -t0 --min-duration=10 -v
[11:47:15] hb_init: starting libhb thread
HandBrake svn4328 (2011103001) - MinGW x86_64 - http://handbrake.fr
8 CPUs detected
Opening E:\Band Of Brothers (HD)\file.m2ts...
[11:47:15] hb_scan: path=E:\Band Of Brothers (HD)\file.m2ts, title_index=0
libbluray/bdnav/index_parse.c:157: indx_parse(): error opening E:\Band Of Brothers (HD)\file.m2ts/BDMV/index.bdmv
libbluray/bluray.c:1471: nav_get_title_list(E:\Band Of Brothers (HD)\file.m2ts) failed (0000000001E6D600)
[11:47:15] 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
[11:47:15] dvd: not a dvd - trying as a stream/file instead
[11:47:15] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[11:47:15] Found the following PIDS
[11:47:15] Video PIDS :
[11:47:15] 0x1011 type VC-1 (0xea)
[11:47:15] 0x1b00 type VC-1 (0xea)
[11:47:15] 0x1b01 type VC-1 (0xea)
[11:47:15] Audio PIDS :
[11:47:15] 0x1100 type DTS-HD MA (0x86)
[11:47:15] 0x1101 type AC3 (0x81)
[11:47:15] 0x1102 type AC3 (0x81)
[11:47:15] 0x1a00 type DTS-HD MA (0xa2)
[11:47:15] 0x1a01 type DTS-HD MA (0xa2)
[11:47:15] Other PIDS :
[11:47:15] 0x1200 type PGS Subtitle (0x90)
[11:47:15] 0x1201 type PGS Subtitle (0x90)
[11:47:15] 0x1202 type PGS Subtitle (0x90)
[11:47:15] 0x1203 type PGS Subtitle (0x90)
[11:47:15] 0x1204 type PGS Subtitle (0x90)
[11:47:15] 0x1205 type PGS Subtitle (0x90)
[11:47:15] 0x1001 type Unknown (0xff) (PCR)
[11:47:15] stream id 0x1100 (type 0x86 substream 0x71) audio 0x711100
[11:47:15] stream id 0x1100 (type 0x86 substream 0x0) audio 0x1100
[11:47:15] stream id 0x1101 (type 0x81 substream 0x0) audio 0x1101
[11:47:15] stream id 0x1102 (type 0x81 substream 0x0) audio 0x1102
[11:47:15] stream id 0x1a00 (type 0xa2 substream 0x71) audio 0x711a00
[11:47:15] stream id 0x1a00 (type 0xa2 substream 0x0) audio 0x1a00
[11:47:15] stream id 0x1a01 (type 0xa2 substream 0x71) audio 0x711a01
[11:47:15] stream id 0x1a01 (type 0xa2 substream 0x0) audio 0x1a01
[11:47:15] scan: decoding previews for title 1
[11:47:15] scan: audio 0x1101: AC-3, rate=48000Hz, bitrate=192000 Unknown (AC3) (2.0 ch)
[11:47:15] scan: audio 0x1102: AC-3, rate=48000Hz, bitrate=192000 Unknown (AC3) (2.0 ch)
[11:47:15] scan: audio 0x711100: DCA, rate=48000Hz, bitrate=1536000 Unknown (DTS) (5.1 ch)
Scanning title 1 of 1...
Scanning title 1 of 1...
Scanning title 1 of 1...
Scanning title 1 of 1...
Scanning title 1 of 1...

(Crashes here with error below)

Problem signature:
Problem Event Name: APPCRASH
Application Name: HandBrakeCLI.exe
Application Version: 0.0.0.0
Application Timestamp: 4eacc77c
Fault Module Name: HandBrakeCLI.exe
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 4eacc77c
Exception Code: c0000005
Exception Offset: 00000000004f6cd3
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1033
Additional Information 1: 4126
Additional Information 2: 41268eece63e75d476eb4ac4589cf4a4
Additional Information 3: d6e6
Additional Information 4: d6e6aa9c576f579119f0f423b53feacd
Carborundum
Posts: 22
Joined: Tue Jan 18, 2011 11:29 pm

Re: [4331svn_win_64] Crashes reading .m2ts files.

Post by Carborundum »

I have the same problem, with WinGUIx64, build 4331. The x86 version works fine. Not all discs behave this way, but perhaps 2/5 do.

Failed scan under x64:
http://paste.handbrake.fr/pastebin.php?show=2803

Successful scan of the same disc under x86:
http://paste.handbrake.fr/pastebin.php?show=2804
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: [4328svn_win_64] Crashes reading .m2ts files.

Post by JohnAStebbins »

FYI, I am able to reproduce this with my Band of Brothers BDs. It's a problem with DTS decoding. I vaguely recall reading something about a problem with DTS in the ffmpeg mailing list. So I'll see if I can find that again.
Crash backtrace

Code: Select all

#0  0x00000000008f5ef7 in ff_int32_to_float_fmul_scalar_sse2.loop ()
#1  0x00000000006e33fc in dca_subsubframe (s=0xda3a080, base_channel=0,
    block_index=0) at libavcodec/dca.c:1149
#2  dca_decode_block (s=0xda3a080, base_channel=0, block_index=0)
    at libavcodec/dca.c:1298
#3  0x00000000006e5720 in dca_decode_frame (avctx=0xd9391a0, data=0xda65d60,
    data_size=0xd90f6e0, avpkt=<value optimized out>) at libavcodec/dca.c:1671
#4  0x000000000048f64e in avcodec_decode_audio3 (avctx=0xd9391a0,
    samples=<value optimized out>, frame_size_ptr=<value optimized out>,
    avpkt=<value optimized out>) at libavcodec/utils.c:782
#5  0x0000000000446f37 in decavcodecaBSInfo (w=<value optimized out>,
    buf=0xd50feb0, info=0xd90fc30) at ../libhb/decavcodec.c:461
#6  0x000000000044d9d5 in LookForAudio (data=0xd448960, title=0xd451c50)
    at ../libhb/scan.c:1019
#7  DecodePreviews (data=0xd448960, title=0xd451c50) at ../libhb/scan.c:647
#8  0x000000000044f1e5 in ScanFunc (_data=0xd448960) at ../libhb/scan.c:194
#9  0x00000000004181cf in hb_thread_func (_t=0xd448a30)
    at ../libhb/ports.c:362
#10 0x0000000000e773e9 in ptw32_threadStart ()
#11 0x0000000000000000 in ?? ()
ClickClick5
Posts: 15
Joined: Sun Oct 30, 2011 5:40 pm

Re: [4328svn_win_64] Crashes reading .m2ts files.

Post by ClickClick5 »

Tried my Tron Legacy and Taken Bluray, same deal.

Must be a problem with the 64bit build of ffmpeg?
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: [4328svn_win_64] Crashes reading .m2ts files.

Post by JohnAStebbins »

ClickClick5
Posts: 15
Joined: Sun Oct 30, 2011 5:40 pm

Re: [4328svn_win_64] Crashes reading .m2ts files.

Post by ClickClick5 »

JohnAStebbins wrote:Bug report filed with libav
https://bugzilla.libav.org/show_bug.cgi?id=64
Thanks!
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: [4328svn_win_64] Crashes reading .m2ts files.

Post by JohnAStebbins »

This should be fixed in the nightly builds now
https://trac.handbrake.fr/changeset/4338
Post Reply