KhronosGroup / KhronosGroup/Vulkan-Utility-Libraries

Validation layers: crash when a username is cyrillic on Windows.

Open
#395 3 comments 0 reactions 1 assignee Claimed by @christophe-lunarg View on GitHub
bug OS - Windows P1
Dominant language
C++
Stars
103
Forks
49
Avg merge
7h 15m
Merged PRs (30d)
4

Description

In Vulkan utility libraries repository there is `FindSettingsFile` (src/layer/layer_settings_manager.cpp) function that looks for `vk_layer_settings.txt` file. But at it checks (in order) machine's folders and then the user space's. So, the bug happens if you have a cyrillic username (on Windows) with some conditions (that I don't know because Blender works fine while debug Flax engine's editor crashes in vkCreateInstance).

Steps to reproduce:
1. Download https://github.com/flaxengine/flaxengine and https://github.com/FlaxEngine/FlaxSamples.
2. Build the debug editor.
3. Run the editor with `-vulkan -std` flags.
4. Open the `GraphicsFeaturesTour` folder and choose its `.flaxproj` file.
5. The app crashes.

Stack trace:
Image

Solution I've found:
Run the app in the admin terminal. It makes VVL check only machine's folders avoiding the user space.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.