Skip to content

fix: offscreen rendering crash on input select - #34069

Merged
jkleinsc merged 1 commit into
mainfrom
fix-constraint-issue
May 5, 2022
Merged

jkleinsc merged 1 commit into
mainfrom
fix-constraint-issue

Conversation

@codebytere

Copy link
Copy Markdown
Member

Description of Change

Closes #34047.

Fixes the following crash:

FATAL:frame_sink_video_capturer_impl.cc(304)] Invalid resolutions constraints: 36x0 must not be greater than 36x0; and also within media::limits.

This was happening because we were calling SizeChanged on the video consumer for popup widgets, which would have invalid gfx::Size values for their positions. To fix this, I refactored this to more closely mimic CEF's approach and callpaths, found here.

Tested with https://gist.github.com/gtalusan/c0ad56685aeb3b2c1108fbccf6b451b4.

Checklist

Release Notes

Notes: Fixed an OSR crash happening when input select items were rendered.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/17-x-y labels May 4, 2022
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label May 4, 2022
@codebytere
codebytere force-pushed the fix-constraint-issue branch from e8d26c6 to 5d31d0f Compare May 4, 2022 12:50

@nornagon nornagon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems legit

@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label May 5, 2022
@jkleinsc
jkleinsc merged commit 90eb47f into main May 5, 2022
@jkleinsc
jkleinsc deleted the fix-constraint-issue branch May 5, 2022 13:53
@release-clerk

release-clerk Bot commented May 5, 2022

Copy link
Copy Markdown

Release Notes Persisted

Fixed an OSR crash happening when input select items were rendered.

@trop

trop Bot commented May 5, 2022

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "17-x-y", please check out #34091

@trop

trop Bot commented May 5, 2022

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "18-x-y", please check out #34092

@trop

trop Bot commented May 5, 2022

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "19-x-y", please check out #34093

khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: offscreen rendering doesn't render clicked INPUT SELECT dropdown

4 participants