Inori / GPCS4

A work-in-progress PlayStation 4 emulator.
GNU General Public License v3.0
2k stars 141 forks source link

Closes on startup with code 4294967295 (0xffffffff) #124

Closed RubberDuckShobe closed 2 years ago

RubberDuckShobe commented 2 years ago

GPCS4 closes right after startup.

Looking at the debug output of Visual Studio, it loads some DLL files, and after loading C:\Windows\System32\vcruntime140_1.dll, thread 0x5234 ends with code 0. After loading more DLLs, all other threads end with code 4294967295. Here's the full output of Visual Studio:

"GPCS4.exe" (Win32): "C:\Users\[CENSORED]\source\repos\GPCS4\x64\Debug\GPCS4.exe" geladen. Symbole wurden geladen.
"GPCS4.exe" (Win32): "C:\Windows\System32\ntdll.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\kernel32.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\KernelBase.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\user32.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\win32u.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\gdi32.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\gdi32full.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\msvcp_win.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\ucrtbase.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\shell32.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\ole32.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\rpcrt4.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\vulkan-1.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\combase.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\cfgmgr32.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\mfplat.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\advapi32.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\msvcrt.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\sechost.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\sechost.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\sechost.dll" wurde entladen.
"GPCS4.exe" (Win32): "C:\Windows\System32\SHCore.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\imm32.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\dxgi.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\kernel.appcore.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\bcryptprimitives.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\RTWorkQ.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\ResourcePolicyClient.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\ResourcePolicyClient.dll" wurde entladen.
"GPCS4.exe" (Win32): "C:\Windows\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_4d7400884d0d52e3\nvoglv64.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\setupapi.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\bcrypt.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\oleaut32.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\version.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\wtsapi32.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\cryptbase.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\msasn1.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\cryptnet.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\crypt32.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\drvstore.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\devobj.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\wldp.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\wintrust.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\ntmarta.dll" geladen. 
"GPCS4.exe" (Win32): "C:\VulkanSDK\1.3.204.1\Bin\VkLayer_khronos_validation.dll" geladen. Symbole wurden geladen.
"GPCS4.exe" (Win32): "C:\Windows\System32\vcruntime140.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\msvcp140.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\vcruntime140_1.dll" geladen. 
Der Thread 0x5234 hat mit Code 0 (0x0) geendet.
"GPCS4.exe" (Win32): "C:\Windows\System32\windows.storage.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\shlwapi.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\DXCore.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\nvspcap64.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\profapi.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\uxtheme.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\dwmapi.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\imagehlp.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\cryptsp.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\rsaenh.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\gpapi.dll" geladen. 
"GPCS4.exe" (Win32): "C:\Windows\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_4d7400884d0d52e3\NvCamera\NvCameraAllowlisting64.dll" geladen. 
Der Thread 0x3104 hat mit Code 4294967295 (0xffffffff) geendet.
Der Thread 0x5704 hat mit Code 4294967295 (0xffffffff) geendet.
Der Thread 0xd54 hat mit Code 4294967295 (0xffffffff) geendet.
Der Thread 0x834 hat mit Code 4294967295 (0xffffffff) geendet.
Der Thread 0x50e4 hat mit Code 4294967295 (0xffffffff) geendet.
Der Thread 0x2f9c hat mit Code 4294967295 (0xffffffff) geendet.
Der Thread 0x818 hat mit Code 4294967295 (0xffffffff) geendet.
Der Thread 0x5700 hat mit Code 4294967295 (0xffffffff) geendet.
Der Thread 0x10e4 hat mit Code 4294967295 (0xffffffff) geendet.
Das Programm "[22048] GPCS4.exe" wurde mit Code 4294967295 (0xffffffff) beendet.
Inori commented 2 years ago

GPCS4 is a console program so it will exit without any windows pop up if you provide wrong parameters. Read the developer guide, download all the required files and place them in the right place and specify correct cmdline parameters.

RubberDuckShobe commented 2 years ago

I've already read and followed the developer guide. I've set the working directory to the game's folder, which also has the lib folder in it and set the launch argument to -E eboot.bin

Asuka @.***> schrieb am Mi., 27. Apr. 2022, 20:29:

GPCS4 is a console program so it will exit without any windows pop up if you provide wrong parameters. Read the developer guide https://github.com/Inori/GPCS4/blob/master/Doc/DeveloperGuide.md, download all the required files and place them in the right place and specify correct cmdline parameters.

— Reply to this email directly, view it on GitHub https://github.com/Inori/GPCS4/issues/124#issuecomment-1111344487, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKHUEXTJQY4JHZFWS3EDYQLVHGBQZANCNFSM5UP3I4FQ . You are receiving this because you authored the thread.Message ID: @.***>

Inori commented 2 years ago

Well, if you are using GPCS4 to run a real game, that maybe too early and lacks of some HLE functions to be implemented. I can't tell what's going wrong from the ouput you provided. Maybe you need to step the code to find out why.