RetroArch icon indicating copy to clipboard operation
RetroArch copied to clipboard

Problem with closing games on PPSSPP core using Gl, Gl core video drivr.

Open KamiLordus opened this issue 1 year ago • 8 comments

Using the "close content" option on the PPSSPP core freezes retroarch completely. Only killing the process using alt + delete + ctrl helps. I'm sure it's not a core problem because its latest version PPSSPP doesn't have this problem on retroarch 1.18 cdd6aed8ec. The problem recently appeared about a week/two ago. I am currently using retroarch 1.18 version 9ab6c62f which already has the above mentioned problem. For PPSSPP core I use GL video driver, but I tried others like vulkan, gl and it's the same.

edit: I also tested older versions of PPSSPP from retroarch buildbot such as 1.17 and 1.16 and there is also the same problem.

Windows 11 Rtx 3070ti

KamiLordus avatar May 06 '24 17:05 KamiLordus

I can't replicate with current versions of RA and core. Always post logs.

sonninnos avatar May 06 '24 17:05 sonninnos

It won't be easy. I only know that retroarch saves the log after closing the game. In this case, retroarch does not save the logo because it freezes completely.

edit: ok I have something: retroarch.log

KamiLordus avatar May 06 '24 18:05 KamiLordus

I was able to reproduce on latest master (9ab6c62) using glcore. Also Windows 11. RTX 3060. I was not able to reproduce using Vulkan.

There's not really anything useful in the logs. I did get these stack traces in the debugger:

Exception thrown (thread labelled as nvoglv64.dll thread): image

Main thread: image

Jamiras avatar May 06 '24 18:05 Jamiras

Although, my behavior does differ slightly from the reported behavior. The application only hangs for a second or two then closes itself. I don't have to Ctrl+Alt+Del it.

Jamiras avatar May 06 '24 18:05 Jamiras

I see the same problem with the v1.17.0 and v1.16.0 tags, so it's probably not a RetroArch change.

Jamiras avatar May 06 '24 18:05 Jamiras

Tried gl, glcore, vulkan and d3d11, and all close without problems. Didn't try running much longer than successful start though.

sonninnos avatar May 06 '24 18:05 sonninnos

After longer tests, I noticed that the problem does not occur with the vulkan driver, the same with dx11. It seems that the problem only appears on GL and GL Core.

KamiLordus avatar May 06 '24 18:05 KamiLordus

It seems that the problem only appears on GL and GL Core.

So you should rename the issue to something Problem when closing games with PPSSPP core using GL or GLCore video driver on Windows ;)

P.S = I can't reproduce the issue on Linux.

gouchi avatar May 06 '24 20:05 gouchi

I can randomly reproduce on GNU/Linux with gl drivers with audio on, but I can’t reproduce it when the audio is off.

@KamiLordus could you please tested this on your system with audio off or null audio driver?

viachaslavic avatar May 26 '24 11:05 viachaslavic

@viachaslavic I tested the ppsspp core without sound, and with null sound. The tested games close without any problems every time. Thanks for your suggestions. Of course, on the GL Core driver with sound turned on, the games still freeze when you try to close them. Nothing has changed here.

KamiLordus avatar May 26 '24 14:05 KamiLordus

This PR fixed my problem. https://github.com/hrydgard/ppsspp/pull/19203

KamiLordus avatar May 28 '24 17:05 KamiLordus