ppsspp icon indicating copy to clipboard operation
ppsspp copied to clipboard

[Flatpak Only] Crash when using Wayland and Vulkan(OpenGL not affected).

Open ghost opened this issue 2 years ago • 2 comments

Game or games this happens in

None

What area of the game / PPSSPP

When you start PPSSPP under Wayland with OpenGL everything works fine but sometimes the Vulkan backend is greyed out, you quit and restart PPSSPP and it's here again but when you select it and restart PPSSPP it crashes...

What should happen

No crash when using Wayland + Vulkan.

Logs

No response

Platform

Linux / BSD

Mobile phone model or graphics card

[Dual GPU]RTX 4060 Laptop GPU/Intel HD Graphics for 12th Gen CPU

PPSSPP version affected

v1.16.6

Last working version

No response

Graphics backend (3D API)

Vulkan

Checklist

  • [X] Test in the latest git build in case it's already fixed.
  • [X] Search for other reports of the same issue.
  • [ ] Try resetting settings or older versions and include if the issue is related.
  • [X] Try without any cheats and without loading any save states.
  • [ ] Include logs or screenshots of issue.

ghost avatar Nov 12 '23 19:11 ghost

It's likely due to nvidia driver currently does not fully support offloading with vulkan for native wayland apps. Driver 545.29.06 introduces such support but it's not full yet, some apps work, some don't. Try switching adapter to intel one, for me ppsspp works fine with it. Another workaround is to set SDL_VIDEODRIVER=x11 environment variable.

thesourcehim avatar Dec 01 '23 02:12 thesourcehim

Nvidia supports Wayland+Vulkan just fine now, so it can't be driver issues (it works fine in many other cases on Wayland).

This isn't only with the Flatpak, as I'm using the package as provided from Arch's extra repo. It seems to be that SDL's default x11 video driver is the culprit; forcing PPSSPP to run with SDL_VIDEODRIVER=wayland fixes it on Wayland. 2024_10-20 135418

In fairness, this might be either an SDL or Wayland bug, as the opposite is true in trzy/Supermodel#121's case

SeongGino avatar Oct 20 '24 18:10 SeongGino