c0x5 excption on lua script

mmlac

New Member
I am getting the following stacktrace when I close OBS, after I create a simple media-trigger script in lua. I can't seem to figure out what it is mad about, I tried to free everything, from the scene source object to the scene sceneitem to the source found in the scene, but freeing any of those just crashes OBS during runtime and neither suggest I need to free them to begin with. I am not quite sure what is it mad about. Another error I got was c0x9 and pthread mutex lock on a source as well.

Stacktrace:
Code:
Unhandled exception: c0000005
Date/Time: 2021-12-31, 00:56:24
Fault address: 7FF925391C09 (c:\tools\gaming\obs-studio\obs-plugins\64bit\obs-text.dll)
libobs version: 27.1.3 (64-bit)
Windows version: 10.0 build 19044 (release: 2009; revision: 1387; 64-bit)
CPU: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz


Thread 1D90: (Crashed)
Stack            EIP              Arg0             Arg1             Arg2             Arg3             Address
000000AFCCAFF560 00007FF925391C09 0000000000000002 00007FF914FFD308 000000AFCCAFF5B8 0000024A562F7500 obs-text.dll!<lambda_880baa1155d709808c7f0b661ebf8f8d>::operator()+0x99
000000AFCCAFF590 00007FF914FAE6DC 0000024A3BD3B6E0 000000AFCCAFFBB0 0000000000000000 0000000000000002 obs.dll!obs_source_destroy+0x20c
000000AFCCAFF690 00007FF914FC10EF 000000AFCCAFFBB0 00000000FFFFFFFF 0000000000000000 0000000000000160 obs.dll!obs_free_data+0x9f
000000AFCCAFF6C0 00007FF914FC5203 0000000000000000 000000AFCCAFF990 000000AFCCAFFBB0 000000AFCCAFFAF0 obs.dll!obs_shutdown+0x433
000000AFCCAFF710 00007FF74796B16A 000000AFCCAFF7E0 000000AF00000000 00007FF747C15ED0 0000024A3BAFA3E0 obs64.exe!OBSApp::~OBSApp+0x5a
000000AFCCAFF740 00007FF74797718E 0000000000000000 0000024A399537B0 0000024A00000000 0000024A39951F00 obs64.exe!run_program+0x93e
000000AFCCAFFAB0 00007FF747979290 0000000000000000 0000000000000000 0000000000000000 FFFFFFFFFFFFFFFF obs64.exe!main+0x6c0
000000AFCCAFFC80 00007FF747B0E3D7 0000000000000000 0000000000000000 0000000000000000 0000000000000000 obs64.exe!WinMain+0x157
000000AFCCAFFD10 00007FF747B0DC96 0000000000000000 0000000000000000 0000000000000000 0000000000000000 obs64.exe!__scrt_common_main_seh+0x106
000000AFCCAFFD50 00007FF941E17034 0000000000000000 0000000000000000 0000000000000000 0000000000000000 kernel32.dll!0x7ff941e17034
000000AFCCAFFD80 00007FF9432C2651 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ntdll.dll!0x7ff9432c2651


with the attached script.
 

Attachments

Ok, it seems I had to free the source from get_current_scene, but when I tried that the first time it still broke. I also rewrote the code a bit, so I guess I cleaned up anything that would have caused an issue and now just freeing the source retrieved from get_current_scene makes it work. ¯\_(ツ)_/¯
 
Back
Top