VulkanTools icon indicating copy to clipboard operation
VulkanTools copied to clipboard

vulkaninfo: sleep(INFINITE) in vulkaninfo cause the tool to never complete when executed with vkconfig

Open KarenGhavam-lunarG opened this issue 4 years ago • 2 comments

This issue was originally found during SDK 1.2.154.0 testing. It is being logged here for future fix.

  1. Selected my noAMDImplicit Layer configuration that has the AMD implicit layer disabled (we know this implicit layer interferes with vulkaninfo output):

image

The vulkaninfo output still seems incomplete. Attached file here.

vulkaninfoSDK.txt

From @christophe-lunarg

I have the same result on my machine. Running with --json "workaround" the issue.

From @charles-lunarg

I have reproduced the issue, it is only happening when you launch vulkaninfo from vkconfig (by selecting the .exe manually and running it). This happens when no overrides are enabled.

The issue doesn't occur when json or html is selected. The issues is due to an unfortunate interaction with vulkaninfo and vkconfig, notably the fact that vulkaninfo tries to stay open indefinitely in the console, which vkconfig doesn't like.

Vulkaninfo Source code for reference:

if (ConsoleIsExclusive() && human_readable_output) Sleep(INFINITE); 

Note this only occurs with text output (human_readable). Remove that line, and vulkaninfo prints the full output to vkconfig.

KarenGhavam-lunarG avatar Oct 02 '20 14:10 KarenGhavam-lunarG