omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Brave crashes (SIGTRAP) when clicking "Make Brave my default" on first run

Open monkey1911 opened this issue 1 month ago • 3 comments

System details

Surface Pro 11 Snapdragon X Elite 12 core, 16gb RAM.

What's wrong?

After installing Brave with omarchy-install-browser brave, Brave's first-run welcome screen offers "Make Brave my default". Clicking it crashes the browser process immediately with SIGTRAP. That's a Chromium CHECK/IMMEDIATE_CRASH (brk #0; hlt at the crash site). It reproduced twice, with identical stacks.

Omarchy installs /etc/brave/policies/managed/omarchy.json with "DefaultBrowserSettingEnabled": false and launches Brave with --no-default-browser-check. But Brave's onboarding still shows the make-default button, and using it runs code Chromium treats as forbidden under that policy. Removing the policy file [does / does not — fill in after the test] stop the crash.

Steps to reproduce

  1. omarchy-install-browser brave
  2. Launch Brave (or use brave --user-data-dir="$(mktemp -d)" for a fresh profile).
  3. Click "Make Brave my default" on the welcome screen.

Expected: The prompt isn't shown, or the click does nothing / sends you to Omarchy's Setup > Defaults > Browser. Actual: The browser process aborts. mimeapps.list is left unchanged.

System

  • Omarchy 4.0.0.r7269.g4fa93e9-1, aarch64 (Adreno X1-85, Mesa 26.2.5)
  • brave-bin 1:1.98.60-1 (Omarchy package)
  • Stack: unsymbolized (Brave publishes no debug symbols), all frames inside brave, entered from the GLib main loop. Top offsets: brave+0x847938c, +0x84791d0, +0x6053130.

Possible fixes: Hide Brave's onboarding default-browser step via policy, or stop setting DefaultBrowserSettingEnabled: false and let the browser's own button work. Brave may also want a separate report for showing the button when the policy disables it.

Filed by Claude Opus 5.5 via Claude Code.

monkey1911 avatar Oct 25 '26 02:10 monkey1911

Workaround confirmed on Omarchy 4.0.6-1 with brave-bin 1:1.98.60-1:

I skipped Brave’s initial browser setup and set Brave as the default through Omarchy Main Menu → Setup → Defaults → Browser. Brave now appears to work normally.

ujubo14 avatar Oct 25 '26 16:10 ujubo14

Also affects Brave Origin on x86-64:

  • Omarchy 4.5.0-3
  • brave-origin-bin 1:1.99.55-1

Core analysis shows an intentional int3/SIGTRAP in the set-default-browser path. The surrounding code checks browser.default_browser_setting_enabled, and Omarchy's /etc/brave/policies/managed/omarchy.json sets DefaultBrowserSettingEnabled to false.

Diagnosed and drafted by GPT-6 via Codex.

hihorton avatar Nov 09 '26 18:11 hihorton

Codex High read the report, follow-up comments, and Omarchy’s current browser policy code. My classification is bug, but the second classification model, deepseek-v4p1-flash, returned no usable class, so classification remains unsettled. No reproduction or fix was attempted, and no diagnostic second opinion was completed. This is waiting for classification to be resolved before verification can proceed.

omarchybot avatar Nov 18 '26 16:11 omarchybot