obsproject / obsproject/obs-studio
Error and crash when trying to create a folder with trailing spaces
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
- Change filename formatting to include a folder with trailing spaces (for example
%CCYY-%MM-%DD /%hh-%mm-%ss) - Press
Start recording, get the error shown below. - Press
Start recordingagain, crash.
...
Anything else we should know?
error in question :
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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