Skip to content

Bound the retry loop while acquiring the surface texture - #462

Open
parasyte wants to merge 1 commit into
mainfrom
fix/460
Open

Bound the retry loop while acquiring the surface texture#462
parasyte wants to merge 1 commit into
mainfrom
fix/460

Conversation

@parasyte

@parasyte parasyte commented Aug 4, 2026

Copy link
Copy Markdown
Owner

This will turn the infinite loop into an error. It does not address the cause of the infinite loop. Users who experience the hang will instead need to handle the error appropriately instead of terminating the application.

The root cause was identified in #460 as a permenant desynchonization between the window manager's understanding of the window size and pixels' understanding of the surface size. Making pixels robust to this desync is currently out of scope, as it will require a major refactor.

Closes #460
Closes #461

This will turn the infinite loop into an error. It does not address
the cause of the infinite loop. Users who experience the hang will
instead need to handle the error appropriately instead of
terminating the application.

The root cause was identified in #460 as a permenant
desynchonization between the window manager's understanding of the
window size and `pixels`' understanding of the surface size. Making
`pixels` robust to this desync is currently out of scope, as it
will require a major refactor.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

render() can loop forever reconfiguring the surface when the cached surface size is stale

1 participant