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

interface 'wl_surface' has no event 2 #184

Open
thetheuser opened this issue Jun 1, 2024 · 3 comments
Open

interface 'wl_surface' has no event 2 #184

thetheuser opened this issue Jun 1, 2024 · 3 comments
Labels
A-gui Area: GUI C-bug Category: bug, defects I-crash Issue: crashes O-linux OS: Linux platforms P-medium Priority: medium

Comments

@thetheuser
Copy link

thetheuser commented Jun 1, 2024

I use Fedora Linux 40 with KDE Plasma and Wayland. I also have OpenSSL 1.1.0w installed. Running the program in the terminal results in the output below followed with an immediate crash:

 INFO drg_mod_integration: writing logs to `/home/user/.local/share/drg-mod-integration/drg-mod-integration.log`
interface 'wl_surface' has no event 2
thread 'main' panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/glutin-0.30.10/src/api/egl/surface.rs:239:44:
called `Option::unwrap()` on a `None` value
stack backtrace:
   0: rust_begin_unwind
             at /rustc/07688726805d5db0a4bca445a6651d09708041ea/library/std/src/panicking.rs:617:5
   1: core::panicking::panic_fmt
             at /rustc/07688726805d5db0a4bca445a6651d09708041ea/library/core/src/panicking.rs:67:14
   2: core::panicking::panic
             at /rustc/07688726805d5db0a4bca445a6651d09708041ea/library/core/src/panicking.rs:117:5
   3: glutin::api::egl::surface::<impl glutin::api::egl::display::Display>::create_window_surface
             at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/glutin-0.30.10/src/api/egl/surface.rs:239
   4: <glutin::display::Display as glutin::display::GlDisplay>::create_window_surface
             at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/glutin-0.30.10/src/display.rs:316:33
   5: eframe::native::run::glow_integration::GlutinWindowContext::on_resume
             at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/eframe-0.22.0/src/native/run.rs:547:17
   6: <eframe::native::run::glow_integration::GlowWinitApp as eframe::native::run::WinitApp>::on_event
             at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/eframe-0.22.0/src/native/run.rs:666:13
   7: eframe::native::run::run_and_return::{{closure}}
             at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/eframe-0.22.0/src/native/run.rs:181:28
   8: winit::platform_impl::platform::wayland::event_loop::EventLoop<T>::run_return
             at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.28.6/src/platform_impl/linux/wayland/event_loop/mod.rs:242:9
   9: eframe::native::run::with_event_loop
             at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.28.6/src/platform_impl/linux/mod.rs:785:56
  10: eframe::native::run::glow_integration::run_glow
             at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/eframe-0.22.0/src/native/run.rs:1040:13
  11: eframe::run_native
             at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/eframe-0.22.0/src/lib.rs:220:13
  12: drg_mod_integration::gui::gui
             at /home/runner/work/drg-mod-integration/drg-mod-integration/src/gui/mod.rs:54:5
  13: drg_mod_integration::main
             at /home/runner/work/drg-mod-integration/drg-mod-integration/src/main.rs:133:13
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
warning: queue 0x5619e335cc50 destroyed while proxies still attached:
  xdg_wm_base@28 still attached
  wl_output@15 still attached
  zwp_text_input_manager_v3@14 still attached
  xdg_activation_v1@13 still attached
  wl_subcompositor@12 still attached
  zwp_relative_pointer_manager_v1@11 still attached
  zwp_pointer_constraints_v1@10 still attached
  wl_seat@9 still attached
  wl_shm@8 still attached
  wp_fractional_scale_manager_v1@7 still attached
  wp_viewporter@6 still attached
  zxdg_decoration_manager_v1@5 still attached
  wl_compositor@4 still attached
  wl_registry@2 still attached
@c101vp
Copy link

c101vp commented Jun 1, 2024

I had a similar issue happen to me on Arch Linux running Plasma 6 and Wayland, however using this fork, it seems to work fine.

@jieyouxu jieyouxu added C-bug Category: bug, defects O-linux OS: Linux platforms A-gui Area: GUI I-crash Issue: crashes P-high Priority: high labels Jun 3, 2024
@c101vp
Copy link

c101vp commented Jun 3, 2024

Update: Having tested the app on the exact same system, just running on X11 instead of Wayland, I've determined this to potentially be a Wayland-specific issue. I've only tested the latest release, as I didn't really know how I could build this app. However, the fork that I've listed seems to be up to date with this repo, and it works...
image
If I knew how to build this app from source, I could test it out and see if the issue is still present, as the latest release was 9 months ago.
Edit: When first trying to run the app on Wayland, I got a pretty similar-looking error to OP. However, what happens now when trying to run it is that I get the error interface 'wl_surface' has no event 2 but the app keeps running instead of crashing like it used to, and no GUI is displayed.

@jieyouxu jieyouxu added P-medium Priority: medium and removed P-high Priority: high labels Jun 6, 2024
@5121f
Copy link

5121f commented Jun 22, 2024

Works fine with XWayland: env -u WAYLAND_DISPLAY drg_mod_integration.

@trumank trumank changed the title (linux-specific) Attempting to run the executable immediately crashes it. interface 'wl_surface' has no event 2 Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-gui Area: GUI C-bug Category: bug, defects I-crash Issue: crashes O-linux OS: Linux platforms P-medium Priority: medium
Projects
None yet
Development

No branches or pull requests

4 participants