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

multi_window segfaults #487

Open
grinapo opened this issue Feb 12, 2023 · 3 comments
Open

multi_window segfaults #487

grinapo opened this issue Feb 12, 2023 · 3 comments
Assignees
Labels

Comments

@grinapo
Copy link

grinapo commented Feb 12, 2023

And all I have is the advice to "manually update piston": rust-windowing/winit#2683

Since I am at the level of "run the example with cargo" this is probably within a "some months" timeframe, so maybe you want to act on it now. :-)

@bvssvni bvssvni self-assigned this Feb 17, 2023
@bvssvni
Copy link
Member

bvssvni commented Feb 25, 2023

I updated glutin_window, but get the following error:

thread 'main' panicked at 'Creating EventLoop multiple times is not supported.'

@bvssvni bvssvni added the bug label Feb 25, 2023
@bvssvni
Copy link
Member

bvssvni commented Feb 25, 2023

@Aethelflaed
Copy link

Fixed link from the previous comment + excerpt:

https://github.com/rust-windowing/winit/blob/3217eaa416e7802b2dbc65bdfaa1c8a7a395cf17/src/event_loop.rs#L80-L90

/// Builds a new event loop.
///
/// ***For cross-platform compatibility, the [`EventLoop`] must be created on the main thread,
/// and only once per application.***
///
/// Attempting to create the event loop on a different thread, or multiple event loops in
/// the same application, will panic. This restriction isn't
/// strictly necessary on all platforms, but is imposed to eliminate any nasty surprises when
/// porting to platforms that require it. `EventLoopBuilderExt::any_thread` functions are exposed
/// in the relevant [`platform`] module if the target platform supports creating an event loop on
/// any thread.

Maybe we should update the README to document that multi_window might not work?

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

No branches or pull requests

3 participants