Segmentation fault when opening (certain) source 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 forum is now closed to new topics.
- Existing topics will remain open for a short while as the transition over occurs.
*******************************
Post Reply
mod16
Posts: 78
Joined: Sun Jan 12, 2014 11:10 am

Segmentation fault when opening (certain) source files

Post by mod16 » Tue Sep 08, 2015 10:09 am

Please describe the problem in as much detail as possible:
HB crashes as soon as the scan of a new source (MPEG2 video file, MPEG4 sources seems to be fine) is complete. It doesn't matter if the source is a DVD, an image file of the same DVD or even the videos extracted to a MKV container. So I guess the problem is not the DVD itself but the videos.

What are the steps to reproduce this problem:
Open source file, wait for source scan to finish.

What version of HandBrake you are running:
See log (latest dev build)

What operating system and version and you running (e.g. OSX 10.11, Windows 7, Ubuntu 14):
Ubuntu 14.04.3

If there was any exception or error displayed, please copy it and paste it here:
Segmentation fault (in terminal)

Please include the scan or encode log:

Code: Select all

[11:51:04] gtkgui: HandBrake 0.10.2-800-9546038-master (2015090601) - Linux x86_64 - https://handbrake.fr
[11:51:04] hb_init: starting libhb thread
[11:51:04] hb_init: starting libhb thread
[11:51:04] hb_init: starting libhb thread
[11:51:16] CPU: 
[11:51:16]  - logical processor count: 8
[11:51:16] OpenCL: library not available
[11:51:16] hb_scan: path=/home/xxxxx/Videos/mkv/xxxxx/xxxxx.mkv, title_index=0
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:251: failed opening UDF image /home/xxxxx/Videos/mkv/xxxxx/xxxxx.mkv
disc.c:332: error opening file BDMV/index.bdmv
disc.c:332: error opening file BDMV/BACKUP/index.bdmv
[11:51:16] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread: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:51:16] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/home/xxxxx/Videos/mkv/xxxxx/xxxxx.mkv':
  Metadata:
    title           : xxxxx
  Duration: 00:21:00.56, start: 0.000000, bitrate: N/A
    Chapter #0.0: start 0,080000, end 299,400000
    Metadata:
      title           : Chapter 01
    Chapter #0.1: start 299,400000, end 514,560000
    Metadata:
      title           : Chapter 02
    Chapter #0.2: start 514,560000, end 727,240000
    Metadata:
      title           : Chapter 03
    Chapter #0.3: start 727,240000, end 943,120000
    Metadata:
      title           : Chapter 04
    Chapter #0.4: start 943,120000, end 1260,568044
    Metadata:
      title           : Chapter 05
    Stream #0.0(eng): Video: mpeg2video (Main), yuv420p, 720x576 [PAR 16:15 DAR 4:3], 6500 kb/s, 25 fps, 1k tbn, 50 tbc
    Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, fltp, 448 kb/s (default)
    Metadata:
      title           : Surround 5.1
    Stream #0.2(ger): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : Stereo
    Stream #0.3(eng): Subtitle: dvdsub (default)
    Stream #0.4(ger): Subtitle: dvdsub
    Stream #0.5(ger): Subtitle: dvdsub
    Stream #0.6(ger): Subtitle: dvdsub
[11:51:16] scan: decoding previews for title 1
[11:51:16] scan: audio 0x1: ac3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch)
[11:51:16] scan: audio 0x2: ac3, rate=48000Hz, bitrate=192000 Deutsch (AC3) (2.0 ch) (Dolby Surround)
[11:51:16] scan: 10 previews, 720x576, 25,000 fps, autocrop = 0/0/0/0, aspect 4:3, PAR 16:15
[11:51:16] libhb: scan thread found 1 valid title(s)
mediainfo of the file used above:

Code: Select all

General
Unique ID                                : xxxxx
Complete name                            : xxxxx.mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 772 MiB
Duration                                 : 20mn 58s
Overall bit rate mode                    : Variable
Overall bit rate                         : 5 150 Kbps
Movie name                               : xxxxx
Encoded date                             : UTC 2015-09-08 09:28:31
Writing application                      : MakeMKV v1.9.5 linux(x64-release)
Writing library                          : libmakemkv v1.9.5 (1.3.0/1.4.1) x86_64-linux-gnu

Video
ID                                       : 1
Format                                   : MPEG Video
Format version                           : Version 2
Format profile                           : Main@Main
Format settings, BVOP                    : No
Format settings, Matrix                  : Custom
Codec ID                                 : V_MPEG2
Codec ID/Info                            : MPEG 1 or 2 Video
Duration                                 : 20mn 58s
Bit rate mode                            : Variable
Bit rate                                 : 4 407 Kbps
Maximum bit rate                         : 6 500 Kbps
Width                                    : 720 pixels
Height                                   : 576 pixels
Display aspect ratio                     : 4:3
Frame rate mode                          : Constant
Frame rate                               : 25.000 fps
Standard                                 : PAL
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Interlaced
Scan order                               : Top Field First
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.425
Time code of first frame                 : 00:59:58:00
Time code source                         : Group of pictures header
Stream size                              : 661 MiB (86%)
Language                                 : English
Default                                  : No
Forced                                   : No

Audio #1
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Codec ID                                 : A_AC3
Duration                                 : 20mn 58s
Bit rate mode                            : Constant
Bit rate                                 : 448 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Delay relative to video                  : -80ms
Stream size                              : 67.2 MiB (9%)
Title                                    : Surround 5.1
Language                                 : English
Default                                  : Yes
Forced                                   : No

Audio #2
ID                                       : 3
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Format profile                           : Dolby Digital
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Codec ID                                 : A_AC3
Duration                                 : 20mn 58s
Bit rate mode                            : Constant
Bit rate                                 : 192 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Delay relative to video                  : -56ms
Stream size                              : 28.8 MiB (4%)
Title                                    : Stereo
Language                                 : German
Default                                  : No
Forced                                   : No

Text #1
ID                                       : 4
Format                                   : VobSub
Codec ID                                 : S_VOBSUB
Codec ID/Info                            : The same subtitle format used on DVDs
Language                                 : English
Default                                  : Yes
Forced                                   : No

Text #2
ID                                       : 5
Format                                   : VobSub
Codec ID                                 : S_VOBSUB
Codec ID/Info                            : The same subtitle format used on DVDs
Language                                 : German
Default                                  : No
Forced                                   : No

Text #3
ID                                       : 6
Format                                   : VobSub
Codec ID                                 : S_VOBSUB
Codec ID/Info                            : The same subtitle format used on DVDs
Language                                 : German
Default                                  : No
Forced                                   : No

Text #4
ID                                       : 7
Format                                   : VobSub
Codec ID                                 : S_VOBSUB
Codec ID/Info                            : The same subtitle format used on DVDs
Language                                 : German
Default                                  : No
Forced                                   : No

Menu
00:00:00.080                             : en:Chapter 01
00:05:31.480                             : en:Chapter 02
00:07:51.360                             : en:Chapter 03
00:11:09.520                             : en:Chapter 04
00:16:03.640                             : en:Chapter 05



User avatar
JohnAStebbins
HandBrake Team
Posts: 5194
Joined: Sat Feb 09, 2008 7:21 pm

Re: Segmentation fault when opening (certain) source files

Post by JohnAStebbins » Tue Sep 08, 2015 3:58 pm

These kind of issues are difficult to solve without a sample that causes the problem. Since you were able to reproduce with an mkv, would it be possible for you to split the mkv (e.g. mkvmerge --split size:1g) and find a small chunk that can be used to reproduce? Hopefully splitting preserves the bug.

The easiest way to do this would be to split the file incrementally in half, testing each half to see which half causes the problem, then splitting that half again until you end up with the smallest chunk that still causes the problem.

mod16
Posts: 78
Joined: Sun Jan 12, 2014 11:10 am

Re: Segmentation fault when opening (certain) source files

Post by mod16 » Wed Sep 09, 2015 10:14 am

I have to change my initial report. I was wrong: HB is crashing with every file I try to open - even using files as source which worked fine the day before yesterday.
Maybe I have messed something up...

I changed the PPA to the new one and updated some profiles after reinstalling. I guess I will try to remove all profiles and create new ones - wanted to do that anyways...

mod16
Posts: 78
Joined: Sun Jan 12, 2014 11:10 am

Re: Segmentation fault when opening (certain) source files

Post by mod16 » Wed Sep 09, 2015 11:17 am

Ok, I deleted all the files in ~/.config/.ghb and recreated my presets.

Everything works fine now. Maybe the default preset was broken or couldn't be loaded or something...

Maybe this helps someone else having the same problem.

User avatar
JohnAStebbins
HandBrake Team
Posts: 5194
Joined: Sat Feb 09, 2008 7:21 pm

Re: Segmentation fault when opening (certain) source files

Post by JohnAStebbins » Wed Sep 09, 2015 3:58 pm

Hmm, I don't suppose you made a backup of those files before deleting? If so, I could take a look at what is causing that crash.

Post Reply