StardustXR Server causes Monado to segfault immediately
Not sure where the problem lies, but xrgears runs fine.
I'm running the latest garuda linux on basically a fresh install, and I've tested this on xfce, and kde/wayland flavors. Both behave the same. This is with the newest monado v24.0.0 and latest stardust. This is inside a vfio VM, but I've tested steamvr inside it, so I suspect that's not relevant. Should I be using an earlier version of monado? I tried getting v21, but it was far too old to compile easily on garuda.
26 Replies
what stardust server version are you using?
is it main or dev branch?
Ah, the main branch. Let me try dev
dev is...
very broken
:p
anyway, this is so weirdd
can you run monado using a debugger? envision has one
Haha, okay, I won't try dev. I can grab envision. How would I open the debugger? Or could you point me to some docs?
oh if you don't use envision then just run gdb on it
Let me know if you need more and thanks for the help!
ugh nvidia
uhhh, so i think this is a monado problem
https://discord.gg/dTdPVDVN
you should probably ask here
since it's on the service side stardust shouldn't be able to cause a crash regardless of how broken it might be
Fair enough! I'll bring it up there. Thanks again
no problem
this looks like the same issue i was having btw, it's something in stereokit that trigger the issue
hmm
well if it's stereokit, maybe the dev branch on the server will help you then
i updated it there
but don't expect any clients to work yet (except maybe flatland on dev branch), just the hands
i don't think it will sine even building stereokit. has the same issue
wait building stereokit has an issue?
ye but i meant after
I tested stardust, a clean stereokit-rs example, a stereokitC app with precompiled libs and the StereokitC test app completely compiled on my machine, they all crash the runtime the same way and i have had no problems like this with any other vr app
huh that's very strange
i should probably just bite the bullet and make a github issue on stereokit since i have been trying to fix this issue on and off for months and trying to debug a codebase i don't know in a language i don't know doesn't seem like the best use of my time
i wish i could help but i'm so out of practice with that codebase
you could ask in the stereokit server tho
made an issue here https://github.com/StereoKit/StereoKit/issues/1033
i made a "fix" for this, it's a problem with the nvidia drivers not being able to cope with the use of a fence. i had to patch monado
oh thank!!!!
in my testing this didn't break anything but i didn't test it that mutch yet
Awesome! Huge thanks
Think stereokit will take this upstream?
this is a monado patch?
Oh!
Are you able to add an nvidia vendor check and PR monado?
This would solve a giant class of issues for a large group of users currently looking to sample the wares
ah hi
It will apparently cause graphical artifacts if you use this patch
"Look for insert_fence_func in comp_egl_client.c, set it to NULL."
Is what I was told to relay
yeah i was expecting issues with it, it was just an extremely hacky solution that worked on my machine. for a upstream solution i'll look into a better solution