LunarG / vktrace

Vulkan vktrace / vkreplay
Other
6 stars 8 forks source link

Segfault when trying to play trace from within vktraceviewer #39

Open eero-t opened 7 years ago

eero-t commented 7 years ago

Setup:

Use-case:

Expected result:

Actual result:

Same happens with the other test-cases I tried. What the viewer does to mess up X11 connection creation?

davidlunarg commented 7 years ago

We are aware of this issue.

eero-t commented 7 years ago

This seems to work now much better. I'm still able to segfault it by playing, pausing, continuing, stepping & stopping enough, but so far haven't been able to reproduce that under Valgrind, so I guess it's timing related issue now.

Topping/untopping the replay window and using detach seems to make it easier to crash. Enabling validation can also make it easier to crash.

As this doesn't anymore crash right away when one presses play i.e. one can actually use it, I'm fine regardless of whether you want to close this, or keep it open until it's crash free.

davidlunarg commented 7 years ago

vktraceviewer is alpha software in the 1.0.42.0 SDK, it still needs lots of work. We put it in the SDK so that it gets better visibility and as a preview of the functionality it will provide. We'll work on the crashes and improve it sometime soon. We'll also accept pull requests. :-)

We'll keep this issue open for now.

eero-t commented 7 years ago

The weird thing is that while vkreplay seems now to be able to replay things reliably, trace viewer still crashes to that swapchain issue that was a problem for vkreplay earlier (at least with Mesa/Intel).

eero-t commented 7 years ago

Play button is disabled in the latest git VulkanTools traceviewer, is this on purpose?

davidlunarg commented 7 years ago

Attempting to play a trace from vktraceviewer crashes vktraceviewer. So we disabled the play button. vktraceviewer still needs lots of work, we'll address that issue as part of that work.

krOoze commented 5 years ago

This looks suspiciously similar to the https://github.com/KhronosGroup/Vulkan-Tools/issues/136 backtrace.