Mythic icon indicating copy to clipboard operation
Mythic copied to clipboard

[bug]: zsh trace: trap logged, but otherwise crash on first install, ever

Open fdenzer opened this issue 1 year ago • 1 comments

Describe the bug

Gave my crash log, with private data, to OpenAI o3. It says:

The crash report clearly shows that the Mythic app (v0.4.5) crashed on macOS 15.5 due to a SIGTRAP (EXC_BREAKPOINT) error. This type of signal typically indicates that the application intentionally triggered a breakpoint or encountered an invalid state during development (commonly via fatalError() or an unhandled optional). Concrete Cause

Crash occurred at:

Thread 0 Crashed: 0 Mythic @ 0x100bb3ad4 (+1030868 bytes from base)

This address lies within the Mythic binary, specifically in SwiftUI rendering logic. Stack trace:

Settings.init(content:) → Mythic@0x100bb9424

This strongly suggests that the app is crashing while trying to build or render a Settings UI View, likely during AppBodyAccessor.updateBody. Probable Immediate Cause

Crash likely occurs due to a faulty SwiftUI Settings view initialization, possibly involving:

A missing or malformed URL, environment variable, or resource (e.g. Bundle.main.url(...))

A force-unwrapped optional in Settings.init

A fatalError() or .expectationFailure() used in a debug assertion

Line in Code Likely Responsible

Based on symbol offset (+1030868), this is inside or adjacent to:

Settings.init(content:)

Which probably forcefully unwraps or assumes the existence of something that isn’t valid during launch. How to Proceed

If you’re the developer:

    Check SettingsView.swift (or whatever builds Settings.init(content:))

    Look for:

        .unwrap() or ! on an optional (e.g., URL!)

        Conditional logic that might not be true during first run

        Unavailable resources like a Config.plist, a file in Bundle, or a custom font/image

How to reproduce

0.4.5 build installed. crashes from download folder and ~/Applicications as normal user.

Mac & App Information

macOS 15.5 (Build 25F143) macbook pro m3 (max? fast or fastest on MBP from that year)

Logs


Before submitting

  • [x] I've made research efforts
  • [x] I've searched for existing issues

fdenzer avatar Jul 20 '25 22:07 fdenzer

Does this error still occur?

zenfty avatar Feb 16 '26 11:02 zenfty