nkwebkit_jsctimelimit is flaky on Windows: JscTimeLimit check failed at line 260 #26039
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by aKazm1 on 2026-11-23T05:05:40Z.
What happens
nkwebkit_jsctimelimitfails about 1 run in 7 on Windows withJscTimeLimit check failed at line 260. The process exits with0xc0000409.Title, test or build step
ctest
nkwebkit_jsctimelimitAnyPS5 commit
main742022e89d, with no pull requests on top.origin/mainb51f99a5aahas no commit touchingJscTimeLimit.cpporWtfCpuTime.cppsince then.System
ANYPS5_GPUset to either the RTX 4080 or the Radeon iGPU.Steps to reproduce
Each run takes about 3 s. Repeat it about 10 times to see a failure.
Log
What was checked
Failure rate: 3 of 20 solo runs, and 1 of 4 in an earlier set. It also failed once in a full-suite run (
ctest -j 12).The failing check, in
TestTimeSpentWaitingIsNotCounted,core/libs/prx/libSceNKWebKit/tests/JscTimeLimit.cpp:260:What this implies: line 259 passes, so the thread was charged at least 50 ms of CPU time. Yet less than 400 ms + 50 ms of wall time passed since
start. So either the thread CPU time (WTF::CPUTime::forCurrentThread, which readsclock_gettime(CLOCK_THREAD_CPUTIME_ID)) runs ahead of the wall clock, or the 400 mssleep_forinnap()returns early as measured byClock. I have not measured which one.Clock source: on this host the guest
CLOCK_THREAD_CPUTIME_IDgoes through the invariant-TSC path inlibkernel/Time/Time.cpp(QueryThreadCycleTimedivided byHostTscFrequency_nid_no_patch()).Searched issues and PRs for
jsctimelimit,JscTimeLimitandline 260, and found none.AI-assisted: yes (Claude Code ran the test loops and drafted this report; I reviewed it and the results are from my machine.)