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

Create event loop panicked (winit) #566

Open
1 task done
ngmisl opened this issue Jul 22, 2024 · 7 comments
Open
1 task done

Create event loop panicked (winit) #566

ngmisl opened this issue Jul 22, 2024 · 7 comments
Labels
bug Something isn't working Linux Something related to Linux operating system

Comments

@ngmisl
Copy link

ngmisl commented Jul 22, 2024

Is there an existing issue for this?

  • I have searched the existing issues.

What's the problem?

latest release on crates and brew:

thread 'main' panicked at /home/linuxbrew/.cache/Homebrew/cargo_cache/registry/src/index.crates.io-6f17d22bba15001f/iced_winit-0.12.2/src/application.rs:119:10:
Create event loop: NotSupported(NotSupportedError)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

How did you install the app?

installed from crates.io

Operating System

Linux

Additional context

No response

@GyulyVGC
Copy link
Owner

GyulyVGC commented Jul 22, 2024

Hey @ngmisl, this seems to be an upstream issue.
The program is crashing at this line of the iced_winit dependency.
And this is the method that's causing the crash.

It's pretty weird that you're the first one to face this problem.
Can you please provide me with additional information about your OS and environment?

@GyulyVGC GyulyVGC added bug Something isn't working Linux Something related to Linux operating system labels Jul 22, 2024
@GyulyVGC
Copy link
Owner

You also may find useful the following issue: rust-windowing/winit#3603

@GyulyVGC GyulyVGC changed the title panicked Create event loop panicked (winit) Jul 22, 2024
@ngmisl
Copy link
Author

ngmisl commented Jul 22, 2024

Hi,

I use linux

@GyulyVGC
Copy link
Owner

I'd need some more info:

  • Distribution
  • Architecture
  • Window system

@jiliohuang
Copy link

I also encountered the same problem。
OS:ubuntu 22.04.4

sniffnet version: 1.3.1

Installation method:cargo install sniffnet --locked

start sniffnet error,

message:

thread 'main' panicked at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/iced_winit-0.12.2/src/application.rs:119:10:

Create event loop: Os(OsError { line: 786, file: "/root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/linux/mod.rs", error: Misc("neither WAYLAND_DISPLAY nor WAYLAND_SOCKET nor DISPLAY is set.") })

note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

After configuring environment variables
env setup:
export WAYLAND_DISPLAY=wayland-0
export WAYLAND_SOCKET=/run/user/1000/wayland-0
export DISPLAY=:0

error message:
thread 'main' panicked at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/iced_winit-0.12.2/src/application.rs:119:10:
Create event loop: Os(OsError { line: 80, file: "/root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/linux/wayland/event_loop/mod.rs", error: WaylandError(Connection(InvalidFd)) })
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

@Robert-Du0001
Copy link

I've also encountered the same problem.

@lcdss
Copy link

lcdss commented Sep 4, 2024

Same here on Arch Linux with Gnome (Wayland):

thread 'main' panicked at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/iced_winit-0.12.2/src/application.rs:119:10:
Create event loop: Os(OsError { line: 80, file: "/build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/linux/wayland/event_loop/mod.rs", error: WaylandError(Connection(NoCompositor)) })
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Linux Something related to Linux operating system
Projects
None yet
Development

No branches or pull requests

5 participants