Skip to content

[obs_source] Wrong reference count for actice_ref/show_refs #9961

Open

Description

@walker-WSH

Operating System Info

Windows 11

Other OS

No response

OBS Studio Version

30.0.0

OBS Studio Version (Other)

30.0

OBS Studio Log URL

100%

OBS Studio Crash Log URL

No response

Expected Behavior

reference of source is right

Current Behavior

reference of source is wrong

Steps to Reproduce

  1. create group source, invsible it
  2. create input audio, move it into group
  3. visible group source
  4. switch to another empty scene, you can find audio mixer is not empty
  5. delete all source, including group and input audio, audio mixer is still not empty
  6. try to create new input audio source, you can find old source is in "Add Existing"

Anything else we should know?

this bug begins from obs-25 version, and I reported it in #3334
the reason is ++show_refs and ++activate_refs are not matched to --show_refs and --activate_refs

it seems we should add list variable while do active/deavtive or show/hide for group.
in the list variable, we storage those sources which have been called for "++" or "--".

It can be reproduced 100%
please check my record

2023-12-04 12-27-44.zip

Activity

  1. changed the title [-]【source::actice_ref】Wrong reference for obs_source[/-] [+][source::actice_ref/show_refs] Wrong reference for obs_source[/+] on Dec 4, 2023
  2. changed the title [-][source::actice_ref/show_refs] Wrong reference for obs_source[/-] [+][source::actice_ref/show_refs] Wrong reference count for obs_source[/+] on Dec 4, 2023
  3. changed the title [-][source::actice_ref/show_refs] Wrong reference count for obs_source[/-] [+][obs_source] Wrong reference count for actice_ref/show_refs[/+] on Dec 4, 2023
  4. added
    issue/confirmed
    on Jan 4, 2024
  5. afonsofsdomingues commented on Mar 9, 2024

    @afonsofsdomingues

    Hi there, I'm interested in tackling this issue!

  6. kpaulisse commented on Mar 4, 2025

    @kpaulisse

    I'm fairly sure this is the issue I am seeing as well, although I do slightly different things with hiding and showing. I'll list out my repro steps as well in hopes it's useful.

    Create the following sources:

    • Scene "Nested A"

      • Media Source 1 set to loop and restart when it becomes active
    • Scene "Nested 1"

      • Media Source 2 set to loop and restart when it becomes active
      • Group
        • Scene "Nested A"
    • Scene "Scene"

      • Scene "Nested 1"

    When you're creating the media sources, use videos with audio tracks. Position them so you can see both when looking at Scene. Be sure they have different audio tracks so you can tell with your ear whether one, both, or neither are playing.

    Now, enter studio mode with "Scene" in the program and "Nested 1" in the preview. At this point you should see and hear both of the media sources on "Scene" and they will be in the audio mixer.

    Now hide the group on "Nested 1" and you will observe:

    • You will no longer see the Media Source 1 video in the program (👍)
    • You will still hear the audio from Media Source 1 (🐛)
    • You will still see Media Source 1 in the audio mixer (🐛)

    In this bugged state, if you hide "Nested A" within the group, you will still hear the audio from Media Source 1 and see it in the audio mixer. And if you go into "Nested A" and hide the media, you will still hear the audio from Media Source 1!

    Only after showing the group again do things get cleaned up. If you have either Nested A or Media Source 1 disabled at the time you re-enable the group, then Media Source 1 will be hidden from view and will stop having its audio played.

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

    issue/confirmed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions