Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

After I use the script, OBS crashes when I want to change to another collection of scenes #124

Open
Manrochri opened this issue Aug 20, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@Manrochri
Copy link

I installed the script and it works correctly. However, when I try to change to another collection I get the following error.

image
image

I only get that error after using the zoom script. Any possible solution to this?

@tryptech tryptech added the bug Something isn't working label Sep 12, 2023
@tryptech
Copy link
Owner

This should be resolved as of the most recent version, can you try to reproduce the issue?

@adjstreams
Copy link

@Manrochri other than this script what other plugins do you have installed in OBS?

@thelegendtubaguy
Copy link

I can confirm I run into this as well. If I remove the script I'm able to change scene collections just fine. If I have it added, I get the source cleanup error.

Here you can see me loading the script, and then I try to change scene collections.

02:41:49.117: [obs-scripting]: Loaded python script: zoom_and_follow_mouse.py
02:41:49.123: [Python: zoom_and_follow_mouse.py] Updating Source List
02:41:49.126: [Python: zoom_and_follow_mouse.py] New source: True
02:41:49.126: [Python: zoom_and_follow_mouse.py] Triggered callback: Manual Monitor Override
02:41:49.126: [Python: zoom_and_follow_mouse.py] Triggered callback: Manual Monitor Dim
02:41:49.126: [Python: zoom_and_follow_mouse.py] Triggered callback: Manual Offset
02:41:49.126: [Python: zoom_and_follow_mouse.py] Triggered callback: debug
02:41:49.134: [Python: zoom_and_follow_mouse.py] Run script_properties
02:41:49.134: [Python: zoom_and_follow_mouse.py] Updating Source List
02:41:49.137: [Python: zoom_and_follow_mouse.py] New source: True
02:41:49.137: [Python: zoom_and_follow_mouse.py] Updating Monitor List
02:41:49.138: [Python: zoom_and_follow_mouse.py] Monitor override list updated
02:41:49.159: QWindowsWindow::setGeometry: Unable to set geometry 1281x1242+5165+660 (frame: 1303x1298+5154+615) on QWidgetWindow/"ScriptsToolWindow" on "ASUS VG289Q1A (2)". Resulting geometry: 1281x1485+5165+660 (frame: 1303x1541+5154+615) margins: 11, 45, 11, 11 minimum size: 854x828 MINMAXINFO(maxSize=POINT(x=0, y=0), maxpos=POINT(x=0, y=0), maxtrack=POINT(x=0, y=0), mintrack=POINT(x=1303, y=1298)))
02:41:53.591: [Python: zoom_and_follow_mouse.py] Run script_update
02:41:53.592: [Python: zoom_and_follow_mouse.py] Source update
02:41:53.595: [Python: zoom_and_follow_mouse.py] Updating Source List
02:41:53.598: [Python: zoom_and_follow_mouse.py] New source: True
02:41:53.598: [Python: zoom_and_follow_mouse.py] Update source size
02:41:53.598: [Python: zoom_and_follow_mouse.py] self.source_name: [DC] Primary Monitor 
02:41:53.598: [Python: zoom_and_follow_mouse.py] Source loaded successfully: monitor_capture
02:41:53.598: [Python: zoom_and_follow_mouse.py] Source Type: monitor_capture
02:41:53.598: [Python: zoom_and_follow_mouse.py] Searching for monitor 1
02:42:03.095: [Python: zoom_and_follow_mouse.py] Run script_save
02:42:03.122: [obs-scripting]: Unloaded lua script: source-toggler.lua
02:42:03.122: [obs-scripting]: Unloaded lua script: media-hide.lua
02:42:03.123: [Python: zoom_and_follow_mouse.py] Run script_unload
02:42:03.123: [Python] source_list_release:1140: SWIG failed to convert python object to obs object: obs_source_t *
02:42:03.123: [obs-scripting]: Unloaded python script: zoom_and_follow_mouse.py
02:42:03.159: Not all sources were cleared when clearing scene data:

@adjstreams
Copy link

@thelegendtubaguy can you confirm you only see the issue with scene switching if you actually trigger the zoom/follow? i.e. if you open OBS and don't use the feature, you can still switch scenes okay?

This was my experience and also seemed to be the difference between OBS crashing after closing, as you reported in #119. Closing without using the feature would close without crashing, but using the feature and then closing OBS would crash it.

@Manrochri
Copy link
Author

Manrochri commented Nov 12, 2023 via email

@thelegendtubaguy
Copy link

@thelegendtubaguy can you confirm you only see the issue with scene switching if you actually trigger the zoom/follow? i.e. if you open OBS and don't use the feature, you can still switch scenes okay?

This was my experience and also seemed to be the difference between OBS crashing after closing, as you reported in #119. Closing without using the feature would close without crashing, but using the feature and then closing OBS would crash it.

No, that is not what is happening to me. I don't even have to trigger zoom/follow. Now you said "switch scenes", that's not what I'm talking about. I'm saying this happens when I change scene collections. Big difference, just want to make sure we're on the same page.

This is also why I closed that other issue and jumped onto this one. I was no longer experiencing what I reported in the other issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants