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

Can't start the game on KDE 6 wayland #219

Closed
grz0 opened this issue May 6, 2024 · 3 comments
Closed

Can't start the game on KDE 6 wayland #219

grz0 opened this issue May 6, 2024 · 3 comments

Comments

@grz0
Copy link

grz0 commented May 6, 2024

Log:

    Finished release [optimized] target(s) in 0.06s
     Running `target/release/main`
display: missing field `vsync_enabled` at line 9 column 9
Error parsing config file at 'config.yml', attempting delete.
config.yml not found, attempting to create it from config.sample.yml
Log is written to /home/user/.config/sulis/log/main.log
interface 'wl_surface' has no event 2
[2024-05-06 03:18:34.680546 +02:00] WARN [sulis_core/src/io/glium_adapter.rs:374] Unable to create hardware accelerated context.  Falling back...
[2024-05-06 03:18:34.680570 +02:00] WARN [sulis_core/src/io/glium_adapter.rs:375] eglInitialize failed
warning: queue 0x55f4040e9700 destroyed while proxies still attached:
  xdg_wm_base@20 still attached
  wl_output@14 still attached
  wl_output@13 still attached
  zwp_text_input_manager_v3@12 still attached
  xdg_activation_v1@11 still attached
  wl_subcompositor@10 still attached
  zwp_relative_pointer_manager_v1@9 still attached
  zwp_pointer_constraints_v1@8 still attached
  wl_seat@7 still attached
  wl_shm@6 still attached
  zxdg_decoration_manager_v1@5 still attached
  wl_compositor@4 still attached
  wl_registry@2 still attached
[2024-05-06 03:18:34.683343 +02:00] ERROR [src/bin/main.rs:190] eglInitialize failed
[2024-05-06 03:18:34.683360 +02:00] ERROR [sulis_core/src/util.rs:356] There was a fatal error initializing the display system.
[2024-05-06 03:18:34.683364 +02:00] ERROR [sulis_core/src/util.rs:357] Exiting...

smithay-client-toolkit needs to be updated to at least 0.16.1

@Grokmoo
Copy link
Owner

Grokmoo commented May 9, 2024

Thank you for the bug report. It sounds like updating winit will fix this issue. I believe there are some non-trivial API changes to do this, but it is on my list.

@grz0
Copy link
Author

grz0 commented May 9, 2024

I'm not familiar with how exactly cargo works but I solved this issue locally with this command:

cargo update -p smithay-client-toolkit

This updated v0.16.0 -> v0.16.1 and the game works fine. If you search rust interface 'wl_surface' has no event 2 then you will find other rust project with the same issue on KDE 6 & wayland.

@Grokmoo
Copy link
Owner

Grokmoo commented May 9, 2024

Got it, thanks! Fixed in 9b88ae4

@Grokmoo Grokmoo closed this as completed May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants