[GH-ISSUE #6579] [Issue]: Advanced Memory e2e times out on the narrator-only inspector screenshot on desktop-chromium #3688

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

Originally created by @kolacheee on GitHub (Sep 23, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6579

Originally assigned to: @SpicyMarinara on GitHub.

e2e/advanced-memory.e2e.ts:324 ("Advanced Memory stays in Chat Settings with confirmed knowledge, resumable progress and editable scenes") fails intermittently on desktop-chromium. It fails at the same step every time: the dark-theme screenshot of the scene inspector after the audience is cleared (captureThemes(page, info, "advanced-memory-narrator-only", inspector), line 708).

TimeoutError: locator.screenshot: Timeout 9300ms exceeded.
  - attempting scroll into view action
    - waiting for element to be stable
> 27 | await (target ?? page).screenshot({ path: info.outputPath(`${name}-${theme}.png`), animations: "disabled" });
    at captureThemes (e2e/advanced-memory.e2e.ts:27:28)
    at e2e/advanced-memory.e2e.ts:708:5

Where it has failed

All four hit the same line, including staging itself:

What the trace shows (run 35907091020, artifact playwright-desktop-chromium-shard-1-failure)

The inspector does not appear to be moving. The page stops painting:

  • The light-theme screenshot of the same inspector succeeded, but took 4.3 s. It included a 3 s stretch with no painted frames.
  • During the failing dark-theme screenshot, no screencast frame was painted for 8.5 s (from 196.5 s to 205.0 s in the trace), until the timeout.
  • Each theme switch before the captures also took about 1.2 s.
  • In the same window, GET /api/chats (a 799-byte response) took 2.0 s and then 6.4 s, against 13 to 44 ms earlier in the test.

Both the page and the server are slow at this point. The failure is always at this one capture rather than at random steps, so something about this state (the inspector after its audience is cleared, then a theme switch) looks expensive, and a slow runner tips it over the 10 s action timeout.

Possible fixes

  • Find what is expensive at this point: profile the theme switch and the inspector render in the narrator-only state.
  • If the captures are evidence only, give captureThemes a longer screenshot timeout, or capture the page instead of the element so it does not wait for the inspector to settle.
Originally created by @kolacheee on GitHub (Sep 23, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6579 Originally assigned to: @SpicyMarinara on GitHub. `e2e/advanced-memory.e2e.ts:324` ("Advanced Memory stays in Chat Settings with confirmed knowledge, resumable progress and editable scenes") fails intermittently on `desktop-chromium`. It fails at the same step every time: the dark-theme screenshot of the scene inspector after the audience is cleared (`captureThemes(page, info, "advanced-memory-narrator-only", inspector)`, line 708). ``` TimeoutError: locator.screenshot: Timeout 9300ms exceeded. - attempting scroll into view action - waiting for element to be stable > 27 | await (target ?? page).screenshot({ path: info.outputPath(`${name}-${theme}.png`), animations: "disabled" }); at captureThemes (e2e/advanced-memory.e2e.ts:27:28) at e2e/advanced-memory.e2e.ts:708:5 ``` ## Where it has failed All four hit the same line, including `staging` itself: - https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/35773408363 (`staging`) - https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/35815230607 (`staging`) - https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/35820997679 (`feat/decision-managed-installer`) - https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/35907091020 (`feat/lorebook-decision-activation`, PR #6575, which does not touch Advanced Memory) ## What the trace shows (run 35907091020, artifact `playwright-desktop-chromium-shard-1-failure`) The inspector does not appear to be moving. The page stops painting: - The light-theme screenshot of the same inspector succeeded, but took 4.3 s. It included a 3 s stretch with no painted frames. - During the failing dark-theme screenshot, no screencast frame was painted for 8.5 s (from 196.5 s to 205.0 s in the trace), until the timeout. - Each theme switch before the captures also took about 1.2 s. - In the same window, `GET /api/chats` (a 799-byte response) took 2.0 s and then 6.4 s, against 13 to 44 ms earlier in the test. Both the page and the server are slow at this point. The failure is always at this one capture rather than at random steps, so something about this state (the inspector after its audience is cleared, then a theme switch) looks expensive, and a slow runner tips it over the 10 s action timeout. ## Possible fixes - Find what is expensive at this point: profile the theme switch and the inspector render in the narrator-only state. - If the captures are evidence only, give `captureThemes` a longer screenshot timeout, or capture the page instead of the element so it does not wait for the inspector to settle.
bsakaguchi 2026-10-21 06:06:06 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Sep 23, 2026):

Codex is taking this for @SpicyMarinara in draft PR #6585. I am tracing the existing behavior and adding focused regression coverage.

<!-- gh-comment-id:5803966009 --> @SpicyMarinara commented on GitHub (Sep 23, 2026): Codex is taking this for @SpicyMarinara in draft PR #6585. I am tracing the existing behavior and adding focused regression coverage.
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#3688
No description provided.