Closed purekillma closed 2 months ago
Hi @purekillma!
That's actually just a warning - the error is binding server socket
. Can you share the command line/config you're using to start the server? Since you ran with --bug-report
, grabbing mmserver.log
out of /tmp/magic-mirror-1e6ddd6e-0008-40ab-8c4b-bfcd7fcc4a9c
should have information we can use to debug.
However, you'll also need hardware encoding to have a good experience. Can you run vulkaninfo
(you may need to install vulkan-tools
) and paste the output here? My guess is that your Mesa is too old and needs upgrading. Vulkan Video support was just-just-just released.
Thanks for the quick reply. Figured out the first issue of error binding socket, was user error in typing in IP address!
Here is vulkaninfo output, it is a lot.
Next time, please put it in a collapsible span :) https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/organizing-information-with-collapsed-sections
It looks like you have Mesa 24.05, which has encode support, but it might be hidden behind a feature flag.
Can you set RADV_PERFTEST=video_encode,video_decode
in the environment when you run the server and try again?
I added RADV_PERFTEST=video_encode,video_decode to my environmental variables, and am still get no hardware encoding support.
ben@ben-media:~/Downloads/mmserver-v0.1.0-linux-amd64/mmserver-v0.1.0$ printenv RADV_PERFTEST video_encode,video_decode.
Sorry, if this isn't right, I am kind of new to this stuff
Hm, it unfortunately looks like Ubuntu might not be compiling in support for Vulkan Video in their mesa package. I'm investigating, but in the meantime it should work if you build mesa from source with -Dvulkan-drivers=amd -Dvideo-codecs=all
.
I can't give any more detailed instructions than that at the moment, but let me know if you get stuck.
~It looks like this is because the encode extensions are hidden behind -Dvulkan-beta
as well. I've opened a mesa issue: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11092. Hopefully this will be fixed in 24.1 or so.~
Nope, that's incorrect. The video extensions will be available in 24.1, but just because of Mesa's release process.
In the meantime, this unfortunately requires mesa-git
on arch or building from source on ubuntu.
Thank for the update! I did get it working on Arch, but still had to set RADV_PERFTEST=video_encode,video_decode in the environment to get it to work. Very excited to play around with this
In the next release, that won't be necessary, at least: https://github.com/colinmarc/magic-mirror/commit/26ba3f93f3da29921f9754181738f2087284a164
And mesa is also removing that: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11092#note_2394594
I decided it's easier to leave this open so that people can find it.
@purekillma, I think you're one of the first people to build and run the project! Any impressions?
I think the project is very cool and has some awesome potential. Right now messing around with steam and noticing quite a few games don't launch, but launch fine not through magic mirror. Not sure if this is related to them opening up in windowed mode or what. Also, if I run steam in non big picture and try to open properties of a game, it crashes. Again not sure if it is because it is opening another window.
Would you mind opening another bug report? What you can do is
--bug-report
(note that this impacts performance a lot)/tmp
), there's an .h265
file for the attachment. You can check it with ffplay <path>
.ffmpeg -i <path> /tmp/bugreport.mp4
. That will convert the file to an mp4 file.I've sometimes seen games fail to launch if there's another instance of the game running on the machine. And I think there's a bug where steam doesn't exit the game when you detach and steam closes. Then the game is left running in limbo, so steam refuses to launch it a second time. The mmserver.log
from the bug report would let me see if that's what's happening here.
The workaround is to kill the game process on the server, and run the client with --detach
so it leaves steam/the game running when you exit the client.
Thank you so much for testing it out! I'm sorry it's not working 100% for you.
Sorry, this is my first time using github as a commentor on a project, attached are files you asked for and the video converted to mp4. Very cool with bugreport it records the session!
Very happy to be a tester as this software seems very cool to me.
One other note is client is a M1 Macbook Pro and I also get the timeout issue stated in the other issue that was posted.
https://github.com/colinmarc/magic-mirror/assets/83978127/f3550cf3-598a-48dc-b37a-e7eebb968ac6
Update, it seems like any game that doesn't have native linux support ie: running with proton, doesn't work.
Addressed in d7658cdfbd974578d94cb36764586ad1549e9ba7.
When I try to launch the server I get the error stated in the title.
GPU is AMD Radeon RX 6800XT and I am running Ubuntu 24.04
2024-04-30T02:23:53.887080Z WARN mmserver: generating bug report files in: "/tmp/magic-mirror-1e6ddd6e-0008-40ab-8c4b-bfcd7fcc4a9c" 2024-04-30T02:23:53.919617Z INFO mmserver::vulkan: gpu "llvmpipe (LLVM 17.0.6, 256 bits)" ineligible: device "llvmpipe (LLVM 17.0.6, 256 bits)" is not a render node 2024-04-30T02:23:53.919630Z INFO mmserver::vulkan: selected gpu: "AMD Radeon RX 6800 XT (RADV NAVI21)" (0) 2024-04-30T02:23:53.924837Z WARN mmserver::vulkan: no hardware encoding support found! Error: binding server socket
Was hoping you could point me in the right direction. Thanks!