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

Crash with X11 running the control ui #77

Closed
Benhalor opened this issue Dec 25, 2020 · 5 comments
Closed

Crash with X11 running the control ui #77

Benhalor opened this issue Dec 25, 2020 · 5 comments

Comments

@Benhalor
Copy link
Collaborator

Benhalor commented Dec 25, 2020

When building the control UI on ubuntu, the following crash occurs when dragging the pointer of the mouse inside the windows :

thread 'main' panicked at 'attempted to leave type platform::platform::x11::util::input::PointerState uninitialized, which is invalid', /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/mem/mod.rs:658:9
stack backtrace:
0: rust_begin_unwind
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panicking.rs:483
1: core::panicking::panic_fmt
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/panicking.rs:85
2: core::panicking::panic
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/panicking.rs:50
3: core::mem::uninitialized
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/mem/mod.rs:658
4: winit::platform::platform::x11::util::input::::query_pointer
at /home/gabriel/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.19.5/src/platform/linux/x11/util/input.rs:94
5: winit::platform::platform::x11::EventsLoop::process_event
at /home/gabriel/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.19.5/src/platform/linux/x11/mod.rs:956
6: winit::platform::platform::x11::EventsLoop::poll_events
at /home/gabriel/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.19.5/src/platform/linux/x11/mod.rs:270
7: winit::platform::platform::EventsLoop::poll_events
at /home/gabriel/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.19.5/src/platform/linux/mod.rs:522
8: winit::EventsLoop::poll_events
at /home/gabriel/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.19.5/src/lib.rs:277
9: makair_control::display::support::EventLoop::next
at /home/gabriel/makair-control-ui/src/display/support.rs:34
10: makair_control::display::events::DisplayEvents::handle
at /home/gabriel/makair-control-ui/src/display/events.rs:53
11: makair_control::display::drawer::DisplayDrawer::run
at /home/gabriel/makair-control-ui/src/display/drawer.rs:118
12: makair_control::display::window::DisplayWindow::spawn
at /home/gabriel/makair-control-ui/src/display/window.rs:121
13: makair_control::main
at /home/gabriel/makair-control-ui/src/main.rs:124
14: core::ops::function::FnOnce::call_once
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/ops/function.rs:227
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.

@Benhalor
Copy link
Collaborator Author

Seems to be related to this :
rust-windowing/winit#1773

@valeriansaliou
Copy link
Member

Yep, seems to be a bug that's not directly caused by the UI code but a third party library.

@valeriansaliou
Copy link
Member

Bumping winit requires bumping conrod_winit which requires bumping conrod, which is for now a no-go for me.

@valeriansaliou
Copy link
Member

Closing as the target window server is Wayland, and thus this is not happening on a live machine. X11 is kind of "unsupported" / not built for.

@Benhalor
Copy link
Collaborator Author

Confirmed that using Wayland on ubuntu doesnt raise the error

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

No branches or pull requests

2 participants