Open eero-t opened 7 years ago
Note: trim works without segfaults for simpler things like cube trace replay.
Taking a trimmed trace of Talos Principle trace replay doesn't crash, but like with DOTA2, the resulting trace doesn't work (depending on the trim range, the trimmed trace may show errors or not, but it never renders anything resembling what should be on screen).
(Earlier LunarG/vktrace#43 issue mentions rendering issues also in simpler smoketest case.)
Tested today's Mesa & yesterday's VulkanTools.
vkreplay doesn't anymore crash when trimming stops.
The trimmed DOTA2 file still doesn't work though:
$ vkreplay -o trimmed.vktrace
... lots of validation errors ...
IMAGE(ERROR): object: 0x0 type: 0 location: 3318 msgCode: 180357110: vkCreateImageView() format VK_FORMAT_B8G8R8A8_UNORM differs from image 8 format VK_FORMAT_B8G8R8A8_SRGB. Formats MUST be IDENTICAL unless VK_IMAGE_CREATE_MUTABLE_FORMAT BIT was set on image creation. The spec valid usage text states 'If image was not created with the VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT flag,' (https://www.khronos.org/registry/vulkan/specs/1.0/html/vkspec.html#VUID-VkImageViewCreateInfo-image-01019)
vkreplay error: Failed to remap VkSampler.
vkreplay error: Skipping vkUpdateDescriptorSets() due to invalid remapped VkSampler.
vkreplay error: Failed to remap VkSampler.
vkreplay error: Skipping vkUpdateDescriptorSets() due to invalid remapped VkSampler.
vkreplay error: Failed to remap VkSampler.
vkreplay error: Skipping vkUpdateDescriptorSets() due to invalid remapped VkSampler.
vkreplay error: Failed to remap VkSampler.
vkreplay error: Skipping vkUpdateDescriptorSets() due to invalid remapped VkSampler.
vkreplay error: Failed to remap VkSampler.
vkreplay error: Skipping vkUpdateDescriptorSets() due to invalid remapped VkSampler.
vkreplay error: Failed to remap VkSampler.
vkreplay error: Skipping vkUpdateDescriptorSets() due to invalid remapped VkSampler.
vkreplay error: Failed to remap VkSampler.
vkreplay error: Skipping vkUpdateDescriptorSets() due to invalid remapped VkSampler.
vkreplay error: Failed to remap VkSampler.
vkreplay error: Skipping vkUpdateDescriptorSets() due to invalid remapped VkSampler.
vkreplay error: Failed to remap VkSampler.
vkreplay error: Skipping vkUpdateDescriptorSets() due to invalid remapped VkSampler.
vkreplay error: Failed to remap VkSampler.
vkreplay error: Skipping vkUpdateDescriptorSets() due to invalid remapped VkSampler.
vkreplay error: Failed to remap VkSampler.
vkreplay error: Skipping vkUpdateDescriptorSets() due to invalid remapped VkSampler.
vkreplay error: Failed to remap VkSampler.
vkreplay error: Skipping vkUpdateDescriptorSets() due to invalid remapped VkSampler.
DS(ERROR): object: 0x5278 type: 23 location: 1187 msgCode: 61: Descriptor set 0x5278 encountered the following validation error at vkCmdDrawIndexed() time: Descriptor in binding #0 at global descriptor index 0 is being used in draw but has not been updated.
Segmentation fault (core dumped)
Segfault is NULL pointer access inside (Mesa) driver.
Setup:
Use-case:
./vktrace -o test.vktrace -tr frames-466-502 -p ./vkreplay -a "-o dota2.vktrace"
Result is that vkreplay crashes when the trim closes:
And the resulting trimmed trace file doesn't work:
Everything works fine if I trace the whole replay without trimming, and that trace can also be replayed fine, the new trace is just somewhat larger than the original trace.
Tracing DOTA2 directly works also fine, but if I set trim hotkey, DOTA2 will crash even before I enable tracing, if I just let it idle in the startup menu. It may be related to above problem.