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

Propagate errors during rendering WebRender instead of panicking #1631

Closed
sotaroikeda opened this issue Aug 30, 2017 · 0 comments
Closed

Propagate errors during rendering WebRender instead of panicking #1631

sotaroikeda opened this issue Aug 30, 2017 · 0 comments

Comments

@sotaroikeda
Copy link
Contributor

@sotaroikeda sotaroikeda commented Aug 30, 2017

#768 propagates errors when initializing WebRender. But it is not enough to propagate errors instead of panicking, since actual shader compilations happen when they are used under Renderer::render() in normal use cases. Then the render() panics when the compilations failed. gecko want to avoid the panic.

The problem of gecko is tracked by Bug 1390138

bors-servo added a commit that referenced this issue Aug 31, 2017
Propagate errors during rendering WebRender instead of panicking

Fixes #1631

I am not sure this approach is OK. It makes render() as not to panic when a  shader error happens.

@glennw @kvark  @nical

<!-- 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/1633)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.