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
[Source] source is not removed and audio item is not removed from mixer list #3334
Another operation can cause the show_refs wrong as well:
add scene1, scene2, scene3;
open multiple view;
in scene1, add a group source;
in scene2, add existed group and scene source with scene1,
in scene3, add existed group and two scene sources with scene1 and scene2;
in scene1, add a camera source, check "Deactivate when not showing", drag camera source into group;
in scene3, delete all sources,
in scene2, delete all sources,
check multiple view, there is no camera view in scene1 (camera's show_refs has been less than 0)
void obs_source_activate(obs_source_t *source, enum view_type type)
void obs_source_deactivate(obs_source_t *source, enum view_type type)
In the two functions, show_refs and activate_refs of all child sources will be ++1 or --1.
However, currently, there is no logic to make sure ++1 and --1 are paired for all sources.
Typically steps which causes incorrect reference count: (1) lost --1
a. add group source or scene source, ++1 for all child sources;
b. remove any child source out of group or scene;
c. remove group source or scene source, --1 for all child sources (the removed source lost --1)
(2) lost ++1
a. add group source or scene source, ++1 for all child sources;
b. drag any source into group or scene (lost ++1);
c. remove group source or scene source, --1 for all child sources (the newly added source lost ++1)
When show_refs or activate_refs is incorrect, many strange features appear, such as:
audio item in mixer list will not be removed (depond on activate_ref);
source won't be render in multiple view (depond on show_refs);
and so on ~~~
I cannot seem to reproduce the bug as laid out in the original post. After step 5, I have no items in my audio mixer. As such, I am inclined to agree with @gxalpha above and have this closed. If there are other, distinct issues, please open a new Issue, with Steps to Reproduce, for each distinct bug. Please do not open an Issue that contains multiple separate bugs.
Activity
walker-WSH commentedon Aug 26, 2020
Another operation can cause the show_refs wrong as well:
void obs_source_activate(obs_source_t *source, enum view_type type)
void obs_source_deactivate(obs_source_t *source, enum view_type type)
In the two functions, show_refs and activate_refs of all child sources will be ++1 or --1.
However, currently, there is no logic to make sure ++1 and --1 are paired for all sources.
Typically steps which causes incorrect reference count:
(1) lost --1
a. add group source or scene source, ++1 for all child sources;
b. remove any child source out of group or scene;
c. remove group source or scene source, --1 for all child sources (the removed source lost --1)
(2) lost ++1
a. add group source or scene source, ++1 for all child sources;
b. drag any source into group or scene (lost ++1);
c. remove group source or scene source, --1 for all child sources (the newly added source lost ++1)
When show_refs or activate_refs is incorrect, many strange features appear, such as:
and so on ~~~
Can we add any logic to avoid it ?
sebastian-s-beckmann commentedon Oct 5, 2022
We cannot reproduce this issue in OBS 28, and believe it has since been fixed.
If it's still an issue, please open a new report.
RytoEX commentedon Oct 5, 2022
I cannot seem to reproduce the bug as laid out in the original post. After step 5, I have no items in my audio mixer. As such, I am inclined to agree with @gxalpha above and have this closed. If there are other, distinct issues, please open a new Issue, with Steps to Reproduce, for each distinct bug. Please do not open an Issue that contains multiple separate bugs.