Skip to content

Crash at System Startup on macOS 15.5 (M2) with v2.11.47 #2625

@KMyasar

Description

@KMyasar

Describe the bug
After updating to Stats v2.11.47, the app crashes immediately at system startup when "Launch at login" is enabled. The app appears for a second and then closes automatically. However, launching it manually after login works perfectly fine.

To Reproduce
Steps to reproduce the behavior:

  • Enable "Launch at login" in Stats preferences.
  • Reboot the Mac.
  • Observe the app crashing immediately after appearing.

Expected behavior
The app should remain running after login, not crash silently.

Environment:

  • Device: MacBook Pro 16-inch (M1 Pro)
  • macOS: 15.5 (24F74)
  • Stats Version: 2.11.47
  • Architecture: ARM64 (native)
  • Crash behavior: Happens only during login auto-start.

Crash Log Snippet:

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x000000017797ffd0
Terminating Process: exc handler [492]
Thread 14 Crashed:  eu.exelban.Stats.Repeater
Module: ICU (ulocimp_getKeywordValue → ucurr_forLocale → SimpleDateFormat)
The crash appears related to ICU date/locale formatting being initialized too early, possibly before macOS user locale services are fully available at startup.

Workaround Found:

Manually launching Stats after login avoids the crash.
Delaying app launch (e.g., using Automator to sleep for 10 seconds) also prevents the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions