I am trying to use libplacebo from a vapoursynth script on linux (Ubuntu 24.04). More information on my environment can be found Lypheo/vs-placebo#56.
Basically I have installed NVIDIA drivers and vulkan. with vulkaninfo --summary I see that the discrete gpu is detected.
If I encode the script I receive a VK_ERROR_DEVICE_LOST error continously. I am very confident that the hardware is NOT faulty.
In the other issue I have also explained how I have compiled it.
Someone suggested to run the tests and this is the result:
$ ninja -Cbuild test
ninja: Entering directory `build'
[1/2] Running all tests.
1/15 colorspace.c OK 0.02s
2/15 common.c OK 0.02s
3/15 lut.c OK 0.01s
4/15 filters.c OK 0.01s
5/15 options.c OK 0.01s
6/15 string.c OK 0.01s
7/15 tone_mapping.c OK 0.01s
8/15 utils.c OK 0.01s
9/15 dav1d.c OK 0.01s
10/15 cache.c OK 0.02s
11/15 dither.c OK 0.02s
12/15 libav.c OK 0.00s
13/15 dummy.c OK 0.03s
14/15 vulkan.c OK 0.19s
15/15 opengl_surfaceless.c FAIL 0.34s exit status 1
>>> ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 MALLOC_PERTURB_=31 /home/[REDACTED]/libplacebo/build/src/tests/test.opengl_surfaceless.c
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀ ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
Listing only the last 100 lines from a long log.
[0.138][w] GL: Buffer performance warning: Buffer object 1 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
[0.156][w] GL: Buffer performance warning: Buffer object 1 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
[0.157][w] GL: Program/shader state performance warning: Vertex shader in program 5 is being recompiled based on GL state.
[0.157][w] GL: Program/shader state performance warning: Vertex shader in program 12 is being recompiled based on GL state.
[0.158][w] GL: Program/shader state performance warning: Vertex shader in program 15 is being recompiled based on GL state.
[0.158][w] GL: Program/shader state performance warning: Vertex shader in program 18 is being recompiled based on GL state.
[0.158][w] GL: Program/shader state performance warning: Vertex shader in program 21 is being recompiled based on GL state.
[0.158][w] GL: Program/shader state performance warning: Vertex shader in program 24 is being recompiled based on GL state.
[0.158][w] GL: Program/shader state performance warning: Vertex shader in program 27 is being recompiled based on GL state.
[0.158][w] GL: Program/shader state performance warning: Vertex shader in program 30 is being recompiled based on GL state.
[0.158][w] GL: Program/shader state performance warning: Vertex shader in program 33 is being recompiled based on GL state.
[0.158][w] GL: Program/shader state performance warning: Vertex shader in program 36 is being recompiled based on GL state.
[0.159][w] GL: Program/shader state performance warning: Vertex shader in program 39 is being recompiled based on GL state.
[0.159][w] GL: Program/shader state performance warning: Vertex shader in program 42 is being recompiled based on GL state.
[0.159][w] GL: Program/shader state performance warning: Vertex shader in program 45 is being recompiled based on GL state.
[0.159][w] GL: Program/shader state performance warning: Vertex shader in program 48 is being recompiled based on GL state.
[0.159][w] GL: Program/shader state performance warning: Vertex shader in program 51 is being recompiled based on GL state.
[0.159][w] GL: Program/shader state performance warning: Vertex shader in program 54 is being recompiled based on GL state.
[0.159][w] GL: Program/shader state performance warning: Vertex shader in program 57 is being recompiled based on GL state.
[0.159][w] GL: Program/shader state performance warning: Vertex shader in program 60 is being recompiled based on GL state.
[0.159][w] GL: Program/shader state performance warning: Vertex shader in program 63 is being recompiled based on GL state.
[0.160][w] GL: Program/shader state performance warning: Vertex shader in program 66 is being recompiled based on GL state.
[0.160][w] GL: Program/shader state performance warning: Vertex shader in program 69 is being recompiled based on GL state.
[0.160][w] GL: Program/shader state performance warning: Vertex shader in program 72 is being recompiled based on GL state.
[0.161][w] GL: Buffer performance warning: Buffer object 7 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
[0.177][w] GL: Program/shader state performance warning: Vertex shader in program 18 is being recompiled based on GL state.
[0.177][w] GL: Program/shader state performance warning: Vertex shader in program 21 is being recompiled based on GL state.
[0.177][w] GL: Program/shader state performance warning: Vertex shader in program 24 is being recompiled based on GL state.
[0.180][w] GL: Program/shader state performance warning: Vertex shader in program 5 is being recompiled based on GL state.
[0.180][w] GL: Program/shader state performance warning: Vertex shader in program 12 is being recompiled based on GL state.
[0.181][w] GL: Program/shader state performance warning: Vertex shader in program 15 is being recompiled based on GL state.
[0.181][w] GL: Program/shader state performance warning: Vertex shader in program 18 is being recompiled based on GL state.
[0.181][w] GL: Program/shader state performance warning: Vertex shader in program 21 is being recompiled based on GL state.
[0.181][w] GL: Program/shader state performance warning: Vertex shader in program 24 is being recompiled based on GL state.
[0.181][w] GL: Program/shader state performance warning: Vertex shader in program 27 is being recompiled based on GL state.
[0.185][w] GL: Program/shader state performance warning: Vertex shader in program 36 is being recompiled based on GL state.
[0.185][w] GL: Program/shader state performance warning: Vertex shader in program 39 is being recompiled based on GL state.
[0.186][w] GL: Program/shader state performance warning: Vertex shader in program 42 is being recompiled based on GL state.
[0.186][w] GL: Program/shader state performance warning: Vertex shader in program 45 is being recompiled based on GL state.
[0.186][w] GL: Program/shader state performance warning: Vertex shader in program 48 is being recompiled based on GL state.
[0.190][w] GL: Program/shader state performance warning: Vertex shader in program 57 is being recompiled based on GL state.
[0.191][w] GL: Program/shader state performance warning: Vertex shader in program 67 is being recompiled based on GL state.
[0.192][w] GL: Program/shader state performance warning: Vertex shader in program 73 is being recompiled based on GL state.
[0.192][w] GL: Program/shader state performance warning: Vertex shader in program 79 is being recompiled based on GL state.
[0.193][w] GL: Program/shader state performance warning: Vertex shader in program 85 is being recompiled based on GL state.
[0.193][w] GL: Program/shader state performance warning: Vertex shader in program 91 is being recompiled based on GL state.
[0.203][w] GL: Program/shader state performance warning: Vertex shader in program 109 is being recompiled based on GL state.
[0.225][w] GL: Program/shader state performance warning: Vertex shader in program 128 is being recompiled based on GL state.
[0.226][w] GL: Program/shader state performance warning: Vertex shader in program 131 is being recompiled based on GL state.
[0.226][w] GL: Program/shader state performance warning: Vertex shader in program 134 is being recompiled based on GL state.
[0.226][w] GL: Program/shader state performance warning: Vertex shader in program 137 is being recompiled based on GL state.
[0.226][w] GL: Program/shader state performance warning: Vertex shader in program 140 is being recompiled based on GL state.
[0.227][w] GL: Program/shader state performance warning: Vertex shader in program 143 is being recompiled based on GL state.
[0.227][w] GL: Program/shader state performance warning: Vertex shader in program 146 is being recompiled based on GL state.
[0.237][w] GL: Program/shader state performance warning: Vertex shader in program 149 is being recompiled based on GL state.
[0.237][w] GL: Program/shader state performance warning: Vertex shader in program 152 is being recompiled based on GL state.
[0.237][w] GL: Program/shader state performance warning: Vertex shader in program 155 is being recompiled based on GL state.
[0.237][w] GL: Program/shader state performance warning: Vertex shader in program 158 is being recompiled based on GL state.
[0.238][w] GL: Program/shader state performance warning: Vertex shader in program 161 is being recompiled based on GL state.
[0.238][w] GL: Program/shader state performance warning: Vertex shader in program 164 is being recompiled based on GL state.
[0.238][w] GL: Program/shader state performance warning: Vertex shader in program 167 is being recompiled based on GL state.
[0.238][w] GL: Buffer performance warning: Buffer object 118 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
[0.245][w] GL: Program/shader state performance warning: Vertex shader in program 172 is being recompiled based on GL state.
[0.245][w] GL: Buffer performance warning: Buffer object 122 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
[0.246][w] GL: Program/shader state performance warning: Vertex shader in program 175 is being recompiled based on GL state.
[0.246][w] GL: Buffer performance warning: Buffer object 124 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
[0.247][w] GL: Buffer performance warning: Buffer object 124 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
[0.247][w] GL: Buffer performance warning: Buffer object 124 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
[0.252][w] GL: Program/shader state performance warning: Vertex shader in program 180 is being recompiled based on GL state.
[0.252][w] GL: Buffer performance warning: Buffer object 128 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
[0.252][w] GL: Program/shader state performance warning: Vertex shader in program 183 is being recompiled based on GL state.
[0.253][w] GL: Program/shader state performance warning: Vertex shader in program 186 is being recompiled based on GL state.
[0.266][w] GL: Program/shader state performance warning: Vertex shader in program 193 is being recompiled based on GL state.
[0.267][w] GL: Program/shader state performance warning: Vertex shader in program 196 is being recompiled based on GL state.
[0.267][w] GL: Program/shader state performance warning: Vertex shader in program 199 is being recompiled based on GL state.
[0.267][w] GL: Program/shader state performance warning: Vertex shader in program 202 is being recompiled based on GL state.
[0.267][w] GL: Program/shader state performance warning: Vertex shader in program 205 is being recompiled based on GL state.
[0.268][w] GL: Program/shader state performance warning: Vertex shader in program 208 is being recompiled based on GL state.
[0.268][w] GL: Program/shader state performance warning: Vertex shader in program 211 is being recompiled based on GL state.
[0.268][w] GL: Program/shader state performance warning: Vertex shader in program 214 is being recompiled based on GL state.
[0.268][w] GL: Program/shader state performance warning: Vertex shader in program 217 is being recompiled based on GL state.
[0.268][w] GL: Program/shader state performance warning: Vertex shader in program 220 is being recompiled based on GL state.
[0.268][w] GL: Program/shader state performance warning: Vertex shader in program 223 is being recompiled based on GL state.
[0.269][w] GL: Program/shader state performance warning: Vertex shader in program 226 is being recompiled based on GL state.
[0.269][w] GL: Program/shader state performance warning: Vertex shader in program 229 is being recompiled based on GL state.
[0.269][w] GL: Program/shader state performance warning: Vertex shader in program 232 is being recompiled based on GL state.
[0.270][w] GL: Program/shader state performance warning: Vertex shader in program 235 is being recompiled based on GL state.
[0.270][w] GL: Program/shader state performance warning: Vertex shader in program 244 is being recompiled based on GL state.
[0.271][w] GL: Program/shader state performance warning: Vertex shader in program 247 is being recompiled based on GL state.
[0.272][w] GL: Program/shader state performance warning: Vertex shader in program 250 is being recompiled based on GL state.
[0.273][w] GL: Program/shader state performance warning: Vertex shader in program 253 is being recompiled based on GL state.
[0.279][w] GL: Program/shader state performance warning: Vertex shader in program 5 is being recompiled based on GL state.
[0.279][w] GL: Program/shader state performance warning: Vertex shader in program 12 is being recompiled based on GL state.
[0.280][w] GL: Program/shader state performance warning: Vertex shader in program 15 is being recompiled based on GL state.
[0.280][w] GL: Program/shader state performance warning: Vertex shader in program 18 is being recompiled based on GL state.
[0.280][w] GL: Program/shader state performance warning: Vertex shader in program 21 is being recompiled based on GL state.
[0.280][e] eglExportDMABUFImageMesa: EGL error: EGL_BAD_MATCH
[0.280][e] Failed exporting GL texture!
=== FAILED: 'export' at ../src/tests/gpu_tests.c:1660
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
Summary of Failures:
15/15 opengl_surfaceless.c FAIL 0.34s exit status 1
Ok: 14
Expected Fail: 0
Fail: 1
Unexpected Pass: 0
Skipped: 0
Timeout: 0
Full log written to /home/[REDACTED]/libplacebo/build/meson-logs/testlog.txt
FAILED: meson-internal__test
/usr/bin/meson test --no-rebuild --print-errorlogs
ninja: build stopped: subcommand failed
I have tried to install opengl with sudo apt install libglew-dev but without success, the test keeps failing. I was wondering how to make the test pass and how to prevent VK_ERROR_DEVICE_LOST (if they are linked or not).
Should I ask here or in the original gitlab instance of videolan?
Thanks!
I am trying to use libplacebo from a vapoursynth script on linux (Ubuntu 24.04). More information on my environment can be found Lypheo/vs-placebo#56.
Basically I have installed NVIDIA drivers and vulkan. with vulkaninfo --summary I see that the discrete gpu is detected.
If I encode the script I receive a VK_ERROR_DEVICE_LOST error continously. I am very confident that the hardware is NOT faulty.
In the other issue I have also explained how I have compiled it.
Someone suggested to run the tests and this is the result:
I have tried to install opengl with
sudo apt install libglew-devbut without success, the test keeps failing. I was wondering how to make the test pass and how to prevent VK_ERROR_DEVICE_LOST (if they are linked or not).Should I ask here or in the original gitlab instance of videolan?
Thanks!