Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upIntermittent panic in RenderBackend::update_document (unwrapping a None value) #20271
Comments
|
I hit this panic when clicking on a search link from a duckduckgo result. |
|
|
@nical This looks like a panic that originates from your async building work. Any suggestions for how to investigate it? |
|
The render backend already checks if can_render is false at https://github.com/servo/webrender/blob/f7fc88cb81bd475bc28d2e290cf387171cd6350c/webrender/src/render_backend.rs#L968, but then we go ahead and attempt to render it later on in the method. |
Oh yeah looks like the branch that cancels the render and the one that checks for generate_frame should be inverted. |
Don't generate a frame when no scene is built. The two branches were inverted, allowing frame building to happen in cases where we haven't yet received a scene, which caused servo/servo#20271 . r? anyone <!-- 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/2541) <!-- Reviewable:end -->
|
Has this been fixed? I believe the latest WebRender update included servo/webrender#2541. |
|
This is fixed. |
Seen in #19203: