Overlay map can crash in particular circumstances

Moderator: GZDoom Developers

Overlay map can crash in particular circumstances

Postby Marrub » Sun Mar 01, 2020 11:41 pm

Unsure of the exact reason this happens, but in certain mods, using the overlay map (any type) in Vulkan will crash with a SIGABRT:
Code: Select allExpand view
gzdoom: /home/marrub/src/games/gzdoom-g4.3.3/src/rendering/vulkan/thirdparty/vk_mem_alloc/vk_mem_alloc.h:3814: void VmaAllocation_T::InitDedicatedAllocation(uint32_t, VkDeviceMemory, VmaSuballocationType, void*, VkDeviceSize): Assertion `hMemory != 0' failed.
fish: “~/bin/other/gzdoom-debug/gzdoom…” terminated by signal SIGABRT (Abort)


I would post a stack trace but gdb simply aborts when I try running gzdoom in it (regardless of circumstances.)

Steps to reproduce:
- Set renderer to Vulkan and "Overlay automap" to anything but "Off."
- Run GZDoom with this pk3.
- Open the automap. The game will crash regardless of OS or version.
User avatar
Marrub
Xevv Va Rkvyr
 
 
 
Joined: 26 Feb 2013
Discord: Marrub#5455
Github ID: marrub--
Operating System: Other Linux 64-bit
Graphics Processor: ATI/AMD with Vulkan Support

Re: Overlay map can crash in particular circumstances

Postby Graf Zahl » Mon Mar 02, 2020 1:06 am

What kind of graphics card do you have? How much video RAM? How much system RAM? This looks like an out of memory error - Vulkan doesn't have any means to gracefully deal with them.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Overlay map can crash in particular circumstances

Postby Marrub » Mon Mar 02, 2020 3:02 am

Graf Zahl wrote:What kind of graphics card do you have? How much video RAM? How much system RAM? This looks like an out of memory error - Vulkan doesn't have any means to gracefully deal with them.

This happens regardless of system specs. It's likely a size underflow somewhere.

My current GPU is:
Model: Radeon RX 590
Compute Units: 36
Stream Units: 2304
Memory: 8GB
Memory Bandwidth: 256GB/s

And system:
Xeon 6(12)x 2.9GHz
16GiB ECC RAM

EDIT: I accidentally put my old GPU lol
User avatar
Marrub
Xevv Va Rkvyr
 
 
 
Joined: 26 Feb 2013
Discord: Marrub#5455
Github ID: marrub--
Operating System: Other Linux 64-bit
Graphics Processor: ATI/AMD with Vulkan Support

Re: Overlay map can crash in particular circumstances

Postby Player701 » Mon Mar 02, 2020 6:04 am

Unable to reproduce this with GZDoom 4.3.3, nor with g4.4pre-76-g4cf7c6351 (both debug and release builds). GPU is an RTX 2080 Ti (11 GB VRAM). No memory usage spikes either (GZDoom used about 450 MB of video memory during a short testing session).
User avatar
Player701
 
Joined: 13 May 2009
Location: Russia
Discord: Player701#8214
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Overlay map can crash in particular circumstances

Postby Marrub » Wed Mar 04, 2020 1:42 am

Might be an issue that only happens on AMD cards then. I know it's not a driver issue since it happens on Windows and Linux.
User avatar
Marrub
Xevv Va Rkvyr
 
 
 
Joined: 26 Feb 2013
Discord: Marrub#5455
Github ID: marrub--
Operating System: Other Linux 64-bit
Graphics Processor: ATI/AMD with Vulkan Support

Re: Overlay map can crash in particular circumstances

Postby nazakomu » Sun May 03, 2020 9:03 pm

Marrub wrote:Might be an issue that only happens on AMD cards then. I know it's not a driver issue since it happens on Windows and Linux.

This happens to me playing Lithium 1.6.3 on GZDoom 4.3.3, and I use a NVIDIA GeForce RTX 2070 SUPER. So this crash isn't exclusive to AMD GPUs.
User avatar
nazakomu
apathetic
 
Joined: 30 Nov 2016
Discord: Nazakomu#2197
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support


Return to Vulkan Renderer Bugs

Who is online

Users browsing this forum: No registered users and 0 guests