Handbrake crashing and I can't figure out why

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
novasonic
Posts: 2
Joined: Sun Jun 06, 2021 1:37 am

Handbrake crashing and I can't figure out why

Post by novasonic »

Description of problem or question:

Hello, Everyone.

So I recently built a new computer, partially for encoding my bluray collection faster, but now that I have my fancy new computer, handbrake is constantly crashing mid-encode. It happens at difference points in the encode every time. With version 1.3.3 it just closes with no error in the log. I tried downloading the nightly build, and it still fails randomly, but at least gave me an error in the log (posted below). DTS or Dolby audio tracks make no difference. Tried different movies. I've tried rolling back to an older version of handbrake too. Deleted appdata and reinstalled. Sometimes it works fine, but I'd say its a 90% fail rate. I'm out of ideas. Hope someone can help.


Steps to reproduce the problem (If Applicable):

It happens randomly.


HandBrake version (e.g., 1.0.0):

1.3.3 and nightly.


Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):

Windows 10 Pro 21H1


HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

HandBrake Nightly 20210604213135-b2d1edeaa-master (2021060401)
OS: Microsoft Windows NT 10.0.19043.0
CPU: AMD Ryzen 7 5800X 8-Core Processor             
Ram: 32694 MB, 
GPU Information:
  NVIDIA GeForce GT 710 - 27.21.14.5671
Screen: 1920x1080
Temp Dir: C:\Users\novasonic\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake Nightly\
Data Dir: C:\Users\novasonic\AppData\Roaming\HandBrake\Nightly

-------------------------------------------


# Starting Encode ...
[15:34:34] base preset: Fast 1080p30 (Modified)
Remote Process started with Process ID: 5004 using port: 8037. Max Allowed Instances: 1
Worker: Starting HandBrake Engine ...
Worker: Starting Web Server on port 8037 ...
Worker: Disconnected worker monitoring enabled!
[15:34:35] Compile-time hardening features are enabled
[15:34:35] hb_init: starting libhb thread
[15:34:35] Starting work at: Sat Jun 05 15:34:35 2021
[15:34:35] 1 job(s) to process
[15:34:35] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 320,
        "DRC": 0,
        "Encoder": "av_aac",
        "Gain": 0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Name": "Stereo 2.0",
        "Track": 0,
        "DitherMethod": 0
      },
      {
        "DRC": 0,
        "Encoder": "copy:dts",
        "Gain": 0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 48000,
        "Name": "Surround 5.1",
        "Track": 1,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:eac3",
      "copy:flac",
      "copy:mp3",
      "copy:truehd",
      "copy:mp2"
    ],
    "FallbackEncoder": "ac3"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      },
      {
        "Name": "Chapter 2"
      },
      {
        "Name": "Chapter 3"
      },
      {
        "Name": "Chapter 4"
      },
      {
        "Name": "Chapter 5"
      },
      {
        "Name": "Chapter 6"
      },
      {
        "Name": "Chapter 7"
      },
      {
        "Name": "Chapter 8"
      },
      {
        "Name": "Chapter 9"
      },
      {
        "Name": "Chapter 10"
      },
      {
        "Name": "Chapter 11"
      },
      {
        "Name": "Chapter 12"
      },
      {
        "Name": "Chapter 13"
      },
      {
        "Name": "Chapter 14"
      },
      {
        "Name": "Chapter 15"
      },
      {
        "Name": "Chapter 16"
      },
      {
        "Name": "Chapter 17"
      },
      {
        "Name": "Chapter 18"
      },
      {
        "Name": "Chapter 19"
      },
      {
        "Name": "Chapter 20"
      },
      {
        "Name": "Chapter 21"
      },
      {
        "Name": "Chapter 22"
      },
      {
        "Name": "Chapter 23"
      },
      {
        "Name": "Chapter 24"
      },
      {
        "Name": "Chapter 25"
      },
      {
        "Name": "Chapter 26"
      },
      {
        "Name": "Chapter 27"
      },
      {
        "Name": "Chapter 28"
      },
      {
        "Name": "Chapter 29"
      },
      {
        "Name": "Chapter 30"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "C:\\Users\\novasonic\\Videos\\Zoolander T00-1.m4v",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 4,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "ID": 3,
        "Settings": {
          "block-height": "16",
          "block-thresh": "40",
          "block-width": "16",
          "filter-mode": "2",
          "mode": "3",
          "motion-thresh": "1",
          "spatial-metric": "2",
          "spatial-thresh": "1"
        }
      },
      {
        "ID": 13,
        "Settings": {
          "crop-bottom": "140",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "140",
          "height": "800",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 30
    },
    "Title": 1,
    "Path": "C:\\Video\\Zoolander\\Zoolander_t00.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x264",
    "Level": "4.2",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "veryslow",
    "Profile": "main",
    "Quality": 20,
    "QSV": {
      "Decode": false
    }
  }
}
[15:34:35] CPU: AMD Ryzen 7 5800X 8-Core Processor
[15:34:35]  - logical processor count: 16
[15:34:35] Intel Quick Sync Video support: no
[15:34:35] hb_scan: path=C:\Video\Zoolander\Zoolander_t00.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:333: failed opening UDF image C:\Video\Zoolander\Zoolander_t00.mkv
src/libbluray/disc/disc.c:437: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:437: error opening file BDMV\BACKUP\index.bdmv
src/libbluray/bluray.c:2646: nav_get_title_list(C:\Video\Zoolander\Zoolander_t00.mkv\) failed
[15:34:35] bd: not a bd - trying as a stream/file instead
libdvdread: Encrypted DVD support unavailable.
libdvdrlibdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
ead: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[15:34:35] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'C:\Video\Zoolander\Zoolander_t00.mkv':
  Metadata:
    title           : Zoolander
    encoder         : libmakemkv v1.16.3 (1.3.10/1.5.2) win(x64-release)
    creation_time   : 2021-06-02T06:07:45.000000Z
  Duration: 01:29:48.84, start: 0.000000, bitrate: 42340 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 170.628792
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 170.628792, end 223.473250
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 223.473250, end 691.190500
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 691.190500, end 804.887417
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 804.887417, end 990.364375
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 990.364375, end 1133.632500
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 1133.632500, end 1243.742500
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 1243.742500, end 1329.578250
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 1329.578250, end 1393.892500
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 1393.892500, end 1439.229458
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 1439.229458, end 1604.811542
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 1604.811542, end 1976.933292
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 1976.933292, end 2145.977167
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 2145.977167, end 2306.220583
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 2306.220583, end 2342.840500
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 2342.840500, end 2589.295042
      Metadata:
        title           : Chapter 16
    Chapter #0:16: start 2589.295042, end 2866.238375
      Metadata:
        title           : Chapter 17
    Chapter #0:17: start 2866.238375, end 2940.729458
      Metadata:
        title           : Chapter 18
    Chapter #0:18: start 2940.729458, end 3292.539250
      Metadata:
        title           : Chapter 19
    Chapter #0:19: start 3292.539250, end 3488.651833
      Metadata:
        title           : Chapter 20
    Chapter #0:20: start 3488.651833, end 3776.147375
      Metadata:
        title           : Chapter 21
    Chapter #0:21: start 3776.147375, end 3982.937292
      Metadata:
        title           : Chapter 22
    Chapter #0:22: start 3982.937292, end 4110.731625
      Metadata:
        title           : Chapter 23
    Chapter #0:23: start 4110.731625, end 4269.014750
      Metadata:
        title           : Chapter 24
    Chapter #0:24: start 4269.014750, end 4353.682667
      Metadata:
        title           : Chapter 25
    Chapter #0:25: start 4353.682667, end 4487.941792
      Metadata:
        title           : Chapter 26
    Chapter #0:26: start 4487.941792, end 4583.287042
      Metadata:
        title           : Chapter 27
    Chapter #0:27: start 4583.287042, end 4715.001958
      Metadata:
        title           : Chapter 28
    Chapter #0:28: start 4715.001958, end 4870.657458
      Metadata:
        title           : Chapter 29
    Chapter #0:29: start 4870.657458, end 5388.841792
      Metadata:
        title           : Chapter 30
  Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Metadata:
      BPS-eng         : 36449853
      DURATION-eng    : 01:29:48.841791666
      NUMBER_OF_FRAMES-eng: 129203
      NUMBER_OF_BYTES-eng: 24552808167
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.3 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-06-02 06:07:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s32p (24 bit) (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 4377355
      DURATION-eng    : 01:29:48.842666666
      NUMBER_OF_FRAMES-eng: 505204
      NUMBER_OF_BYTES-eng: 2948609728
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.3 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-06-02 06:07:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 1509000
      DURATION-eng    : 01:29:48.842666666
      NUMBER_OF_FRAMES-eng: 505204
      NUMBER_OF_BYTES-eng: 1016470448
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.3 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-06-02 06:07:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:3(fra): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 185
      DURATION-eng    : 01:00:02.619854166
      NUMBER_OF_FRAMES-eng: 10
      NUMBER_OF_BYTES-eng: 83608
      SOURCE_ID-eng   : 001202
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.3 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-06-02 06:07:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:4(spa): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 246
      DURATION-eng    : 01:01:59.319770833
      NUMBER_OF_FRAMES-eng: 14
      NUMBER_OF_BYTES-eng: 114457
      SOURCE_ID-eng   : 001203
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.3 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-06-02 06:07:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:5(por): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 319
      DURATION-eng    : 00:31:22.985270833
      NUMBER_OF_FRAMES-eng: 6
      NUMBER_OF_BYTES-eng: 75311
      SOURCE_ID-eng   : 001204
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.16.3 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-06-02 06:07:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[15:34:35] scan: decoding previews for title 1
[15:34:35] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[15:34:35] scan: audio 0x2: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch) (1536 kbps)
[15:34:36] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 140/140/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1
[15:34:36] libhb: scan thread found 1 valid title(s)
[15:34:36] Starting Task: Encoding Pass
[15:34:36] work: track 1, dithering not supported by codec
[15:34:36] job configuration:
[15:34:36]  * source
[15:34:36]    + C:\Video\Zoolander\Zoolander_t00.mkv
[15:34:36]    + title 1, chapter(s) 1 to 30
[15:34:36]    + container: matroska,webm
[15:34:36]    + data rate: 42340 kbps
[15:34:36]  * destination
[15:34:36]    + C:\Users\novasonic\Videos\Zoolander T00-1.m4v
[15:34:36]    + container: MPEG-4 (libavformat)
[15:34:36]      + chapter markers
[15:34:36]  * video track
[15:34:36]    + decoder: h264 8-bit
[15:34:36]    + filters
[15:34:36]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[15:34:36]      + Decomb (mode=39)
[15:34:36]      + Framerate Shaper (mode=1)
[15:34:36]        + frame rate: 23.976 fps -> constant 23.976 fps
[15:34:36]      + Crop and Scale (width=1920:height=800:crop-top=140:crop-bottom=140:crop-left=0:crop-right=0)
[15:34:36]        + source: 1920 * 1080, crop (140/140/0/0): 1920 * 800, scale: 1920 * 800
[15:34:36]    + Output geometry
[15:34:36]      + storage dimensions: 1920 x 800
[15:34:36]      + pixel aspect ratio: 1 : 1
[15:34:36]      + display dimensions: 1920 x 800
[15:34:36]    + encoder: H.264 (libx264)
[15:34:36]      + preset:  veryslow
[15:34:36]      + profile: main
[15:34:36]      + level:   4.2
[15:34:36]      + quality: 20.00 (RF)
[15:34:36]      + color profile: 1-1-1
[15:34:36]  * audio track 1
[15:34:36]    + name: Stereo 2.0
[15:34:36]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[15:34:36]      + samplerate: 48000 Hz
[15:34:36]    + mixdown: Stereo
[15:34:36]    + encoder: AAC (libavcodec)
[15:34:36]      + bitrate: 320 kbps, samplerate: 48000 Hz
[15:34:36]  * audio track 2
[15:34:36]    + name: Surround 5.1
[15:34:36]    + decoder: English (DTS) (5.1 ch) (1536 kbps) (track 2, id 0x2)
[15:34:36]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[15:34:36]    + DTS Passthru
[15:34:36] sync: expecting 129202 video frames
[15:34:36] encx264: min-keyint: 24, keyint: 240
[15:34:36] encx264: encoding at constant RF 20.000000
[15:34:36] encx264: unparsed options: level=4.2:ref=5:bframes=8:b-adapt=2:direct=auto:analyse=all:8x8dct=0:me=umh:merange=24:subme=10:trellis=2:vbv-bufsize=62500:vbv-maxrate=50000:rc-lookahead=60
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 4.2, 4:2:0, 8-bit
[15:34:36] sync: first pts video is 0
[15:34:36] sync: "Chapter 1" (1) at frame 1 time 0
[15:34:36] sync: first pts audio 0x1 is 0
[15:34:36] sync: first pts audio 0x2 is 0
[15:36:36] sync: "Chapter 2" (2) at frame 4092 time 15356591
[15:37:32] sync: "Chapter 3" (3) at frame 5362 time 20123853
[15:46:29] sync: "Chapter 4" (4) at frame 16573 time 62207145
[15:48:05] sync: "Chapter 5" (5) at frame 19302 time 72451128
[15:51:46] sync: "Chapter 6" (6) at frame 23749 time 89144055
[15:54:30] sync: "Chapter 7" (7) at frame 27181 time 102026925
[15:56:27] sync: "Chapter 8" (8) at frame 29821 time 111936825
[15:58:11] sync: "Chapter 9" (9) at frame 31882 time 119673303
[15:59:33] sync: "Chapter 10" (10) at frame 33421 time 125450325
[16:00:15] sync: "Chapter 11" (11) at frame 34510 time 129538158
[16:02:41] sync: "Chapter 12" (12) at frame 38478 time 144433038
[16:10:16] sync: "Chapter 13" (13) at frame 47402 time 177931503
[16:13:10] sync: "Chapter 14" (14) at frame 51456 time 193149206
[16:16:32] sync: "Chapter 15" (15) at frame 55295 time 207559852
[16:17:06] sync: "Chapter 16" (16) at frame 56173 time 210855645
[16:21:24] sync: "Chapter 17" (17) at frame 62084 time 233044061
[16:25:59] sync: "Chapter 18" (18) at frame 68724 time 257968961
[16:27:16] sync: "Chapter 19" (19) at frame 70511 time 264676912
[16:32:40] sync: "Chapter 20" (20) at frame 78946 time 296339793
[16:35:37] sync: "Chapter 21" (21) at frame 83645 time 313978665


Worker process exited!
Worker process exit was not expected.

# Job Failed (-12)


User avatar
s55
HandBrake Team
Posts: 10009
Joined: Sun Dec 24, 2006 1:05 pm

Re: Handbrake crashing and I can't figure out why

Post by s55 »

There is nothing in the log to indicate what the problem is.

I'd suspect you've got a hardware issue here. Make sure:
1. Temperatures and voltages are within sensible limits
2. Run MemTest86+ to validate memory
3. do not overclock if using HandBrake.
4. Make sure you have the latest BIOS for the board installed.
novasonic
Posts: 2
Joined: Sun Jun 06, 2021 1:37 am

Re: Handbrake crashing and I can't figure out why

Post by novasonic »

Looks like you steered me in the right direction.

I assumed that because my CPU under volt ran Cinebench for an hour without any issues, the problem couldn't be my CPU. Especially since only Handbrake was crashing. The system and other apps were not affected. I set everything back to stock voltages, and it worked fine. I'll have to do some trial and error to find the max under volt I can do and still use Handbrake.

Thanks a lot!
wyliec2
Posts: 25
Joined: Sat Apr 11, 2020 3:06 pm

Re: Handbrake crashing and I can't figure out why

Post by wyliec2 »

Have you checked Event Viewer Application logs??

I have a PC built largely for encoding and it will pass many different stress tests without issue but a long Handbrake encode will fail.

I'll find App Crash errors in the Event Viewer. Dialing back my overclock settings a bit resolves this.

Prime95, Aida64, Cinebench are all simulations - I don't consider a build solid unless I can run multiple HB encodes without App crashes.
Post Reply