Skip to content

[Bug]: MacUtilGUI crashes instantly on Intel Mac (SkiaSharp/Avalonia init failure) #62

Description

@MilfzBanger

Distribution

Arch

Specify Distribution (if "Other" selected)

MAC OS

Desktop Environment / Window Manager

GNOME

Specify Desktop Environment/Window Manager (if "Other" selected)

SEQUOIA LATEST

Windowing System

X11

macutil Version

0.2.1 (MacUtil-Universal.app)

Branch

main

Specify Branch (if "Other" selected)

No response

Describe the bug

Crash type: SIGABRT (Abort trap: 6), thrown from  SkiaSharp.SKImageInfo..cctor()  during Avalonia startup.
Stack trace (key frames): at SkiaSharp.SKImageInfo..cctor()
--- End of inner exception stack trace ---
at Avalonia.Skia.SkiaPlatform.Initialize(SkiaOptions options)
at Avalonia.AppBuilder.SetupUnsafe()
at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder builder, String[] args, Action`1 lifetimeBuilder)
at MacUtilGUI.Program.main(String[] argv) in /Users/titus/github/macutil/MacUtilGUI/Program.fs:line 31

Suspected cause: The bundled  libSkiaSharp.dylib  inside the “Universal” app appears to be missing the x86_64 slice, so it fails to load on Intel Macs even though the outer wrapper launches correctly as an x86-64 process.

Steps to reproduce

  1. Download  MacUtil-Universal.app.zip  from the 0.2.1 release
  2. Clear quarantine:  xattr -cr MacUtil-Universal.app 
  3. Launch via  open MacUtil-Universal.app  or directly via  ./Contents/MacOS/MacUtilGUI 
  4. App crashes within ~1.5s with SIGABRT

Expected behavior

The app should launch normally and display the MacUtil GUI, allowing selection of macOS tweaks/optimizations (similar to how WinUtil behaves on Windows). Since the release is labeled “Universal,” it should launch and render correctly on both Intel (x86-64) and Apple Silicon (arm64) Macs without crashing.

Additional context

No response

Screenshots

No response

Checklist

  • I checked for duplicate issues.
  • I checked existing discussions.
  • This issue is not included in the roadmap.
  • This issue is present on both stable and development branches.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions