SX
Stardust XR•12mo ago
ila

GL_INVALID_FRAMEBUFFER_OPERATION

just have built stardust and it shows the error right after run:
ERROR main smithay::backend::renderer::gles: 486: [GL] GL_INVALID_FRAMEBUFFER_OPERATION in glDrawElementsInstanced
ERROR main smithay::backend::renderer::gles: 486: [GL] GL_INVALID_FRAMEBUFFER_OPERATION in glClear(incomplete framebuffer)
ERROR main smithay::backend::renderer::gles: 486: [GL] GL_INVALID_FRAMEBUFFER_OPERATION in glDrawElementsInstanced
ERROR main smithay::backend::renderer::gles: 486: [GL] GL_INVALID_FRAMEBUFFER_OPERATION in glClear(incomplete framebuffer)
what do i wrong?
22 Replies
Nova
Nova•12mo ago
you didn't does this appear to actually affect anything or is it just an annoyance?
ila
ila•12mo ago
i just see monado's black empty window
Nova
Nova•12mo ago
monado's empty is generally gray try running a stardust client
ila
ila•12mo ago
the black window probably is not what should i see, so i guess it affected so, seeing black window is ok until i run something more? Right?
Nova
Nova•12mo ago
no you would see a black window yea
ila
ila•12mo ago
ah, ok. sorry, i thought empty screen is a bug 😄
Nova
Nova•12mo ago
no problem haha
ila
ila•12mo ago
I've tried to launch some wayland clients like nautilus by passing the env var WAYLAND_DISPLAY=wayland-1. Also, I've tried to launch Flatland. None of these shows anything. Just a black Monado's window and huge amount of errors in the log of stardust. Looks like errors generated on every frame. In the same time, I can stop stardust and run xrgears. It works.
$ cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.12s
Running `target/debug/stardust-xr-server`
before init
libEGL warning: MESA-LOADER: failed to open nouveau: /usr/lib64/dri/nouveau_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/dri, suffix _dri)

LOG in xrCreateInstance: Instance created
createInfo->applicationInfo.applicationName: Stardust XR
createInfo->applicationInfo.applicationVersion: 1
createInfo->applicationInfo.engineName: StereoKit
createInfo->applicationInfo.engineVersion: 12295
appinfo.detected.engine.name: (null)
appinfo.detected.engine.version: 0.0.0
quirks.disable_vulkan_format_depth_stencil: false
LOG in xrCreateInstance: Selected devices
Head: 'Nreal Air Glasses'
Left: '<none>'
Right: '<none>'
Eyes: '<none>'
Hand-Tracking Left: '<none>'
Hand-Tracking Right: '<none>'
after init
$ cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.12s
Running `target/debug/stardust-xr-server`
before init
libEGL warning: MESA-LOADER: failed to open nouveau: /usr/lib64/dri/nouveau_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/dri, suffix _dri)

LOG in xrCreateInstance: Instance created
createInfo->applicationInfo.applicationName: Stardust XR
createInfo->applicationInfo.applicationVersion: 1
createInfo->applicationInfo.engineName: StereoKit
createInfo->applicationInfo.engineVersion: 12295
appinfo.detected.engine.name: (null)
appinfo.detected.engine.version: 0.0.0
quirks.disable_vulkan_format_depth_stencil: false
LOG in xrCreateInstance: Selected devices
Head: 'Nreal Air Glasses'
Left: '<none>'
Right: '<none>'
Eyes: '<none>'
Hand-Tracking Left: '<none>'
Hand-Tracking Right: '<none>'
after init
startup log messages Could libEGL warning be related?
Nova
Nova•12mo ago
you need to launch flatland and the wayland app at the same time though yes, libegl warning is probably the issue :p
ila
ila•12mo ago
Just have tried. Nothing.
Nova
Nova•12mo ago
yep that's libegl this is a graphics driver issue not stardust
ila
ila•12mo ago
I've found the magical commands that help to run something. I can run flatland with these env vars:
__GLX_VENDOR_LIBRARY_NAME=mesa MESA_LOADER_DRIVER_OVERRIDE=zink
__GLX_VENDOR_LIBRARY_NAME=mesa MESA_LOADER_DRIVER_OVERRIDE=zink
I guess, as a result, smithay changes its rendering backeng from gles to egl. Though it still spits another bunch of errors, at least it allows showing a window.
ERROR main smithay::backend::egl::ffi: 64: [EGL] 0x300c (BAD_PARAMETER) eglDupNativeFenceFDANDROID: eglDupNativeFenceFDANDROID
ERROR [client_egl_insert_fence] Failed to get FD from fence!
ERROR [handle_fencing_or_finish] Failed to insert a fence
MESA: error: ZINK: vkGetSemaphoreFdKHR failed (VK_ERROR_FEATURE_NOT_PRESENT)
ERROR main smithay::backend::egl::ffi: 64: [EGL] 0x300c (BAD_PARAMETER) eglDupNativeFenceFDANDROID: eglDupNativeFenceFDANDROID
ERROR [client_egl_insert_fence] Failed to get FD from fence!
ERROR [handle_fencing_or_finish] Failed to insert a fence
MESA: error: ZINK: vkGetSemaphoreFdKHR failed (VK_ERROR_FEATURE_NOT_PRESENT)
Then I can run Flatland with cargo run that doesn't show anything. Next any wayland client renders its window inside stardust if run with WAYLAND_DISPLAY=wayland-1 I'm glad to see that small step, but where is mouse input? Is it implemented? The mouse input only works in flatscreen mode.
Nova
Nova•12mo ago
yes you need to use the non-spatial-input repo read its README
ila
ila•12mo ago
ok, thanks, i'll look into it @Skull This thread
Skull
Skull•12mo ago
As always, nvidia being fun
Want results from more Discord servers?
Add your server