Repository navigation
Winit 0.24.0 and surfman - #28236
Winit 0.24.0 and surfman#28236
Conversation
|
The same problems are present on macOS from my previous attempt, as described in #26394 (comment). |
|
The resizing issue:
|
|
I pushed a commit that avoids the freezing while repainting issue. The actual viewport for pages is still wildly incorrect on macOS, which is the next issue that needs to be resolved. |
|
I pushed a commit that fixes the wacky viewport, so the rendering actually looks correct now. I think this is almost ready for merging after a bit more cleanup! |
|
Opening https://rawcdn.githack.com/mrdoob/three.js/master/examples/webxr_vr_rollercoaster.html, starting the VR, then closing the new window that appears yields (on macOS): Probably worth filing as a followup issue, though; that might be a bug in winit. |
|
Keyboard input for the openxr window on macOS also doesn't appear to work, but it does work if the original window is focused. |
|
I've tried to correct the |
|
Yeah, the fix for the duplicate package versions is to update the list in this file of allowed duplicates. |
|
One warning left whilst building locally as a result of dfd92ec which I assume was an attempt to fix the sizing to prove a point ? |
|
Oh yeah, you're right. We can revert that specific change that triggered the warning. |
|
@bors-servo try=wpt |
Winit 0.24.0 and surfman <!-- Please describe your changes on the following line: --> I've updated Servo to Winit 0.24.0 based on the previous work of @jdm. I've basically rebased master onto his jdm/winit branch which had the bulk of the work and I brute forced it till it built correcting things here and there as I could. The build reports a few warnings: ``` 00:04:59 Mar 03 10:20:06 warning: use of deprecated field `winit::event::KeyboardInput::modifiers`: Deprecated in favor of WindowEvent::ModifiersChanged 00:04:59 Mar 03 10:20:06 --> ports/winit/headed_window.rs:753:12 00:04:59 Mar 03 10:20:06 | 00:04:59 Mar 03 10:20:06 753 | if input.modifiers.shift() { 00:04:59 Mar 03 10:20:06 | ^^^^^^^^^^^^^^^ 00:04:59 Mar 03 10:20:06 | 00:04:59 Mar 03 10:20:06 = note: `#[warn(deprecated)]` on by default 00:04:59 Mar 03 10:20:06 00:04:59 Mar 03 10:20:06 warning: use of deprecated field `winit::event::KeyboardInput::modifiers`: Deprecated in favor of WindowEvent::ModifiersChanged 00:04:59 Mar 03 10:20:06 --> ports/winit/keyutils.rs:263:34 00:04:59 Mar 03 10:20:06 | 00:04:59 Mar 03 10:20:06 263 | modifiers: get_modifiers(input.modifiers), 00:04:59 Mar 03 10:20:06 | ^^^^^^^^^^^^^^^ 00:04:59 Mar 03 10:20:06 00:07:06 Mar 03 10:22:13 warning: 2 warnings emitted 00:07:06 Mar 03 10:22:13 00:07:06 Mar 03 10:22:13 Completed servo v0.0.1 bin "servo" in 132.7s 00:07:06 Mar 03 10:22:13 Finished dev [unoptimized + debuginfo] target(s) in 6m 59s 00:07:08 Mar 03 10:22:15 [Warning] Could not generate notification! 00:07:08 Mar 03 10:22:15 Build Completed in 0:07:01 ``` And there are a few commits namely b27e09e which I'm not entirely sure of. I've intentionally left the surfman patch in Cargo.toml so someone else can validate this branch. Unit tests and smoke test run successfully. Servo runs but I'm not familiar enough with it to validate how well it does. The window opens and content loads though. My Rust foo is not great and I could use some help fixing those warnings. Regards, PECastro --- <!-- 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 A few warnings ... - [x ] `./mach test-tidy` does not report any errors A few duplicate version statements but no errors. - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [X ] These changes do not require tests because we haven't developed new features or behaviour. <!-- 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 try=wpt-mac retry |
Winit 0.24.0 and surfman <!-- Please describe your changes on the following line: --> I've updated Servo to Winit 0.24.0 based on the previous work of @jdm. I've basically rebased master onto his jdm/winit branch which had the bulk of the work and I brute forced it till it built correcting things here and there as I could. The build reports a few warnings: ``` 00:04:59 Mar 03 10:20:06 warning: use of deprecated field `winit::event::KeyboardInput::modifiers`: Deprecated in favor of WindowEvent::ModifiersChanged 00:04:59 Mar 03 10:20:06 --> ports/winit/headed_window.rs:753:12 00:04:59 Mar 03 10:20:06 | 00:04:59 Mar 03 10:20:06 753 | if input.modifiers.shift() { 00:04:59 Mar 03 10:20:06 | ^^^^^^^^^^^^^^^ 00:04:59 Mar 03 10:20:06 | 00:04:59 Mar 03 10:20:06 = note: `#[warn(deprecated)]` on by default 00:04:59 Mar 03 10:20:06 00:04:59 Mar 03 10:20:06 warning: use of deprecated field `winit::event::KeyboardInput::modifiers`: Deprecated in favor of WindowEvent::ModifiersChanged 00:04:59 Mar 03 10:20:06 --> ports/winit/keyutils.rs:263:34 00:04:59 Mar 03 10:20:06 | 00:04:59 Mar 03 10:20:06 263 | modifiers: get_modifiers(input.modifiers), 00:04:59 Mar 03 10:20:06 | ^^^^^^^^^^^^^^^ 00:04:59 Mar 03 10:20:06 00:07:06 Mar 03 10:22:13 warning: 2 warnings emitted 00:07:06 Mar 03 10:22:13 00:07:06 Mar 03 10:22:13 Completed servo v0.0.1 bin "servo" in 132.7s 00:07:06 Mar 03 10:22:13 Finished dev [unoptimized + debuginfo] target(s) in 6m 59s 00:07:08 Mar 03 10:22:15 [Warning] Could not generate notification! 00:07:08 Mar 03 10:22:15 Build Completed in 0:07:01 ``` And there are a few commits namely b27e09e which I'm not entirely sure of. I've intentionally left the surfman patch in Cargo.toml so someone else can validate this branch. Unit tests and smoke test run successfully. Servo runs but I'm not familiar enough with it to validate how well it does. The window opens and content loads though. My Rust foo is not great and I could use some help fixing those warnings. Regards, PECastro --- <!-- 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 A few warnings ... - [x ] `./mach test-tidy` does not report any errors A few duplicate version statements but no errors. - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [X ] These changes do not require tests because we haven't developed new features or behaviour. <!-- 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. -->
|
💔 Test failed - status-taskcluster |
|
I've published surfman 0.4, and now we need to merge: |
|
I've removed a file from the Is the best way to handle that line to try to match the value somehow or expect ? |
|
Actually I think that's going to break on Wayland systems, given https://docs.rs/winit/0.24.0/winit/window/struct.Window.html#method.primary_monitor. |
|
We should probably use current_monitor and call |
c124d4b to
34a6a3c
Compare
There's only an EventLoop to work with ... |
I hadn't paid proper attention to the test you had scheduled. I thought you were repeating the previous wpt tests against the "cleaner" fix. https://community-tc.services.mozilla.com/tasks/AGV1En5KTt-hCy2kDa1QPg/runs/0/logs/public/logs/live.log#L2178 |
|
That's a common intermittent failure: #27315 |
|
Second round of tests results on the mac, the first one always has a few more failures. |
|
I can reproduce this on the CI machines \o/ |
|
None of the tricks I'm used to made a difference (logging into a particular user over VNC), and I verified that the linux codepath that avoids the winit event loop works. We should change the code to use that path on both linux and macos. |
diff --git a/ports/winit/events_loop.rs b/ports/winit/events_loop.rs
index 3bd82574b3..2d76fe41c3 100644
--- a/ports/winit/events_loop.rs
+++ b/ports/winit/events_loop.rs
@@ -29,11 +29,11 @@ pub struct EventsLoop(EventLoop);
impl EventsLoop {
// Ideally, we could use the winit event loop in both modes,
// but on Linux, the event loop requires a X11 server.
- #[cfg(not(target_os = "linux"))]
+ #[cfg(not(any(target_os = "linux", target_os = "macos")))]
pub fn new(_headless: bool) -> EventsLoop {
EventsLoop(EventLoop::Winit(Some(winit::event_loop::EventLoop::with_user_event())))
}
- #[cfg(target_os = "linux")]
+ #[cfg(any(target_os = "linux", target_os = "macos"))]
pub fn new(headless: bool) -> EventsLoop {
EventsLoop(if headless {
EventLoop::Headless(Arc::new((Mutex::new(false), Condvar::new()))) |
|
@bors-servo try=wpt-mac |
Winit 0.24.0 and surfman <!-- Please describe your changes on the following line: --> I've updated Servo to Winit 0.24.0 based on the previous work in #26394. I've basically rebased master onto his jdm/winit branch which had the bulk of the work and I brute forced it till it built correcting things here and there as I could. The build reports a few warnings: ``` 00:04:59 Mar 03 10:20:06 warning: use of deprecated field `winit::event::KeyboardInput::modifiers`: Deprecated in favor of WindowEvent::ModifiersChanged 00:04:59 Mar 03 10:20:06 --> ports/winit/headed_window.rs:753:12 00:04:59 Mar 03 10:20:06 | 00:04:59 Mar 03 10:20:06 753 | if input.modifiers.shift() { 00:04:59 Mar 03 10:20:06 | ^^^^^^^^^^^^^^^ 00:04:59 Mar 03 10:20:06 | 00:04:59 Mar 03 10:20:06 = note: `#[warn(deprecated)]` on by default 00:04:59 Mar 03 10:20:06 00:04:59 Mar 03 10:20:06 warning: use of deprecated field `winit::event::KeyboardInput::modifiers`: Deprecated in favor of WindowEvent::ModifiersChanged 00:04:59 Mar 03 10:20:06 --> ports/winit/keyutils.rs:263:34 00:04:59 Mar 03 10:20:06 | 00:04:59 Mar 03 10:20:06 263 | modifiers: get_modifiers(input.modifiers), 00:04:59 Mar 03 10:20:06 | ^^^^^^^^^^^^^^^ 00:04:59 Mar 03 10:20:06 00:07:06 Mar 03 10:22:13 warning: 2 warnings emitted 00:07:06 Mar 03 10:22:13 00:07:06 Mar 03 10:22:13 Completed servo v0.0.1 bin "servo" in 132.7s 00:07:06 Mar 03 10:22:13 Finished dev [unoptimized + debuginfo] target(s) in 6m 59s 00:07:08 Mar 03 10:22:15 [Warning] Could not generate notification! 00:07:08 Mar 03 10:22:15 Build Completed in 0:07:01 ``` And there are a few commits namely b27e09e which I'm not entirely sure of. I've intentionally left the surfman patch in Cargo.toml so someone else can validate this branch. Unit tests and smoke test run successfully. Servo runs but I'm not familiar enough with it to validate how well it does. The window opens and content loads though. My Rust foo is not great and I could use some help fixing those warnings. Regards, PECastro --- <!-- 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 A few warnings ... - [x ] `./mach test-tidy` does not report any errors A few duplicate version statements but no errors. - [x] These changes fix #26394 - [x] There are tests for these changes - [ ] 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. -->
|
☀️ Test successful - status-taskcluster |
|
@bors-servo r+ |
|
📌 Commit 21e3154 has been approved by |
Winit 0.24.0 and surfman <!-- Please describe your changes on the following line: --> I've updated Servo to Winit 0.24.0 based on the previous work in #26394. I've basically rebased master onto his jdm/winit branch which had the bulk of the work and I brute forced it till it built correcting things here and there as I could. The build reports a few warnings: ``` 00:04:59 Mar 03 10:20:06 warning: use of deprecated field `winit::event::KeyboardInput::modifiers`: Deprecated in favor of WindowEvent::ModifiersChanged 00:04:59 Mar 03 10:20:06 --> ports/winit/headed_window.rs:753:12 00:04:59 Mar 03 10:20:06 | 00:04:59 Mar 03 10:20:06 753 | if input.modifiers.shift() { 00:04:59 Mar 03 10:20:06 | ^^^^^^^^^^^^^^^ 00:04:59 Mar 03 10:20:06 | 00:04:59 Mar 03 10:20:06 = note: `#[warn(deprecated)]` on by default 00:04:59 Mar 03 10:20:06 00:04:59 Mar 03 10:20:06 warning: use of deprecated field `winit::event::KeyboardInput::modifiers`: Deprecated in favor of WindowEvent::ModifiersChanged 00:04:59 Mar 03 10:20:06 --> ports/winit/keyutils.rs:263:34 00:04:59 Mar 03 10:20:06 | 00:04:59 Mar 03 10:20:06 263 | modifiers: get_modifiers(input.modifiers), 00:04:59 Mar 03 10:20:06 | ^^^^^^^^^^^^^^^ 00:04:59 Mar 03 10:20:06 00:07:06 Mar 03 10:22:13 warning: 2 warnings emitted 00:07:06 Mar 03 10:22:13 00:07:06 Mar 03 10:22:13 Completed servo v0.0.1 bin "servo" in 132.7s 00:07:06 Mar 03 10:22:13 Finished dev [unoptimized + debuginfo] target(s) in 6m 59s 00:07:08 Mar 03 10:22:15 [Warning] Could not generate notification! 00:07:08 Mar 03 10:22:15 Build Completed in 0:07:01 ``` And there are a few commits namely b27e09e which I'm not entirely sure of. I've intentionally left the surfman patch in Cargo.toml so someone else can validate this branch. Unit tests and smoke test run successfully. Servo runs but I'm not familiar enough with it to validate how well it does. The window opens and content loads though. My Rust foo is not great and I could use some help fixing those warnings. Regards, PECastro --- <!-- 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 A few warnings ... - [x ] `./mach test-tidy` does not report any errors A few duplicate version statements but no errors. - [x] These changes fix #26394 - [x] There are tests for these changes - [ ] 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. -->
|
💔 Test failed - status-taskcluster |
|
@bors-servo retry |
|
☀️ Test successful - status-taskcluster |
|
Excellent!!! I tried to update it but it was beyond my knowledge. This will enable many more things! |
I've updated Servo to Winit 0.24.0 based on the previous work in #26394.
I've basically rebased master onto his jdm/winit branch which had the bulk of the work and I brute forced it till it built correcting things here and there as I could.
The build reports a few warnings:
And there are a few commits namely b27e09e which I'm not entirely sure of.
I've intentionally left the surfman patch in Cargo.toml so someone else can validate this branch.
Unit tests and smoke test run successfully.
Servo runs but I'm not familiar enough with it to validate how well it does. The window opens and content loads though.
My Rust foo is not great and I could use some help fixing those warnings.
Regards,
PECastro
./mach build -ddoes not report any errorsA few warnings ...
./mach test-tidydoes not report any errorsA few duplicate version statements but no errors.