Bug Report Automatic Scene Switcher - Crashes when adding Line

OviDiuSSwe

New Member
Hello i decided to set up my OBS Studio to day. Used Regular OBS before.

I have bin setting up my sources and scenes. And no i wanted to fix the scene switcher for when i am changing games or program so it switches scene and maybe hides my vital data that is not so good if its shown to the world like you might imagine :)

So This is what i do for it to crash.


->\Tools\Automatic Scene Switcher
Adding Program from top list. And Adding to what scene to use.
Then Clicking "+" Mark to add it to list. And Program crashes.

I have included log file for more easy problem finding. And it Produced 2 files from one crash I dont know if that is a usual thing when its about OBS.

::Log Files::
https://gist.github.com/anonymous/4e38e3605cc99259ceff311be396f5f7
https://gist.github.com/anonymous/b5328a77ecc51a77be776b8d987b80e5

If there is more info needed post in this thread or contact me on ts.vikinggamerscommunity.com:10637
 

OviDiuSSwe

New Member
Looks like its a bit similar at least. Thx for the link. Problem still stands tho.


[Edit]

Ok i tried some different programs in my Sources. So in stead of trying to add Arma 3 i added a different game that i wanted to be shown and switched to. Then it works fine.

But when i try Arma 3 again with or without mods. Then it just crashes OBS Studio.
 
Last edited:

OviDiuSSwe

New Member
Well if you mean in the drop box for what program in use. then.

Dropbox 1: Arma 3 "Drive:\Steam\steamapps\common\Arma 3\arma3.exe" -mod= Dropbox 2: Arma 3 Apex
 

RytoEX

Forum Admin
Forum Moderator
Developer
So you're click "Tools > Automatic Scene Switcher" and typing this into the field for window name:
Arma 3 "Drive:\Steam\steamapps\common\Arma 3\arma3.exe" -mod=

And that crashes? That's because it's not a valid C++ regular expression. The scene switcher accepts regular expressions, not Windows style patterns. You'll have to escape the backslashes to prevent them from being treated as special characters. Assuming the window name really is that crazy, use this:
Arma 3 "Drive:\\Steam\\steamapps\\common\\Arma 3\\arma3\.exe" -mod=
 

OviDiuSSwe

New Member
Ok i did try this now. And well it don't crash now. But it wont change the scene in stead now. Don't know why or how. It just don't do its job now. But no crash.
 

RytoEX

Forum Admin
Forum Moderator
Developer
Ok i did try this now. And well it don't crash now. But it wont change the scene in stead now. Don't know why or how. It just don't do its job now. But no crash.
My guess would be that the Window name isn't actually exactly what you entered. You could try this instead, which is more forgiving:
Arma 3.*
 

OviDiuSSwe

New Member
This fixed the problem. Now it also works with mods and scripts even. Now i know how to tackle this in future if i find similar problems with other software in my scenes.
 
Top