obsproject / obsproject/obs-studio

OBS does not cleanly exit when sent SIGTERM, causing the "Safe Mode" prompt after reboot (Linux)

Open
#10,011 12 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

issue/confirmed
Dominant language
C
Stars
76.4k
Forks
10.2k
Avg merge
4d 23h
Merged PRs (30d)
12

Description

Operating System Info

Other

Other OS

NixOS

OBS Studio Version

30.0.2

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/d7YEvfIg4gg030Rm

OBS Studio Crash Log URL

No response

Expected Behavior

Send SIGTERM to obs and it exits cleanly. Not showing a popup when starting it again

Current Behavior

Send SIGTERM to obs and it does not exit cleanly. Popup for safe mode shows.

Steps to Reproduce
  1. Start obs
  2. pgrep obs
  3. kill
Anything else we should know?

Is the lInux version of issue #9877

SIGTERM is supposed to cause a clean exit. Proper signal handling is required.

(Possible cross-plattform solution by using Qt libraries?)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the SIGTERM behavior on Linux/NixOS using the listed steps, and review the provided OBS log. No source file or test is named, so trace the Linux shutdown and signal-handling entry points, considering the issue's suggestion of Qt libraries. Done means SIGTERM exits OBS cleanly and a subsequent launch does not show the Safe Mode prompt.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux, nixos
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.