Skip to content

firstScreenRender: 'engine' renders a blank screen on Lynx for Web (hosts without __RenderPage) #462

Closed

Description

@Huxpro

Summary

Since 91d206d8 (#419), Octane apps built through @octanejs/rspeedy-plugin render a completely blank screen on Lynx for Web with firstScreenRender: 'engine' (the plugin default). No error, CSS is injected, zero elements are created. firstScreenRender: 'immediate' restores the paint.

Bisected 9de58fa..bc20d6be with a real browser mount and a per-commit pnpm install --frozen-lockfile; 91d206d8 is the first bad commit.

Root cause (verified — corrects the original hypothesis)

Engine mode holds pendingFirstScreenRender until releaseFirstScreenRender() runs, and on Web __RenderPage never arrives, so the only release path is inside handleReady (a background ready request). handleReady never runs, because main's protocol validator rejects the background's main-ready-request as a cross-realm object before it is ever routed — the same root cause as the readiness-deadlock report (companion issue). So the deferred first screen is never released.

Correction: the original triage flagged (and did not assert) a "release-before-render ordering" hypothesis — that the ready request lands before the entry calls renderFirstScreen(), so releaseFirstScreenRender() settles the window to 'skipped'. That is refuted. Empirically the entry renders first (pendingFirstScreenRender is set) and firstScreenSyncReady gates the settle branch, so the existing ordering code is correct. Once the cross-realm fix lets handleReady run, engine mode paints — verified end-to-end (elements rendered: 0 → 15, and the counter increments on a real click).

Fix

Resolved by the cross-realm message-validation fix in #459 (see the companion root-cause issue). No change to the first-screen ordering logic was needed, and no firstScreenRender plugin option is required, because engine mode now works on hosts without __RenderPage.

Impact

Every Octane app built with the shipped Rspeedy plugin was blank on Lynx for Web on main. Native (Explorer) unaffected.


Filed by an agent (agent-authored).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions