Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vkconfig New Vulkan Layers Management combo-box does not save configuration #2046

Closed
dorian-apanel-intel opened this issue Jun 20, 2024 · 2 comments · Fixed by #2057
Closed
Assignees
Labels
bug OS - platform independent The issue doesn't depend on the OS P0 - Must Fix Must Fix / Critical feature Project - vkconfig Issues related to vkconfig

Comments

@dorian-apanel-intel
Copy link

The radio selection has been changed to a combo box:
image

However, if you only change the value of the combo box without clicking elsewhere, you might assume that the configuration has been updated when, in fact, it has not. This issue was not present with the radio selection that was used previously, which worked correctly.

Example:

  1. Open vkconfig. It starts with "Layers controlled by the Vulkan Configurator" and the Validation layer selected.
  2. Choose "Layers Controlled by the Vulkan Applications" but do not click anything else.
  3. Open the console and run the following commands:
    set VK_LOADER_DEBUG=all
    %VULKAN_SDK%\Bin\vulkaninfoSDK.exe > my_file.txt 2>&1
  4. Review the file and notice that the Validation layer is loaded, although it should not be.
  5. Execute dir "%appdata%\..\Local\LunarG\vkconfig\override" and note the presence of the VkLayer_override.json and vk_layer_settings.txt files.
  6. Now, click only the Status button at the bottom of vkconfig.
  7. Repeat steps 3, 4, and 5 - the results will be different.

It was working correctly in radio selection present before

Observed on VulkanSDK binary package v.1.3.283.0

@npavlicek
Copy link
Contributor

I am not familiar with Qt5 however I played with the code and got it to start working. Someone forgot to change the Qt signal from triggered to toggled for the combo box options. The signal is not emitted for actions that are check-able so as a result the Configurators configure function is never called.

I will make a pull request with my fix.

@christophe-lunarg christophe-lunarg self-assigned this Jul 10, 2024
@christophe-lunarg christophe-lunarg added bug P1 Defect / Major feature OS - platform independent The issue doesn't depend on the OS Project - vkconfig Issues related to vkconfig P0 - Must Fix Must Fix / Critical feature and removed P1 Defect / Major feature labels Jul 10, 2024
@christophe-lunarg christophe-lunarg linked a pull request Jul 10, 2024 that will close this issue
christophe-lunarg added a commit that referenced this issue Jul 10, 2024
Change-Id: I95c3455daf981f3878cd52addbb06ede91fc534a
christophe-lunarg added a commit that referenced this issue Jul 10, 2024
Change-Id: I95c3455daf981f3878cd52addbb06ede91fc534a
@dorian-apanel-intel
Copy link
Author

@npavlicek Thank you very much for addressing the issue.

Initially, I was puzzled because the code modification seemed to pertain solely to the tray and not to the combo box. However, upon inspecting the code under a debugger, I noticed that UpdateTray is invoked within the OnComboBoxModeChanged method.

 	vkconfig.exe!MainWindow::UpdateTray() Line 212	C++
 	vkconfig.exe!MainWindow::UpdateUI() Line 347	C++
 	vkconfig.exe!MainWindow::OnComboBoxModeChanged(int index) Line 525	C++

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug OS - platform independent The issue doesn't depend on the OS P0 - Must Fix Must Fix / Critical feature Project - vkconfig Issues related to vkconfig
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants