BlankSourceCode / obs-zoom-to-mouse

An OBS lua script to zoom a display-capture source to focus on the mouse
178 stars 15 forks source link

OBS freezes occasionally when script is used for Game or Window capture #33

Open ombroski opened 4 months ago

ombroski commented 4 months ago

Script seems to be hanging OBS 30.0.2. The only two streams I've done with the script enabled, OBS freezes hard after a while, but didn't freeze in the several streams I did in between.

I was originally using a game capture source, but when OBS is opened again, the game source is extremely zoomed and distorted, and can't be fixed, only deleted and re-added. So I tried a window capture source, which seems to work fine. But in both cases, OBS freezes after a couple hours. I do know the script is meant primarily for display capture, which I will try next time, but I try to avoid full display captures for a variety of reasons. Will test whether the script causes OBS to freeze when purely display captured though.

BlankSourceCode commented 4 months ago

@ombroski Sorry you are having issues. Are you using the latest script from main? I recall fixing an issue with loading causing the weird distorted zoom sometimes.

Do you have any logs or info about the freeze?

The script doesn't do a whole lot besides adding a crop/pad filter to a source and a couple of hotkeys, so I'm not sure what could cause the freeze without some extra info.

ombroski commented 4 months ago

@BlankSourceCode I am using the latest script, and there's zero in the logs or any way to get info, as far as I can tell, as OBS just freezes instantly and all logging seems to stop. I'm not even 100% sure it's the script doing it, but it's only happened 2 times, only when the script is loaded. It could potentially be something else, though I've not added or changed anything in OBS in months other than NDI plugin (which has been disabled after some testing anyway). I'll see if the freezes continue now that I've switched to a display capture instead.