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

WebGLSender doesn't really implement Serializable #23746

Merged

Conversation

@asajeffrey
Copy link
Member

asajeffrey commented Jul 11, 2019

Add an API which turns a WebGLSender into something that is actually serializable.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes do not require tests because this is fixing a panic

This change is Reviewable

@asajeffrey
Copy link
Member Author

asajeffrey commented Jul 11, 2019

@highfive highfive assigned Manishearth and unassigned jdm Jul 11, 2019
@Manishearth
Copy link
Member

Manishearth commented Jul 11, 2019

@bors-servo
Copy link
Contributor

bors-servo commented Jul 11, 2019

📌 Commit 1b05ad4 has been approved by Manishearth

@bors-servo
Copy link
Contributor

bors-servo commented Jul 11, 2019

Testing commit 1b05ad4 with merge d0e5383...

bors-servo added a commit that referenced this pull request Jul 11, 2019
…ion, r=Manishearth

WebGLSender doesn't really implement Serializable

<!-- Please describe your changes on the following line: -->

Add an API which turns a `WebGLSender` into something that is actually serializable.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes do not require tests because this is fixing a panic

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

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

bors-servo commented Jul 11, 2019

💔 Test failed - status-taskcluster

@CYBAI
Copy link
Collaborator

CYBAI commented Jul 11, 2019

@bors-servo
Copy link
Contributor

bors-servo commented Jul 11, 2019

💣 Failed to start rebuilding: Unknown error

@bors-servo
Copy link
Contributor

bors-servo commented Jul 11, 2019

Testing commit 1b05ad4 with merge 305312e...

bors-servo added a commit that referenced this pull request Jul 11, 2019
…ion, r=Manishearth

WebGLSender doesn't really implement Serializable

<!-- Please describe your changes on the following line: -->

Add an API which turns a `WebGLSender` into something that is actually serializable.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes do not require tests because this is fixing a panic

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

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

bors-servo commented Jul 11, 2019

☀️ Test successful - linux-rel-css, linux-rel-wpt, status-taskcluster
Approved by: Manishearth
Pushing 305312e to master...

@bors-servo bors-servo merged commit 1b05ad4 into servo:master Jul 11, 2019
2 of 3 checks passed
2 of 3 checks passed
continuous-integration/appveyor/pr AppVeyor build failed
Details
Taskcluster (pull_request) TaskGroup: success
Details
homu Test successful
Details
@Manishearth
Copy link
Member

Manishearth commented Jul 11, 2019

With this applied I still get the same crash

https://gist.github.com/Manishearth/8217b8d4f4684c044260472d6f3e057c

}

#[typetag::serde]
impl webxr_api::WebGLExternalImageApi for WebGLMsgSender {
impl webxr_api::WebGLExternalImageApi for SerializableWebGLMsgSender {

This comment has been minimized.

@Manishearth

Manishearth Jul 11, 2019

Member

You're still sending sender, a webgl_channel, over self.sender, an IPC channel here

This comment has been minimized.

@Manishearth

Manishearth Jul 11, 2019

Member

We'll need a separate lock API that works exclusively with IPC

This comment has been minimized.

@Manishearth

Manishearth Jul 11, 2019

Member

Wrote the fix and stuffed it in #23731

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

6 participants
You can’t perform that action at this time.