error when starting stardust server (bad egl parameter)
when trying to start the server i get this error about egl
@i509VCB (nova said i could ping you :D)
260 Replies
@i509VCB
oh i saw
now we gotta wait :)
i guess so
may as well build all the clients
oh true
smart
ill do that then :)
they're all rust btw
Bad parameter getting that info?
Which driver are you using?
driver for what?
i think x11 if thats what you are asking for
Graphics driver
how can i check that?
Nvidia, amd, Intel?
nvidia :/
oh no
Nvidia shouldn't have an issue with getting dmabuf attributes though... What gpu do you have?
NVIDIA GeForce GTX 1650
this one
That clearly should work then...
oh
ill try to restart my system in a few minutes
and see if then its okay
even after a restart
it still has the issue
any ideas on how i could fix this?
(:
@i509VCB sorry for the ping
Which driver version do you have?
how can i check that?
525.116.04
i think this?
is 525.116.04 the version number you are looking for?
535 seems to be the latest driver, if you could try updating to that
š
oh uh @Lualt if you aren't already... use the dev branch on the server
just... forgot to mention that
OH
maybe that fixes it :D
nope still has the issue
ill try updating my drivers in a bit
actually, another idea
maybe... install sway from your package manager
if you do that it might just guarantee we have all the deps we need
okay i failed to update my drivers B)
is it just called
sway
?yep
okok lemme try :.
no change :/
oooof
well, guess it's the drivers
yup :,)
last time i tried it i almost bricked my system
and this time it just flat out didnt work
okay so i searched online and it seems like
you can only update the nvidia drivers
when the pop os people push it in an update
so i can basically not update them??????
:/
oooooofies
is there a way to check if its really the drivers that are the issue?
idk, this isn't my area of expertise
@i509VCB might know though
ah okay
i really hope we can get a fix š
I remember this was apparently a bug: https://github.com/Smithay/smithay/pull/788
GitHub
egl: Don't error check eglQueryDmaBufModifiersEXT by Drakulix Ā· Pul...
Fixes NVIDIA's 520 driver.
Apparently Nvidia just did something wrong in their EGL implementation
bruh-
so theres no way to fix that i assume ._.?
except for waiting
are nvk and zink ready to take up the task?
You might need to patch sway/wlroots
wait patch sway... why?
You could try zink on regular nvidia
whats zink?
You mentioned sway had the error?
.
zink is opengl implemented with vulkan
no this is stardust
ohh
smithay
Ok so uhh did your fork of smithay have that commit?
no i don't have a fork of smithay anymore
i'm using the upstream one
Ok
since we properly fixed the dmabuf stuff
So that's probably a bug somewhere and I don't know what necessarily needs to be done.
Does this occur if you run anvil?
idk what anvil is š
The smithay test compositor
where can i get that?
GitHub
GitHub - Smithay/smithay: A smithy for rusty wayland compositors
A smithy for rusty wayland compositors. Contribute to Smithay/smithay development by creating an account on GitHub.
from here?
Yeah
okok
imma try
It should be able to run inside a window
so i have libseat-dev installed
but its still saying it cant find it
Run with --no-default-features and then enable the winit feature
...what
Enable the winit feature, --features winit
ohhh okay tyty
cargo run --no-default-features -- --features winit
still not working is this right?Before the --
ooooh okay mb
The -- indicates anything past that should be a program argument
And not a cargo argument
š
i now have a slightly purple window :)
and i also get the same error
no other errors
Light purple is intentional
yeah thought so
Although you still get the errors...
yeah-
Could you open an issue in smithay, this sounds like a driver bug but it could also be something I don't directly know the answer to
Include the driver info and GPU as well
okaya
could you help me write an issue since i myself am not so sure what is going on so idk how i would write a good issue for this lol
If <max_modifiers> has a negative value, the error EGL_BAD_PARAMETER is generated.Is probably the closest error I could think of but why would the driver give us a negative count?
š¤·āāļø
is there a simple way to check what the driver returns to smithay?
QueryDmaBufModifiersEXT error on Nvidia driver is how I'd summarize it
Uhh with a debugger yes
Then just include the driver info and that message from anvil
as the issue title?
okay
Yeah
okok
trying my best to find my driver info rn lol
GPU: NVIDIA GeForce GTX 1650
Driver Version: 525.116.04
what else do i need to add?
i5?
Also mention this happens in stardust
done š
https://github.com/Smithay/smithay/issues/1065
@i509VCB someone commented
and idk what to reply with š„¹
sorry for asking for so much handholding but i just dont know anything about this lol
If that's intentional, I think that's EGL's built-in logging
smithay handles that weird nvidia bug where a second call with a format that was returned the first time could fail and just ignores the error
Things probably should just be fine
but when i run a stardust client
nothing shows up on the server
actually
since im on the dev built rn
lemme try it agian
again*
still nothing
running both flatland and stardust but
i only see the hdr
the background image is the .hdr from the server
am i just using it wrong? do i need to do something different orr?
@Nova am i using flatland wrong or is it really just not working?
also a question about connect vr, you said i couldnt use steamvr to connect to stardust, how would i be able too? i know i have a quest2 and might not be able too but i would like too know since i might be able to find a way š¤·āāļø
š¤
ah the Wayland bug
you need an openxr runtime that supports the XR_MND_EGL extension
ah okay
it actually seems like alvr released an update with openxr support june 2
so maybe it could work š¤·āāļø
uhh that might be openxr on the client
that is, standalone headset
oh wait yeah
rip nvm then
errr idk if there are any other ways to connect the quest 2 so i might need to make an issue asking for it
do you know any other things that could maybe work with the quest 2? to connect to stardust
hhhhhh i really hope i can make this work stardust seems literally perfect for the things i wanna do LOL
WiVRn is the way we generally do things
could you send me a link?
nvm found it
cmake -B build-server . -GNinja -DWIVRN_BUILD_CLIENT=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo
having some issues building it tho
gonna try the dev branch š
same thing for the dev branchinstall the eigen3 package
better yet use rex2
how do i use rex2?
i give up i cant get WiVRn to work i cant get rex2 to work and stardust isnt working either š ty for all the help time and effort you guys gave tho :)
nooooo :(
i just dont know where to go from here š
why can't you get rex2 working
cant get the packages to get it to build
same thing for wivrn
what packages
gtk thats version 4.10 or above
i can only get 4.6
oof
you're on pop os right?
try distrobox or something to install wivrn
whats that
arch container maybe?
oh
wouldnt that just still lag
no
oh
okay :D
OKAY
good news
i decided to try other clients
because maybe the issue is with flatland
aaand lightspeed succesfully runs without any issues :D
now that is sexy
gonna try a few more out :o
idk where exactly to make the config or what to put in it so a lil help with atmosphere would be nice :)
with orbit i dont see anything showing up not sure if im doing something wrong of if thats normal (same thing for flatland)
azimuth does seem to make something show up
350 fps is because of a my screenshot software lol
that's the pointer dot
yeah
im trying gravity rn but it crashes lol
tried to check the code what could be going wrong but š¤·āāļø
it... crashes?
weeeeeird
at the last line yeah
@Nova how do i use molecules with gravity? i did build molecules but theres nothing that actually build..?
theres nothing in target/release/examples
molecules is a library
there are examples for it though
oh
i wanted to try the
uh
gravity command that was shown in that video you sent me
gravity 0 0.5 -0.5 ../molecules/target/release/examples/grabbable
this
how would i go about doing that :D?ahh then build molecules with
cargo build --example grabbable
ooooh okay tysm! ill give it a try :>
it does seem to run fine
but
i dont see anything showing up
button works tho :D
proton star is working aswell :D
protostar, yay
how well does that work
very laggy :p
i dont really understand what sirius does
but the other 2 work fine :D
you need to build it in release
honestly i forgor too
oop i keep forgetting too LOL
LOL
OH it's the protostar dock
i've... never seen it in action
@Bon Echo :p
rebuilding in release :)
when i press on an application it doesnt launch and im not sure how to actually move the icons but its very nice!!! :D
and now im also getting a nice steady 60 fps again :o
you gotta grab them and move them far away from the start point
but yea you need release mode to make it fast enough
how far lol?
yeah i kept forgetting to add --release whoopsie
i think .5m
okok
even after moving very far it snaps back :(
oop the controls stopped working again
oof
what do you mean "stopped working"
and what controls
wasd and right click with the mouse to fly around
oh weeird
1 sec
oooh with sirius i can move the applications :o
oh whaat
record a video of it
i haven't seen it in action
will do in a sec im building manifold rn :)
use manifold and azimuth together
okay :D
im kinda confused lol
manifold opens a window
lemme get a video of the apps
yea manifold opens a window to capture keyboard/mouse
its prob not useful with flatscreen mode LOL
OH now i understand sirius
lemme
export my clip
:D
you can post it to #cool-demos too if you like
oh true!
done!
kinda weird that flatland is one of the few that isnt workign
still no clue why lmfao
i know why
atleast other clients are working :)
why?
wayland's very finicky about what sequence of events has to be sent
and flatland apparently doesn't adhere to that? which is a problem on the server
ahhh okay
because this should always work from the wayland side even if stardust clients screw up on the configure events
so do i have to wait for a server update then? (i would def contribute if i could but i just am not good enough with rust and wayland LOL)
it's just hard to narrow down the cause of this
yea... or you could use orbit and poltergeist
those 2 work!
ill have a look :oo
building them :)
you gotta use them together
put the orbit panel into poltergeist
wdym like in a folder of poltergeist?
no
you'll see when you launch both and a wayland app
okay :)
erm
how do i know if an app is using wayland?
you have to set
WAYLAND_DISPLAY
and if it shows up in stardust it's working
also you can't launch flatland and orbit both
it has to be 1 or the otherokok
its only orbit
uhhh are there any small apps you know of that i could try?
the weston demos i guess?
gnome weather?
ill have a look :D
:o
ITS WORKING OMG
thats actually really really cool
yee
is it possible to get firefox in it?
firefox... crashes last time i tried
try it again though!
what do i set the wayland display too? last time it just magically worked LOL
you use X on your desktop right?
yup
then
WAYLAND_DISPLAY=wayland-0
thank youuu
firefox just opens normally lol
like
in your 2D desktop?
yeah
ok so firefox and vscode and such don't actually launch new instances when you run them
(how do i get an app back out of poltergeist btw lol)
they detect that it's already running and send a message to make a new window
oooh
ofcourse
makes sense
you don't, but you can put another in to eject the old one
okay :D
again, it's just because i haven't had the time or motivation since i can't test this in XR because headsets are too uncomfy
thats fair lol
is there a way to force a new firefox instance or maybe a way to sandbox it kinda?
i have no idea
i haven't found it
okok no worries
only thing so far that worked is the weather app LOL
yea....
what else have you tried?
firefox 1password and spotify
oof :S
what was broken with the other 2
alacritty works :D
showed up in 2d desktop
yee
ah.... they might need env vars or such
no opacity tho in 3d
don't forget
you can put your stuff to launch in a shell script
and launch the server with
-e path/to/script
and it'll ensure they launch in stardustoooh like the automatically start when i run the server?
you can also launch your 2D apps with protostar or gravity to do the same, ensure that they're launched in the server properly with all the env vars
yep
:o
also sirius uses protostar so that too
yuss
oh and steam btw
forgot to mention
lutris works aswell :D
yee
nautilus doesnt :(
oh oof :((
gnome text editor works as expected tho :)
ohhh and the controls not working was because of shift, if you press it once now you have to hold it to use the contorls :o
oh yea
could you help me with atmosphere :)?
ugh yea that needs configuration
is that a thing i can do?
thanks :)
erm
it doesnt seem to work lol
atmosphere.toml
you don't give it the path of the toml
just the dir the toml is in
so
oop
mb
it just gives me
invalid path
uhhhhhhhhhhh
/home/lualt/Downloads/stardust/atmosphere-main/environments/living_room
<- pathwhat's the new path
ah
am i being stupid or something LOL
uhhhhhhhhhhhhhhhhhh
i am the stupid one
howww
idk yet
just in general
nahhhhh
you have helped me with alot :)
idk if you need this error but here you go
so confusing
oh
the folders dont have read permission...
i found it out because i tried openening the hdr on a webiste
wtf
oh weeeird
i gave it permissions but
even trying to open it in a site
its not working
im so confused wtf
maybe it's a corrupted zip file?
i think it is
im trying to change other stuff
but its just not working
welp
imma redownload rq
YESS
now it works
omg
yay
that took way to much effort š LOL
sorry
idk how to make it easier yet
its not your faulttt
the zip corrupted lol
nahh its easy enough its just drag and drop and tell them where the files are
holy
wait-
what
flatland is working now
LFMAOAOA
what
I DONT KNOW
since when??
JUST NOW
efjcndslughsdiuhnfdsliguhsidufjd
I THOUGHT I WOULD TRY IT AGAIN
LFMAAAOAOAOAOA
uhh we gotta get that to be reproducible
i mean
it could be that i was dumb
because in the beginning
i thought like
no i had flatland bugs too
all my windows would automatically show up
and i didnt know i could move around and stuff
so idk
if its my stupidity
or a bug
flatland has a bug in it
well
the server does
but figuring out when it works vs when it doesn't is key to fixing it
ahhh yeah
welp it works š¤·āāļø dunno how but
it does
does it work with all the apps?
weather and notepad both work
noice
looks aesthetic
yussss
looks more aesthetic than other xr desktops
fr
idk how
i didn't do anything special
and the windows have actual thickness
like omg
for some reason none of them do it
yes i did that on purpose
and its so annoying
it's insanely trivial
you just stretch the UVs on the edges
yeah LOL
idk why they dont do it
its really nice
and you can see what the backside is
instead of them turning invisible
like oml š©
to be fair the backside should probably not be the front flipped
but
oh well
imo its nice since
you know what the backside is
š¤·āāļø
yea but the app icon or something
ohhh
yeah
i def gotta start learning rust so i can make some clients š
yayyyy
okok so what is rex2 exactly? is it something i need to run WiVRn or is it something on its own since you did say some stuff about it but im completely lost lol
since i do wanna get it running in vr (talking about stardust)
rex2 is a builder and launcher for components in the linux XR system
you can build WiVRn independently but it makes it TONS easier
aah okay
how does it help me build tho š° ?
it does it all for you
oh
nice
seems like gitlab is down rn LOL
guess i gotta wait
oofies
literally all of gitlab is down https://status.gitlab.com/
they are investigating rn
anyways thank you so much for all the help :)
excited to see the cool clients you create
thank you :)
it will prob take a while since i havent really used rust but im excited to create some stuff :o
A Stardust client is at its core an executable that connects to a stardust server instance at $XDG_RUNTIME_DIR/stardust-[0-32], sends and receives messages according to the Stardust protocol.does this mean it only supports at max 32 clients? @Nova im having some issues building rex2 :( its asking for
Requested 'gtk4 >= 4.10' but version of GTK is 4.6.6
but when i install it only goes to 4.6.6
package: librust-gtk4-sys-dev
trying to build an appimage from rex232 servers
that's their fault, yea
ooooh okay lol that makes more sense
ah i see