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

Webrender capture doesn't work in macOS nightly builds by default #20746

Closed
jdm opened this issue May 4, 2018 · 9 comments
Closed

Webrender capture doesn't work in macOS nightly builds by default #20746

jdm opened this issue May 4, 2018 · 9 comments

Comments

@jdm
Copy link
Member

@jdm jdm commented May 4, 2018

Pressing ctr+shift+3 in master doesn't cause any new file to appear in the working directory.

@kwonoj
Copy link
Contributor

@kwonoj kwonoj commented May 4, 2018

Which platform does it occurs?

@jdm
Copy link
Member Author

@jdm jdm commented May 4, 2018

Nevermind, this definitely works when I run it from a local build. I'll try using a nightly build.

@jdm
Copy link
Member Author

@jdm jdm commented May 4, 2018

When I run a nightly build on macOS and watch my terminal output, I receive Unable to create path '"/Volumes/Servo/Servo.app/Contents/MacOS/capture_webrender/1525444435"' for capture: Os { code: 30, kind: Other, message: "Read-only file system" } when performing a capture.

@jdm jdm added P-mac and removed A-input labels May 4, 2018
@jdm jdm changed the title Webrender capture doesn't work Webrender capture doesn't work in macOS nightly builds by default May 4, 2018
@kwonoj
Copy link
Contributor

@kwonoj kwonoj commented May 4, 2018

This looks like pkged nightly try to access path application path, not allowed to write. Any suggestions for preferred path? I'll try to update path lookup.

@jdm
Copy link
Member Author

@jdm jdm commented May 4, 2018

Perhaps fall back to the home dir if there's an error creating the path in the working directory?

@klausenbusk
Copy link

@klausenbusk klausenbusk commented May 15, 2018

I'm not sure if this is related, but Ctrl+Shift+3 seems to be broken on Linux64. Nothing happens when I press it, no files or errors.

Tested just now with the latest nightly and ~ 10 days ago with the newest nightly at that time.

@kwonoj
Copy link
Contributor

@kwonoj kwonoj commented May 15, 2018

I'm not sure if this is related, but Ctrl+Shift+3 seems to be broken on Linux64. Nothing happens when I press it, no files or errors.

it's unrelated, currently winit sends kbd event somewhat unexpectedly with ctrl on linux / win. Related issues / discussions are at #20331, #20327, #20726. I'm interested in general refactorings around those area, waiting #20331 's progress first.

@klausenbusk
Copy link

@klausenbusk klausenbusk commented May 15, 2018

it's unrelated, currently winit sends kbd event somewhat unexpectedly with ctrl on linux / win

Oh, I see. Is there any workaround for the time being? Is there anyway else to trigger a capture?

@kwonoj
Copy link
Contributor

@kwonoj kwonoj commented May 15, 2018

Is there anyway else to trigger a capture?

With current build as-is, it might be somewhat hard. I noticed keep trying (keep pressing ctrl-shift-3) one time did work sometimes, but not reliably.

bors-servo added a commit that referenced this issue May 16, 2018
fix(capture_webrender): try fallback capture dir

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

This PR try to update behavior of webrender capture to have fallback dir - first it try to create under current working dir, if fails go back to $TMPDIR. I was debating between TMP vs $home, bit hesitate to create some folder under user's home dir directly so choose TMP instead. Can be easily changed, or add few more if needed.

---
<!-- 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 fix #20746 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____
- locally verified on mac os

<!-- 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/20750)
<!-- 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.

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