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

Remove segfaults in WebGPU threads #27180

Merged
merged 1 commit into from Jul 6, 2020
Merged

Remove segfaults in WebGPU threads #27180

merged 1 commit into from Jul 6, 2020

Conversation

@kunalmohan
Copy link
Collaborator

kunalmohan commented Jul 6, 2020

I have also increased the number of staging buffers for presentation.
Segfault occurred at 2 places-

  1. RenderPipeline descriptor.
  2. BufferMapAsync callback.

r?@kvark


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #___ (GitHub issue number if applicable)
  • There are tests for these changes OR
  • These changes do not require tests because ___
@highfive
Copy link

highfive commented Jul 6, 2020

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/gpucanvascontext.rs
  • @KiChjang: components/script/dom/gpucanvascontext.rs
@highfive
Copy link

highfive commented Jul 6, 2020

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!
@kunalmohan kunalmohan added this to In progress in WebGPU MVP via automation Jul 6, 2020
@kvark
kvark approved these changes Jul 6, 2020
components/webgpu/lib.rs Outdated Show resolved Hide resolved
components/webgpu/lib.rs Show resolved Hide resolved
@kunalmohan kunalmohan force-pushed the kunalmohan:segfault branch from 90bbac6 to dfe613d Jul 6, 2020
@kunalmohan
Copy link
Collaborator Author

kunalmohan commented Jul 6, 2020

Well, I learnt a lot about handling raw pointers while solving this issue 🤓

@kvark
Copy link
Member

kvark commented Jul 6, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Jul 6, 2020

📌 Commit dfe613d has been approved by kvark

@bors-servo
Copy link
Contributor

bors-servo commented Jul 6, 2020

Testing commit dfe613d with merge 4978501...

bors-servo added a commit that referenced this pull request Jul 6, 2020
Remove segfaults in WebGPU threads

<!-- Please describe your changes on the following line: -->
I have also increased the number of staging buffers for presentation.
Segfault occurred at 2 places-
1. RenderPipeline descriptor.
2. BufferMapAsync callback.

r?@kvark

---
<!-- 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
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- 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. -->
components/webgpu/lib.rs Outdated Show resolved Hide resolved
@kunalmohan kunalmohan force-pushed the kunalmohan:segfault branch from dfe613d to 9e7e943 Jul 6, 2020
@kunalmohan
Copy link
Collaborator Author

kunalmohan commented Jul 6, 2020

Done!

@kvark
Copy link
Member

kvark commented Jul 6, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Jul 6, 2020

📌 Commit 9e7e943 has been approved by kvark

@bors-servo
Copy link
Contributor

bors-servo commented Jul 6, 2020

Testing commit 9e7e943 with merge 05074c0...

bors-servo added a commit that referenced this pull request Jul 6, 2020
Remove segfaults in WebGPU threads

<!-- Please describe your changes on the following line: -->
I have also increased the number of staging buffers for presentation.
Segfault occurred at 2 places-
1. RenderPipeline descriptor.
2. BufferMapAsync callback.

r?@kvark

---
<!-- 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
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- 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. -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 6, 2020

💔 Test failed - status-taskcluster

@jdm
Copy link
Member

jdm commented Jul 6, 2020

@bors-servo retry

@bors-servo
Copy link
Contributor

bors-servo commented Jul 6, 2020

Testing commit 9e7e943 with merge ec93081...

@bors-servo
Copy link
Contributor

bors-servo commented Jul 6, 2020

☀️ Test successful - status-taskcluster
Approved by: kvark
Pushing ec93081 to master...

@bors-servo bors-servo merged commit ec93081 into servo:master Jul 6, 2020
2 checks passed
2 checks passed
Community-TC (pull_request) TaskGroup: success
Details
homu Test successful
Details
WebGPU MVP automation moved this from In progress to Done Jul 6, 2020
@kunalmohan kunalmohan deleted the kunalmohan:segfault branch Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
WebGPU MVP
  
Done
Linked issues

Successfully merging this pull request may close these issues.

None yet

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