Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
Codex Desktop 26.623.81905 build 4598
Codex Framework / Chromium in crash report: 149.0.7827.197
What subscription do you have?
ChatGPT Pro
What platform is your computer?
- macOS
26.5.1 (25F80) - Apple Silicon / ARM64
- Hardware Model:
Mac16,13 - Memory module shown in report:
LPDDR5, Micron - System Integrity Protection: enabled
What issue are you seeing?
Codex Desktop quit unexpectedly while running in the background. The macOS crash report points to an EXC_BREAKPOINT / SIGTRAP crash in a file-watcher / FSEvents path rather than a memory-pressure kill.
Crash summary from the macOS report:
Process: Codex [9424]
Path: /Applications/Codex.app/Contents/MacOS/Codex
Identifier: com.openai.codex
Version: 26.623.81905 (4598)
Code Type: ARM-64 (Native)
Role: Background
Date/Time: 2026-07-01 09:06:24.0005 +0200
Launch Time: 2026-06-30 22:13:24.9933 +0200
OS Version: macOS 26.5.1 (25F80)
Triggered by Thread: 51
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x000000012c288898
Termination Reason: Namespace SIGNAL, Code 5, Trace/BPT trap: 5
Terminating Process: exc handler [9424]
Crashing thread excerpt:
Thread 51 Crashed:
0 Codex Framework 0x12c288898 temporal_rs_PlainDateTime_hour + 5760080
1 Codex Framework 0x12c288898 temporal_rs_PlainDateTime_hour + 5760080
2 Codex Framework 0x12c2888b0 temporal_rs_PlainDateTime_hour + 5760104
3 Codex Framework 0x12c2888cc temporal_rs_PlainDateTime_hour + 5760132
4 Codex Framework 0x12c288f58 temporal_rs_PlainDateTime_hour + 5761808
5 Codex Framework 0x12c288df8 temporal_rs_PlainDateTime_hour + 5761456
6 Codex Framework 0x12482280c v8::internal::compiler::CompilationDependencies::RecordDependency(...) + 109820
7 Codex Framework 0x12463be30 v8::TryCatch::TryCatch(v8::Isolate*) + 34024
8 Codex Framework 0x12c28fc58 temporal_rs_PlainDateTime_hour + 5789712
9 FSEvents 0x19a01ba54 _FSEventStreamCreate + 900
10 FSEvents 0x19a016d4c FSEventStreamCreate + 76
11 Codex Framework 0x12fe2a008 uv__fsevents_close + 1472
12 CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
13 CoreFoundation __CFRunLoopDoSource0 + 172
14 CoreFoundation __CFRunLoopDoSources0 + 232
15 CoreFoundation __CFRunLoopRun + 820
16 CoreFoundation _CFRunLoopRunSpecificWithOptions + 532
17 CoreFoundation CFRunLoopRun + 64
18 Codex Framework 0x12fe2a0e8 uv__fsevents_close + 1696
19 libsystem_pthread.dylib _pthread_start + 136
20 libsystem_pthread.dylib thread_start + 8
The crash report did not show EXC_RESOURCE, jetsam, memorystatus, or another explicit out-of-memory termination reason. A narrow unified-log check around the crash did not show a matching memory-pressure kill event.
After relaunch, stale orphaned helpers from the crashed session were still present with PPID 1 and the original June 30 launch time:
9426 browser_crashpad_handler
9428 browser_crashpad_handler
9442 bare-modifier-monitor --key DoubleCommand --immediate
9453 /Applications/Codex.app/Contents/Resources/codex app-server --analytics-default-enabled
9529 bare-modifier-monitor --key RightOption --trigger-on-release
They exited cleanly after sending normal TERM. The current relaunched Codex process tree remained running.
What steps can reproduce the bug?
I do not have a deterministic minimal reproduction yet.
Observed sequence:
- Launch Codex Desktop
26.623.81905on macOS26.5.1. - Use Codex normally over a long-running session.
- Leave Codex running in the background.
- Codex unexpectedly quits after roughly 10h 53m of app uptime.
- macOS records
EXC_BREAKPOINT / SIGTRAPonThread 51, with top frames involvingFSEventStreamCreateanduv__fsevents_close. - After relaunch, stale helper processes from the crashed session remain orphaned under
launchduntil manually terminated.
What is the expected behavior?
Codex Desktop should not crash while closing or managing file-system watchers. If an FSEvents/libuv watcher operation fails during shutdown or cleanup, it should fail gracefully without terminating the main app process.
After a crash/restart, Codex should not leave stale app-server / helper processes from the old crashed session running under launchd.
Additional information
This appears related to the broader recent family of macOS Desktop EXC_BREAKPOINT / SIGTRAP crashes, but I did not find an exact existing issue for this newer build plus the FSEvents/libuv crash frame.
Related issues:
- Codex Desktop 26.623.61825 crashes with EXC_BREAKPOINT/SIGTRAP in CrBrowserMain on macOS 27.0 #30553 - Codex Desktop 26.623.61825 crashes with EXC_BREAKPOINT/SIGTRAP in CrBrowserMain on macOS 27.0
- Repeated macOS Codex Desktop 26.609 crashes: CrBrowserMain EXC_BREAKPOINT, Renderer SIGABRT, stale app-server helpers #27880 - Repeated macOS Codex Desktop 26.609 crashes: CrBrowserMain EXC_BREAKPOINT, Renderer SIGABRT, stale app-server helpers
- Codex Desktop app-server leaks child processes and writes excessive logs after crash/restart #26869 - Codex Desktop app-server leaks child processes and writes excessive logs after crash/restart
I am not attaching the full raw crash report publicly because it contains local paths, timestamps, identifiers, and process command lines. I can provide a redacted excerpt or the full report privately if useful.
Activity
andybergon commentedon Jul 2, 2026
Adding another matching data point from macOS.
Environment:
26.623.70822build4559for the first crash, then26.623.81905build4598for the second crash26.5.1 (25F80)Mac17,8Crash reports found locally:
Both crash reports have the same relevant faulting-thread shape as this issue:
The first crash is useful because it shows the same FSEvents/libuv
EXC_BREAKPOINT / SIGTRAPsignature one build earlier (26.623.70822/4559). The second crash matches this issue's build (26.623.81905/4598).Adjacent app-log signal around the second crash: the Desktop log for the crashed PID repeatedly logged
codex_chroniclelock contention before the crash window:That lock-wait message repeated roughly every 10 seconds and was still repeating immediately before the
14:19:38 +0100crash. After a later restart, a new Desktop log still showed the sameWaiting to acquire lock (owned by pid=48820)...loop.I am not attaching the full
.ipsor raw app logs publicly because they include local paths, process details, and identifiers. I can provide redacted excerpts or the raw files privately if helpful.SoraTakai commentedon Jul 2, 2026
I'm getting this too, very often.
It is a critical bug.
It crashes when I'm not doing anything on it.
gm-fire commentedon Jul 3, 2026
Adding another sanitized data point from a newer 26.623 build. This looks related to the same background-crash/stale-helper family, but with a few useful differences: stable macOS 15.3.1, app build 4674, and no pre-crash ERROR/WARN in Codex's own SQLite log window.
Environment:
26.623.101652/ build4674149.0.7827.19715.3.1 (24D70)Mac16,10Crash summary from the macOS
.ipsreport:Top sanitized crashing frames:
VM triage lines in the same report:
Post-crash process state:
17:10:52 +0800, newcodex app-server --analytics-default-enabledchild around17:10:56 +0800.codex app-server --analytics-default-enabledfrom the pre-crash session remained underlaunchd(PPID=1) after relaunch. I am omitting raw PIDs and local paths here.Local log checks:
ptype=browser,osarch=arm64); no useful minidump payload was available locally.[email protected].logs_2.sqlitehad no ERROR/WARN rows in the 10 minutes before the crash (17:00:23-17:10:23 +0800). It only showed normalcodex_app_server::thread_stateDEBUG rows in that pre-crash window.17:10:23-17:20:23 +0800),logs_2.sqliteresumed with normal post-relaunch DEBUG/TRACE/INFO activity and one WARN fromcodex_core_plugins::manifest.I intentionally did not attach the raw
.ipsor raw Codex log rows because they may contain local identifiers. I can provide a further-redacted excerpt if maintainers need a specific section.SoraTakai commentedon Jul 4, 2026
What I don't understand is, how this critical bug gets literally zero response from the dev for so many days.
This is exactly why bug fixing should be automated by LLMs, like Anthropic does it.
kerimala commentedon Jul 11, 2026
Adding a new matching crash from a substantially newer Desktop build. The exact FSEvents/libuv signature is still present.
Environment:
26.707.41301/ build5103150.0.7871.11526.5.2 (25F84)Mac16,13Crash summary:
Local correlation:
git-repo-watcherinstances across several repositories.Inference: the crash report still points to a race/assertion while creating or closing a macOS FSEvents stream, likely in watcher lifecycle cleanup. The available logs do not identify one specific repository, file operation, prompt, or user action as the trigger.
Post-crash, the old process tree was not fully reaped. On 2026-07-12, the pre-crash
codex app-server,codex-code-mode-host, twobrowser_crashpad_handlerprocesses, and twobare-modifier-monitorprocesses were still alive underlaunchdwith PPID 1, alongside the newly relaunched app tree.The raw crash report and logs are not attached because they contain local paths and identifiers; sanitized excerpts can be provided if needed.
shunkakinoki commentedon Sep 19, 2026
Same FSEvents/libuv signature on a much newer build and on macOS 27. This report also captures the concurrent thread: a Node
gitworker was closing anfs.watchhandle when the FSEvents thread trapped.Environment:
26.915.31945/ build9922153.0.8010.4827.0 (26A428)Mac16,5(Apple Silicon / ARM64)Crash summary:
Crashing thread (unnamed libuv FSEvents run-loop thread):
Concurrent thread at crash time, the
gitNode worker, blocked closing an FSEvents watcher:Observations:
gitworker is inuv_fs_event_stop->uv__fsevents_close(waiting on the loop semaphore) while the shared FSEvents thread is insideFSEventStreamCreatere-creating the stream from its run-loop source callback. This looks like a close vs. stream-reschedule race in libuv's fsevents backend, triggered by a watcher owned by thegitworker being torn down in response to a worker message.x9 = 0x00657a69735f6176(ASCII"va_size"),x1 = x19 = 0x200000(2 MB). This may be a CHECK on a 2 MB reservation in the Framework's allocator, but that is not confirmed.EXC_RESOURCE, jetsam, or memorystatus termination. The crash happened in the background, with no user interaction.So far this signature covers builds
26.623.x->26.707.41301->26.915.31945, Framework149->150->153, and macOS 15.3.1, 26.5.x, and 27.0.olive8882-1996 commentedon Sep 21, 2026
Adding a matching crash from ChatGPT Desktop 26.915.31945 / build 9922 on macOS 26.5 (25F71), plus a possible watcher-lifecycle trigger that may help investigate this issue. This is a sanitized report from my local diagnostics.
Environment
com.openai.codex153.0.8010.48Crash signature
The concurrent thread named
gitwas waiting insemaphore_wait_trap -> uv__fsevents_close -> uv_fs_event_stop. As in the newer report above, the top crash symbol is shown asnode::inspector::protocol::BinaryValue::AppendSerialized + 18561212; that large offset should not be treated as accurate source-level symbolication.Repeated occurrences
Of nine retained local crash reports, seven contain the FSEvents/libuv path:
The other two, on September 20, have a main-thread CrBrowserMain/V8 signature; I am not asserting that all nine have the same root cause.
Potentially useful pre-crash correlation
From 02:07:34 to 06:36:40 UTC on September 21, the
gitworker logged 3,175 failed attempts to watch the same already-missing worktree directory, approximately every five seconds:The final such log was at 06:36:40.570 UTC, about one second before the crash. Read-only inspection of the installed worker code showed reconnect backoff from 250 ms to a 5,000 ms cap, without an apparent retry-count limit in that watcher reconnect method. A git-repo-watcher start was also logged at 06:36:37.210 UTC.
This is a correlation / possible trigger or amplifier, not a proven cause. I did not find the same ENOENT messages in the retained September 15 app logs, so this missing-directory loop does not explain every historical crash. There is no controlled minimal reproduction yet.
No explicit OOM, EMFILE or ENOSPC diagnostic was found in the checked latest-crash window, and the recorded termination is not a memory-pressure SIGKILL. After relaunch, the new git-worker log had no recurrence of the missing-directory retry loop during the observation period; that is not evidence of a permanent fix.
Impact / expected behavior
Repeated process exits interrupt active work. Missing or removed worktrees and watcher creation/teardown failures should be handled without terminating the desktop process. Please investigate the FSEvents/libuv lifecycle and how subscriptions to removed worktrees are retired.
Raw crash reports and app logs have been retained locally. This public comment deliberately omits account details, usernames, full project paths, conversation contents, credentials and raw logs.
0xdevalias commentedon Sep 22, 2026
Source-backed detail from another macOS occurrence: six
bare-modifier-monitorprocesses from prior Desktop launches survived under PPID 1 for 47-56 days, alongside seven historical Crashpad pairs. Only one modifier monitor and one Crashpad pair belonged to the current launch. Gracefully terminating only the PPID-1 historical helpers reclaimed their memory without affecting the current app.In the installed bundle, the modifier monitor is created with Node
child_process.spawn; cleanup reacheschild.kill()only through the JavaScript unregister path. If the Electron main process exits/updates/crashes without that path running, the helper is orphaned and nothing at next startup reconciles older instances. This appears to explain the modifier component of this report. A robust fix would make the child die with its parent and/or sweep clearly foreign-generation PPID-1 helpers at startup. Crashpad update-specific evidence is also being cross-linked to #25259.ohnoah commentedon Sep 24, 2026
Same crash on the current build (26.917.62051 / 10789) and the one before it (26.917.51856 / 10492). On my machine it lines up with the git watcher running out of file descriptors (
EMFILE) just before each crash.Environment
com.openai.codex), Codex Framework153.0.8010.53launchctl limit maxfiles→256 unlimited)Crash signature (same as the original report)
Four crashes in about 19 hours. The git watcher logged
EMFILEshortly before each one.EMFILEbefore crashEMFILElines that launchThe log lines are from the git worker, and they're logged under the same PID as the process that crashed:
In the last launch,
Starting git repo watcherappears 84 times, so the watcher keeps failing and restarting. It also cancels in-flightgitcommands each time (failureReason=canceled requestKind=review-sum).What seems to trigger it: a lot of worktrees. The main repo in my sidebar had 599 registered worktrees and about 2,600 local branches, and a second repo had 256 worktrees. The failing paths are 880 distinct
.git/subdirectories:.git/refs/*,.git/worktrees/<name>, and the individual worktree roots. That's well over 256 descriptors for one process. 37 of the worktrees were stale (their folders no longer existed), which fits the ENOENT retry loop @olive8882-1996 described above.Pattern: the watcher runs out of FDs, fails, and restarts (tearing down and recreating its FSEvents streams) over and over. The FSEvents thread then traps inside
FSEventStreamCreateor a CoreFoundation allocation. Memory isn't the cause: the system was about 65% free, and none of the four reports is a jetsam kill.Also seen: after the crashes, orphaned
browser_crashpad_handlerpairs andbare-modifier-monitorprocesses from earlier launches were still running (same as @0xdevalias reported above).KanavKG commentedon Sep 24, 2026
Can someone please fix this?
huangruiteng commentedon Sep 24, 2026
New occurrence on 26.917.71314 (build 10954): repeated FSEvents crashes with an EMFILE watcher storm
Environment: ChatGPT/Codex desktop app (
com.openai.codex), macOS 26.5.2 (25F84), Apple Silicon (Mac16,7). The app bundle is the unmodified, signed OpenAI release. This instance uses an isolatedCODEX_HOMEand Electron user-data directory via a local launcher, with the native OpenAI provider and no custom model catalog.After updating to build 10954 on September 24, 2026, macOS recorded eight main-app
EXC_BREAKPOINT / SIGTRAPcrashes from 18:11 to 21:25 (UTC+8). Seven reports have an unnamed faulting thread in the FSEvents/libuv path; six include_FSEventStreamCreate -> FSEventStreamCreate -> uv__fsevents_close, and the seventh includesuv__fsevents_closeduring run-loop teardown. The eighth report traps onCrBrowserMainand is a different stack, so I am not asserting that it has the same immediate cause.For each of the eight crashed PIDs, its matching desktop logs contain 37,655–44,592
warning [git-repo-watcher] Git repo watcher failed errorCode=EMFILEevents. Each launch failed on 678–694 distinct watch paths, of which 657–673 were under.git/worktrees/. In five of the seven FSEvents crashes, the last recorded watcher failure was 26–118 seconds before the crash; in the other two, it was 459 and 696 seconds before. The user launchd domain reportsmaxfiles 256 unlimited(soft/hard); I have not verified the crashed processes' individual limits.The failures are strongly correlated with watcher exhaustion and repeated watcher restart/teardown, but this is not a proven causal chain. There is no deterministic minimal reproduction yet: the app was used normally with many worktrees and crashed in both foreground and background. The expected behavior is to handle
EMFILEand FSEvents watcher failures without terminating the desktop process or retrying tens of thousands of times.As a temporary local workaround, I launched the same profile with signed app build 9922. Its initial run has shown no
git-repo-watcherfailure, but the observation is limited and other reports here show that build 9922 can also crash. I am retaining the raw.ipsreports and logs locally; they contain personal paths and identifiers, so I have not attached them publicly. I can share redacted excerpts if useful.