Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Early out from scene building if view is too large. #2524

Merged
merged 1 commit into from
Mar 15, 2018

Conversation

glennw
Copy link
Member

@glennw glennw commented Mar 15, 2018

If the requested view size is larger than the maximum texture
size supported by the hardware, early exit and fail to render.

In the future, we could potentially render the scene in tiles,
however this is a quick fix for an existing crash.

Specifically, if Gecko is asked to open a very large window by
JS, the first frame has a very large window size. On subsequent
frames Gecko supplies a window size that is clamped to the
actual monitor resolution.

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1441392 and
potentially https://bugzilla.mozilla.org/show_bug.cgi?id=1442921.


This change is Reviewable

If the requested view size is larger than the maximum texture
size supported by the hardware, early exit and fail to render.

In the future, we could potentially render the scene in tiles,
however this is a quick fix for an existing crash.

Specifically, if Gecko is asked to open a very large window by
JS, the first frame has a very large window size. On subsequent
frames Gecko supplies a window size that is clamped to the
actual monitor resolution.

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1441392 and
potentially https://bugzilla.mozilla.org/show_bug.cgi?id=1442921.
@glennw
Copy link
Member Author

glennw commented Mar 15, 2018

r? @kvark or anyone

@nical
Copy link
Contributor

nical commented Mar 15, 2018

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit 56841e3 has been approved by nical

@bors-servo
Copy link
Contributor

⌛ Testing commit 56841e3 with merge a8df62e...

bors-servo pushed a commit that referenced this pull request Mar 15, 2018
Early out from scene building if view is too large.

If the requested view size is larger than the maximum texture
size supported by the hardware, early exit and fail to render.

In the future, we could potentially render the scene in tiles,
however this is a quick fix for an existing crash.

Specifically, if Gecko is asked to open a very large window by
JS, the first frame has a very large window size. On subsequent
frames Gecko supplies a window size that is clamped to the
actual monitor resolution.

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1441392 and
potentially https://bugzilla.mozilla.org/show_bug.cgi?id=1442921.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/2524)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

💔 Test failed - status-travis

@kvark
Copy link
Member

kvark commented Mar 15, 2018

@bors-servo r+

@bors-servo
Copy link
Contributor

💡 This pull request was already approved, no need to approve it again.

  • This pull request previously failed. You should add more commits to fix the bug, or use retry to trigger a build again.

@bors-servo
Copy link
Contributor

📌 Commit 56841e3 has been approved by kvark

@bors-servo
Copy link
Contributor

⌛ Testing commit 56841e3 with merge 7436a87...

bors-servo pushed a commit that referenced this pull request Mar 15, 2018
Early out from scene building if view is too large.

If the requested view size is larger than the maximum texture
size supported by the hardware, early exit and fail to render.

In the future, we could potentially render the scene in tiles,
however this is a quick fix for an existing crash.

Specifically, if Gecko is asked to open a very large window by
JS, the first frame has a very large window size. On subsequent
frames Gecko supplies a window size that is clamped to the
actual monitor resolution.

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1441392 and
potentially https://bugzilla.mozilla.org/show_bug.cgi?id=1442921.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/2524)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - status-appveyor, status-taskcluster, status-travis
Approved by: kvark
Pushing 7436a87 to master...

@bors-servo bors-servo merged commit 56841e3 into servo:master Mar 15, 2018
@glennw glennw deleted the big-window branch March 15, 2018 21:55
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.

None yet

5 participants