[obs_source] Wrong reference count for actice_ref/show_refs · Issue #9961 · obsproject/obs-studio (original) (raw)

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