Skip to content

Electron renderer unresponsive / crash due to ResizeObserver loop storm (layout thrashing) #38296

Description

@jeftijger

Description

OpenCode v1.18.4 (win32, x64, packaged) repeatedly crashes. I think it had something to to with copy and pasting a larger log with hunderds of lines in de chat. The debug logs reveal the following chain of events:

The Electron renderer process becomes unresponsive (window.log: renderer unresponsive on oc://renderer/index.html, e.g. at 17:27:25 and 17:27:50, recovering at 17:28:03 but likely crashing on subsequent freezes).
The renderer.log contains thousands of ResizeObserver loop completed with undelivered notifications errors across every session — a symptom of continuous layout thrashing in the UI that eventually hangs the renderer.
The protocol.log shows mass net::ERR_FILE_NOT_FOUND errors for all .js.map sourcemap files (every renderer asset sourcemap is missing from the ASAR bundle). These are non-fatal individually but indicate sourcemaps are stripped from the production build.
Multiple very short sessions (e.g. 093946, 094445, 094921, 095322, 114845) all lasting under 30 seconds, suggesting repeated crashes on launch or shortly after.

Plugins

No response

OpenCode version

v1.18.4

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

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

Metadata

Metadata

Assignees

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