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

Outdated err message cites EventLoopBuilderExtUnix::any_thread #3488

Closed
Jasha10 opened this issue Feb 12, 2024 · 1 comment · Fixed by #3643
Closed

Outdated err message cites EventLoopBuilderExtUnix::any_thread #3488

Jasha10 opened this issue Feb 12, 2024 · 1 comment · Fixed by #3643
Labels
DS - wayland DS - x11 S - docs Awareness, docs, examples, etc.

Comments

@Jasha10
Copy link

Jasha10 commented Feb 12, 2024

Using egui+winit I got an error message citing EventLoopBuilderExtUnix::any_thread. I believe this error message is outdated -- it seems EventLoopBuilderExtUnix has been replaced with e.g. EventLoopBuilderExtX11.

The error message
thread '<unnamed>' panicked at /home/homestar/dev/mrepo/src_rs/trading/.vendor/winit/src/platform_impl/linux/mod.rs:747:13:
Initializing the event loop outside of the main thread is a significant cross-platform compatibility hazard. If you absolutely need to create an EventLoop on a different thread, you can use the `EventLoopBuilderExtUnix::any_thread` function.
stack backtrace:
   0: rust_begin_unwind
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:645:5
   1: core::panicking::panic_fmt
             at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panicking.rs:72:14
   2: winit::platform_impl::platform::EventLoop<T>::new
   3: eframe::native::run::create_event_loop
   4: eframe::native::run::run_glow
   5: eframe::run_native
   6: trading_gui::run
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

The error message originates from here:

panic!(
"Initializing the event loop outside of the main thread is a significant \
cross-platform compatibility hazard. If you absolutely need to create an \
EventLoop on a different thread, you can use the \
`EventLoopBuilderExtUnix::any_thread` function."
);

@Jasha10
Copy link
Author

Jasha10 commented Feb 12, 2024

This comes up e.g. here: emilk/egui#1489

@madsmtm madsmtm added the S - docs Awareness, docs, examples, etc. label Feb 12, 2024
notgull added a commit that referenced this issue Feb 26, 2024
Tracing is a modern replacement for the log crate that allows for
annotating log messages with the function that they come from.

cc #3488

Signed-off-by: John Nunley <[email protected]>
@notgull notgull mentioned this issue Feb 26, 2024
5 tasks
notgull added a commit that referenced this issue Feb 28, 2024
Tracing is a modern replacement for the log crate that allows for
annotating log messages with the function that they come from.

cc #3488

Signed-off-by: John Nunley <[email protected]>
notgull added a commit that referenced this issue Feb 29, 2024
Tracing is a modern replacement for the log crate that allows for
annotating log messages with the function that they come from.

cc #3488

Signed-off-by: John Nunley <[email protected]>
notgull added a commit that referenced this issue Apr 20, 2024
This replaces a reference to EventLoopBuilderExtUnix in a panic
message with EventLoopBuilderExtX11 or EventLoopBuilderExtWayland.

Closes #3488

Signed-off-by: John Nunley <[email protected]>
notgull added a commit that referenced this issue Apr 21, 2024
This replaces a reference to EventLoopBuilderExtUnix in a panic
message with EventLoopBuilderExtX11 or EventLoopBuilderExtWayland.

Closes #3488

Signed-off-by: John Nunley <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DS - wayland DS - x11 S - docs Awareness, docs, examples, etc.
Development

Successfully merging a pull request may close this issue.

3 participants