RPCS3 / rpcs3

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

[Regression] Emulator freezes after some time while running a game with Cubeb (with trace) #12415

Open FinishedFragment opened 2 years ago

FinishedFragment commented 2 years ago

Quick summary

No matter what game I play, there are now frequent freezes after say half an hour. Looking into the gdb output, I see a potential vital clue what went wrong:

Assertion '!m->thread || !pa_thread_is_running(m->thread) || !in_worker(m) || pa_atomic_load(&m->in_once_unlocked)' failed at ../pulseaudio/src/pulse/thread-mainloop.c:179, function pa_threaded_mainloop_lock(). Aborting.

Details

gdb.txt

OS: Arch Linux Sound: PulseAudio

Other applications on my system which use sound work perfectly well, so I assume this might be an issue with the shipped cubeb (looking at the trace it looks like something something cubeb is accessing said function)? No idea how to debug this specific case tho. In the two games I have tested (lightning returns and dark souls 2) I both use cubeb and both froze after some time.

Audio:
  Renderer: Cubeb
  Audio Provider: CellAudio
  RSXAudio Avport: HDMI 0
  Dump to file: false
  Convert to 16 bit: false
  Audio Format: Stereo
  Audio Formats: 0
  Audio Device: "@@@default@@@"
  Master Volume: 100
  Enable Buffering: true
  Desired Audio Buffer Duration: 20
  Enable Time Stretching: false
  Time Stretching Threshold: 75
  Microphone Type: "Null"
  Microphone Devices: "@@@@@@@@@@@@"
  Music Handler: Qt

Build with regression

Unknown. Maybe upstream?

Attach two log files

n/a as the application freezes rather badly and does not get to write anything before crashing.

Attach capture files for visual issues

No response

System configuration

No response

Other details

No response

FinishedFragment commented 2 years ago

After some more testing with using FAudio instead of Cubeb, I did not notice any freezes. So this is most definitely related to cubeb.

DizzyWasTaken commented 2 years ago

Are there any updates about this issue? I'm experiencing the same problem. Happens every time my screen goes to sleep.

FinishedFragment commented 2 years ago

I can confirm this. rpcs3 is unable to keep my screen awake due to missing support for this and it froze, too.