Skip to content
Source
Sign inSign up
pingdotgg/t3code

T3 Code v0.0.10 (Windows 10/26100) frequently becomes “Not responding” #980

Closedzgriffiin(GitHub profile, opens in a new tab) opened this issue 9 comments

When running in a longer chain of requests in a thread, the app becomes unresponsive. I am seeing 5 workers running, totaling around 2Gb of memory usage. The unresponsive thread is not the largest, though; it was around 160k. Once the task is complete, the UI recovers. The example thread I have open is ~30k characters total, with one image.

I captured a dump of the main process (T3 Code (Alpha).exe - v 0.0.10) while the UI was frozen.

Main thread (CrBrowserMain) stack excerpt: v8::ArrayBuffer::Allocator::MaxAllocationSize → cppgc::testing::StandaloneTestingHeap::StandaloneTestingHeap → Cr_z_uncompress → sqlite3_dbdata_init → v8::internal::compiler::... → v8_inspector::V8InspectorClient::consoleAPIMessage → node::FreePlatform

This suggests the UI thread is blocked in V8 / cppgc work (using StandaloneTestingHeap) instead of pumping the Windows message loop, leading to the unresponsive window.

I can provide the full .dmp if helpful. I can also fork and try to diagnose locally if you can't replicate.

  1. chuks-qua(GitHub profile, opens in a new tab)commented

    Could i have the .dmp please

  2. Hey, the dump is too large, so will have to trim it before uploading. I'll look into how to do that effectively.

    That said, I was just doing some more investigation into the issue. In the end, I deleted the .codex directories and performance has improved. I believe it was the size and number of worktrees that had been created which had caused the problem.

    Given that, we can probably close the issue, as it looks like a local problem for me, but it may highlight a problem we may want to look at with larger repos and the ability to spin up lots of worktrees quickly?

  3. here is a partial dump output from WinDbg, it just hung again!

    0:000> !analyze -v ................................................................ .......................... Loading unloaded module list . *** WARNING: Unable to verify checksum for T3 Code (Alpha).exe

    Symbol Loading Error Summary * Module name Error T3 Code (Alpha) The system cannot find the file specified

    You can troubleshoot most symbol related issues by turning on symbol loading diagnostics (!sym noisy) and repeating the command that caused symbols to be loaded. You should also verify that your symbol search path (.sympath) is correct.


    • Exception Analysis *

    KEY_VALUES_STRING: 1

    Key : Analysis.CPU.mSec Value: 1468

    Key : Analysis.Elapsed.mSec Value: 1741

    Key : Analysis.IO.Other.Mb Value: 0

    Key : Analysis.IO.Read.Mb Value: 1

    Key : Analysis.IO.Write.Mb Value: 0

    Key : Analysis.Init.CPU.mSec Value: 875

    Key : Analysis.Init.Elapsed.mSec Value: 76101

    Key : Analysis.Memory.CommitPeak.Mb Value: 251

    Key : Analysis.Version.DbgEng Value: 10.0.29507.1001

    Key : Analysis.Version.Description Value: 10.2511.5.1 amd64fre

    Key : Analysis.Version.Ext Value: 1.2511.5.1

    Key : Failure.Bucket Value: BREAKPOINT_80000003_T3_Code_(Alpha).exe!Unknown

    Key : Failure.Exception.Code Value: 0x80000003

    Key : Failure.Hash Value: {5cb861d0-2236-121b-763c-a08d1b7777df}

    Key : Failure.ProblemClass.Primary Value: BREAKPOINT

    Key : Faulting.IP.Type Value: Null

    Key : Timeline.OS.Boot.DeltaSec Value: 7873

    Key : Timeline.Process.Start.DeltaSec Value: 7540

    Key : WER.OS.Branch Value: ge_release

    Key : WER.OS.Version Value: 10.0.26100.1

    Key : WER.Process.Version Value: 0.0.10.0

    FILE_IN_CAB: T3 Code (Alpha) (4).DMP

    NTGLOBALFLAG: 0

    APPLICATION_VERIFIER_FLAGS: 0

    EXCEPTION_RECORD: (.exr -1) ExceptionAddress: 0000000000000000 ExceptionCode: 80000003 (Break instruction exception) ExceptionFlags: 00000000 NumberParameters: 0

    FAULTING_THREAD: 3334

    PROCESS_NAME: T3 Code (Alpha).exe

    ERROR_CODE: (NTSTATUS) 0x80000003 - {EXCEPTION} Breakpoint A breakpoint has been reached.

    EXCEPTION_CODE_STR: 80000003

    STACK_TEXT: 0000002b8c1fdd98 00007ff7483e3577 : 0000002b8c1fdde0 00007ff74cb92a7c 00001f0c0829d6c0 00007ff7483e3583 : T3_Code__Alpha_!v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord+0x4b0e4c 0000002b8c1fdda0 00007ff749688dff : 0000000000000000 00001f0c02842288 00001f0c042ac64b 00001f0c042b4448 : T3_Code__Alpha_!v8::ArrayBuffer::Allocator::MaxAllocationSize+0x4f47 0000002b8c1fddd0 00007ff74981a4c2 : 0000000000000000 00001f0c00241010 0000002b8c1fded0 00007ff749688dbf : T3_Code__Alpha_!cppgc::testing::StandaloneTestingHeap::StandaloneTestingHeap+0x1eaff 0000002b8c1fde20 00007ff74ca84583 : 00001f0c00241000 00001f0c05035d00 0000002b8c1fdef0 00007ff74ca8430f : T3_Code__Alpha_!v8::RegisterState::RegisterState+0x69862 0000002b8c1fde80 00007ff7470b0a16 : 00000137dddadc10 00000137dddf7b20 0000013800000000 0000000000000001 : T3_Code__Alpha_!sqlite3_dbdata_init+0xbf5f93 0000002b8c1fdf70 00007ff74cb92da6 : 000000000000001b 00007ff74b016e9d 0000000000000000 0000000000000000 : T3_Code__Alpha_!Cr_z_uncompress+0x20c9c6 0000002b8c1fe510 00007ff745e6ac14 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : T3_Code__Alpha_!sqlite3_dbdata_init+0xd047b6 0000002b8c1fe650 00007ff74abab2e3 : 00001f0c0250e000 00007ff748f46270 0000000000000000 00007ff748f5b201 : T3_Code__Alpha_!v8::internal::compiler::CompilationDependencies::DependOnInitialMapInstanceSizePrediction+0x5435e4 0000002b8c1fe8e0 00007ff74abab212 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : T3_Code__Alpha_!v8::internal::compiler::CompilationDependencies::PrepareInstallPredictable+0x3dac43 0000002b8c1fe9f0 00007ff748f36b66 : 00000000000000f9 0000000000000000 0000000000000000 0000000000000000 : T3_Code__Alpha_!v8::internal::compiler::CompilationDependencies::PrepareInstallPredictable+0x3dab72 0000002b8c1fea60 00007ff748f4f9a0 : 00001f0800018f20 00007ff748f48809 00000000005d2608 0000000000000000 : T3_Code__Alpha_!v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord+0x47d526 0000002b8c1feb10 00007ff748f4a51d : 0000002b8c1fec80 00007ffb9c42e0ef 0000002b8c1fec60 00007ff748f51417 : T3_Code__Alpha_!v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord+0x496360 0000002b8c1febb0 00007ff748f22957 : 0000000000050044 00001f08000a4320 0000000000000000 0000000000000040 : T3_Code__Alpha_!v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord+0x490edd 0000002b8c1fedf0 00007ff7466e75c2 : 00000000ffffffff 00007ff750020cf8 0000000000000008 0000002b8c1ff380 : T3_Code__Alpha_!v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord+0x469317 0000002b8c1fee90 00007ff746724065 : 0000002b8c1fefe8 00007ff7495e5dcb 0000000000000000 0000000000000008 : T3_Code__Alpha_!uv_os_getpid+0x4402 0000002b8c1fef00 00007ff74673ac7c : 0000000000000000 00001f0c02568480 00001f0c02568498 00007ff7495e5dcb : T3_Code__Alpha_!uv_os_getpid+0x40ea5 0000002b8c1fef80 00007ff745b51672 : 0000002b00000001 0000000000000000 0000000013fb21f5 0000000000137499 : T3_Code__Alpha_!uv_os_getpid+0x57abc 0000002b8c1ff050 00007ff745b53211 : 00001f0c00004330 0000002b8c1ff1c8 0000002b8c1ff380 0000002b8c1ff220 : T3_Code__Alpha_!v8::internal::compiler::CompilationDependencies::DependOnInitialMapInstanceSizePrediction+0x22a042 0000002b8c1ff0c0 00007ff745b4e8d9 : 0000000000000000 0000000000000000 0000000000000000 00001f0800214000 : T3_Code__Alpha_!v8::internal::compiler::CompilationDependencies::DependOnInitialMapInstanceSizePrediction+0x22bbe1 0000002b8c1ff0f0 00007ff744db7b8a : 0000000000000000 0000000000000000 0000000000000000 00007ff700000000 : T3_Code__Alpha_!v8::internal::compiler::CompilationDependencies::DependOnInitialMapInstanceSizePrediction+0x2272a9 0000002b8c1ff1a0 00007ff744db8d95 : 0000002b8c1ff3f0 0000000000000000 00000000ffffffff 0000000000000004 : T3_Code__Alpha_!v8_inspector::V8InspectorClient::consoleAPIMessage+0xaedea 0000002b8c1ff2e0 00007ff744db8b0b : 0000000000000000 0000000000000004 00007ff74fb607c1 00007ff748f6faba : T3_Code__Alpha_!v8_inspector::V8InspectorClient::consoleAPIMessage+0xafff5 0000002b8c1ff430 00007ff744db73a9 : 0000000000000000 00001f0800055920 0000000000000000 00007ff748f77c2b : T3_Code__Alpha_!v8_inspector::V8InspectorClient::consoleAPIMessage+0xafd6b 0000002b8c1ff570 00007ff744db7543 : 0000000000000000 00007ff7495e5dcb 000000000000004d 0000000000000000 : T3_Code__Alpha_!v8_inspector::V8InspectorClient::consoleAPIMessage+0xae609 0000002b8c1ff6d0 00007ff7446a1534 : 0000000000000001 0000002b8c1ff840 00007ff744490000 0000000000000000 : T3_Code__Alpha_!v8_inspector::V8InspectorClient::consoleAPIMessage+0xae7a3 0000002b8c1ff760 00007ff7495e7822 : 00007ff74eb2ecd0 00007ff7495e7899 0000000000000000 0000000000000000 : T3_Code__Alpha_!node::FreePlatform+0x6074 0000002b8c1ff900 00007ffb9ae0e8d7 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : T3_Code__Alpha_!Cr_z_crc32+0x644cc2 0000002b8c1ff940 00007ffb9cacc40c : 0000000000000000 0000000000000000 000004f0fffffb30 000004d0fffffb30 : kernel32!BaseThreadInitThunk+0x17 0000002b8c1ff970 0000000000000000 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!RtlUserThreadStart+0x2c

    STACK_COMMAND: ~0s; .ecxr ; kb

    SYMBOL_NAME: T3_Code__Alpha_+4ada48c

    MODULE_NAME: T3_Code__Alpha_

    IMAGE_NAME: T3 Code (Alpha).exe

    FAILURE_BUCKET_ID: BREAKPOINT_80000003_T3_Code_(Alpha).exe!Unknown

    OS_VERSION: 10.0.26100.1

    BUILDLAB_STR: ge_release

    OSPLATFORM_TYPE: x64

    OSNAME: Windows 10

    IMAGE_VERSION: 0.0.10.0

    FAILURE_ID_HASH: {5cb861d0-2236-121b-763c-a08d1b7777df}

    Followup: MachineOwner


  4. @zgriffiin Thanks, i will follow up with this in #996

  5. chuks-qua(GitHub profile, opens in a new tab)commented

    Hey dumb question but did you happen to have build files not ignored when u created those worktrees? maybe a node_modules or something similar

  6. You gave me a quick panic (I had to check), but yes, they are ignored!

    Summary of what I have setup,

    • .gitignore ignores node_modules/, dist/, and frontend/apps/*/build/.
    • .gitignore also ignores .codex/worktrees/*, so the worktree directories themselves are disposable.
    • chore/dev-test worktree hasl root dependencies and used for validation, rather than reinstalling everywhere.

    Excluding files ignored by Git in the worktree, the repo currently has 2,455 files totaling 220.96 MiB

  7. still happening @zgriffiin try the latest version !!

  8. @shivamhwp have a look at #996 made some findings in there was waiting for @juliusmarminge

  9. The follow-up investigation was consolidated into #996, which now contains the heavy-thread, worktree accumulation, and snapshot-growth analysis. Keeping both open splits the same reliability track.

    This was closed as part of a large repo-wide maintenance sweep. If you think it's still relevant, please reopen.

  10. juliusmarminge closed this

Sign in to join this conversation.