You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Frontend: spurious 'Failed to rename basic scene collection file' on every fresh profile #155
Found during the sanitizer launch passes (round 2 meta issue linked as parent). Upstream OBS code, unchanged in this fork.
Symptom
Every launch with a fresh profile logs:
error: Failed to rename basic scene collection file:
filesystem error: cannot rename: No such file or directory [<home>/.config/obs-studio/basic/scenes.json] [<home>/.config/obs-studio/basic/scenes/Untitled.json]
Cause
move_basic_to_scene_collections() migrates the legacy basic/scenes.json file. It returns early only if the basic/directory is missing. MakeUserDirs() always creates basic/, so on a fresh profile the function creates basic/scenes/ and then renames a scenes.json that never existed, logging an error.
Fix
Also return early when sourceFile doesn't exist. Otherwise every new user's first log starts with a misleading error, which also confuses log-analyzer triage.
Claiming: #155. Plan: move the legacy migration into a small testable helper, add a cmocka test for a fresh profile (RED), then skip the rename when basic/scenes.json is missing (GREEN).
Activity
zackees commentedon Oct 13, 2026
Claiming: #155. Plan: move the legacy migration into a small testable helper, add a cmocka test for a fresh profile (RED), then skip the rename when
basic/scenes.jsonis missing (GREEN).test: Link cmocka with C linkage in test_scene_collection_migration
frontend: Move the basic scene collection migration into a helper
test: Check that a fresh profile's scene migration logs no error (RED)
frontend: Skip the scene collection migration when there is nothing t…