Melt 7.41.0 crashes on macOS 15.7.7 (Intel) with mutex lock failed: Invalid argument
Environment
-
Shotcut: 26.8.1
-
MLT / Melt: 7.41.0
-
OS: macOS 15.7.7 (24G720)
-
Mac: iMac 2020, Intel x86-64
-
Architecture: x86-64 (native)
Problem
When exporting a video, Shotcut reports that the export failed because the melt process crashes.
The following message appears:
No LV2 plugins were found! Check your LV2_PATH environment variable.
mlt_vst_hostCanDo("sendVstEvents")
mlt_vst_hostCanDo("sendVstMidiEvent")
...
mlt_vst_hostCanDo("asyncProcessing") - unknown feature
mlt_vst_hostCanDo("editFile") - unknown feature
The important part of the crash is:
libc++abi: terminating due to uncaught exception of type std::__1::system_error:
mutex lock failed: Invalid argument
zsh: abort
The macOS crash report shows:
Process: melt
Exception Type: EXC_CRASH (SIGABRT)
Application Specific Information:
abort() called
The crash occurs on the main thread during process termination.
Reproduction
The problem can be reproduced without Shotcut, without a project file, without an input video, and without audio.
Running:
/Applications/Shotcut.app/Contents/MacOS/melt color:red out=100 -consumer avformat:/tmp/melt-test.mp4 vcodec=libx264 acodec=aac
produces the following:
mlt_vst_hostCanDo("asyncProcessing") - unknown feature
mlt_vst_hostCanDo("editFile") - unknown feature
[libx264] The "dc" option is deprecated
[libx264] interlace + weightp is not implemented
Current Position: 100
libc++abi: terminating due to uncaught exception of type std::__1::system_error:
mutex lock failed: Invalid argument
zsh: abort
Additional tests
I have also tested:
-
Exporting from a normal Shotcut project → Melt crashes
-
Disabling audio → Melt still crashes
-
Starting Shotcut with a completely fresh configuration → Melt still crashes
-
Temporarily removing all installed VST plugins → Melt still crashes
-
Running Melt directly from the Shotcut application bundle → Melt crashes
-
Using the older Shotcut 24.11.17 on the same Mac and OS → export works correctly
Therefore the problem appears to be independent of the Shotcut project, input video, audio, and installed VST plugins.
Expected behavior
Melt should complete the export and terminate normally.
Actual behavior
Melt completes the rendering but aborts during process termination with:
std::__1::system_error: mutex lock failed: Invalid argument
Shotcut consequently reports the export as failed.
Question
Could this be a regression in MLT/Melt 7.41.0 on Intel macOS?
The fact that Shotcut 24.11.17 works correctly on the same machine, while the current version using Melt 7.41.0 crashes, may help to identify the regression.
I would be happy to provide the complete macOS crash report or any additional diagnostic information needed.