Skip to content
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

[Windows 11] OBS crashes during regular Windows shutdown #10848

Open
riidefi opened this issue Jun 13, 2024 · 5 comments
Open

[Windows 11] OBS crashes during regular Windows shutdown #10848

riidefi opened this issue Jun 13, 2024 · 5 comments

Comments

@riidefi
Copy link

riidefi commented Jun 13, 2024

Operating System Info

Windows 11

Other OS

No response

OBS Studio Version

30.1.2

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/krQyPY0gGII9KRai (previous log) https://obsproject.com/logs/qaOHGs2BO4ydjHpB (current log)

OBS Studio Crash Log URL

https://obsproject.com/logs/FqCrvAHYdESIIupf (crash)

Expected Behavior

I would expect the OBS application to cleanly close during a standard Windows shutdown interaction.

Current Behavior

A crash dialog appears noting the exception being raised in the OBS application.

Steps to Reproduce

  1. Open OBS
  2. Stream to Youtube
  3. Stop streaming
  4. Shut down Windows while OBS is still running (but not streaming). Allow Windows to attempt to close OBS itself.

Anything else we should know?

No response

@Andre-Satorres
Copy link

Duplicate of #10833?

@Andre-Satorres
Copy link

Btw I just tested it here and I didn't even had to stream to YT, just shutdown Windows 11 with OBS still open.
Then, when the PC restarted, I open OBS again, but received this dialog: (it is in portuguese BR)

"Safe Mode
OBS Studio did not shut down properly last session.
Would you like to start in safe mode (third-party plugins, scripts, and websockets disabled)?
Run in safe mode / Run in normal mode"

image

@Fenrirthviti
Copy link
Member

Possibly, there's not a lot of information in 10833 on what is causing it. Might be related, might not.

@Andre-Satorres
Copy link

Andre-Satorres commented Jun 20, 2024

image

I think it is related to this logic:
On obs-app main, a sentinel file is created. But it is deleted only if the function run_program() ends, which I believe might only happen if the window is closed (on click)
image

Then, next time application is started, the sentinel file already exists, and unclean_shutdown is set to TRUE, and trigger the message present in the log, and also in the #10833 title.
image

We should get a product decision: if this message is annoying and we want to get rid of it, let's think on a different approach rather than this sentinel file.

I believe we should put this "delete_safe_mode_sentinel" as required action on application closure

@riidefi
Copy link
Author

riidefi commented Jun 23, 2024

We should get a product decision: if this message is annoying and we want to get rid of it, let's think on a different approach rather than this sentinel file.

In the case of this issue (#10848), it was not merely a spurious an error dialog upon subsequent application launch (perhaps a false positive), but a genuine application crash (with an error dialog (invalid instruction executed) and a crash report) during the Windows shutdown process. In particular, an invalid instruction was executed thereby invoking a signal handler. See the attached crash report.

Best

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants