Closing the game causes a hard crash on Wayland

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!
User avatar
Phytolizer
Posts: 4
Joined: Mon Feb 28, 2022 8:15 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): EndeavourOS
Graphics Processor: nVidia with Vulkan support

Closing the game causes a hard crash on Wayland

Post by Phytolizer »

This error occurs on both 4.12.2 and a master build from this morning (hash g13b9ffd)

Logs are from the 4.12.2 build.
Spoiler:
Whenever I try to close the game, it freezes and the console shows this error:

Code: Select all

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  146 ()
  Minor opcode of failed request:  5
  Value in failed request:  0x4400005
  Serial number of failed request:  40
  Current serial number in output stream:  302
According to my X11 extension headers the major opcode here is "Present" and the minor opcode is "X_PresentPixmapSynced" (this is probably on some SDL call).
In order to make the window go away I must send SIGKILL to gzdoom. I tried in both windowed and fullscreen video modes.

This only occurs on the Vulkan backend.

Let me know what other details I can provide.
User avatar
axredneck
Posts: 381
Joined: Mon Dec 11, 2017 2:09 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Arch
Graphics Processor: nVidia with Vulkan support
Location: Russia

Re: Closing the game causes a hard crash on Wayland

Post by axredneck »

I have the same issue, but i thought it's because of beta Nvidia drivers...
User avatar
Phytolizer
Posts: 4
Joined: Mon Feb 28, 2022 8:15 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): EndeavourOS
Graphics Processor: nVidia with Vulkan support

Re: Closing the game causes a hard crash on Wayland

Post by Phytolizer »

You may be right. I raised this because even in the case of a misbehaving driver there may be a way to let the process at least exit. If this is misguided the report can be ignored since the easy solution is just to not use the Vulkan backend for now.

Return to “Bugs [GZDoom]”