mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7241] [Issue]: Safari can show "Marinara hit a recoverable UI error" when it can't read the page colour #4039
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4039
Loading…
Add table
Add a link
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?
Originally created by @SpicyMarinara on GitHub (Oct 7, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7241
Originally assigned to: @SpicyMarinara on GitHub.
Summary
On load and on every theme change, the app works out the colour for the iPhone safe area, the overscroll backing and the browser bar. To do that it paints onto a 1×1 canvas and reads the pixel back with
getImageData(syncLiteralBackgroundinpackages/client/src/App.tsx, added 2026-10-03). WebKit can refuse that read under memory pressure ("Unable to get image data from canvas" →InvalidStateError). The error is thrown inside a React effect, so the whole shell falls into "Marinara hit a recoverable UI error." instead of just keeping the plain background colour.Expected behavior
If the browser won't read the canvas, the app keeps working and uses the theme's background colour as it is.
Actual behavior
The app shell crashes into the recovery screen.
Steps to reproduce
e2e/advanced-memory.e2e.ts,e2e/advanced-memory-wizard.e2e.ts).Environment
4234d024fLogs, screenshots, or video
InvalidStateErrorfromcontext.getImageData(0, 0, 1, 1)inApp.tsx. The verifier for #7236 found it while it was chasing the "blank app page" flakes in that PR's notes.Additional context
The fix is to fall back to the unflattened theme colour when the read fails, and never to let it crash the shell.
Template check
@SpicyMarinara commented on GitHub (Oct 7, 2026):
Fixed on
stagingby #7242. Ships tomainwith the next promotion.