Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Can you please post text of the panic?

> ./keyboard_chicken
thread 'main' panicked at /home/boneyan/Desktop/teplo/teplo/src/render.rs:273:52:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: queue 0x62b0110fca90 destroyed while proxies still attached:
  wl_output#13 still attached
  xdg_activation_v1#12 still attached
  zwp_pointer_constraints_v1#11 still attached
  zwp_text_input_manager_v3#10 still attached
  zxdg_decoration_manager_v1#9 still attached
  zwp_relative_pointer_manager_v1#8 still attached
  wl_shm#7 still attached
  wl_subcompositor#6 still attached
  wl_compositor#5 still attached
  wl_seat#4 still attached
  wl_registry#2 still attached

Got it. Some graphics shenanigans, game can't identify which of your monitors is primary and crashes.

I only have one monitor though...

Interesting. Have to make my code robust anyway...

The panic message looks to me as if you have a hard-coded path to your home directory in it... 

/home/boneyan/Desktop/teplo/teplo/src/render.rs

Could that have something to do with it?

I don't think so. The game is compiled, so it shouldn't use any external code. My home directory is in debug info because I specified engine dependency of the game locally, will specify it via git repository next time.

I think my monitor getting function just doesn't work on your linux distribution/or your setup

I use Arch, btw ;) With Wayland/Hyprland

I've uploaded fixed version (with "_fixed" suffix), can you try to launch it?

New error a few lines further down

> ./keyboard_chicken
thread 'main' panicked at /home/boneyan/Desktop/teplo/teplo/src/render.rs:294:56:
failed to create Display: GlutinCreationError(NoAvailablePixelFormat)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: queue 0x55efbe80ba90 destroyed while proxies still attached:
  xdg_wm_base#19 still attached
  wl_output#13 still attached
  xdg_activation_v1#12 still attached
  zwp_pointer_constraints_v1#11 still attached
  zwp_text_input_manager_v3#10 still attached
  zxdg_decoration_manager_v1#9 still attached
  zwp_relative_pointer_manager_v1#8 still attached
  wl_shm#7 still attached
  wl_subcompositor#6 still attached
  wl_compositor#5 still attached
  wl_seat#4 still attached
  wl_registry#2 still attached

I tried the fixed version just now. It's still panicking. Same error