RPCS3 / rpcs3

PlayStation 3 emulator and debugger
https://rpcs3.net/
GNU General Public License v2.0
15.5k stars 1.92k forks source link

Fatal Error when using Gamestream Launchpad #13160

Open RyVee opened 1 year ago

RyVee commented 1 year ago

Quick summary

When using Moonlight to stream RPCS3 to my Steam deck I use Gamestream Launchpad I receive a fatal error saying the vcruntime140.dll was installed incorrectly.

Details

I am using the GS Playnite 800p batch file through the Moonlight flatpak on my Steamdeck. I was able to play any game in RPCS3 without issue before but recently I started getting this error. Gamestream Launchpad hasn't been updated since Feb 2022. RPCS3 has received several updates since. I can launch RPCS3 outside of Gamestream Launchpad (although with stretching since it forces a 16:9 aspect ratio on the 16:10 of the Steam deck.

I tried uninstalled several versions of Microsoft Visual C++ and reinstalling it and that didn't help the issue. I installed the version in the Quickstart guide for RPCS3. That troubleshooting hasn't worked.

Using the desktop Playnite batch file doesn't fix the issue either and only gives another error that I have screenshot and attached. This issue happens if I use the batch file on my Samsung S22 Ultra and Tab S8 Plus.

Attach a log file

RPCS3 log.txt

Attach capture files for visual issues

RPCS3 Error RPCS3 error 2

System configuration

CPU: 5800x Motherboard: ASUS ROG Crosshair VIII Dark Hero RAM: 64GB 3600mhz Trident Z Neo Storage: 2TB Samsung Evo Plus gen 3 SSD GPU: Asus Strix 2070 Super

Other details

No response

kd-11 commented 1 year ago

Delete the msvcp dll files inside the emulator folder.

RyVee commented 1 year ago

That dll file isn't in the folder for me.

kd-11 commented 1 year ago

Got it. The gamestream launchpad has a raw dll copy in its folder. Delete that. Check the detected module path shown in the error box and rename the file to something else.

RyVee commented 1 year ago

Got it. The gamestream launchpad has a raw dll copy in its folder. Delete that. Check the detected module path shown in the error box and rename the file to something else.

It doesn't appear that there is a dll file in the gamestream launchpad folder. image

I can launch the game on it's own outside of Playnite with the RPCS3 exe. Could it be an error with Playnite's launcher?

kd-11 commented 1 year ago

It doesn't appear that there is a dll file in the gamestream launchpad folder. image

The error box that appears shows you a path in the text. It points to some folder in Temp. What is in the temp folder? (Check the error message for the bad path)

My guess is that some component is extracted to temp then starts rpcs3 as a child process. Why they would ship their own version of microsoft runtime dlls without installing them properly I do not know. If they're worried about users not gaving redist installed, why not link static?

RyVee commented 1 year ago

Oh my bad. This is what the temp folder looks like

image

Megamouse commented 1 year ago

so, does the suggested action fix your problem?

RyVee commented 1 year ago

Unfortunately not. I deleted the vcruntime140.dll in the temp folder and still got the same error message.

inextricable-code commented 1 year ago

I know this is an older thread, but I've come accross this issue today. Was there a solution found?

xenophobentx commented 1 year ago

I faced the same thing, the issue is that Gamestream Launchpad is creating a a random temp folder during each launch and placing its own version of vcruntime140.dll to that temp folder which is locked during the whole GS session and all child process are referencing that dll therefore RPCS3 aswell. Still fidling with it but did not came up with a solution.

false00 commented 1 year ago

I fixed this by running the python version. I think the dll issue is related to pyinstaller.

update the bat file: start /MIN python gamestream_launchpad.py 3840 2160 gamestream_playnite.ini

requirements: pip install pypiwin32 pip install pyautogui pip install psutil