slint icon indicating copy to clipboard operation
slint copied to clipboard

Update winit and glutin dependencies

Open tronical opened this issue 3 years ago • 1 comments
trafficstars

tronical avatar Aug 05 '22 09:08 tronical

Hm, I get thread 'main' panicked at 'glx function was not loaded', /home/simon/src/slint/target/debug/build/glutin_glx_sys-09982e0fb0b2c16d/out/glx_bindings.rs:374:13 when launching slint-viewer against X11.

tronical avatar Aug 05 '22 11:08 tronical

Rebased.

I cannot reproduce your panic message, but instead, i got this panic when closing the viewer on X11:

thread 'main' panicked at 'Creating EventLoop multiple times is not supported.', /home/olivier/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.27.2/src/event_loop.rs:106:13

The problem seems to be that we hide the window after the event loop is destroyed. And then there is a event_loop.event_loop_proxy().send_event(crate::event_loop::CustomEvent::WindowHidden) that re-creates the event loop

ogoffart avatar Aug 18 '22 08:08 ogoffart

I can't reproduce the GLX issue anymore either. There's been a glutin maintenance release in the meantime, so perhaps that solved it.

tronical avatar Aug 25 '22 12:08 tronical