Game "Tomb Raider" null dereference at the start of the benchmark
I was running a native 32-bit game "Tomb Raider" ( https://store.steampowered.com/app/203160/Tomb_Raider/ ).
zink-wip @ 93a53dbe
AMD Radeon R9 Fury X
Settings: 1920x1200, windowed, Ultimate, vsync off, motion blur off, tressfx on.
The game starts nicely, and shows menus.
Starting a benchmark from main menu it crashes:
(gdb)
Thread 75 "TombRaid:gdrv0" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x6edffb40 (LWP 283935)]
buffer_transfer_map (trans=0xd81cb7c, box=0x6edfe2fc, usage=1610612994, res=0x0, ctx=0xd09e8e8) at ../../src/gallium/drivers/zink/zink_resource.c:908
908 res->obj->map = ptr;
(gdb) bt
#0 buffer_transfer_map (trans=0xd81cb7c, box=0x6edfe2fc, usage=1610612994, res=0x0, ctx=0xd09e8e8) at ../../src/gallium/drivers/zink/zink_resource.c:908
#1 zink_transfer_map (pctx=<optimized out>, pres=<optimized out>, level=<optimized out>, usage=<optimized out>, box=<optimized out>, transfer=<optimized out>) at ../../src/gallium/drivers/zink/zink_resource.c:989
#2 0xab86fb01 in zink_buffer_subdata (ctx=0xd09e8e8, buffer=0x63a29640, usage=1610612994, offset=9557072, size=224, data=0xd261b78) at ../../src/gallium/drivers/zink/zink_resource.c:1166
#3 0xab487aea in tc_call_buffer_subdata (pipe=0xd09e8e8, payload=0xd261b68) at ../../src/gallium/auxiliary/util/u_threaded_context.c:1883
#4 0xab48951e in tc_batch_execute (job=0xd2614e0, thread_index=0) at ../../src/gallium/auxiliary/util/u_threaded_context.c:209
#5 0xaaeab5c6 in util_queue_thread_func (input=<optimized out>) at ../../src/util/u_queue.c:309
#6 0xaaeab10d in impl_thrd_routine (p=0xd0ac250) at ../../include/c11/threads_posix.h:87
#7 0xf63170b4 in start_thread () at /lib/i386-linux-gnu/libpthread.so.0
#8 0xf0ab5296 in clone () at /lib/i386-linux-gnu/libc.so.6
(gdb)
It looks like allocation failed for res.
In stderr I see these:
../../src/amd/vulkan/radv_device.c:5525: VK_ERROR_MEMORY_MAP_FAILED
../../src/amd/vulkan/radv_device.c:5525: VK_ERROR_MEMORY_MAP_FAILED
so it is probably related.
No issues on radeonsi.
Note, for the zink to even start and show the menu, the "Ultimate" settings MUST be used. Otherwise it crashes before getting to the main menu (see the bug #66 (closed) )