-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Regression] RPCS3 crashes if airpods are taken off on macOS. #12528
Comments
Please try this PR: #12534 |
It is not fixed. |
Please try again with the next build. Also, what does it mean "I take my airpods off" ? |
I'm not really sure how it works, so here's a list of my output devices right now. I have my airpods on right now so it is the default audio device: If I take them off ( as in take them both off from my ears, and they automatically detect that they've been taken off ), it is no longer the default audio device ( but I believe it stays connected ) ( also produces the crash ): But it is not the changing of the output device that's triggering the crash, because if I change it manually it does not crash. I don't have another bluetooth headphone to test, but if I, for example, use a display ( or wired headphones ) and unplug that even though the device disappears ( and the default audio device is changed ) RPCS3 still does not crash: Here's the crash with that build: |
So it only happens if the default device are the airpods and they go to sleep so to speak. |
When I picked the airpods manually in RPCS3 settings it did not crash. |
Well. This seems like an upstream cubeb bug. |
Could you link me the issue if it's not a problem so I can subscribe to it? Seems weird to me that it was a upstream bug since it was a RPCS3 update that introduced the issue but I suppose Cubeb got updated on that PR? Changing the audio device is a more than good enough workaround but I'd like to see it fixed by default as well. |
The old code never tried to enumerate devices like this and also didn't react to device changes. |
When listening to music, AirPods will pause the music if one of the airpods are removed from the ear. So it is likely the pause command is causing an issue. |
I do not have AirPods, so I cannot reproduce the exact same issue, but for me, turning off Bluetooth while a BT audio device is selected as the output device does cause a crash sometimes.
The function names are exposed (except 5,6, and 9, which are apparently part of llvm::). If I use USB headphones and disconnect them, it does not crash. |
macOS 13.0 Beta 4 is out. Is the original issue fixed? |
I am on macOS 13 beta 10. I just tried testing this with my AirPods, and RPCS3 crashed immediately after removing both AirPods from my ears. (Note that removing just one does not cause the crash). |
This is a cubeb bug. The crash happens inside the library, we cannot fix it without forking the library and making modifications ourselves or upstream fixing it (this is why I hate relying on do-it-all 3rd party libraries). It also happens on all OSes if you disable the audio sink. The only difference is that macOS doesn't have an alternative while we have XAudio and FAudio for windows and linux which work correctly. |
It looks like Megamouse already opened an issue for it with cubeb... |
Try with #12805 |
Quick summary
After #12246 if I take my airpods off while a game is running, RPCS3 crashes.
Details
After #12246 if I take my airpods off while a game is running, RPCS3 crashes. This does not occur when I change my default audio device before taking them off, or with wired headphones. Disconnecting by turning off bluetooth also does not trigger the issue.
Build with regression
v0.0.23-13872-98b730c8
Attach two log files
#12246 (bad) : RPCS3.log
#12300 (good) : RPCS3.log
System configuration
macOS 13.0 beta (22A5295i)
Apple M1 chip
Airpods Pro
The text was updated successfully, but these errors were encountered: