koush / scrypted

Scrypted is a high performance video integration and automation platform
https://scrypted.app
Other
4.26k stars 252 forks source link

Gstreamer is broken on Mac (tensorflow, coreml, opencv) #544

Closed dawiinci closed 1 year ago

dawiinci commented 1 year ago

The crashes happens shortly after Scrypted is loaded and crashes after every restart and after a few minutes. The camera in HomeKit works intermittently (HKSV).

First time this occurred is February 1st.

Scrypted is on 0.6.11, all plugins updated.

Python 3.10.9 is installed but obviously not used by Scrypted.

Not sure ion this crash report is of any help.

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               Python [1962]
Path:                  /opt/homebrew/*/Python.framework/Versions/3.9/Resources/Python.app/Contents/MacOS/Python
Identifier:            org.python.python
Version:               3.9.16 (3.9.16)
Code Type:             ARM-64 (Native)
Parent Process:        node [1945]
Responsible:           node [433]
User ID:               501

Date/Time:             2023-02-02 18:34:18.3033 +0100
OS Version:            macOS 13.2 (22D49)
Report Version:        12
Anonymous UUID:        13AC0E1E-9432-4F41-B2F0-44C4174186B4

Time Awake Since Boot: 880 seconds

System Integrity Protection: enabled

Crashed Thread:        17  task0

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x00000000000004b0
Exception Codes:       0x0000000000000001, 0x00000000000004b0

Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process:   exc handler [1962]

VM Region Info: 0x4b0 is not in any region.  Bytes before following region: 105553518918480
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      MALLOC_NANO (reserved)   600018000000-600020000000 [128.0M] rw-/rwx SM=NUL  ...(unallocated)

Thread 0::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib                 0x198595130 __select + 8
1   libglib-2.0.0.dylib                    0x10604303c g_poll + 424
2   libglib-2.0.0.dylib                    0x1060361e0 g_main_context_iterate + 340
3   libglib-2.0.0.dylib                    0x106036560 g_main_loop_run + 268
4   libffi.dylib                           0x1a755d050 ffi_call_SYSV + 80
5   libffi.dylib                           0x1a7565af4 ffi_call_int + 1208
6   _gi.cpython-39-darwin.so               0x1055e9d84 pygi_invoke_c_callable + 1864
7   _gi.cpython-39-darwin.so               0x1055eabd8 pygi_function_cache_invoke + 52
8   _gi.cpython-39-darwin.so               0x1055de6e4 _callable_info_call + 196
9   Python                                 0x102c48a4c _PyObject_MakeTpCall + 132
10  Python                                 0x102d40498 call_function + 268
11  Python                                 0x102d39dd8 _PyEval_EvalFrameDefault + 23044
12  Python                                 0x102d333d4 _PyEval_EvalCode + 452
13  Python                                 0x102c49638 _PyFunction_Vectorcall + 344
14  Python                                 0x102d4040c call_function + 128
15  Python                                 0x102d38de0 _PyEval_EvalFrameDefault + 18956
16  Python                                 0x102d333d4 _PyEval_EvalCode + 452
17  Python                                 0x102d8a9cc run_eval_code_obj + 136
18  Python                                 0x102d8a8fc run_mod + 112
19  Python                                 0x102d87f20 pyrun_file + 168
20  Python                                 0x102d87840 pyrun_simple_file + 252
21  Python                                 0x102d87704 PyRun_SimpleFileExFlags + 80
22  Python                                 0x102da84cc pymain_run_file + 320
23  Python                                 0x102da7c0c Py_RunMain + 876
24  Python                                 0x102da90e0 Py_BytesMain + 40
25  dyld                                   0x19829fe50 start + 2544

Thread 1:
0   libsystem_pthread.dylib                0x1985c4e18 start_wqthread + 0

Thread 2:
0   libsystem_pthread.dylib                0x1985c4e18 start_wqthread + 0

Thread 3:
0   libsystem_kernel.dylib                 0x198590194 kevent + 8
1   select.cpython-39-darwin.so            0x103b04f48 select_kqueue_control_impl + 760
2   Python                                 0x102c555c8 method_vectorcall_FASTCALL + 104
3   Python                                 0x102d4040c call_function + 128
4   Python                                 0x102d38de0 _PyEval_EvalFrameDefault + 18956
5   Python                                 0x102d333d4 _PyEval_EvalCode + 452
6   Python                                 0x102c49638 _PyFunction_Vectorcall + 344
7   Python                                 0x102d4040c call_function + 128
8   Python                                 0x102d38de0 _PyEval_EvalFrameDefault + 18956
9   Python                                 0x102c49598 _PyFunction_Vectorcall + 184
10  Python                                 0x102d4040c call_function + 128
11  Python                                 0x102d38de0 _PyEval_EvalFrameDefault + 18956
12  Python                                 0x102c49598 _PyFunction_Vectorcall + 184
13  Python                                 0x102d4040c call_function + 128
14  Python                                 0x102d38de0 _PyEval_EvalFrameDefault + 18956
15  Python                                 0x102c49598 _PyFunction_Vectorcall + 184
16  Python                                 0x102d4040c call_function + 128
17  Python                                 0x102d38de0 _PyEval_EvalFrameDefault + 18956
18  Python                                 0x102d333d4 _PyEval_EvalCode + 452
19  Python                                 0x102c49638 _PyFunction_Vectorcall + 344
20  Python                                 0x102d34d30 _PyEval_EvalFrameDefault + 2396
21  Python                                 0x102c49598 _PyFunction_Vectorcall + 184
22  Python                                 0x102d4040c call_function + 128
23  Python                                 0x102d38de0 _PyEval_EvalFrameDefault + 18956
24  Python                                 0x102c49598 _PyFunction_Vectorcall + 184
25  Python                                 0x102d4040c call_function + 128
26  Python                                 0x102d38de0 _PyEval_EvalFrameDefault + 18956
27  Python                                 0x102c49598 _PyFunction_Vectorcall + 184
28  Python                                 0x102c4c118 method_vectorcall + 388
29  Python                                 0x102df838c t_bootstrap + 120
30  Python                                 0x102d97e84 pythread_wrapper + 48
31  libsystem_pthread.dylib                0x1985ca06c _pthread_start + 148
32  libsystem_pthread.dylib                0x1985c4e2c thread_start + 8

Thread 4:
0   libsystem_kernel.dylib                 0x19858ac0c read + 8
1   Python                                 0x102da67e8 _Py_read + 116
2   Python                                 0x102e00a6c _io_FileIO_readinto + 128
3   Python                                 0x102c55208 method_vectorcall_O + 108
4   Python                                 0x102c4a4b8 PyObject_VectorcallMethod + 136
5   Python                                 0x102e08f78 _bufferedreader_raw_read + 144
6   Python                                 0x102e08ecc _bufferedreader_fill_buffer + 64
7   Python                                 0x102e061e8 _io__Buffered_read + 1068
8   Python                                 0x102c98974 cfunction_vectorcall_FASTCALL + 88
9   Python                                 0x102ddbc30 partial_vectorcall + 384
10  Python                                 0x102d34d30 _PyEval_EvalFrameDefault + 2396
11  Python                                 0x102c49598 _PyFunction_Vectorcall + 184
12  Python                                 0x102d4040c call_function + 128
13  Python                                 0x102d38de0 _PyEval_EvalFrameDefault + 18956
14  Python                                 0x102c49598 _PyFunction_Vectorcall + 184
15  Python                                 0x102d34d30 _PyEval_EvalFrameDefault + 2396
16  Python                                 0x102c49598 _PyFunction_Vectorcall + 184
17  Python                                 0x102d4040c call_function + 128
18  Python                                 0x102d38de0 _PyEval_EvalFrameDefault + 18956
19  Python                                 0x102c49598 _PyFunction_Vectorcall + 184
20  Python                                 0x102d4040c call_function + 128
21  Python                                 0x102d38de0 _PyEval_EvalFrameDefault + 18956
22  Python                                 0x102c49598 _PyFunction_Vectorcall + 184
23  Python                                 0x102c4c118 method_vectorcall + 388
24  Python                                 0x102df838c t_bootstrap + 120
25  Python                                 0x102d97e84 pythread_wrapper + 48
26  libsystem_pthread.dylib                0x1985ca06c _pthread_start + 148
27  libsystem_pthread.dylib                0x1985c4e2c thread_start + 8

Thread 5:
0   libsystem_kernel.dylib                 0x19858d84c __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x1985ca638 _pthread_cond_wait + 1232
2   Python                                 0x102d98234 PyThread_acquire_lock_timed + 324
3   _queue.cpython-39-darwin.so            0x1066ef5fc _queue_SimpleQueue_get_impl + 216
4   _queue.cpython-39-darwin.so            0x1066ef2a0 _queue_SimpleQueue_get + 204
5   Python                                 0x102c988c4 cfunction_vectorcall_FASTCALL_KEYWORDS + 84
6   Python                                 0x102d4040c call_function + 128
7   Python                                 0x102d38640 _PyEval_EvalFrameDefault + 17004
8   Python                                 0x102c49598 _PyFunction_Vectorcall + 184
9   Python                                 0x102d34d30 _PyEval_EvalFrameDefault + 2396
10  Python                                 0x102c49598 _PyFunction_Vectorcall + 184
11  Python                                 0x102d4040c call_function + 128
12  Python                                 0x102d38de0 _PyEval_EvalFrameDefault + 18956
13  Python                                 0x102c49598 _PyFunction_Vectorcall + 184
14  Python                                 0x102d4040c call_function + 128
15  Python                                 0x102d38de0 _PyEval_EvalFrameDefault + 18956
16  Python                                 0x102c49598 _PyFunction_Vectorcall + 184
17  Python                                 0x102c4c118 method_vectorcall + 388
18  Python                                 0x102df838c t_bootstrap + 120
19  Python                                 0x102d97e84 pythread_wrapper + 48
20  libsystem_pthread.dylib                0x1985ca06c _pthread_start + 148
21  libsystem_pthread.dylib                0x1985c4e2c thread_start + 8

Thread 6:
0   libsystem_kernel.dylib                 0x19858d84c __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x1985ca638 _pthread_cond_wait + 1232
2   libopenblas64_.0.dylib                 0x113169b60 blas_thread_server + 360
3   libsystem_pthread.dylib                0x1985ca06c _pthread_start + 148
4   libsystem_pthread.dylib                0x1985c4e2c thread_start + 8

Thread 7:
0   libsystem_kernel.dylib                 0x19858d84c __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x1985ca638 _pthread_cond_wait + 1232
2   libopenblas64_.0.dylib                 0x113169b60 blas_thread_server + 360
3   libsystem_pthread.dylib                0x1985ca06c _pthread_start + 148
4   libsystem_pthread.dylib                0x1985c4e2c thread_start + 8

Thread 8:
0   libsystem_kernel.dylib                 0x19858d84c __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x1985ca638 _pthread_cond_wait + 1232
2   libopenblas64_.0.dylib                 0x113169b60 blas_thread_server + 360
3   libsystem_pthread.dylib                0x1985ca06c _pthread_start + 148
4   libsystem_pthread.dylib                0x1985c4e2c thread_start + 8

Thread 9:
0   libsystem_kernel.dylib                 0x19858d84c __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x1985ca638 _pthread_cond_wait + 1232
2   libopenblas64_.0.dylib                 0x113169b60 blas_thread_server + 360
3   libsystem_pthread.dylib                0x1985ca06c _pthread_start + 148
4   libsystem_pthread.dylib                0x1985c4e2c thread_start + 8

Thread 10:
0   libsystem_kernel.dylib                 0x19858d84c __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x1985ca638 _pthread_cond_wait + 1232
2   libopenblas64_.0.dylib                 0x113169b60 blas_thread_server + 360
3   libsystem_pthread.dylib                0x1985ca06c _pthread_start + 148
4   libsystem_pthread.dylib                0x1985c4e2c thread_start + 8

Thread 11:
0   libsystem_kernel.dylib                 0x19858d84c __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x1985ca638 _pthread_cond_wait + 1232
2   libopenblas64_.0.dylib                 0x113169b60 blas_thread_server + 360
3   libsystem_pthread.dylib                0x1985ca06c _pthread_start + 148
4   libsystem_pthread.dylib                0x1985c4e2c thread_start + 8

Thread 12:
0   libsystem_kernel.dylib                 0x19858d84c __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x1985ca638 _pthread_cond_wait + 1232
2   libopenblas64_.0.dylib                 0x113169b60 blas_thread_server + 360
3   libsystem_pthread.dylib                0x1985ca06c _pthread_start + 148
4   libsystem_pthread.dylib                0x1985c4e2c thread_start + 8

Thread 13:
0   libsystem_kernel.dylib                 0x198590194 kevent + 8
1   select.cpython-39-darwin.so            0x103b04f48 select_kqueue_control_impl + 760
2   Python                                 0x102c555c8 method_vectorcall_FASTCALL + 104
3   Python                                 0x102d4040c call_function + 128
4   Python                                 0x102d38de0 _PyEval_EvalFrameDefault + 18956
5   Python                                 0x102d333d4 _PyEval_EvalCode + 452
6   Python                                 0x102c49638 _PyFunction_Vectorcall + 344
7   Python                                 0x102d4040c call_function + 128
8   Python                                 0x102d38de0 _PyEval_EvalFrameDefault + 18956
9   Python                                 0x102c49598 _PyFunction_Vectorcall + 184
10  Python                                 0x102d4040c call_function + 128
11  Python                                 0x102d38de0 _PyEval_EvalFrameDefault + 18956
12  Python                                 0x102c49598 _PyFunction_Vectorcall + 184
13  Python                                 0x102d4040c call_function + 128
14  Python                                 0x102d38de0 _PyEval_EvalFrameDefault + 18956
15  Python                                 0x102c49598 _PyFunction_Vectorcall + 184
16  Python                                 0x102d4040c call_function + 128
17  Python                                 0x102d38de0 _PyEval_EvalFrameDefault + 18956
18  Python                                 0x102c49598 _PyFunction_Vectorcall + 184
19  Python                                 0x102c4c118 method_vectorcall + 388
20  Python                                 0x102d34d30 _PyEval_EvalFrameDefault + 2396
21  Python                                 0x102c49598 _PyFunction_Vectorcall + 184
22  Python                                 0x102d4040c call_function + 128
23  Python                                 0x102d38de0 _PyEval_EvalFrameDefault + 18956
24  Python                                 0x102c49598 _PyFunction_Vectorcall + 184
25  Python                                 0x102d4040c call_function + 128
26  Python                                 0x102d38de0 _PyEval_EvalFrameDefault + 18956
27  Python                                 0x102c49598 _PyFunction_Vectorcall + 184
28  Python                                 0x102c4c118 method_vectorcall + 388
29  Python                                 0x102df838c t_bootstrap + 120
30  Python                                 0x102d97e84 pythread_wrapper + 48
31  libsystem_pthread.dylib                0x1985ca06c _pthread_start + 148
32  libsystem_pthread.dylib                0x1985c4e2c thread_start + 8

Thread 14:: pool-spawner
0   libsystem_kernel.dylib                 0x19858d84c __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x1985ca638 _pthread_cond_wait + 1232
2   libglib-2.0.0.dylib                    0x10607dee4 g_cond_wait + 44
3   libglib-2.0.0.dylib                    0x10600a348 g_async_queue_pop_intern_unlocked + 116
4   libglib-2.0.0.dylib                    0x10605ae1c g_thread_pool_spawn_thread + 124
5   libglib-2.0.0.dylib                    0x10605a8d0 g_thread_proxy + 68
6   libsystem_pthread.dylib                0x1985ca06c _pthread_start + 148
7   libsystem_pthread.dylib                0x1985c4e2c thread_start + 8

Thread 15:: queue1:src
0   libsystem_kernel.dylib                 0x19858d84c __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x1985ca638 _pthread_cond_wait + 1232
2   libglib-2.0.0.dylib                    0x10607dee4 g_cond_wait + 44
3   libgstcoreelements.dylib               0x160ebda44 gst_queue_loop + 196
4   libgstreamer-1.0.0.dylib               0x1069c0c04 gst_task_func + 284
5   libglib-2.0.0.dylib                    0x10605ba1c g_thread_pool_thread_proxy + 208
6   libglib-2.0.0.dylib                    0x10605a8d0 g_thread_proxy + 68
7   libsystem_pthread.dylib                0x1985ca06c _pthread_start + 148
8   libsystem_pthread.dylib                0x1985c4e2c thread_start + 8

Thread 16:: queue0:src
0   libsystem_kernel.dylib                 0x19858d84c __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x1985ca638 _pthread_cond_wait + 1232
2   libglib-2.0.0.dylib                    0x10607dee4 g_cond_wait + 44
3   libgstcoreelements.dylib               0x160ebda44 gst_queue_loop + 196
4   libgstreamer-1.0.0.dylib               0x1069c0c04 gst_task_func + 284
5   libglib-2.0.0.dylib                    0x10605ba1c g_thread_pool_thread_proxy + 208
6   libglib-2.0.0.dylib                    0x10605a8d0 g_thread_proxy + 68
7   libsystem_pthread.dylib                0x1985ca06c _pthread_start + 148
8   libsystem_pthread.dylib                0x1985c4e2c thread_start + 8

Thread 17 Crashed:: task0
0   libgstrtsp.dylib                       0x16059e0b8 gst_rtspsrc_update_src_event + 64
1   libgstrtsp.dylib                       0x16059e0b4 gst_rtspsrc_update_src_event + 60
2   libgstrtsp.dylib                       0x16059ced8 gst_rtspsrc_handle_src_sink_event + 48
3   libgstreamer-1.0.0.dylib               0x106993d04 gst_pad_send_event_unchecked + 656
4   libgstreamer-1.0.0.dylib               0x106993454 gst_pad_push_event_unchecked + 352
5   libgstreamer-1.0.0.dylib               0x10699651c push_sticky + 268
6   libgstreamer-1.0.0.dylib               0x10698f4d8 events_foreach + 136
7   libgstreamer-1.0.0.dylib               0x106990224 check_sticky + 104
8   libgstreamer-1.0.0.dylib               0x106993058 gst_pad_push_event + 528
9   libgstrtsp.dylib                       0x16059e2f0 gst_rtspsrc_stream_push_event + 184
10  libgstrtsp.dylib                       0x1605a0634 gst_rtspsrc_handle_data + 604
11  libgstrtsp.dylib                       0x1605a2290 gst_rtspsrc_thread + 3252
12  libgstreamer-1.0.0.dylib               0x1069c0c04 gst_task_func + 284
13  libglib-2.0.0.dylib                    0x10605ba1c g_thread_pool_thread_proxy + 208
14  libglib-2.0.0.dylib                    0x10605a8d0 g_thread_proxy + 68
15  libsystem_pthread.dylib                0x1985ca06c _pthread_start + 148
16  libsystem_pthread.dylib                0x1985c4e2c thread_start + 8

Thread 17 crashed with ARM Thread State (64-bit):
    x0: 0x00000001129bfad0   x1: 0x00000001226058a0   x2: 0x000000012307d8a0   x3: 0x0000000000000000
    x4: 0xffffffffffffffb0   x5: 0x0000000000000020   x6: 0x000000012307d8a0   x7: 0x000000004fb781ce
    x8: 0x0000000000000002   x9: 0x00000001060939e8  x10: 0x0000000106011d78  x11: 0x000000000000000d
   x12: 0x0000000000000120  x13: 0x0000000000000000  x14: 0x0000000000000002  x15: 0x000000009e809ffb
   x16: 0x00000001984136a4  x17: 0x000000009e809ffb  x18: 0x0000000000000000  x19: 0x0000000000000000
   x20: 0x000000012307d8a0  x21: 0x00000001226058a0  x22: 0x00000001129bfad0  x23: 0x0000000000000000
   x24: 0x000000016059cea8  x25: 0x0000000106a1a5e4  x26: 0x000000000000280e  x27: 0x0000000000000000
   x28: 0x00006000001da100   fp: 0x0000000171d468a0   lr: 0x000000016059e0b4
    sp: 0x0000000171d46860   pc: 0x000000016059e0b8 cpsr: 0x80001000
   far: 0x00000000000004b0  esr: 0x92000006 (Data Abort) byte read Translation fault

Binary Images:
       0x198589000 -        0x1985c2feb libsystem_kernel.dylib (*) <6b682e21-fd96-3a5a-8260-fce367258252> /usr/lib/system/libsystem_kernel.dylib
       0x106000000 -        0x1060e7fff libglib-2.0.0.dylib (*) <955aa9c3-6ef4-3f97-af31-8dc9ed860550> /opt/homebrew/*/libglib-2.0.0.dylib
       0x1a7555000 -        0x1a756666f libffi.dylib (*) <90acf4ef-a8db-3dc9-b4c8-a4ad00f3f50d> /usr/lib/libffi.dylib
       0x1055cc000 -        0x1055fbfff _gi.cpython-39-darwin.so (*) <eb6aec31-6801-3c64-9392-e3940310691f> /opt/homebrew/*/_gi.cpython-39-darwin.so
       0x102bf0000 -        0x102eabfff org.python.python (3.9.16, (c) 2001-2021 Python Software Foundation.) <7397b7d9-a63d-3cea-af3d-c47e9ebde96f> /opt/homebrew/*/Python.framework/Versions/3.9/Python
       0x19829a000 -        0x198324ba3 dyld (*) <fe8a9d9e-f65d-34ca-942c-175b99c0601b> /usr/lib/dyld
       0x1985c3000 -        0x1985cfffb libsystem_pthread.dylib (*) <9f3b729a-ed04-3e65-adac-d75ad06ebbdc> /usr/lib/system/libsystem_pthread.dylib
       0x103b00000 -        0x103b07fff select.cpython-39-darwin.so (*) <e061db6c-bbcb-3130-89d4-3c5a86216020> /opt/homebrew/*/Python.framework/Versions/3.9/lib/python3.9/lib-dynload/select.cpython-39-darwin.so
       0x1066ec000 -        0x1066effff _queue.cpython-39-darwin.so (*) <4a40cc4c-a861-323a-9538-3b2608d60e96> /opt/homebrew/*/Python.framework/Versions/3.9/lib/python3.9/lib-dynload/_queue.cpython-39-darwin.so
       0x113000000 -        0x1143bffff libopenblas64_.0.dylib (*) <6b8373ed-7142-34ea-9b4b-9f502e8a6f33> /opt/homebrew/*/libopenblas64_.0.dylib
       0x160e88000 -        0x160ed3fff libgstcoreelements.dylib (*) <f3467017-7a2d-3417-a7e0-09ad715d05ae> /opt/homebrew/*/libgstcoreelements.dylib
       0x106938000 -        0x106a0ffff libgstreamer-1.0.0.dylib (*) <b563a2f2-5923-3524-851e-6a3b09646005> /opt/homebrew/*/libgstreamer-1.0.0.dylib
       0x160588000 -        0x1605abfff libgstrtsp.dylib (*) <93fab2b3-19ca-375f-bc55-7ab27e00b0e8> /opt/homebrew/*/libgstrtsp.dylib
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=1.1G resident=0K(0%) swapped_out_or_unallocated=1.1G(100%)
Writable regions: Total=1.9G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.9G(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                   256K        1 
Kernel Alloc Once                   32K        1 
MALLOC                           264.2M       33 
MALLOC guard page                   96K        5 
MALLOC_MEDIUM (reserved)         960.0M        8         reserved VM address space (unallocated)
MALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)
STACK GUARD                        288K       18 
Stack                             87.0M       18 
VM_ALLOCATE                      111.3M       65 
VM_ALLOCATE (reserved)           160.0M        3         reserved VM address space (unallocated)
__AUTH                             605K      144 
__AUTH_CONST                      11.3M      288 
__DATA                            18.3M      438 
__DATA_CONST                      18.4M      443 
__DATA_DIRTY                       775K      106 
__FONT_DATA                        2352        1 
__LINKEDIT                       789.3M      155 
__OBJC_CONST                      1380K      119 
__OBJC_RO                         65.5M        1 
__OBJC_RW                         1988K        1 
__TEXT                           319.7M      457 
dyld private memory                256K        1 
mapped file                        816K        8 
shared memory                       64K        4 
===========                     =======  ======= 
TOTAL                              3.1G     2319 
TOTAL, minus reserved VM space     1.7G     2319 

-----------
Full Report
-----------

{"app_name":"Python","timestamp":"2023-02-02 18:34:18.00 +0100","app_version":"3.9.16","slice_uuid":"9afd964b-c386-32f8-9d4e-89c8e14bb5fa","build_version":"3.9.16","platform":1,"bundleID":"org.python.python","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 13.2 (22D49)","roots_installed":0,"name":"Python","incident_id":"9842E63E-37EA-4884-BA8E-5884B8A4370F"}
{
  "uptime" : 880,
  "procRole" : "Unspecified",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "Macmini9,1",
  "coalitionID" : 501,
  "osVersion" : {
    "train" : "macOS 13.2",
    "build" : "22D49",
    "releaseType" : "User"
  },
  "captureTime" : "2023-02-02 18:34:18.3033 +0100",
  "incident" : "9842E63E-37EA-4884-BA8E-5884B8A4370F",
  "pid" : 1962,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2023-02-02 18:34:14.4962 +0100",
  "procStartAbsTime" : 21091065681,
  "procExitAbsTime" : 21182413908,
  "procName" : "Python",
  "procPath" : "\/opt\/homebrew\/*\/Python.framework\/Versions\/3.9\/Resources\/Python.app\/Contents\/MacOS\/Python",
  "bundleInfo" : {"CFBundleShortVersionString":"3.9.16","CFBundleVersion":"3.9.16","CFBundleIdentifier":"org.python.python"},
  "storeInfo" : {"deviceIdentifierForVendor":"F34E6EA5-2E84-5BDC-B22A-E2989C8D3B05","thirdParty":true},
  "parentProc" : "node",
  "parentPid" : 1945,
  "coalitionName" : "app.scrypted.server",
  "crashReporterKey" : "13AC0E1E-9432-4F41-B2F0-44C4174186B4",
  "responsiblePid" : 433,
  "responsibleProc" : "node",
  "sip" : "enabled",
  "vmRegionInfo" : "0x4b0 is not in any region.  Bytes before following region: 105553518918480\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      MALLOC_NANO (reserved)   600018000000-600020000000 [128.0M] rw-\/rwx SM=NUL  ...(unallocated)",
  "exception" : {"codes":"0x0000000000000001, 0x00000000000004b0","rawCodes":[1,1200],"type":"EXC_BAD_ACCESS","signal":"SIGSEGV","subtype":"KERN_INVALID_ADDRESS at 0x00000000000004b0"},
  "termination" : {"flags":0,"code":11,"namespace":"SIGNAL","indicator":"Segmentation fault: 11","byProc":"exc handler","byPid":1962},
  "vmregioninfo" : "0x4b0 is not in any region.  Bytes before following region: 105553518918480\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      MALLOC_NANO (reserved)   600018000000-600020000000 [128.0M] rw-\/rwx SM=NUL  ...(unallocated)",
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 17,
  "threads" : [{"id":19172,"queue":"com.apple.main-thread","frames":[{"imageOffset":49456,"symbol":"__select","symbolLocation":8,"imageIndex":0},{"imageOffset":274492,"symbol":"g_poll","symbolLocation":424,"imageIndex":1},{"imageOffset":221664,"symbol":"g_main_context_iterate","symbolLocation":340,"imageIndex":1},{"imageOffset":222560,"symbol":"g_main_loop_run","symbolLocation":268,"imageIndex":1},{"imageOffset":32848,"symbol":"ffi_call_SYSV","symbolLocation":80,"imageIndex":2},{"imageOffset":68340,"symbol":"ffi_call_int","symbolLocation":1208,"imageIndex":2},{"imageOffset":122244,"symbol":"pygi_invoke_c_callable","symbolLocation":1864,"imageIndex":3},{"imageOffset":125912,"symbol":"pygi_function_cache_invoke","symbolLocation":52,"imageIndex":3},{"imageOffset":75492,"symbol":"_callable_info_call","symbolLocation":196,"imageIndex":3},{"imageOffset":363084,"symbol":"_PyObject_MakeTpCall","symbolLocation":132,"imageIndex":4},{"imageOffset":1377432,"symbol":"call_function","symbolLocation":268,"imageIndex":4},{"imageOffset":1351128,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":23044,"imageIndex":4},{"imageOffset":1323988,"symbol":"_PyEval_EvalCode","symbolLocation":452,"imageIndex":4},{"imageOffset":366136,"symbol":"_PyFunction_Vectorcall","symbolLocation":344,"imageIndex":4},{"imageOffset":1377292,"symbol":"call_function","symbolLocation":128,"imageIndex":4},{"imageOffset":1347040,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":18956,"imageIndex":4},{"imageOffset":1323988,"symbol":"_PyEval_EvalCode","symbolLocation":452,"imageIndex":4},{"imageOffset":1681868,"symbol":"run_eval_code_obj","symbolLocation":136,"imageIndex":4},{"imageOffset":1681660,"symbol":"run_mod","symbolLocation":112,"imageIndex":4},{"imageOffset":1670944,"symbol":"pyrun_file","symbolLocation":168,"imageIndex":4},{"imageOffset":1669184,"symbol":"pyrun_simple_file","symbolLocation":252,"imageIndex":4},{"imageOffset":1668868,"symbol":"PyRun_SimpleFileExFlags","symbolLocation":80,"imageIndex":4},{"imageOffset":1803468,"symbol":"pymain_run_file","symbolLocation":320,"imageIndex":4},{"imageOffset":1801228,"symbol":"Py_RunMain","symbolLocation":876,"imageIndex":4},{"imageOffset":1806560,"symbol":"Py_BytesMain","symbolLocation":40,"imageIndex":4},{"imageOffset":24144,"symbol":"start","symbolLocation":2544,"imageIndex":5}]},{"id":19217,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":6}]},{"id":19218,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":6}]},{"id":19221,"frames":[{"imageOffset":29076,"symbol":"kevent","symbolLocation":8,"imageIndex":0},{"imageOffset":20296,"symbol":"select_kqueue_control_impl","symbolLocation":760,"imageIndex":7},{"imageOffset":415176,"symbol":"method_vectorcall_FASTCALL","symbolLocation":104,"imageIndex":4},{"imageOffset":1377292,"symbol":"call_function","symbolLocation":128,"imageIndex":4},{"imageOffset":1347040,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":18956,"imageIndex":4},{"imageOffset":1323988,"symbol":"_PyEval_EvalCode","symbolLocation":452,"imageIndex":4},{"imageOffset":366136,"symbol":"_PyFunction_Vectorcall","symbolLocation":344,"imageIndex":4},{"imageOffset":1377292,"symbol":"call_function","symbolLocation":128,"imageIndex":4},{"imageOffset":1347040,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":18956,"imageIndex":4},{"imageOffset":365976,"symbol":"_PyFunction_Vectorcall","symbolLocation":184,"imageIndex":4},{"imageOffset":1377292,"symbol":"call_function","symbolLocation":128,"imageIndex":4},{"imageOffset":1347040,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":18956,"imageIndex":4},{"imageOffset":365976,"symbol":"_PyFunction_Vectorcall","symbolLocation":184,"imageIndex":4},{"imageOffset":1377292,"symbol":"call_function","symbolLocation":128,"imageIndex":4},{"imageOffset":1347040,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":18956,"imageIndex":4},{"imageOffset":365976,"symbol":"_PyFunction_Vectorcall","symbolLocation":184,"imageIndex":4},{"imageOffset":1377292,"symbol":"call_function","symbolLocation":128,"imageIndex":4},{"imageOffset":1347040,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":18956,"imageIndex":4},{"imageOffset":1323988,"symbol":"_PyEval_EvalCode","symbolLocation":452,"imageIndex":4},{"imageOffset":366136,"symbol":"_PyFunction_Vectorcall","symbolLocation":344,"imageIndex":4},{"imageOffset":1330480,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":2396,"imageIndex":4},{"imageOffset":365976,"symbol":"_PyFunction_Vectorcall","symbolLocation":184,"imageIndex":4},{"imageOffset":1377292,"symbol":"call_function","symbolLocation":128,"imageIndex":4},{"imageOffset":1347040,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":18956,"imageIndex":4},{"imageOffset":365976,"symbol":"_PyFunction_Vectorcall","symbolLocation":184,"imageIndex":4},{"imageOffset":1377292,"symbol":"call_function","symbolLocation":128,"imageIndex":4},{"imageOffset":1347040,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":18956,"imageIndex":4},{"imageOffset":365976,"symbol":"_PyFunction_Vectorcall","symbolLocation":184,"imageIndex":4},{"imageOffset":377112,"symbol":"method_vectorcall","symbolLocation":388,"imageIndex":4},{"imageOffset":2130828,"symbol":"t_bootstrap","symbolLocation":120,"imageIndex":4},{"imageOffset":1736324,"symbol":"pythread_wrapper","symbolLocation":48,"imageIndex":4},{"imageOffset":28780,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":7724,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"id":19226,"frames":[{"imageOffset":7180,"symbol":"read","symbolLocation":8,"imageIndex":0},{"imageOffset":1796072,"symbol":"_Py_read","symbolLocation":116,"imageIndex":4},{"imageOffset":2165356,"symbol":"_io_FileIO_readinto","symbolLocation":128,"imageIndex":4},{"imageOffset":414216,"symbol":"method_vectorcall_O","symbolLocation":108,"imageIndex":4},{"imageOffset":369848,"symbol":"PyObject_VectorcallMethod","symbolLocation":136,"imageIndex":4},{"imageOffset":2199416,"symbol":"_bufferedreader_raw_read","symbolLocation":144,"imageIndex":4},{"imageOffset":2199244,"symbol":"_bufferedreader_fill_buffer","symbolLocation":64,"imageIndex":4},{"imageOffset":2187752,"symbol":"_io__Buffered_read","symbolLocation":1068,"imageIndex":4},{"imageOffset":690548,"symbol":"cfunction_vectorcall_FASTCALL","symbolLocation":88,"imageIndex":4},{"imageOffset":2014256,"symbol":"partial_vectorcall","symbolLocation":384,"imageIndex":4},{"imageOffset":1330480,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":2396,"imageIndex":4},{"imageOffset":365976,"symbol":"_PyFunction_Vectorcall","symbolLocation":184,"imageIndex":4},{"imageOffset":1377292,"symbol":"call_function","symbolLocation":128,"imageIndex":4},{"imageOffset":1347040,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":18956,"imageIndex":4},{"imageOffset":365976,"symbol":"_PyFunction_Vectorcall","symbolLocation":184,"imageIndex":4},{"imageOffset":1330480,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":2396,"imageIndex":4},{"imageOffset":365976,"symbol":"_PyFunction_Vectorcall","symbolLocation":184,"imageIndex":4},{"imageOffset":1377292,"symbol":"call_function","symbolLocation":128,"imageIndex":4},{"imageOffset":1347040,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":18956,"imageIndex":4},{"imageOffset":365976,"symbol":"_PyFunction_Vectorcall","symbolLocation":184,"imageIndex":4},{"imageOffset":1377292,"symbol":"call_function","symbolLocation":128,"imageIndex":4},{"imageOffset":1347040,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":18956,"imageIndex":4},{"imageOffset":365976,"symbol":"_PyFunction_Vectorcall","symbolLocation":184,"imageIndex":4},{"imageOffset":377112,"symbol":"method_vectorcall","symbolLocation":388,"imageIndex":4},{"imageOffset":2130828,"symbol":"t_bootstrap","symbolLocation":120,"imageIndex":4},{"imageOffset":1736324,"symbol":"pythread_wrapper","symbolLocation":48,"imageIndex":4},{"imageOffset":28780,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":7724,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"id":19256,"frames":[{"imageOffset":18508,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30264,"symbol":"_pthread_cond_wait","symbolLocation":1232,"imageIndex":6},{"imageOffset":1737268,"symbol":"PyThread_acquire_lock_timed","symbolLocation":324,"imageIndex":4},{"imageOffset":13820,"symbol":"_queue_SimpleQueue_get_impl","symbolLocation":216,"imageIndex":8},{"imageOffset":12960,"symbol":"_queue_SimpleQueue_get","symbolLocation":204,"imageIndex":8},{"imageOffset":690372,"symbol":"cfunction_vectorcall_FASTCALL_KEYWORDS","symbolLocation":84,"imageIndex":4},{"imageOffset":1377292,"symbol":"call_function","symbolLocation":128,"imageIndex":4},{"imageOffset":1345088,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":17004,"imageIndex":4},{"imageOffset":365976,"symbol":"_PyFunction_Vectorcall","symbolLocation":184,"imageIndex":4},{"imageOffset":1330480,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":2396,"imageIndex":4},{"imageOffset":365976,"symbol":"_PyFunction_Vectorcall","symbolLocation":184,"imageIndex":4},{"imageOffset":1377292,"symbol":"call_function","symbolLocation":128,"imageIndex":4},{"imageOffset":1347040,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":18956,"imageIndex":4},{"imageOffset":365976,"symbol":"_PyFunction_Vectorcall","symbolLocation":184,"imageIndex":4},{"imageOffset":1377292,"symbol":"call_function","symbolLocation":128,"imageIndex":4},{"imageOffset":1347040,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":18956,"imageIndex":4},{"imageOffset":365976,"symbol":"_PyFunction_Vectorcall","symbolLocation":184,"imageIndex":4},{"imageOffset":377112,"symbol":"method_vectorcall","symbolLocation":388,"imageIndex":4},{"imageOffset":2130828,"symbol":"t_bootstrap","symbolLocation":120,"imageIndex":4},{"imageOffset":1736324,"symbol":"pythread_wrapper","symbolLocation":48,"imageIndex":4},{"imageOffset":28780,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":7724,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"id":19257,"frames":[{"imageOffset":18508,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30264,"symbol":"_pthread_cond_wait","symbolLocation":1232,"imageIndex":6},{"imageOffset":1481568,"symbol":"blas_thread_server","symbolLocation":360,"imageIndex":9},{"imageOffset":28780,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":7724,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"id":19258,"frames":[{"imageOffset":18508,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30264,"symbol":"_pthread_cond_wait","symbolLocation":1232,"imageIndex":6},{"imageOffset":1481568,"symbol":"blas_thread_server","symbolLocation":360,"imageIndex":9},{"imageOffset":28780,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":7724,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"id":19259,"frames":[{"imageOffset":18508,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30264,"symbol":"_pthread_cond_wait","symbolLocation":1232,"imageIndex":6},{"imageOffset":1481568,"symbol":"blas_thread_server","symbolLocation":360,"imageIndex":9},{"imageOffset":28780,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":7724,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"id":19260,"frames":[{"imageOffset":18508,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30264,"symbol":"_pthread_cond_wait","symbolLocation":1232,"imageIndex":6},{"imageOffset":1481568,"symbol":"blas_thread_server","symbolLocation":360,"imageIndex":9},{"imageOffset":28780,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":7724,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"id":19261,"frames":[{"imageOffset":18508,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30264,"symbol":"_pthread_cond_wait","symbolLocation":1232,"imageIndex":6},{"imageOffset":1481568,"symbol":"blas_thread_server","symbolLocation":360,"imageIndex":9},{"imageOffset":28780,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":7724,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"id":19262,"frames":[{"imageOffset":18508,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30264,"symbol":"_pthread_cond_wait","symbolLocation":1232,"imageIndex":6},{"imageOffset":1481568,"symbol":"blas_thread_server","symbolLocation":360,"imageIndex":9},{"imageOffset":28780,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":7724,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"id":19263,"frames":[{"imageOffset":18508,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30264,"symbol":"_pthread_cond_wait","symbolLocation":1232,"imageIndex":6},{"imageOffset":1481568,"symbol":"blas_thread_server","symbolLocation":360,"imageIndex":9},{"imageOffset":28780,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":7724,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"id":19295,"frames":[{"imageOffset":29076,"symbol":"kevent","symbolLocation":8,"imageIndex":0},{"imageOffset":20296,"symbol":"select_kqueue_control_impl","symbolLocation":760,"imageIndex":7},{"imageOffset":415176,"symbol":"method_vectorcall_FASTCALL","symbolLocation":104,"imageIndex":4},{"imageOffset":1377292,"symbol":"call_function","symbolLocation":128,"imageIndex":4},{"imageOffset":1347040,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":18956,"imageIndex":4},{"imageOffset":1323988,"symbol":"_PyEval_EvalCode","symbolLocation":452,"imageIndex":4},{"imageOffset":366136,"symbol":"_PyFunction_Vectorcall","symbolLocation":344,"imageIndex":4},{"imageOffset":1377292,"symbol":"call_function","symbolLocation":128,"imageIndex":4},{"imageOffset":1347040,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":18956,"imageIndex":4},{"imageOffset":365976,"symbol":"_PyFunction_Vectorcall","symbolLocation":184,"imageIndex":4},{"imageOffset":1377292,"symbol":"call_function","symbolLocation":128,"imageIndex":4},{"imageOffset":1347040,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":18956,"imageIndex":4},{"imageOffset":365976,"symbol":"_PyFunction_Vectorcall","symbolLocation":184,"imageIndex":4},{"imageOffset":1377292,"symbol":"call_function","symbolLocation":128,"imageIndex":4},{"imageOffset":1347040,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":18956,"imageIndex":4},{"imageOffset":365976,"symbol":"_PyFunction_Vectorcall","symbolLocation":184,"imageIndex":4},{"imageOffset":1377292,"symbol":"call_function","symbolLocation":128,"imageIndex":4},{"imageOffset":1347040,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":18956,"imageIndex":4},{"imageOffset":365976,"symbol":"_PyFunction_Vectorcall","symbolLocation":184,"imageIndex":4},{"imageOffset":377112,"symbol":"method_vectorcall","symbolLocation":388,"imageIndex":4},{"imageOffset":1330480,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":2396,"imageIndex":4},{"imageOffset":365976,"symbol":"_PyFunction_Vectorcall","symbolLocation":184,"imageIndex":4},{"imageOffset":1377292,"symbol":"call_function","symbolLocation":128,"imageIndex":4},{"imageOffset":1347040,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":18956,"imageIndex":4},{"imageOffset":365976,"symbol":"_PyFunction_Vectorcall","symbolLocation":184,"imageIndex":4},{"imageOffset":1377292,"symbol":"call_function","symbolLocation":128,"imageIndex":4},{"imageOffset":1347040,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":18956,"imageIndex":4},{"imageOffset":365976,"symbol":"_PyFunction_Vectorcall","symbolLocation":184,"imageIndex":4},{"imageOffset":377112,"symbol":"method_vectorcall","symbolLocation":388,"imageIndex":4},{"imageOffset":2130828,"symbol":"t_bootstrap","symbolLocation":120,"imageIndex":4},{"imageOffset":1736324,"symbol":"pythread_wrapper","symbolLocation":48,"imageIndex":4},{"imageOffset":28780,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":7724,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"id":19296,"name":"pool-spawner","frames":[{"imageOffset":18508,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30264,"symbol":"_pthread_cond_wait","symbolLocation":1232,"imageIndex":6},{"imageOffset":515812,"symbol":"g_cond_wait","symbolLocation":44,"imageIndex":1},{"imageOffset":41800,"symbol":"g_async_queue_pop_intern_unlocked","symbolLocation":116,"imageIndex":1},{"imageOffset":372252,"symbol":"g_thread_pool_spawn_thread","symbolLocation":124,"imageIndex":1},{"imageOffset":370896,"symbol":"g_thread_proxy","symbolLocation":68,"imageIndex":1},{"imageOffset":28780,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":7724,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"id":19297,"name":"queue1:src","frames":[{"imageOffset":18508,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30264,"symbol":"_pthread_cond_wait","symbolLocation":1232,"imageIndex":6},{"imageOffset":515812,"symbol":"g_cond_wait","symbolLocation":44,"imageIndex":1},{"imageOffset":219716,"symbol":"gst_queue_loop","symbolLocation":196,"imageIndex":10},{"imageOffset":560132,"symbol":"gst_task_func","symbolLocation":284,"imageIndex":11},{"imageOffset":375324,"symbol":"g_thread_pool_thread_proxy","symbolLocation":208,"imageIndex":1},{"imageOffset":370896,"symbol":"g_thread_proxy","symbolLocation":68,"imageIndex":1},{"imageOffset":28780,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":7724,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"id":19298,"name":"queue0:src","frames":[{"imageOffset":18508,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":30264,"symbol":"_pthread_cond_wait","symbolLocation":1232,"imageIndex":6},{"imageOffset":515812,"symbol":"g_cond_wait","symbolLocation":44,"imageIndex":1},{"imageOffset":219716,"symbol":"gst_queue_loop","symbolLocation":196,"imageIndex":10},{"imageOffset":560132,"symbol":"gst_task_func","symbolLocation":284,"imageIndex":11},{"imageOffset":375324,"symbol":"g_thread_pool_thread_proxy","symbolLocation":208,"imageIndex":1},{"imageOffset":370896,"symbol":"g_thread_proxy","symbolLocation":68,"imageIndex":1},{"imageOffset":28780,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":7724,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"triggered":true,"id":19299,"name":"task0","threadState":{"x":[{"value":4607179472},{"value":4871706784},{"value":4882684064},{"value":0},{"value":18446744073709551536},{"value":32},{"value":4882684064},{"value":1337426382},{"value":2},{"value":4396235240,"symbolLocation":488,"symbol":"mime_base64_rank"},{"value":4395703672,"symbolLocation":120,"symbol":"g_checksum_reset"},{"value":13},{"value":288},{"value":0},{"value":2},{"value":2659229691},{"value":6849377956,"symbolLocation":0,"symbol":"free"},{"value":2659229691},{"value":0},{"value":0},{"value":4882684064},{"value":4871706784},{"value":4607179472},{"value":0},{"value":5911465640,"symbolLocation":0,"symbol":"gst_rtspsrc_handle_src_sink_event"},{"value":4406224356,"symbolLocation":0,"symbol":"_gst_debug_min"},{"value":10254},{"value":0},{"value":105553118208256}],"flavor":"ARM_THREAD_STATE64","lr":{"value":5911470260},"cpsr":{"value":2147487744},"fp":{"value":6204713120},"sp":{"value":6204713056},"esr":{"value":2449473542,"description":"(Data Abort) byte read Translation fault"},"pc":{"value":5911470264,"matchesCrashFrame":1},"far":{"value":1200}},"frames":[{"imageOffset":90296,"symbol":"gst_rtspsrc_update_src_event","symbolLocation":64,"imageIndex":12},{"imageOffset":90292,"symbol":"gst_rtspsrc_update_src_event","symbolLocation":60,"imageIndex":12},{"imageOffset":85720,"symbol":"gst_rtspsrc_handle_src_sink_event","symbolLocation":48,"imageIndex":12},{"imageOffset":376068,"symbol":"gst_pad_send_event_unchecked","symbolLocation":656,"imageIndex":11},{"imageOffset":373844,"symbol":"gst_pad_push_event_unchecked","symbolLocation":352,"imageIndex":11},{"imageOffset":386332,"symbol":"push_sticky","symbolLocation":268,"imageIndex":11},{"imageOffset":357592,"symbol":"events_foreach","symbolLocation":136,"imageIndex":11},{"imageOffset":360996,"symbol":"check_sticky","symbolLocation":104,"imageIndex":11},{"imageOffset":372824,"symbol":"gst_pad_push_event","symbolLocation":528,"imageIndex":11},{"imageOffset":90864,"symbol":"gst_rtspsrc_stream_push_event","symbolLocation":184,"imageIndex":12},{"imageOffset":99892,"symbol":"gst_rtspsrc_handle_data","symbolLocation":604,"imageIndex":12},{"imageOffset":107152,"symbol":"gst_rtspsrc_thread","symbolLocation":3252,"imageIndex":12},{"imageOffset":560132,"symbol":"gst_task_func","symbolLocation":284,"imageIndex":11},{"imageOffset":375324,"symbol":"g_thread_pool_thread_proxy","symbolLocation":208,"imageIndex":1},{"imageOffset":370896,"symbol":"g_thread_proxy","symbolLocation":68,"imageIndex":1},{"imageOffset":28780,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":7724,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6850908160,
    "size" : 237548,
    "uuid" : "6b682e21-fd96-3a5a-8260-fce367258252",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4395630592,
    "size" : 950272,
    "uuid" : "955aa9c3-6ef4-3f97-af31-8dc9ed860550",
    "path" : "\/opt\/homebrew\/*\/libglib-2.0.0.dylib",
    "name" : "libglib-2.0.0.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7102353408,
    "size" : 71280,
    "uuid" : "90acf4ef-a8db-3dc9-b4c8-a4ad00f3f50d",
    "path" : "\/usr\/lib\/libffi.dylib",
    "name" : "libffi.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4384931840,
    "size" : 196608,
    "uuid" : "eb6aec31-6801-3c64-9392-e3940310691f",
    "path" : "\/opt\/homebrew\/*\/_gi.cpython-39-darwin.so",
    "name" : "_gi.cpython-39-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4341039104,
    "CFBundleShortVersionString" : "3.9.16, (c) 2001-2021 Python Software Foundation.",
    "CFBundleIdentifier" : "org.python.python",
    "size" : 2867200,
    "uuid" : "7397b7d9-a63d-3cea-af3d-c47e9ebde96f",
    "path" : "\/opt\/homebrew\/*\/Python.framework\/Versions\/3.9\/Python",
    "name" : "Python",
    "CFBundleVersion" : "3.9.16"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6847832064,
    "size" : 568228,
    "uuid" : "fe8a9d9e-f65d-34ca-942c-175b99c0601b",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6851145728,
    "size" : 53244,
    "uuid" : "9f3b729a-ed04-3e65-adac-d75ad06ebbdc",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4356833280,
    "size" : 32768,
    "uuid" : "e061db6c-bbcb-3130-89d4-3c5a86216020",
    "path" : "\/opt\/homebrew\/*\/Python.framework\/Versions\/3.9\/lib\/python3.9\/lib-dynload\/select.cpython-39-darwin.so",
    "name" : "select.cpython-39-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4402888704,
    "size" : 16384,
    "uuid" : "4a40cc4c-a861-323a-9538-3b2608d60e96",
    "path" : "\/opt\/homebrew\/*\/Python.framework\/Versions\/3.9\/lib\/python3.9\/lib-dynload\/_queue.cpython-39-darwin.so",
    "name" : "_queue.cpython-39-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4613734400,
    "size" : 20709376,
    "uuid" : "6b8373ed-7142-34ea-9b4b-9f502e8a6f33",
    "path" : "\/opt\/homebrew\/*\/libopenblas64_.0.dylib",
    "name" : "libopenblas64_.0.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 5920817152,
    "size" : 311296,
    "uuid" : "f3467017-7a2d-3417-a7e0-09ad715d05ae",
    "path" : "\/opt\/homebrew\/*\/libgstcoreelements.dylib",
    "name" : "libgstcoreelements.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4405297152,
    "size" : 884736,
    "uuid" : "b563a2f2-5923-3524-851e-6a3b09646005",
    "path" : "\/opt\/homebrew\/*\/libgstreamer-1.0.0.dylib",
    "name" : "libgstreamer-1.0.0.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 5911379968,
    "size" : 147456,
    "uuid" : "93fab2b3-19ca-375f-bc55-7ab27e00b0e8",
    "path" : "\/opt\/homebrew\/*\/libgstrtsp.dylib",
    "name" : "libgstrtsp.dylib"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  }
],
  "sharedCache" : {
  "base" : 6847184896,
  "size" : 3447406592,
  "uuid" : "3366b98c-6b8a-3546-8233-dc167320439f"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=1.1G resident=0K(0%) swapped_out_or_unallocated=1.1G(100%)\nWritable regions: Total=1.9G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.9G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nActivity Tracing                   256K        1 \nKernel Alloc Once                   32K        1 \nMALLOC                           264.2M       33 \nMALLOC guard page                   96K        5 \nMALLOC_MEDIUM (reserved)         960.0M        8         reserved VM address space (unallocated)\nMALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)\nSTACK GUARD                        288K       18 \nStack                             87.0M       18 \nVM_ALLOCATE                      111.3M       65 \nVM_ALLOCATE (reserved)           160.0M        3         reserved VM address space (unallocated)\n__AUTH                             605K      144 \n__AUTH_CONST                      11.3M      288 \n__DATA                            18.3M      438 \n__DATA_CONST                      18.4M      443 \n__DATA_DIRTY                       775K      106 \n__FONT_DATA                        2352        1 \n__LINKEDIT                       789.3M      155 \n__OBJC_CONST                      1380K      119 \n__OBJC_RO                         65.5M        1 \n__OBJC_RW                         1988K        1 \n__TEXT                           319.7M      457 \ndyld private memory                256K        1 \nmapped file                        816K        8 \nshared memory                       64K        4 \n===========                     =======  ======= \nTOTAL                              3.1G     2319 \nTOTAL, minus reserved VM space     1.7G     2319 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "name" : "task0"
  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "5fb4245a1bbfe8005e33a1e1",
      "factorPackIds" : {

      },
      "deploymentId" : 240000021
    },
    {
      "rolloutId" : "61fd92db295c182621ececc3",
      "factorPackIds" : {

      },
      "deploymentId" : 240000293
    }
  ],
  "experiments" : [

  ]
}
}
koush commented 1 year ago

Scrypted does use python for opencv and tensorflow. If python is crashing, this is gstreamer or something segfaulting. There's nothing I can do to fix this. It's an upstream problem. Only happens on Mac.

dawiinci commented 1 year ago

I can confirm it is OpenCV plugin. If I disable it, it works.

What can I do though?

mtan93 commented 1 year ago

Also experiencing the same issue here.

dawiinci commented 1 year ago

Why isn't opencv using Python 3.10? Maybe that's the issue here.

askjano commented 1 year ago

from the discord channel:

https://discord.com/channels/882329362295316500/894052368302354483/1071461098848518255

lumino has a temporary workaround

dawiinci commented 1 year ago

Do you mind adding the workaround here?

askjano commented 1 year ago

the issue is related to the gstreamer 1.22.0 release and the related components (gst-plugins and gstpython) you need to downgrade your gstreamer components back to the 1.20.x release and unlink the existing gstreamer 1.22.0 install. steps below for installing via brew

unlink the existing gstreamer and components in brew

brew unlink gstreamer
brew unlink gst-python
brew unlink gst-plugins-ugly
brew unlink gst-plugins-good
brew unlink gst-plugins-base
brew unlink gst-plugins-bad

download the previous releases and install them.

curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/49a8667f0c1a6579fe887bc0fa1c0ce682eb01c8/Formula/gstreamer.rb && brew install ./gstreamer.rb
curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/49a8667f0c1a6579fe887bc0fa1c0ce682eb01c8/Formula/gst-python.rb && brew install ./gst-python.rb
curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/49a8667f0c1a6579fe887bc0fa1c0ce682eb01c8/Formula/gst-plugins-ugly.rb && brew install ./gst-plugins-ugly.rb
curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/49a8667f0c1a6579fe887bc0fa1c0ce682eb01c8/Formula/gst-plugins-good.rb && brew install ./gst-plugins-good.rb
curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/49a8667f0c1a6579fe887bc0fa1c0ce682eb01c8/Formula/gst-plugins-base.rb && brew install ./gst-plugins-base.rb
curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/49a8667f0c1a6579fe887bc0fa1c0ce682eb01c8/Formula/gst-plugins-bad.rb && brew install ./gst-plugins-bad.rb

this will pin the newly installed 1.20.x releases so they will not get overwritten by any updates performed using brew

brew pin gstreamer
brew pin gst-python
brew pin gst-plugins-ugly
brew pin gst-plugins-good
brew pin gst-plugins-base
brew pin gst-plugins-bad

once installed restart scrypted and you should be all set.

credit to lumino from the discord channel

koush commented 1 year ago

I have not upgraded by brew stuff yet, but suspect that the brew gst and/or various plugins are currently busted or incompatible with python or even itself... this is not a scrypted issue, but rather an upstream or distribution error. I may need to pin the brew packages to specific versions in the install script as done in the fix above. Alternatively, I need to remove the python gst binding dependency but that's a lot more involved.

askjano commented 1 year ago

so realistically since its not really koushs problem the easiest solution for now is to do a clean install of homebrew and then run the scrypted installer. once that completes run the steps above in that general order and then restart scrypted. you will have have a working scrypted instance with a working opencv plugin

koush commented 1 year ago

Ok confirmed issue, Python 3.11 does not fix it. This is the current workaround: https://github.com/koush/scrypted/issues/544#issuecomment-1418247949

dawiinci commented 1 year ago

Just for future reference. What do we have to do once this is resolved, to get the latest versions again?

koush commented 1 year ago

I'll update the installer script to unpin/undo the changes.

koush commented 1 year ago

Fixed with this:

https://github.com/koush/scrypted/commit/ffae3f246f9a2f05ec7d8e1addc7f65df577dbdd

and this

https://github.com/koush/scrypted/commit/31b424f89f4576004dfb4d6e3dc3a9444dc0715a

koush commented 1 year ago

not entirely sure why that broke or why that fixed it, but the parameter wasn't really necessary

dawiinci commented 1 year ago

Thanks, is the pinning undone by this update or is there anything I need to do?

koush commented 1 year ago

rerun the script unpin yes