OBS 30.2.2 crashing when switching scene collections

kaine23

New Member
This has been an ongoing problem that I really want to fix. OBS keeps crashing when I switch scenes in scene collections. HAGS is not on. I don't know what I need to do or plugins to remove. Please help and thanks!
 

Attachments

  • 2024-07-28 16-53-50.txt
    29.2 KB · Views: 55

Suslik V

Active Member
Code:
16:54:23.789: Not all sources were cleared when clearing scene data:
16:54:23.789: 
16:54:23.789: - Mic
16:54:23.789:
these is forced self shutdown of the application to prevent data loss.
Crash - is when OS terminates application after application did something wrong.

Your 'Mic' source is causing this issue.

You may start from the scratch by running OBS portable mode (do not install plugin managers). For OBS portable mode you may read after the "If it was not clear words": https://obsproject.com/forum/thread...»-when-opening-app-settings.82157/post-346499

Or you may try to load any scene collection at startup (cmd line key --collection your_scene_collection_name).
I hope you have both default Scene Collection and Profile named "safe", if not - make the one for future, just in case.
 

kaine23

New Member
I dont think I have any extra plugins for the mic, i do have filters on. can i delete mic and readd it?
 

Suslik V

Active Member
Of course. You may see it as - there are left some references to OBS source (the 'Mic' in your case) and the source still doing its job, but you decided to terminate all current capturing tasks and switch to other set of scenes (other set of capture sources). OBS counts all new references, so at closing old sources it sees that number of opened sources is more than number of recently closed (some were lost, and thus may uncontrollably working in background). OBS panics and decides that is better to restart all jobs (streaming/recording/rendering etc) rather than continue to capture some uncontrollable mess.

The message that precedes shutdown says:
Source Cleanup Error. There was a problem while changing scene collections and some sources could not be unloaded. This issue is typically caused by plugins that are not releasing resources properly. Please ensure that any plugins you are using are up to date. OBS Studio will now exit to prevent any potential data corruption.

So, look at your plugins that may read 'Mic' data for some purposes.
 

kaine23

New Member
I've tried taking the mic out of the other scenes (brb, starting soon, etc) for both blank and overlay and still crashes too.
 

Attachments

  • 2024-07-30 12-17-02.txt
    23.1 KB · Views: 17

kaine23

New Member
Arghh, this sucks! I love that plugin :(

Ok so i tried disabling it on both scenes and did a switch in scene collection back and forth and no crashes. Yikes. Why's this happen?
 
Last edited:

R1CH

Forum Admin
Developer
The plugin has a bug where it holds onto the mic source from a scene collection, so when you switch scene collections the previous one can't be unloaded properly and OBS closes to prevent corruption like the old source being saved in the new collection.
 
Top