obsproject / obsproject/obs-studio

Error and crash when trying to create a folder with trailing spaces

Open
#11,940 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Operating System Info

Windows 11

Other OS

No response

OBS Studio Version

31.0.1

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/SrRBYI9vXmi5CAPL

OBS Studio Crash Log URL

https://obsproject.com/logs/ldmWetyGi2qcBSTy

Expected Behavior

Obs should not crash when attempting to record, even if the formatting string is malformed.

Current Behavior

If the formatting includes creating a folder with trailing spaces in its name, obs errors on the first attempt at recording, and crashes on the second.

Steps to Reproduce
  1. Change filename formatting to include a folder with trailing spaces (for example %CCYY-%MM-%DD /%hh-%mm-%ss)
  2. Press Start recording, get the error shown below.
  3. Press Start recording again, crash.
    ...
Anything else we should know?

error in question :

Image

The crash report and the log do not correspond exactly because whether or not a crash report is generated by the crash is unreliable

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 issue on Windows 11 with the formatting string %CCYY-%MM-%DD /%hh-%mm-%ss, then inspect the linked OBS log and crash report. Done means starting a recording with the malformed formatting produces neither an error nor a crash.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.