xyzz / vita-moonlight

NVIDIA Gamestream client for PlayStation Vita, based on moonlight-embedded
GNU General Public License v3.0
629 stars 74 forks source link

Crashes when launching any game - Sunshine - Moonlight on non-Nvidia or Linux #199

Closed JacekJagosz closed 3 years ago

JacekJagosz commented 3 years ago

~NVidia Geforce Experience version~ Sunshine v0.4.0 on Windows with AMD Radeon Vita Moonlight version: 0.9.0 and 0.6.0 Vita Moonlight running on: PSVita 1000

Output of Vita Moonlight: moonlight.log - but it doesn't show anything important

What is the expected result? With other Moonlight clients, like on Android it works just fine. It also works really well on PS Vita on desktop or Steam Big Picture, with gamepad and mouse emulation and all that.

What happens instead of that? On PS Vita it crashes immediately when I launch any game, Sunshine showing only PING timeout. I it also crashes immediately when trying to resume a game until I close the game, then it works again.

Obviously there is an incompatibility with Sunshine, not an official Geforce Experience but an open source Gamestream replacement for Moonlight. It allows for Moonlight streaming on non Nvidia and even Linux. It works perfectly until you launch a game, so I think it is really worth investigating because we could then stream to Vita from any device, even including likes of cloud virtual machines. Is there any way to get more debug output from Moonlight? Could anybody test if you also encounter the same bug?

mirh commented 3 years ago

Since open stream/sunshine are supposed to mimic GFE, if clients have some problems then it seems their fault.

JacekJagosz commented 3 years ago

Sure, but no other client has such problem, and nobody on there Github has reported a similar problem, so it is a combination of Sunshine and Vita Client. That's why I'm asking if there is a way to get more logs out of the Vita client, or if anybody can test on their PC if they encounter the same problem. We need to figure out what exactly is the problem, so we can report it to the correct project.

JacekJagosz commented 3 years ago

I managed to narrow down the problem, it does not happen with resolution change, not when entering fullscreen, but only about 2 seconds after I launch any Steam game. It does not happen with GOG or Epic games, and I can play Steam games on other Moonlight clients just fine. Really weird.

JacekJagosz commented 3 years ago

After a lot of trial and error I finally fixed the issue, and it was on the side of Sunshine. Steam didn't play well with ViGEmBus, and reinstallation and update of it finally fixed the issue. It didn't occur on any other client because none of them had a controller connected. Sorry for reporting it here. I can finally stream to my Vita from a non-Nvidia PC!