Skip to content

Frontend: spurious 'Failed to rename basic scene collection file' on every fresh profile #155

Closed

Description

@zackees

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.

Activity

  1. added
    bug
    on Oct 10, 2026
  2. zackees commented on Oct 13, 2026

    @zackees
    MemberAuthor

    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).

  3. added
    claimed
    on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugclaimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions