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
[obs_source] Wrong reference count for actice_ref/show_refs #9961
switch to another empty scene, you can find audio mixer is not empty
delete all source, including group and input audio, audio mixer is still not empty
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 "--".
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
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
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
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.
Activity
[-]【source::actice_ref】Wrong reference for obs_source[/-][+][source::actice_ref/show_refs] Wrong reference for obs_source[/+][-][source::actice_ref/show_refs] Wrong reference for obs_source[/-][+][source::actice_ref/show_refs] Wrong reference count for obs_source[/+][-][source::actice_ref/show_refs] Wrong reference count for obs_source[/-][+][obs_source] Wrong reference count for actice_ref/show_refs[/+]afonsofsdomingues commentedon Mar 9, 2024
Hi there, I'm interested in tackling this issue!
kpaulisse commentedon Mar 4, 2025
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"
Scene "Nested 1"
Scene "Scene"
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:
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.