Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: T3 Code (Beta) 0.1.4 keeps crashing on macOS (EXC_BREAKPOINT / SIGTRAP on CrBrowserMain) #27499

ClosedQuentinfHn(GitHub profile, opens in a new tab) opened this issue 2 comments

Before submitting

  • I searched existing issues and did not find a duplicate. #20395 is a related CrBrowserMain SIGTRAP on macOS, but that report is Nightly 0.0.46 / Electron 44.4.5 and includes a V8 OOM inside JSON.stringify while relaying preview CDP events. This report is Beta 0.1.4 / Electron 44.9.3 and has no application-specific abort string, so I am filing it separately.
  • I included enough detail to investigate. There is no deterministic repro yet; the app keeps dying and this is one captured crash.

Area

apps/desktop

Steps to reproduce

No minimal repro yet. The desktop app keeps crashing during normal use.

This capture:

  1. Launch T3 Code (Beta) 0.1.4.
  2. Use the app (this process stayed up for about 2 minutes).
  3. The whole app aborts.

Launch: 2026-10-30 10:52:39.1138 +0100 Crash: 2026-10-30 10:54:56.6115 +0100 Incident: C4886C24-07B1-46C7-B1C1-2919E4B2CFAF

Expected behavior

The desktop app should stay open.

Actual behavior

The main process hits EXC_BREAKPOINT (SIGTRAP) on thread 0 (CrBrowserMain, com.apple.main-thread) and the app quits. macOS termination is SIGNAL code 5, Trace/BPT trap 5, handled by the process itself (brk 0, esr: 0xf2000000).

The top frames are inside Electron Framework. Symbols are stripped, so they resolve to the nearest export plus a large offset (starting at ares_dns_rr_get_ttl + 3459312). Below that the stack goes through a V8 Function::Call / node::InternalMakeCallback into the Chromium run loop and ElectronMain. There is no asi / application-specific information string in the report.

Impact

Blocks work completely

Version or commit

T3 Code (Beta) 0.1.4 (com.t3tools.t3code, build 0.1.4) Electron Framework 44.9.3, UUID 4C4C442D-5555-3144-A1FC-8F505C7CA870

Environment

  • macOS 27.0.1 (26A434), Apple silicon
  • Mac14,9 (MacBook Pro, Apple M2 Pro, 10-core, 32 GB)
  • Display: 3024 x 1964 Retina
  • Low Power Mode was on, and the machine was charging
  • Developer Mode was on
  • Path: /Applications/T3 Code (Beta).app

Logs or stack traces

Translated report, crashed thread only. The full .ips is about 215 KB; say if you want it attached.

Process:             T3 Code (Beta) [58814]
Identifier:          com.t3tools.t3code
Version:             0.1.4 (0.1.4)
Code Type:           ARM-64 (Native)
Date/Time:           2026-10-30 10:54:56.6115 +0100
Launch Time:         2026-10-30 10:52:39.1138 +0100
OS Version:          macOS 27.0.1 (26A434)
Hardware Model:      Mac14,9

Triggered by Thread: 0  CrBrowserMain, Dispatch Queue: com.apple.main-thread

Exception Type:    EXC_BREAKPOINT (SIGTRAP)
Exception Codes:   0x0000000000000001, 0x0000000114545f84
Termination Reason:  Namespace SIGNAL, Code 5, Trace/BPT trap: 5

Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread
0   Electron Framework  0x114545f84 ares_dns_rr_get_ttl + 3459312
1   Electron Framework  0x114545f84 ares_dns_rr_get_ttl + 3459312
2   Electron Framework  0x114545f9c ares_dns_rr_get_ttl + 3459336
3   Electron Framework  0x114545fb8 ares_dns_rr_get_ttl + 3459364
4   Electron Framework  0x1116f18c0 node::PrincipalRealm::inspector_enable_network_tracking() const + 286600
5   Electron Framework  0x112992ba4 v8::CodeEvent::GetScriptColumn() + 3621092
6   Electron Framework  0x112992b2c v8::CodeEvent::GetScriptColumn() + 3620972
7   Electron Framework  0x10f553934 v8::internal::OptimizingCompileInputQueue::Enqueue(...) + 937844
8   Electron Framework  0x10ea07a28 v8::Object::GetIdentityHash() + 5696
9   Electron Framework  0x10f2f2648 ...DependOnContextCell(...) + 156776
10  Electron Framework  0x10f2f244c ...DependOnContextCell(...) + 156268
11  ???                 0x157fd590c ???
12  ???                 0x15044d964 ???
13  ???                 0x1504537d8 ???
14  ???                 0x1503e04a4 ???
15  ???                 0x157fd0404 ???
16  ???                 0x157fd00fc ???
17  Electron Framework  0x10ecd2980 v8::Data::IsValue() const + 26216
18  Electron Framework  0x10f070054 v8::Function::Call(...) + 440
19  Electron Framework  0x10f06f164 node::InternalMakeCallback(...) + 1072
20  Electron Framework  0x10ee7bb2c node::InternalMakeCallback(...) + 352
21  Electron Framework  0x10ee7b6b8 v8::Object::Set(...) + 1528
22  Electron Framework  0x11158902c node::AsyncWrap::~AsyncWrap() + 225388
23  Electron Framework  0x11158849c node::AsyncWrap::~AsyncWrap() + 222428
24  Electron Framework  0x111588274 node::AsyncWrap::~AsyncWrap() + 221876
25  Electron Framework  0x113433520 _v8_internal_Node_Print(void*) + 5227592
26  Electron Framework  0x11343399c _v8_internal_Node_Print(void*) + 5228740
27  Electron Framework  0x11332799c _v8_internal_Node_Print(void*) + 4131012
28  Electron Framework  0x11348bfd8 _v8_internal_Node_Print(void*) + 5590784
29  Electron Framework  0x11348fafc _v8_internal_Node_Print(void*) + 5605924
30  Electron Framework  0x113490b40 _v8_internal_Node_Print(void*) + 5610088
31  Electron Framework  0x113490a48 _v8_internal_Node_Print(void*) + 5609840
32  Electron Framework  0x110f48ee8 ...PrepareInstall() + 144596
33  Electron Framework  0x110f79f60 ...PrepareInstall() + 345420
34  Electron Framework  0x10ec5eca4 ...DependOnStableMap(...) + 151184
35  Electron Framework  0x110ac6008 ...FieldTypeDependencyOffTheRecord(...) + 362732
36  Electron Framework  0x10eba5a9c v8::Value::BooleanValue(...) + 15136
37  Electron Framework  0x110ac5c8c ...FieldTypeDependencyOffTheRecord(...) + 361840
38  CoreFoundation      __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
...
51  Electron Framework  ares_dns_rr_get_ttl + 3333596
52  Electron Framework  cppgc::internal::PersistentRegionLock::AssertLocked() + 25308
53  Electron Framework  node::PrincipalRealm::inspector_disable_network_tracking() const + 234312
61  Electron Framework  ElectronMain + 388
62  dyld                start + 6688

Thread 0 crashed with ARM Thread State (64-bit):
  pc: 0x0000000114545f84  lr: 0x0000000114545f84
  esr: 0xf2000000 (Breakpoint) brk 0

Binary image:

0x1023e0000 - 0x1023e3fff com.t3tools.t3code (0.1.4)
0x10e9f8000 - 0x11a0a3fff com.github.Electron.framework (*) <4c4c442d-5555-3144-a1fc-8f505c7ca870>

Workaround

None. Relaunching brings the app back until the next crash.

  1. Full macOS crash report (the issue body only has the crashed thread; the .ips is ~215 KB):

    https://gist.github.com/QuentinfHn/1470cb35cfe6823c2ce6138139064dad

  2. Thanks for attaching the full report. I symbolicated it against Electron 44.9.3's published symbols (electron-v44.9.3-darwin-arm64-symbols.zip; the module UUID 4C4C442D-5555-3144-A1FC-8F505C7CA870 matches). The ares_dns_rr_get_ttl + … names were only nearest-export guesses. With symbols, the crashed thread reads:

    0   partition_alloc::internal::OnNoMemoryInternal(unsigned long)            oom.cc:85
    5   v8::Utils::ReportOOMFailure(...)
    6   v8::internal::V8::FatalProcessOutOfMemory(...)
    8   v8::internal::FactoryBase<Factory>::NewRawOneByteString(...)            factory-base.cc:1416
    9   v8::internal::JsonStringify(...)                                        json-stringifier.cc:3563
    10  v8::internal::Builtin_JsonStringify(...)
    11-16 (JIT-compiled JavaScript)
    18  v8::Function::Call(...)
    21  gin_helper::internal::CallMethodWithArgs(...)
    23  gin_helper::EventEmitterMixin<electron::api::Debugger>::Emit(...)
    24  electron::api::Debugger::DispatchProtocolMessage(...)
    25  content::DevToolsSession::DispatchProtocolMessageToClient(...)
    27  content::protocol::Page::Frontend::ScreencastFrame(...)
    28  content::protocol::PageHandler::ScreencastFrameEncoded(...)

    This is a fatal V8 out-of-memory in the desktop main process. It happens inside JSON.stringify, called from the debugger message listener while Chromium delivers a Page.screencastFrame from a browser preview tab. That listener is the desktop CDP relay, the same path as #20395. The difference from https://git.cafe/pingdotgg/t3code/issues/20395 is the event in flight: here it is a screencast frame, sent while a preview tab streams to a viewer or a recording.

    Closing as a duplicate of #20395, so both crashes are tracked as one bug. This symbolicated stack stays linked from there.

  3. juliusmarminge closed this

Sign in to join this conversation.