Skip to content

Chroma Smooth filter crashes Worker process (exit -12) #7033

Closed

Description

@pfisher-godaddy

Problem Description

HandBrake Versions Tested:

1.6.0 — No crash (known good)

1.9.2 (stable) — Crash present

Nightly 20250714064936-5bdeb5958-master — Crash present

SVT‑AV1 Version (in affected builds): v3.0.2

OS: Windows 10.0.22631.0 on AMD Ryzen 9 9950X3D (32 logical cores)

Test Clip: https://www.dropbox.com/scl/fi/n7dnxosgqyvrk16ims533/Test-video-fails-Chroma-Smooth.mkv?rlkey=sq2kjlpsyaxwv23w79nb2n1ev&e=1&st=oz648rc4&dl=0

Steps to Reproduce:

Load the provided test clip into HandBrake.

In Filters, enable Chroma Smooth only; leave every other filter disabled.

Start an encode (any video encoder—AV1, x265 or x264).

Expected Behavior:
Encode completes normally.

Actual Behavior:
HandBrake worker process exits unexpectedly with “# Job Failed (-12)” a few seconds into the encode.

Relevant Log Snippet:

[...]

  • Chroma Smooth (cb-strength=0.4:cb-size=7)
    …
    [time] Worker process exited!

Job Failed (-12)

Workaround:
1> Disabling Chroma Smooth avoids the crash entirely.
2> Use Older version of handbrake (e.g. 1.6.0)

Regression Window:
Known good in 1.6.0; confirmed broken in 1.9.2 and latest nightly—regression occurred sometime between those releases.

Activity Log, Crash Log or any other details

HandBrake 1.9.2 (2025022300)
OS: Microsoft Windows NT 10.0.22631.0
CPU: AMD Ryzen 9 9950X3D 16-Core Processor          
Ram: 96872 MB, 
GPU Information:
  AMD Radeon(TM) Graphics - 32.0.21013.4013
  NVIDIA GeForce RTX 4070 Ti SUPER - 32.0.15.7680
Screen: 2560x1440
Temp Dir: C:\Users\P\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake\
Data Dir: C:\Users\P\AppData\Roaming\HandBrake

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

 # Starting Encode ...

[14:23:27] base preset: AV1, 10 bit, 43, Eng subs, 5.1 sound (Modified)
[14:23:27] Remote Process started with Process ID: 29996 using port: 8041. Max Allowed Instances: 1
[14:23:27] Worker: Starting HandBrake Engine ...
[14:23:27] Worker: Parent Process Id 53088
[14:23:27] Worker: Starting Web Server on port 8041 ...
[14:23:27] Worker: Starting Listener: 1
[14:23:27] Worker: Server Started
[14:23:27] Worker: Disconnected worker monitoring enabled!
[14:23:27] Compile-time hardening features are enabled
[14:23:27] nvenc: version 13.0 is available
[14:23:27] nvdec: is available
[14:23:27] CUDA Version: 8.9
[14:23:27] vcn: is available
[14:23:27] qsv: not available on this system
[14:23:27] hb_init: starting libhb thread

[14:23:27] Starting work at: Thu Jul 17 14:23:27 2025
[14:23:27] 1 job(s) to process
[14:23:27] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 192,
        "DRC": 0,
        "Encoder": "av_aac",
        "Gain": 0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:eac3",
      "copy:truehd",
      "copy:dts",
      "copy:dtshd",
      "copy:mp2",
      "copy:mp3",
      "copy:opus",
      "copy:flac"
    ],
    "FallbackEncoder": "av_aac"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "C:\\Users\\P\\Videos\\test.mkv",
    "Options": {
      "IpodAtom": false,
      "Optimize": false
    },
    "Mux": "av_mkv"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 20,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "14",
          "crop-right": "0",
          "crop-top": "0",
          "height": "1064",
          "width": "1362"
        }
      },
      {
        "ID": 15,
        "Settings": {
          "cb-size": 7,
          "cb-strength": 0.80000000000000004
        }
      },
      {
        "ID": 11,
        "Settings": {
          "mode": "0"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "E:\\WorkingTemp\\I Claudius (BBC) (1976) TV Series multisub 1080p (moviesbyrizzo upl)\\I Claudius EP01 (BBC) A touch of murder 1080p (moviesbyrizzo upl)_1_prob4 (1)-001.mkv",
    "HWDecode": 4,
    "KeepDuplicateTitles": false
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "svt_av1_10bit",
    "Level": "auto",
    "MultiPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "4",
    "Profile": "auto",
    "Quality": 43,
    "QSV": {
      "Decode": false
    },
    "HardwareDecode": 0
  }
}
[14:23:27] CPU: AMD Ryzen 9 9950X3D 16-Core Processor
[14:23:27]  - logical processor count: 32
[14:23:27] Intel Quick Sync Video support: no
[14:23:27] hb_scan: path=E:\WorkingTemp\I Claudius (BBC) (1976) TV Series multisub 1080p (moviesbyrizzo upl)\I Claudius EP01 (BBC) A touch of murder 1080p (moviesbyrizzo upl)_1_prob4 (1)-001.mkv, title_index=1
Input #0, matroska,webm, from 'E:\WorkingTemp\I Claudius (BBC) (1976) TV Series multisub 1080p (moviesbyrizzo upl)\I Claudius EP01 (BBC) A touch of murder 1080p (moviesbyrizzo upl)_1_prob4 (1)-001.mkv':
  Metadata:
    COMPATIBLE_BRANDS: mp42dby1iso2avc1mp41
    creation_time   : 2025-07-17T13:23:04.000000Z
    VIDEOAI         : Enhanced using prob-4; mode: auto; revert compression at 0; recover details at 0; sharpen at 0; reduce noise at 0; dehalo at 0; anti-alias/deblur at 0; and focus fix Standard
    MAJOR_BRAND     : mp42
    MINOR_VERSION   : 512
    ENCODER         : Lavf61.9.100
  Duration: 00:00:03.62, start: 0.000000, bitrate: 6540 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 3.584000
      Metadata:
        title           : Chapter 1
  Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt709), 1376x1064 [SAR 1:1 DAR 172:133], 25 fps, 25 tbr, 1k tbn
      Metadata:
        BPS             : 6326913
        DURATION        : 00:00:03.600000000
        NUMBER_OF_FRAMES: 90
        NUMBER_OF_BYTES : 2847111
        _STATISTICS_WRITING_APP: mkvmerge v93.0 ('Goblu') 64-bit
        _STATISTICS_WRITING_DATE_UTC: 2025-07-17 13:23:04
        _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 224 kb/s (default)
      Metadata:
        HANDLER_NAME    : Stereo
        VENDOR_ID       : [0][0][0][0]
        BPS             : 224000
        DURATION        : 00:00:03.616000000
        NUMBER_OF_FRAMES: 113
        NUMBER_OF_BYTES : 101248
        _STATISTICS_WRITING_APP: mkvmerge v93.0 ('Goblu') 64-bit
        _STATISTICS_WRITING_DATE_UTC: 2025-07-17 13:23:04
        _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[14:23:27] scan: decoding previews for title 1
[14:23:28] scan: audio 0x1: ac3, rate=48000Hz, bitrate=224000 English (AC3, 2.0 ch, 224 kbps)
[14:23:28] using container PAR 1:1
[14:23:28] scan: 10 previews, 1376x1064, 25.000 fps, autocrop = 0/0/14/0, aspect 1.29:1, PAR 1:1, color profile: 1-1-1, chroma location: left
[14:23:28] scan: supported video decoders: avcodec hwaccel
[14:23:28] libhb: scan thread found 1 valid title(s)
[14:23:28] Starting Task: Encoding Pass
[14:23:28] work: track 1, dithering not supported by codec
[14:23:28] work: only 1 chapter, disabling chapter markers
[14:23:28] job configuration:
[14:23:28]  * source
[14:23:28]    + E:\WorkingTemp\I Claudius (BBC) (1976) TV Series multisub 1080p (moviesbyrizzo upl)\I Claudius EP01 (BBC) A touch of murder 1080p (moviesbyrizzo upl)_1_prob4 (1)-001.mkv
[14:23:28]    + title 1, chapter(s) 1 to 1
[14:23:28]    + container: matroska,webm
[14:23:28]    + data rate: 6540 kbps
[14:23:28]  * destination
[14:23:28]    + C:\Users\\Videos\test.mkv
[14:23:28]    + container: Matroska (libavformat)
[14:23:28]  * video track
[14:23:28]    + decoder: hevc 10-bit (yuv420p10le)
[14:23:28]    + filters
[14:23:28]      + Framerate Shaper (mode=0)
[14:23:28]        + frame rate: same as source (around 25.000 fps)
[14:23:28]      + Crop and Scale (width=1362:height=1064:crop-top=0:crop-bottom=0:crop-left=14:crop-right=0)
[14:23:28]        + source: 1376 * 1064, crop (0/0/14/0): 1362 * 1064, scale: 1362 * 1064
[14:23:28]      + Chroma Smooth (cb-strength=0.8:cb-size=7)
[14:23:28]    + Output geometry
[14:23:28]      + storage dimensions: 1362 x 1064
[14:23:28]      + pixel aspect ratio: 1 : 1
[14:23:28]      + display dimensions: 1362 x 1064
[14:23:28]    + encoder: AV1 10-bit (SVT)
[14:23:28]      + preset:  4
[14:23:28]      + profile: auto
[14:23:28]      + level:   auto
[14:23:28]      + quality: 43.00 (RF)
[14:23:28]      + color profile: 1-1-1
[14:23:28]      + color range: tv
[14:23:28]      + chroma location: left
[14:23:28]  * audio track 1
[14:23:28]    + decoder: English (AC3, 2.0 ch, 224 kbps) (track 1, id 0x1)
[14:23:28]      + bitrate: 224 kbps, samplerate: 48000 Hz
[14:23:28]    + mixdown: Stereo
[14:23:28]    + encoder: AAC (libavcodec)
[14:23:28]      + bitrate: 192 kbps, samplerate: 48000 Hz
[14:23:28] sync: expecting 90 video frames
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:	SVT-AV1 Encoder Lib v2.3.0
Svt[info]: SVT [build]  :	GCC 13.2.0	 64 bit
Svt[info]: -------------------------------------------
Svt[info]: Level of Parallelism: 6
Svt[info]: Number of PPCS 305
Svt[info]: [asm level on system : up to avx512]
Svt[info]: [asm level selected : up to avx512]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile	tier (auto)	level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator 		: 1368 / 1064 / 25 / 1
Svt[info]: SVT [config]: bit-depth / color format 					: 10 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct 					: 4 / VQ / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type 			: 256 / 32 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor 					: CRF / 43
Svt[info]: SVT [config]: AQ mode / variance boost 					: 2 / 0
Svt[info]: -------------------------------------------
[14:23:28] sync: first pts video is 0
[14:23:28] sync: "Chapter 1" (1) at frame 1 time 0
[14:23:28] sync: first pts audio 0x1 is 0
[14:23:28] reader: done. 1 scr changes

[14:23:42] Worker process exited!
[14:23:42] Worker process exit was not expected.

 # Job Failed (-12)

What Operating System are you running?

Windows 11

What version of HandBrake are you running?

1.9.2 (and nightly - see report)

Where did you download HandBrake from?

github

Activity

  1. github-actions commented on Jul 17, 2025

    @github-actions

    Hello,

    Welcome to the HandBrake repository.

    Warning

    Please be cautious of any non-members suggesting that you download a "DLL" or any other files from 3rd party websites.
    These are likely malicious!
    Members of the HandBrake team can be identified by the "(Member)" label in the top right of any response from them.

    Thank You,
    The HandBrake Bot

  2. bradleysepos commented on Jul 17, 2025

    @bradleysepos
    Contributor

    What version was your preset created using? If you recreate it, does that fix the problem?

  3. galad87 commented on Jul 17, 2025

    @galad87
    Contributor

    I can confirm, it happens if the source buffer has a different stride than the destination buffer, and the bit depth is > 8. I forgot to divide the buffer stride by 2 in the high depth case. I'll fix it soon.

  4. added a commit that references this issue on Jul 18, 2025
    5f86113
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions