[GH-ISSUE #5711] [Issue]: Release inactive Roleplay visual layers on iPhone #3158

Closed
opened 2026-10-21 06:00:04 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Aug 31, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5711

Originally assigned to: @SpicyMarinara on GitHub.

Summary

The intermittent black-screen failure still occurs on iPhone while reading Roleplay chats on current staging, after #5686 removed silent update reloads and repeated-avatar will-change hints. The application becomes unusable and must be restarted, which remains consistent with WebKit process or compositor termination rather than a server freeze.

Expected behavior

A long Roleplay session should remain readable without accumulating inactive decoded backgrounds or unnecessary full-viewport compositor layers.

Actual behavior

The screen can still turn completely black during ordinary chat reading and scrolling. No recoverable React error is shown, and the earlier diagnostics did not report a server freeze.

Steps to reproduce

  1. Run the Docker staging image and open an image-backed Roleplay chat on an iPhone.
  2. Read and scroll the chat normally for an extended session, including chats with avatars, weather, or background blur enabled.
  3. Intermittently observe the web app turn black.
  4. Restart the installed app/PWA to recover.

Environment

  • Marinara Engine version: Current staging; exact build hash not provided in the follow-up
  • Install type: docker (staging image)
  • OS + version: iOS 18.7
  • Browser or app shell: Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.6 Mobile/15E148 Safari/604.1

Logs, screenshots, or video

The original diagnostics are recorded in #5686: server heap 187.5 / 2152 MiB, RSS 478.8 MiB, and no detected server freeze. The reporter has now confirmed the black-screen behavior persists on staging after #5687. No iOS process-termination log is available.

Additional context

Follow-up to #5686. Current code still forces the entire fixed app shell into a transformed compositor layer for iOS scroll compensation. Roleplay's crossfade background also keeps both full-resolution image sources mounted and decoded indefinitely after its 700 ms transition, including when blur filters are active, and the weather canvas requests a transform layer although it does not animate transforms.

Keep the mitigation small and measurable: remove the full-shell and unused weather compositing hints, then clear the inactive background source after the crossfade completes. Preserve the visual transition and existing transcript windowing. Physical-iPhone confirmation remains required because a real WebKit process termination cannot be proven in Playwright.

Implementation owner: @SpicyMarinara with Codex.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Aug 31, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5711 Originally assigned to: @SpicyMarinara on GitHub. ## Summary The intermittent black-screen failure still occurs on iPhone while reading Roleplay chats on current `staging`, after #5686 removed silent update reloads and repeated-avatar `will-change` hints. The application becomes unusable and must be restarted, which remains consistent with WebKit process or compositor termination rather than a server freeze. ## Expected behavior A long Roleplay session should remain readable without accumulating inactive decoded backgrounds or unnecessary full-viewport compositor layers. ## Actual behavior The screen can still turn completely black during ordinary chat reading and scrolling. No recoverable React error is shown, and the earlier diagnostics did not report a server freeze. ## Steps to reproduce 1. Run the Docker `staging` image and open an image-backed Roleplay chat on an iPhone. 2. Read and scroll the chat normally for an extended session, including chats with avatars, weather, or background blur enabled. 3. Intermittently observe the web app turn black. 4. Restart the installed app/PWA to recover. ## Environment - Marinara Engine version: Current staging; exact build hash not provided in the follow-up - Install type: docker (`staging` image) - OS + version: iOS 18.7 - Browser or app shell: Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.6 Mobile/15E148 Safari/604.1 ## Logs, screenshots, or video The original diagnostics are recorded in #5686: server heap 187.5 / 2152 MiB, RSS 478.8 MiB, and no detected server freeze. The reporter has now confirmed the black-screen behavior persists on staging after #5687. No iOS process-termination log is available. ## Additional context Follow-up to #5686. Current code still forces the entire fixed app shell into a transformed compositor layer for iOS scroll compensation. Roleplay's crossfade background also keeps both full-resolution image sources mounted and decoded indefinitely after its 700 ms transition, including when blur filters are active, and the weather canvas requests a transform layer although it does not animate transforms. Keep the mitigation small and measurable: remove the full-shell and unused weather compositing hints, then clear the inactive background source after the crossfade completes. Preserve the visual transition and existing transcript windowing. Physical-iPhone confirmation remains required because a real WebKit process termination cannot be proven in Playwright. Implementation owner: @SpicyMarinara with Codex. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [x] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:00:04 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 31, 2026):

Owned by @SpicyMarinara with Codex. Implementation is underway in draft PR #5712 against staging; physical-iPhone confirmation remains the manual gate for the intermittent WebKit termination.

<!-- gh-comment-id:5485563082 --> @SpicyMarinara commented on GitHub (Aug 31, 2026): Owned by @SpicyMarinara with Codex. Implementation is underway in draft PR #5712 against staging; physical-iPhone confirmation remains the manual gate for the intermittent WebKit termination.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3158
No description provided.