Skip to content

macOS 26.5: App crashes on launch — V8 Fatal process out of memory (CodeRange) #447

Description

@a1461750564

Issue Description

The OpenAgents Launcher (v0.8.1) crashes immediately on launch on macOS 26.5 (build 25F71). The app shows no UI and exits with code 133.

Environment

Item Value
macOS 26.5 (build 25F71)
Hardware Apple Silicon (arm64), Mac16,10
RAM 16 GB
App Version 0.8.1
Electron Version 33.4.11
Architecture arm64 native
App Build SDK macOS 14.5 (Xcode 15.4)

Error Output

Running the executable directly:

Fatal process out of memory: Failed to reserve virtual memory for CodeRange

Crash type: EXC_BREAKPOINT / SIGTRAP in v8::Isolate::Initialize()

Full crash log excerpt (from ~/Library/Logs/DiagnosticReports/):

  • exception: EXC_BREAKPOINT, signal SIGTRAP
  • termination: Trace/BPT trap: 5, by exc handler
  • faulting thread: main thread, frame 0 in v8::Isolate::Initialize
  • procLaunch → procExit: ~55ms (instant crash)

Root Cause Analysis

The Electron framework is compiled against the macOS 14.5 SDK. macOS 26.5 appears to have changed how MAP_JIT memory reservations work for V8 JIT compilation (the CodeRange region). The mmap call for the JIT code area fails during V8 isolate initialization, causing an immediate fatal crash before any UI renders.

This is not a physical memory shortage — the crash persists even with 8+ GB of free RAM.

Steps to Reproduce

  1. Install OpenAgents Launcher v0.8.1 on macOS 26.5 (Apple Silicon)
  2. Double-click the app or run from terminal
  3. App crashes instantly with no UI

Things I Already Tried

  • Removed quarantine attribute (xattr -rd com.apple.quarantine)
  • Verified code signature (codesign -vvv → valid, notarized)
  • --jitless flag — still crashes
  • --no-sandbox --disable-gpu — still crashes
  • --disable-features=V8VmFuture — still crashes
  • Freed RAM to 8+ GB available — still crashes
  • Verified entitlements include com.apple.security.cs.allow-unsigned-executable-memory

Suggested Fix

Rebuild the Electron app with a newer macOS SDK (≥ the current macOS 26 SDK) so that the Electron/V8 binary is compatible with the updated MAP_JIT memory allocation behavior on macOS 26.5. This likely requires updating the Electron version used in the build pipeline.

Crash Report

Full .ips crash log is available in ~/Library/Logs/DiagnosticReports/ — happy to attach if needed.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions