hrydgard / ppsspp

A PSP emulator for Android, Windows, Mac and Linux, written in C++. Want to contribute? Join us on Discord at https://discord.gg/5NJB6dD or just send pull requests / issues. For discussion use the forums at forums.ppsspp.org.
https://www.ppsspp.org
Other
11.15k stars 2.16k forks source link

Retroach hangs/crashes going from windowed to fullscreen #11135

Closed BParks21 closed 4 years ago

BParks21 commented 6 years ago

What happens?

When launching a psp game with retroarch set to window mode, switching to fullscreen mode causes retroach to become unresponsive and crash. If i pause the game by using the quick menu i can switch between window and fullscreen without a crash, but if the game is running it crashes. I use the default f key to toggle window and fullscreen mode.

What should happen?

I should be able to gracefully switch between windowed and exclusive fullscreen without issue.

What hardware, operating system, and PPSSPP version? On desktop, GPU matters for graphical issues.

i7 7700k @4.9GHz, Asus GTX 1080ti, 32gb ram, Windows 10 64bit. Desktop.

hrydgard commented 6 years ago

Does it matter if you use OpenGL or Vulkan?

BParks21 commented 6 years ago

@hrydgard Let me test it real quick. I'm using ogl atm. Ok i tested with vulkan and d3d 11, it works fine going in and out of fullscreen without the game needing to be paused.

unknownbrackets commented 6 years ago

At some point I was led to believe retroarch sometimes uses a core profile without telling us.

-[Unknown]

i30817 commented 6 years ago

It also crashes on load state here with a segmentation fault on opengl (but i don't want to bother to build the core just to get a stacktrace).

btw when i switch from fullscreen here the failure is from a pulseaudio assert:

Assertion 'pa_atomic_load(&(s)->_ref) >= 1' failed at pulse/stream.c:1683, function pa_stream_writable_size()

It actually may be because of the Wayland transition since the main retroarch program window appears without decoration if i switch from fullscreen and back now (also starts without decoration in windowed mode now).

Also upstream ppsspp always exits the options menu shortly after i entered it as if i was pressing 'esc' but i won't report that because i'm still using 1.5.4 because that is what the ppa has (edit: i was wrong about this, it's simply the ppa changelog that was not updated to keep up with the releases. The 'git commit' part of the filename of the deb is reasonably up to date).

Tatsuya79 commented 6 years ago

I'm also experiencing the random black screen or/and crash on fullscreen switch or savestate loading in opengl, win7 x64, Nvidia GTX770. Vulkan seems to work better as it didn't do that at all, but crashed on exit though. In both renderers loading a state is making a huge stutter and you can hear the audio resynchronising for a bit. I tried playing around with the core options to see if they could fix that but no luck.

After more testing vulkan has issues too. I'm playing Nayuta No Kiseki right now and it has a lot of problems with big stutters and audio desync, be it on vulkan or gl. Just tried on stand-alone and no problem (but libretro version hasn't built in a while so it's not directly comparable perhaps).

Another game like Ridge Racer 2 doesn't have has many stutters/desync: just a bit on the title/menu, mostly smooth during gameplay.

BParks21 commented 6 years ago

Still happening latest version.

orbea commented 5 years ago

Duplicate of https://github.com/hrydgard/ppsspp/issues/10784.

orbea commented 5 years ago

Also for the save state crashes see https://github.com/hrydgard/ppsspp/issues/11429

unknownbrackets commented 4 years ago

Closing this as a duplicate of #10784 per the above.

-[Unknown]