[Fixed] [4.1+] Freeze on Linux w/ Intel if using postprocessing

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

[4.1+] Freeze on Linux w/ Intel if using postprocessing

Postby Marisa Kirisame » Thu May 09, 2019 11:01 am

Everything works fine until I try enabling any form of postprocessing, be it bloom, ssao, fxaa or anything else. Once I do, gzdoom freezes after a second.

Here's the vulkaninfo output from the laptop.
User avatar
Marisa Kirisame
ZScript Magician
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: Marisa Kirisame#4689
Twitch ID: magusmarisa
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
Graphics Processor: nVidia with Vulkan support

Re: [4.1+] Freeze on Linux w/ Intel if using postprocessing

Postby dpJudas » Thu May 09, 2019 11:05 am

Try enable vk_debug and see if it generates any errors. With some luck they can give a hint what is going wrong.
dpJudas
 
 
 
Joined: 28 May 2016

Re: [4.1+] Freeze on Linux w/ Intel if using postprocessing

Postby Marisa Kirisame » Thu May 09, 2019 2:01 pm

User avatar
Marisa Kirisame
ZScript Magician
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: Marisa Kirisame#4689
Twitch ID: magusmarisa
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
Graphics Processor: nVidia with Vulkan support

Re: [4.1+] Freeze on Linux w/ Intel if using postprocessing

Postby dpJudas » Thu May 09, 2019 3:32 pm

If possible, it would help a lot if you could set a breakpoint in line 383 in vk_device.cpp (VulkanDevice::DebugCallback) - just before you type gl_bloom 1. Knowing the call stack for whatever is invalidating that command buffer might help getting closer to the source of this problem.
dpJudas
 
 
 
Joined: 28 May 2016

Re: [4.1+] Freeze on Linux w/ Intel if using postprocessing

Postby dpJudas » Thu May 09, 2019 3:42 pm

I pushed a commit that adds a vk_debug_callstack cvar (default on) that will attempt to include the call stack for the warning/error location when vk_debug is enabled. If you run gzdoom in a debug build I believe that will write out the info I need on Linux.
dpJudas
 
 
 
Joined: 28 May 2016

Re: [4.1+] Freeze on Linux w/ Intel if using postprocessing

Postby Marisa Kirisame » Thu May 09, 2019 5:18 pm

User avatar
Marisa Kirisame
ZScript Magician
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: Marisa Kirisame#4689
Twitch ID: magusmarisa
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
Graphics Processor: nVidia with Vulkan support

Re: [4.1+] Freeze on Linux w/ Intel if using postprocessing

Postby dpJudas » Thu May 09, 2019 6:29 pm

Thanks. Okay now I understand the error message a little better. It is saying the command buffer has become invalid because we updated the descriptor set.
dpJudas
 
 
 
Joined: 28 May 2016

Re: [4.1+] Freeze on Linux w/ Intel if using postprocessing

Postby dpJudas » Thu May 09, 2019 6:53 pm

Pushed a fix for this.

Edit: ah crap. I probably chased ghosts there because some fatal errors were converted to "recoverable" errors. The real bug is most likely the "Could not allocate descriptor sets" line in your output. Now I'm guessing it will just keep writing that or something worse.

Edit 2: did another push which I think explains the real reason it hung after a second.
dpJudas
 
 
 
Joined: 28 May 2016

Re: [4.1+] Freeze on Linux w/ Intel if using postprocessing

Postby Marisa Kirisame » Fri May 10, 2019 4:02 am

Yup, no freezes now.
User avatar
Marisa Kirisame
ZScript Magician
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: Marisa Kirisame#4689
Twitch ID: magusmarisa
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
Graphics Processor: nVidia with Vulkan support


Return to Closed Bugs

Who is online

Users browsing this forum: Yandex [Bot] and 6 guests