Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 904042 - media-libs/vulkan-layers-1.3.239 fails to load VK_LAYER_KHRONOS_validation
Summary: media-libs/vulkan-layers-1.3.239 fails to load VK_LAYER_KHRONOS_validation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on: 904477
Blocks:
  Show dependency tree
 
Reported: 2023-04-08 17:04 UTC by Plüss Roland
Modified: 2023-04-17 23:52 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Plüss Roland 2023-04-08 17:04:18 UTC
Since the update to media-libs/vulkan-layers-1.3.239 vulkan is broken if validation layers are loaded:

```
Enable Layers:
- VK_LAYER_KHRONOS_validation
Exception: VK_ERROR_LAYER_NOT_PRESENT
Source File: src/shared/vulkan/src/devkInstance.cpp
```

vulkan-layers does install the layer:
```
> vulkaninfo | grep VK_LAYER_KHRONOS_validation
VK_LAYER_KHRONOS_validation (Khronos Validation Layer) Vulkan version 1.3.239, layer version 1:
```

But enabling it fails. Is there some kind of debug environment variable that can be set to figure out where vulkan-layers fails to build/install the layer properly?
Comment 1 Nick Sarnie gentoo-dev 2023-04-11 00:54:28 UTC
Hi,

Thanks for the bug report. Can you post some repro steps that show enabling the layer fails? Like maybe running some app with some options? vkcube --validate seems to work, but maybe that's not doing the right thing.

Thanks,
Sarnex
Comment 2 Plüss Roland 2023-04-11 17:01:52 UTC
I downloaded the vkcube repository and build it but the current version seems to not know "--validate" anymore.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-11 17:03:13 UTC
(In reply to Plüss Roland from comment #2)
> I downloaded the vkcube repository and build it but the current version
> seems to not know "--validate" anymore.

How did you get the original error?
Comment 4 Plüss Roland 2023-04-11 17:35:56 UTC
https://github.com/LordOfDragons/dragengine but you would need to create a debug build ( scons with_debug=yes build_igde=no prefix=/opt/tempbuild ) since validation layer is only enabled in debug build. You could then use for example https://github.com/LordOfDragons/deexamples/releases/download/v1.9/DSTestProject.delga to run . Any DELGA is fine since the problem is logged when the engine starts up. Run "delauncher DSTestProject.delga" and find the logs at ~/.config/delauncher/logs/games/9febef48-f384-4ca2-899e-ae8efdaf996d/logs/last_run.log . Search for "Enable Layers:" and you should be right at the top of the thrown exception. this requires extension "VK_EXT_debug_report" and layer "VK_LAYER_KHRONOS_validation" to be present otherwise the code is not run.
Comment 5 Nick Sarnie gentoo-dev 2023-04-12 01:43:02 UTC
I keep getting this error when trying to build. As it seems this is your repository, can you take a look? Note with_system_openal=yes or with_system_openal=auto also doesn't work, same error. Thanks

scons with_debug=yes with_system_openal=no prefix=/home/sarnex/Desktop/here
...
use system openal                     | no
...
Build OpenAL
scons: *** [extern/openal/build/lib/libopenal.a] ReadError : file could not be opened successfully:
- method gz: ReadError('not a gzip file')
- method bz2: ReadError('not a bzip2 file')
- method xz: ReadError('not an lzma file')
- method tar: ReadError('truncated header')
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/SCons/Action.py", line 1310, in execute
    result = self.execfunction(target=target, source=rsources, env=env)
  File "/home/sarnex/Desktop/dragengine/extern/openal/SConscript", line 67, in openalBuild
    untarArchive(buildDir.abspath, source[0].abspath)
  File "/home/sarnex/Desktop/dragengine/SConsCommon.py", line 49, in untarArchive
    tf = tarfile.open(source, 'r')
  File "/usr/lib/python3.10/tarfile.py", line 1639, in open
    raise ReadError(f"file could not be opened successfully:\n{error_msgs_summary}")
tarfile.ReadError: file could not be opened successfully:
- method gz: ReadError('not a gzip file')
- method bz2: ReadError('not a bzip2 file')
- method xz: ReadError('not an lzma file')
- method tar: ReadError('truncated header')
scons: building terminated because of errors.
Comment 6 Plüss Roland 2023-04-12 17:01:04 UTC
This is be due to repository bandwidth restriction on GitHub. Run "git lfs pull" before building. Otherwise all binary files are placeholders :(
Comment 7 Nick Sarnie gentoo-dev 2023-04-12 17:21:00 UTC
Ah ok, you might want to consider adding that to the doc.
Comment 8 Plüss Roland 2023-04-12 18:01:09 UTC
Hm, strange. I checked with github settings and git config and they are correct. There should be no problem. I did a fresh clone right now and all the lfs files are downloaded during the clone. No idea why it did not work correctly. I've though updated the ReadMe in case GitHub causes problems again.
Comment 9 Nick Sarnie gentoo-dev 2023-04-12 18:15:40 UTC
The problem was I didn't have git lfs installed at all. With it installed and set up, git cloning and build works fine without git lfs pull. Maybe just add git lfs to the dependencies.

Anyway, I'll try to look at the real issue soon.
Comment 10 Plüss Roland 2023-04-12 19:13:42 UTC
Didn't think about that. Updated the ReadMe with the Git Lfs dependency.
Comment 11 Nick Sarnie gentoo-dev 2023-04-16 21:16:55 UTC
Finally got back to this. I can repro the issue on 1.3.239 but it works on 1.3.243 (current unstable). Can you try the 1.3.243 stack and see if it works for you as well? If so we can consider stabilizing 1.3.243 a bit early. 

Thanks
Comment 12 Plüss Roland 2023-04-17 08:50:57 UTC
Yes, 1.3.243 does not show the error anymore.
Comment 13 Nick Sarnie gentoo-dev 2023-04-17 16:33:11 UTC
Will be fixed when we stabilize. Thanks for the report.

*** This bug has been marked as a duplicate of bug 904477 ***
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-17 23:51:43 UTC
Will call it a depends on instead
Comment 15 Nick Sarnie gentoo-dev 2023-04-17 23:52:23 UTC
Ah yeah that's better thx