-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
31.0.0 freezes when exiting on macOS #11650
Comments
me too! |
Could you please collect a Spindump while OBS is in the unresponsive state? Specifically, you'll want to select OBS in the list of applications in Activity Monitor (it should say "Not Responding"), then hit the ellipsis and Spindump. Then when the file pops up in Finder, attach it here. |
Sure. Here is it: |
Thanks; it looks like a deadlock between the destruction task queue and the main thread. I can't tell exactly why it's happening though at the moment and am not able to reproduce. If other users have a Spindump (accompanied by an OBS log) that would still be useful to perhaps identify a common factor. |
It sounds like a problem that can only be replicated on some devices. Perhaps we need to wait for more reports from users. Since my device can reproduce the issue, will it help identifying the cause if I try to build from the source for debugging? |
me2 , using mac mini |
Please refrain from commenting "me too" on issues by itself; it makes it harder to track the important information in the thread. Per #11650 (comment), I could use spindumps and OBS logs from other users to help find common factors or eliminate variables connected to this issue. If you are having this issue, kindly collect a Spindump and attach it; do not just add "me too". Thanks. |
Spindump.txt collected from macOS 14.6.1 / OBS 31.0.0 / MacBook Pro (13-inch, M1, 2020) ========== p.s.) I know of other streamer who are experiencing the same issue. However, I don't have a spindump file for it. In this case, the symptoms of this issue occur on shutdown if you've been broadcasting on OBS for more than 10 minutes, and restarting in safe mode and then normal mode temporarily fixes it. Downgrading to 30.2.3 fixes all problem(without disabling or changing any plugin version) I can contact the streamer and get the spindump file if needed, the streamer uses an Intel Macbook. |
I guess I found out why... See commit 4dac849, ...
pthread_mutex_lock(&hotkeys->mutex);
...
if (!platform->layout_data) {
blog(LOG_ERROR, "hotkeys-cocoa: Failed to retrieve keyboard layout data");
hotkeys->platform_context = NULL;
pthread_mutex_unlock(&hotkeys->mutex);
hotkeys_release(platform);
return;
}
... Then if @Kinfxhk @ForsakenDelusion @Lastorder-DC Are you a multilingual user and have input methods installed in the system? If so, this may explain why it can only be reproduced on some devices. If it can be confirmed that this is the reason, I will try to submit a PR. |
Nice catch; it looks like you are correct; failing to unlock that mutex would definitely result in this behavior. I can indeed reproduce it by changing my keyboard layout while OBS is open. |
I have #11663 for this and hope it works. |
OBS Studio 30.1.2 KLAS |
Operating System Info
macOS 15
Other OS
No response
OBS Studio Version
31.0.0
OBS Studio Version (Other)
No response
OBS Studio Log URL
https://obsproject.com/logs/BQZ9q616XlYA2vgE
OBS Studio Crash Log URL
No response
Expected Behavior
OBS can quit normally every time and will not display the safe mode dialog on next startup.
Current Behavior
Sometimes (frequently) OBS will freeze on quit.
Steps to Reproduce
Anything else we should know?
Other users have also reported this issue, see the forum, which seems to only occur in OBS 31.0.0 version. This issue will occur regardless of whether the program is started in safe mode or not. The above log was recorded in safe mode, and it seems that it did not record any issues.
I also discovered that if this issue occurs, OBS will not be able to show any window and will not display any pop-up menus except the settings window. But when I open the settings or click the OBS icon on the dock, these windows will appear again. OBS will also freeze if I try to switch between Profiles or Scene Collections.
The text was updated successfully, but these errors were encountered: