cotabby icon indicating copy to clipboard operation
cotabby copied to clipboard

[Bug] Apo silently crashes quite frquently

Open FuJacob opened this issue 5 months ago • 2 comments

Bug Report

Description

Suddenly it appears that there are no sugestions and no icon in menubar. It happens many times a day.

Environment

  • Cotabby version: 0.6.0-beta
  • macOS version: 26.5.1
  • Mac model: Mac17,6
  • Chip: Apple M5 Max
  • Memory: 128 GB

Submitted via tabby feedback form

FuJacob avatar Jun 14 '26 23:06 FuJacob

Not able to reproduce, have you restarted your computer?

FuJacob avatar Jun 15 '26 04:06 FuJacob

Adding detailed crash forensics from a separate affected machine, since this matches the "no suggestions + no menubar icon, many times a day" symptom — it's a hard crash, not a UI hang or memory kill.

Environment

  • Cotabby 0.6.0-beta (build 47), com.jacobfu.tabby
  • macOS 27.0 (build 26A5353q)
  • MacBook Air, Apple M4, 16 GB (Mac16,12)
  • Engine: llamaOpenSource, model LFM2.5-8B-A1B-Base-UD-Q4_K_M.gguf (both battery and plugged-in), power-based switching enabled

Key finding: it's a real crash, not a clean quit or a memory kill

From the unified log (log show), the process dies leaving a kernel corpse that ReportCrashService turns into a crash report:

10:15:17 runningboardd  [app<...com.jacobfu.tabby...>:958] termination reported by launchd (2, 5, 5)
10:15:17 ReportCrashService  Parsing corpse data for pid 958
10:15:20 osanalyticshelper  Saved type '309' report at .../DiagnosticReports/Cotabby-2026-06-23-101519.ips

RunningBoard explicitly logs this process as not memory-managed ("Ignoring jetsam update because this process is not memory-managed"), so this is not a jetsam / RAM-pressure kill — consistent with this also happening on a 128 GB M5 Max in the original report.

It's deterministic and recurring

Three crashes in the available log window, all with the identical launchd termination triple (2, 5, 5):

Time (local) PID
2026-06-22 ~20:18 59048
2026-06-22 ~21:14 62057
2026-06-23 10:15:17 958

Same exit signature every time → a reproducible crash path rather than random corruption. In active use it recurs roughly every 40–60 minutes (it only survived overnight because the Mac was asleep). Each time the menubar icon and suggestions vanish until the app is relaunched, exactly as described here.

Possibly relevant

Shortly before/after the crash window the log repeatedly shows:

E  Cotabby [com.cotabby.app:app] Visual context generation error: The screenshot did not contain enough visible text to build prompt context.

from the surface/visual-context (screen-reading) path — flagging in case the crash is in that code path.

Note for whoever debugs this

macOS purged the .ips (moved to DiagnosticReports/Retired/ and deleted) before I could capture the symbolicated stack. The (2, 5, 5) launchd termination signature points at an EXC_* crash (the 5 is consistent with a SIGTRAP/EXC_BREAKPOINT Swift runtime trap — e.g. fatalError, force-unwrap of nil, or bounds/overflow precondition). Grabbing the next ~/Library/Logs/DiagnosticReports/Cotabby-*.ips before it's retired would pin down the exact faulting frame.

Sewagewaste avatar Jun 23 '26 10:06 Sewagewaste