GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||
GeezerVison is showing github.com — fix(mobile): long turns no longer freeze the app by nekohasekai · Pull Request #15780 · pingdotgg/t3code Conversation
|
| main (2 runs) | This fix | |
|---|---|---|
| Thread renders | Never | Within 2.5 s of opening |
JS thread inside ShadowTree::commit |
99.9–100% | 0–5% |
| JS thread idle | 0% | 59–99% |
| Main thread waiting on a lock | 0–0.2% | 0–0.1% |
| Outcome | Aborts on attempts < 1024 (at 80.6 s and about 77 s) |
Turn finishes, no crash |
An earlier run, made with a build that differed only in the debug check, also finished without a crash. In one other earlier run, the thread took about 45 s to appear while the main thread mounted its views. That was the old renderer's measurement cost (#14010, fixed by #16979), not commit retries.
Long-turn video, main vs. this fix (48 s, 2x) · Keyboard video, main / this fix / commit pausing on (4x slow motion) · Sampling tables and measurements
Also checked:
preventShadowTreeCommitExhaustion() as 1.enableBridgelessArchitecture and perfMonitorV2Enabled. That is why the check now looks only at the overridden flag.vp fmt is clean.Not tested: Release builds, physical devices, iPad, and the keyboard on screens other than the thread (new task, terminal). I couldn't read the flag from the running Android app, because JDWP disconnected.
Evidence is uploaded as GitHub release attachments on the contributor fork, not committed to the repository.
Model: Claude Opus 5.5. Harness: Claude Code in T3 Code.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Reanimated's DISABLE_COMMIT_PAUSING_MECHANISM, set for keyboard-controller, lets per-frame animation commits overtake a React commit that takes longer than a frame, and React Native retries that commit forever. Reanimated documents the flag as safe only with React Native's preventShadowTreeCommitExhaustion, which the prebuilt core ships off. A local Expo module now turns it on at launch on iOS and Android. Fixes pingdotgg#15641
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This PR adds a new cross-platform native module that force-enables a React Native commit-scheduling flag for every mobile app launch. Because it changes global runtime behavior and the effective default of the rendering pipeline, the change should receive human review. You can add or adjust custom eligibility rules. Learn more. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Note Written by Thanks for this. I'm closing it as part of PR triage. Another PR already covers the same fix. From the review: #19292 addresses the same mobile freeze by moving the running-thread shimmer to native animation, avoiding the global React Native feature-flag overrides and native modules introduced here. If you think this was a mistake, message me on Twitter at @maria_rcks and I'll take another look. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[Bug]: iOS app stops responding during long turns: Reanimated commits starve React commits
There was an error while loading. Please reload this page.