Skip to content

Pick up the fixes that stop the Log hanging and running out of memory - #50

Merged
simonhamp merged 1 commit into
mainfrom
chore/pick-up-memory-fixes
Oct 21, 2026
Merged

simonhamp merged 1 commit into
mainfrom
chore/pick-up-memory-fixes

Conversation

@simonhamp

Copy link
Copy Markdown
Member

Scrolling far down the Log froze the app, and once that was fixed, scrolling further got it killed. Both fixes are in the packages; this bumps the lock to pick them up.

  • The freeze: PHP ran out of its 128M memory limit mid-render, and on iOS nothing restarted the native session after the fatal error. The screen stayed on its last frame with no polls and no events. Restart a native session that PHP dies in, and raise the memory limit mobile-air#561 reboots PHP and restarts the session when that happens, logs the fatal error to edge-nav.log and laravel.log, and raises the limit to 512M. Lock: nativephp/mobile combined/dev-null-app 5fa2cd2 to 2b9f227.
  • The kill: mobile-ui's iOS list rows kept old copies of the whole list in their closures, so native memory grew with the square of the pages loaded. Simon's phone was killed by jetsam at a 3.4 GB footprint at 1,520 commits. Stop iOS list rows from keeping old copies of the whole list mobile-ui#144. Lock: nativephp/mobile-ui b70ef42 to 7ed4963.

The bump also brings what landed on those branches since the last lock: the Android deep link prefix change in mobile-air (e258647), and text-outline plus the Android bottom sheet handle in mobile-ui (6db73ba, 57911af, a2e5611).

Checked on Simon's iPhone 16 Pro (Release, stock 4.1.0 binaries, Latest tab, scrolled by hand):

  • With the limit forced back to 128M, the session died at 480 commits with Allowed memory size of 134217728 bytes exhausted, and the Log came back on its own about 3 s later.
  • With both fixes the Log scrolled to 1,800 commits without being killed. PHP peaked at 332 MB. At 1,800 the frame passed the extension's 16 MB buffer and the Log showed EDGE's error screen. Windowing the Log is the fix for that and is being worked on separately.
  • The app's 1084 tests pass. Android has the same freeze; Restart a native session that PHP dies in on Android, and raise the memory limit mobile-air#562 is the Android fix and isn't on combined/dev-null-app yet.

🤖 Generated with Claude Code

Bumps nativephp/mobile to combined/dev-null-app 2b9f227 (NativePHP/mobile-air#561)
and nativephp/mobile-ui to 7ed4963 (NativePHP/mobile-ui#144).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@simonhamp
simonhamp merged commit 14ccb69 into main Oct 21, 2026
1 check passed
@simonhamp
simonhamp deleted the chore/pick-up-memory-fixes branch October 21, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant