Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gooey Crashes - Segmentation Fault on MacOS when exiting #908

Open
tianshuo opened this issue Mar 27, 2024 · 2 comments
Open

Gooey Crashes - Segmentation Fault on MacOS when exiting #908

tianshuo opened this issue Mar 27, 2024 · 2 comments

Comments

@tianshuo
Copy link

When I exit the program it crashes.

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

Process:               Python [41486]
Path:                  /usr/local/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/Resources/Python.app/Contents/MacOS/Python
Identifier:            org.python.python
Version:               3.12.2 (3.12.2)
Code Type:             X86-64 (Native)
Parent Process:        zsh [98686]
Responsible:           iTerm2 [495]
User ID:               502

Date/Time:             2024-03-27 15:46:41.8339 +0800
OS Version:            macOS 13.3.1 (22E261)
Report Version:        12
Bridge OS Version:     7.5 (20P5058)
Anonymous UUID:        37B44579-1297-7D03-2C58-B8C5F8EDEFF9

Sleep/Wake UUID:       2F113E85-CDED-45FB-88A1-ABF8A4C25A35

Time Awake Since Boot: 110000 seconds
Time Since Wake:       2539 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

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

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

VM Region Info: 0x10 is not in any region.  Bytes before following region: 140737487114224
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      shared memory            7fffffed1000-7fffffed2000 [    4K] r-x/r-x SM=SHM  

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   Python                        	       0x100a881d4 _PyObject_Free + 31
1   siplib.cpython-312-darwin.so  	       0x1008c1cf1 finalise + 177
2   Python                        	       0x1009d9d64 Py_FinalizeEx + 495
3   Python                        	       0x100911f54 Py_Exit + 13
4   Python                        	       0x100970bf1 handle_system_exit + 35
5   Python                        	       0x1009df12f _PyErr_PrintEx + 42
6   _core.cpython-312-darwin.so   	       0x102bbf73e wxPyCallback::EventThunker(wxEvent&) + 270
7   libwx_baseu-3.2.0.2.1.dylib   	       0x1015addad wxEvtHandler::SearchDynamicEventTable(wxEvent&) + 301
8   libwx_baseu-3.2.0.2.1.dylib   	       0x1015adacb wxEvtHandler::ProcessEventLocally(wxEvent&) + 59
9   libwx_baseu-3.2.0.2.1.dylib   	       0x1015ad980 wxEvtHandler::ProcessEvent(wxEvent&) + 96
10  _core.cpython-312-darwin.so   	       0x102d8d559 sipwxPyApp::ProcessEvent(wxEvent&) + 105
11  libwx_baseu-3.2.0.2.1.dylib   	       0x1015ad788 wxEvtHandler::ProcessPendingEvents() + 728
12  libwx_baseu-3.2.0.2.1.dylib   	       0x10149b14a wxAppConsoleBase::ProcessPendingEvents() + 186
13  _core.cpython-312-darwin.so   	       0x102d8d8a1 sipwxPyApp::ProcessPendingEvents() + 97
14  libwx_baseu-3.2.0.2.1.dylib   	       0x101580192 wxCFEventLoop::OSXCommonModeObserverCallBack(__CFRunLoopObserver*, int, void*) + 66
15  CoreFoundation                	    0x7ff80d93a584 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
16  CoreFoundation                	    0x7ff80d93a4ab __CFRunLoopDoObservers + 482
17  CoreFoundation                	    0x7ff80d939a36 __CFRunLoopRun + 859
18  CoreFoundation                	    0x7ff80d939071 CFRunLoopRunSpecific + 560
19  HIToolbox                     	    0x7ff8173a1fcd RunCurrentEventLoopInMode + 292
20  HIToolbox                     	    0x7ff8173a1c14 ReceiveNextEventCommon + 199
21  HIToolbox                     	    0x7ff8173a1b38 _BlockUntilNextEventMatchingListInModeWithFilter + 64
22  AppKit                        	    0x7ff8109cb7a0 _DPSNextEvent + 858
23  AppKit                        	    0x7ff8109ca64a -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1214
24  AppKit                        	    0x7ff8109bccb8 -[NSApplication run] + 586
25  libwx_osx_cocoau_core-3.2.0.2.1.dylib	       0x101ebfffa wxGUIEventLoop::OSXDoRun() + 186
26  libwx_baseu-3.2.0.2.1.dylib   	       0x101580a2d wxCFEventLoop::DoRun() + 29
27  libwx_baseu-3.2.0.2.1.dylib   	       0x1014cc3ce wxEventLoopBase::Run() + 158
28  libwx_baseu-3.2.0.2.1.dylib   	       0x10149a5f3 wxAppConsoleBase::MainLoop() + 99
29  _core.cpython-312-darwin.so   	       0x102d8f541 meth_wxPyApp_MainLoop(_object*, _object*) + 209
30  Python                        	       0x100a68fa7 cfunction_call + 107
31  Python                        	       0x100b1cd75 _PyObject_MakeTpCall + 140
32  Python                        	       0x1009af6f2 _PyEval_EvalFrameDefault + 48655
33  Python                        	       0x1009a378b PyEval_EvalCode + 197
34  Python                        	       0x10090dbea run_eval_code_obj.llvm.3794556486307325143 + 83
35  Python                        	       0x1009df596 run_mod.llvm.3794556486307325143 + 107
36  Python                        	       0x1009df06d pyrun_file + 133
37  Python                        	       0x1009deb9a _PyRun_SimpleFileObject + 287
38  Python                        	       0x10090a040 _PyRun_AnyFileObject + 148
39  Python                        	       0x100abfb81 pymain_run_file_obj + 226
40  Python                        	       0x1009799b5 pymain_run_file + 89
41  Python                        	       0x100abefc1 Py_RunMain + 988
42  Python                        	       0x1009ef4c9 Py_BytesMain + 42
43  dyld                          	    0x7ff80d50541f start + 1903

Thread 1:: com.apple.NSEventThread
0   libsystem_kernel.dylib        	    0x7ff80d8205b2 mach_msg2_trap + 10
1   libsystem_kernel.dylib        	    0x7ff80d82e72d mach_msg2_internal + 78
2   libsystem_kernel.dylib        	    0x7ff80d8275e4 mach_msg_overwrite + 692
3   libsystem_kernel.dylib        	    0x7ff80d82089a mach_msg + 19
4   CoreFoundation                	    0x7ff80d93b1af __CFRunLoopServiceMachPort + 145
5   CoreFoundation                	    0x7ff80d939c30 __CFRunLoopRun + 1365
6   CoreFoundation                	    0x7ff80d939071 CFRunLoopRunSpecific + 560
7   AppKit                        	    0x7ff810b2b909 _NSEventThread + 132
8   libsystem_pthread.dylib       	    0x7ff80d85f1d3 _pthread_start + 125
9   libsystem_pthread.dylib       	    0x7ff80d85abd3 thread_start + 15

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

Thread 3:
0   libsystem_pthread.dylib       	    0x7ff80d85abb0 start_wqthread + 0

Thread 4:
0   libsystem_pthread.dylib       	    0x7ff80d85abb0 start_wqthread + 0

Thread 5:
0   libsystem_pthread.dylib       	    0x7ff80d85abb0 start_wqthread + 0

Thread 6:
0   libsystem_pthread.dylib       	    0x7ff80d85abb0 start_wqthread + 0

Thread 7:
0   libsystem_pthread.dylib       	    0x7ff80d85abb0 start_wqthread + 0


Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000000000000000  rcx: 0x0000600000ea0358  rdx: 0x0000000000000000
  rdi: 0x0000000100dfc7b0  rsi: 0x00007fb2dda5aa00  rbp: 0x00007ff7bfc13010  rsp: 0x00007ff7bfc12ff0
   r8: 0x0000000000389fe5   r9: 0xffffffff00000000  r10: 0x0000600000ea0350  r11: 0x00006000022a6938
  r12: 0x0000000100dfc678  r13: 0x0000000000000001  r14: 0x0000000100d8c508  r15: 0x00000001008c1c40
  rip: 0x0000000100a881d4  rfl: 0x0000000000010202  cr2: 0x0000000000000010
  
Logical CPU:     8
Error Code:      0x00000004 (no mapping for user data read)
Trap Number:     14

Thread 0 instruction stream:
  30 1a 00 48 8b b8 88 00-00 00 4c 89 f6 ff 90 a8  0..H......L.....
  00 00 00 c7 43 60 01 00-00 00 e8 6a e3 f3 ff e9  ....C`.....j....
  be fe ff ff 48 8b 05 11-30 1a 00 48 8b b8 88 00  ....H...0..H....
  00 00 4c 89 f6 ff 90 a8-00 00 00 48 8b 5d d0 eb  ..L........H.]..
  d2 55 48 89 e5 41 57 41-56 53 50 48 85 f6 0f 84  .UH..AWAVSPH....
  9e 00 00 00 48 8d 3d e1-45 37 00 ff 17 48 8b 00  ....H.=.E7...H..
 [48]8b 58 10 4c 8b 35 d1-2f 1a 00 49 8b 46 30 48  H.X.L.5./..I.F0H	<==
  39 d8 0f 85 99 00 00 00-48 89 f0 48 c1 e8 31 48  9.......H..H..1H
  8b 84 c3 f0 13 00 00 48-85 c0 74 71 48 89 f1 48  .......H..tqH..H
  c1 e9 1f 81 e1 f8 ff 03-00 48 8b 04 08 48 85 c0  .........H...H..
  74 5b 48 89 f1 48 c1 e9-14 81 e1 ff 3f 00 00 89  t[H..H......?...
  f2 81 e2 ff ff 0f 00 3b-54 c8 04 7c 0b 8b 04 c8  .......;T..|....

Binary Images:
       0x1002ea000 -        0x1002edfff org.python.python (3.12.2) <ead44496-1d69-323a-8d2e-fa0a05a16c12> /usr/local/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/Resources/Python.app/Contents/MacOS/Python
       0x1008fb000 -        0x100c2afff org.python.python (3.12.2, (c) 2001-2023 Python Software Foundation.) <f3f59264-d329-3869-b664-dfbbb64bea9f> /usr/local/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/Python
       0x10066f000 -        0x100672fff fcntl.cpython-312-darwin.so (*) <4cea1d2a-2394-31c6-93db-2c96d9d471b3> /usr/local/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/fcntl.cpython-312-darwin.so
       0x10068d000 -        0x100690fff _posixsubprocess.cpython-312-darwin.so (*) <e2a04f42-d7fe-3dc1-ab45-9b90e6b4e78b> /usr/local/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_posixsubprocess.cpython-312-darwin.so
       0x1006b0000 -        0x1006b7fff select.cpython-312-darwin.so (*) <c8779338-1cef-3006-85ba-d4663d2b48d1> /usr/local/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/select.cpython-312-darwin.so
       0x1006db000 -        0x1006e6fff math.cpython-312-darwin.so (*) <797fc3fb-63eb-3685-940d-20c52380f412> /usr/local/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/math.cpython-312-darwin.so
       0x10069d000 -        0x1006a0fff _heapq.cpython-312-darwin.so (*) <16d9c7e3-ba56-3eca-8354-c709724cac36> /usr/local/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_heapq.cpython-312-darwin.so
       0x1006c4000 -        0x1006c7fff _queue.cpython-312-darwin.so (*) <b569f10c-ca95-3473-b27e-3a2429d1c4dd> /usr/local/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_queue.cpython-312-darwin.so
       0x100705000 -        0x10070cfff _json.cpython-312-darwin.so (*) <caccb11f-dfe3-3623-aa1b-b09dd8f77768> /usr/local/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_json.cpython-312-darwin.so
       0x1006f3000 -        0x1006f6fff _uuid.cpython-312-darwin.so (*) <8a2ccb4a-b3e5-3a6c-b4e1-22cdef513bec> /usr/local/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_uuid.cpython-312-darwin.so
       0x10082c000 -        0x100833fff zlib.cpython-312-darwin.so (*) <bce026f9-22c1-3bec-bb33-0c3743f1cc0a> /usr/local/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/zlib.cpython-312-darwin.so
       0x100819000 -        0x10081cfff _bz2.cpython-312-darwin.so (*) <a93b8231-452d-3dcb-8a41-25fc609a5022> /usr/local/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_bz2.cpython-312-darwin.so
       0x100853000 -        0x10085afff _lzma.cpython-312-darwin.so (*) <1a37e3fe-6141-3e84-8d09-0bb06ff4eb29> /usr/local/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_lzma.cpython-312-darwin.so
       0x100890000 -        0x1008affff liblzma.5.dylib (*) <04cc439a-dedd-3df9-ba6c-d9fec2c9d68e> /usr/local/Cellar/xz/5.6.1/lib/liblzma.5.dylib
       0x102aa0000 -        0x10300ffff _core.cpython-312-darwin.so (*) <7322aae9-28ff-3f4e-8bff-26d31ba0580c> /usr/local/lib/python3.12/site-packages/wx/_core.cpython-312-darwin.so
       0x101df3000 -        0x1022f2fff libwx_osx_cocoau_core-3.2.0.2.1.dylib (*) <bdb8f9d4-f5e3-3ecf-a4a6-7fba1827e8ba> /usr/local/lib/python3.12/site-packages/wx/libwx_osx_cocoau_core-3.2.0.2.1.dylib
       0x100f8f000 -        0x100fcefff libwx_baseu_net-3.2.0.2.1.dylib (*) <cc5ef275-646f-372f-b35d-1274760989f7> /usr/local/lib/python3.12/site-packages/wx/libwx_baseu_net-3.2.0.2.1.dylib
       0x10148f000 -        0x101642fff libwx_baseu-3.2.0.2.1.dylib (*) <40f28934-0b0e-31bb-812f-91a2b4032078> /usr/local/lib/python3.12/site-packages/wx/libwx_baseu-3.2.0.2.1.dylib
       0x1008bc000 -        0x1008d7fff siplib.cpython-312-darwin.so (*) <011d4d1a-be4d-3a3d-9b7c-5fbaad3474fc> /usr/local/lib/python3.12/site-packages/wx/siplib.cpython-312-darwin.so
       0x100f03000 -        0x100f12fff _datetime.cpython-312-darwin.so (*) <d015aa2e-e7bc-3940-98c5-e2e55a30d142> /usr/local/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_datetime.cpython-312-darwin.so
       0x1016eb000 -        0x101756fff _html.cpython-312-darwin.so (*) <b5809fad-8603-38bc-beeb-47388242f55d> /usr/local/lib/python3.12/site-packages/wx/_html.cpython-312-darwin.so
       0x10137b000 -        0x1013eafff libwx_osx_cocoau_html-3.2.0.2.1.dylib (*) <449b2ae4-c06b-357f-a1cd-a269c9c0e022> /usr/local/lib/python3.12/site-packages/wx/libwx_osx_cocoau_html-3.2.0.2.1.dylib
       0x100867000 -        0x100872fff _xml.cpython-312-darwin.so (*) <c0cdb655-8044-394f-81a2-1a4786c6e7a0> /usr/local/lib/python3.12/site-packages/wx/_xml.cpython-312-darwin.so
       0x100f61000 -        0x100f70fff libwx_baseu_xml-3.2.0.2.1.dylib (*) <caacc6ac-4327-3b91-b48a-3d7653efa5f1> /usr/local/lib/python3.12/site-packages/wx/libwx_baseu_xml-3.2.0.2.1.dylib
       0x10181b000 -        0x10193efff _richtext.cpython-312-darwin.so (*) <2b8bdc06-b95f-3329-873d-726723b0cbc2> /usr/local/lib/python3.12/site-packages/wx/_richtext.cpython-312-darwin.so
       0x101b27000 -        0x101c5afff libwx_osx_cocoau_richtext-3.2.0.2.1.dylib (*) <75db2fa5-48f2-38f5-bae4-9c0ec79c9082> /usr/local/lib/python3.12/site-packages/wx/libwx_osx_cocoau_richtext-3.2.0.2.1.dylib
       0x103888000 -        0x103953fff _adv.cpython-312-darwin.so (*) <ef694f20-8ff9-3d6a-9362-e2cb2ab395cc> /usr/local/lib/python3.12/site-packages/wx/_adv.cpython-312-darwin.so
       0x100f23000 -        0x100f26fff _opcode.cpython-312-darwin.so (*) <7eb7a781-db47-304e-a4b8-4f3ed280d87a> /usr/local/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_opcode.cpython-312-darwin.so
       0x100f33000 -        0x100f3afff _struct.cpython-312-darwin.so (*) <d204831e-1d0c-3617-aa4b-4081227f0d29> /usr/local/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_struct.cpython-312-darwin.so
       0x1027d1000 -        0x102840fff _stc.cpython-312-darwin.so (*) <a74fe61d-c256-399d-ae5d-20d9c0ac5787> /usr/local/lib/python3.12/site-packages/wx/_stc.cpython-312-darwin.so
       0x103ef5000 -        0x1040b0fff libwx_osx_cocoau_stc-3.2.0.2.1.dylib (*) <fa999b5c-d377-3203-b11e-a1c681be6b97> /usr/local/lib/python3.12/site-packages/wx/libwx_osx_cocoau_stc-3.2.0.2.1.dylib
       0x100f47000 -        0x100f4efff binascii.cpython-312-darwin.so (*) <e2107ec0-1072-351e-b3a9-57a30882418a> /usr/local/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/binascii.cpython-312-darwin.so
       0x100f7d000 -        0x100f80fff _bisect.cpython-312-darwin.so (*) <35f268a7-16e9-3f39-b6ff-5f0310e9f5fb> /usr/local/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_bisect.cpython-312-darwin.so
       0x1012f3000 -        0x1012f6fff _random.cpython-312-darwin.so (*) <f1e00bab-9951-3ed7-b9d8-64fc054ffa41> /usr/local/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_random.cpython-312-darwin.so
       0x101319000 -        0x101324fff _sha2.cpython-312-darwin.so (*) <6529a485-c360-3bd2-86dd-abf12e895f12> /usr/local/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_sha2.cpython-312-darwin.so
       0x103bbc000 -        0x103c1bfff _imaging.cpython-312-darwin.so (*) <74f524bc-7670-36dc-bb84-35c0950bca67> /usr/local/lib/python3.12/site-packages/PIL/_imaging.cpython-312-darwin.so
       0x103c4c000 -        0x103cebfff libtiff.6.dylib (*) <eb2b7b54-aae9-33c5-ad3a-429b3a4f72ad> /usr/local/lib/python3.12/site-packages/PIL/.dylibs/libtiff.6.dylib
       0x103dce000 -        0x103e81fff libjpeg.62.4.0.dylib (*) <52bfa0ae-b59c-3f4e-8240-645c1a930cc1> /usr/local/lib/python3.12/site-packages/PIL/.dylibs/libjpeg.62.4.0.dylib
       0x103d08000 -        0x103d8ffff libopenjp2.2.5.0.dylib (*) <d015dfe5-7214-33d8-bf58-350dd32c4521> /usr/local/lib/python3.12/site-packages/PIL/.dylibs/libopenjp2.2.5.0.dylib
       0x10143f000 -        0x10145efff libz.1.3.dylib (*) <181a76df-c680-311c-aaa6-6eeeb8854129> /usr/local/lib/python3.12/site-packages/PIL/.dylibs/libz.1.3.dylib
       0x1029e1000 -        0x102a08fff libxcb.1.1.0.dylib (*) <51065206-aff2-32dd-93c5-d6d05a6f5e35> /usr/local/lib/python3.12/site-packages/PIL/.dylibs/libxcb.1.1.0.dylib
       0x103e96000 -        0x103ed1fff liblzma.5.dylib (*) <2f03407e-0f9b-3146-b009-33e0f793869a> /usr/local/lib/python3.12/site-packages/PIL/.dylibs/liblzma.5.dylib
       0x101303000 -        0x101306fff libXau.6.0.0.dylib (*) <adabaf7c-bc6a-3eab-8fbc-f3d8fdd20c3e> /usr/local/lib/python3.12/site-packages/PIL/.dylibs/libXau.6.0.0.dylib
       0x10134d000 -        0x10135cfff _socket.cpython-312-darwin.so (*) <755445c6-80b7-3f7e-a784-83ec8ee685e3> /usr/local/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/_socket.cpython-312-darwin.so
       0x10146b000 -        0x101472fff array.cpython-312-darwin.so (*) <4559b013-8a92-3216-9f11-247fee1dfeb2> /usr/local/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/lib-dynload/array.cpython-312-darwin.so
       0x101331000 -        0x101338fff _psutil_osx.abi3.so (*) <cc4a7194-2678-3514-acc4-75a7275bf407> /usr/local/lib/python3.12/site-packages/psutil/_psutil_osx.abi3.so
       0x100840000 -        0x100843fff _psutil_posix.abi3.so (*) <62001a43-deed-3f40-8d2d-57ad475e6c95> /usr/local/lib/python3.12/site-packages/psutil/_psutil_posix.abi3.so
       0x102a87000 -        0x102a96fff libobjc-trampolines.dylib (*) <d2da3b5f-f5ba-3ef1-b99d-bc64a8487401> /usr/lib/libobjc-trampolines.dylib
       0x10e81b000 -        0x10e822fff _imagingmath.cpython-312-darwin.so (*) <c39ab52a-6c8b-3e03-990c-27bb9a2fe87f> /usr/local/lib/python3.12/site-packages/PIL/_imagingmath.cpython-312-darwin.so
    0x7ff80d8be000 -     0x7ff80dd5afef com.apple.CoreFoundation (6.9) <315a3f65-0954-3635-96dc-2f65c691d074> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7ff817373000 -     0x7ff81766affd com.apple.HIToolbox (2.1.1) <a6003e8b-72cc-3d98-b569-26102836c61f> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
    0x7ff81098d000 -     0x7ff811994ff0 com.apple.AppKit (6.9) <af96f40f-d333-3647-9da4-eddc52df4753> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x7ff80d4ff000 -     0x7ff80d5975a7 dyld (*) <f22a1143-9732-3e23-a8b7-cbade6bb8301> /usr/lib/dyld
    0x7ff80d81f000 -     0x7ff80d858ff7 libsystem_kernel.dylib (*) <08606a44-7008-3658-9f00-6c250b80e9c3> /usr/lib/system/libsystem_kernel.dylib
    0x7ff80d859000 -     0x7ff80d864fff libsystem_pthread.dylib (*) <86dfa543-95fa-36b4-83c6-bf03d01b2aad> /usr/lib/system/libsystem_pthread.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=620.3M resident=0K(0%) swapped_out_or_unallocated=620.3M(100%)
Writable regions: Total=717.5M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=717.5M(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework               256K        2 
Activity Tracing                   256K        1 
CG backing stores                 2688K        4 
CG image                          8152K       11 
CG raster data                    2680K        1 
ColorSync                          264K       29 
CoreAnimation                     23.5M       34 
CoreGraphics                        12K        2 
CoreServices                        92K        1 
CoreUI image data                 3008K       22 
Foundation                          16K        1 
Kernel Alloc Once                    8K        1 
MALLOC                           265.5M       79 
MALLOC guard page                   32K        8 
MALLOC_LARGE (reserved)            384K        2         reserved VM address space (unallocated)
MALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)
STACK GUARD                         32K        8 
Stack                             19.6M        8 
VM_ALLOCATE                       13.3M       25 
__CTF                               824        1 
__DATA                            27.7M      461 
__DATA_CONST                      21.9M      252 
__DATA_DIRTY                       870K      128 
__FONT_DATA                        2352        1 
__LINKEDIT                       188.1M       50 
__OBJC_RO                         66.2M        1 
__OBJC_RW                         2012K        2 
__TEXT                           432.3M      465 
dyld private memory                260K        2 
mapped file                      286.6M       35 
shared memory                     1308K       21 
===========                     =======  ======= 
TOTAL                              1.7G     1659 
TOTAL, minus reserved VM space     1.3G     1659 



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

{"app_name":"Python","timestamp":"2024-03-27 15:46:42.00 +0800","app_version":"3.12.2","slice_uuid":"ead44496-1d69-323a-8d2e-fa0a05a16c12","build_version":"3.12.2","platform":1,"bundleID":"org.python.python","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 13.3.1 (22E261)","roots_installed":0,"name":"Python","incident_id":"35BE6A7B-565F-41FB-A42B-32C3B5A1D95A"}
{
  "uptime" : 110000,
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 502,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro16,1",
  "coalitionID" : 511,
  "osVersion" : {
    "train" : "macOS 13.3.1",
    "build" : "22E261",
    "releaseType" : "User"
  },
  "captureTime" : "2024-03-27 15:46:41.8339 +0800",
  "incident" : "35BE6A7B-565F-41FB-A42B-32C3B5A1D95A",
  "pid" : 41486,
  "cpuType" : "X86-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2024-03-27 15:39:56.7759 +0800",
  "procStartAbsTime" : 113247556447726,
  "procExitAbsTime" : 113652608307875,
  "procName" : "Python",
  "procPath" : "\/usr\/local\/Cellar\/python@3.12\/3.12.2_1\/Frameworks\/Python.framework\/Versions\/3.12\/Resources\/Python.app\/Contents\/MacOS\/Python",
  "bundleInfo" : {"CFBundleShortVersionString":"3.12.2","CFBundleVersion":"3.12.2","CFBundleIdentifier":"org.python.python"},
  "storeInfo" : {"deviceIdentifierForVendor":"FF22DE54-1CF0-5271-82B3-1892B699A5AA","thirdParty":true},
  "parentProc" : "zsh",
  "parentPid" : 98686,
  "coalitionName" : "com.googlecode.iterm2",
  "crashReporterKey" : "37B44579-1297-7D03-2C58-B8C5F8EDEFF9",
  "responsiblePid" : 495,
  "responsibleProc" : "iTerm2",
  "codeSigningID" : "",
  "codeSigningTeamID" : "",
  "codeSigningValidationCategory" : 0,
  "codeSigningTrustLevel" : 0,
  "wakeTime" : 2539,
  "bridgeVersion" : {"build":"20P5058","train":"7.5"},
  "sleepWakeUUID" : "2F113E85-CDED-45FB-88A1-ABF8A4C25A35",
  "sip" : "enabled",
  "vmRegionInfo" : "0x10 is not in any region.  Bytes before following region: 140737487114224\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      shared memory            7fffffed1000-7fffffed2000 [    4K] r-x\/r-x SM=SHM  ",
  "exception" : {"codes":"0x0000000000000001, 0x0000000000000010","rawCodes":[1,16],"type":"EXC_BAD_ACCESS","signal":"SIGSEGV","subtype":"KERN_INVALID_ADDRESS at 0x0000000000000010"},
  "termination" : {"flags":0,"code":11,"namespace":"SIGNAL","indicator":"Segmentation fault: 11","byProc":"exc handler","byPid":41486},
  "vmregioninfo" : "0x10 is not in any region.  Bytes before following region: 140737487114224\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      shared memory            7fffffed1000-7fffffed2000 [    4K] r-x\/r-x SM=SHM  ",
  "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" : 0,
  "threads" : [{"triggered":true,"id":3710949,"instructionState":{"instructionStream":{"bytes":[48,26,0,72,139,184,136,0,0,0,76,137,246,255,144,168,0,0,0,199,67,96,1,0,0,0,232,106,227,243,255,233,190,254,255,255,72,139,5,17,48,26,0,72,139,184,136,0,0,0,76,137,246,255,144,168,0,0,0,72,139,93,208,235,210,85,72,137,229,65,87,65,86,83,80,72,133,246,15,132,158,0,0,0,72,141,61,225,69,55,0,255,23,72,139,0,72,139,88,16,76,139,53,209,47,26,0,73,139,70,48,72,57,216,15,133,153,0,0,0,72,137,240,72,193,232,49,72,139,132,195,240,19,0,0,72,133,192,116,113,72,137,241,72,193,233,31,129,225,248,255,3,0,72,139,4,8,72,133,192,116,91,72,137,241,72,193,233,20,129,225,255,63,0,0,137,242,129,226,255,255,15,0,59,84,200,4,124,11,139,4,200],"offset":96}},"threadState":{"r13":{"value":1},"rax":{"value":0},"rflags":{"value":66050},"cpu":{"value":8},"r14":{"value":4309173512,"symbolLocation":0,"symbol":"_PyRuntime"},"rsi":{"value":140406199527936},"r8":{"value":3710949},"cr2":{"value":16},"rdx":{"value":0},"r10":{"value":105553131602768},"r9":{"value":18446744069414584320},"r15":{"value":4304149568,"symbolLocation":0,"symbol":"finalise"},"rbx":{"value":0},"trap":{"value":14,"description":"(no mapping for user data read)"},"err":{"value":4},"r11":{"value":105553152600376},"rip":{"value":4306010580,"matchesCrashFrame":1},"rbp":{"value":140702050758672},"rsp":{"value":140702050758640},"r12":{"value":4309632632,"symbolLocation":459120,"symbol":"_PyRuntime"},"rcx":{"value":105553131602776},"flavor":"x86_THREAD_STATE","rdi":{"value":4309632944,"symbolLocation":0,"symbol":"_Py_tss_tstate"}},"queue":"com.apple.main-thread","frames":[{"imageOffset":1626580,"symbol":"_PyObject_Free","symbolLocation":31,"imageIndex":1},{"imageOffset":23793,"symbol":"finalise","symbolLocation":177,"imageIndex":18},{"imageOffset":912740,"symbol":"Py_FinalizeEx","symbolLocation":495,"imageIndex":1},{"imageOffset":94036,"symbol":"Py_Exit","symbolLocation":13,"imageIndex":1},{"imageOffset":482289,"symbol":"handle_system_exit","symbolLocation":35,"imageIndex":1},{"imageOffset":934191,"symbol":"_PyErr_PrintEx","symbolLocation":42,"imageIndex":1},{"imageOffset":1177406,"symbol":"wxPyCallback::EventThunker(wxEvent&)","symbolLocation":270,"imageIndex":14},{"imageOffset":1174957,"symbol":"wxEvtHandler::SearchDynamicEventTable(wxEvent&)","symbolLocation":301,"imageIndex":17},{"imageOffset":1174219,"symbol":"wxEvtHandler::ProcessEventLocally(wxEvent&)","symbolLocation":59,"imageIndex":17},{"imageOffset":1173888,"symbol":"wxEvtHandler::ProcessEvent(wxEvent&)","symbolLocation":96,"imageIndex":17},{"imageOffset":3069273,"symbol":"sipwxPyApp::ProcessEvent(wxEvent&)","symbolLocation":105,"imageIndex":14},{"imageOffset":1173384,"symbol":"wxEvtHandler::ProcessPendingEvents()","symbolLocation":728,"imageIndex":17},{"imageOffset":49482,"symbol":"wxAppConsoleBase::ProcessPendingEvents()","symbolLocation":186,"imageIndex":17},{"imageOffset":3070113,"symbol":"sipwxPyApp::ProcessPendingEvents()","symbolLocation":97,"imageIndex":14},{"imageOffset":987538,"symbol":"wxCFEventLoop::OSXCommonModeObserverCallBack(__CFRunLoopObserver*, int, void*)","symbolLocation":66,"imageIndex":17},{"imageOffset":509316,"symbol":"__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__","symbolLocation":23,"imageIndex":49},{"imageOffset":509099,"symbol":"__CFRunLoopDoObservers","symbolLocation":482,"imageIndex":49},{"imageOffset":506422,"symbol":"__CFRunLoopRun","symbolLocation":859,"imageIndex":49},{"imageOffset":503921,"symbol":"CFRunLoopRunSpecific","symbolLocation":560,"imageIndex":49},{"imageOffset":192461,"symbol":"RunCurrentEventLoopInMode","symbolLocation":292,"imageIndex":50},{"imageOffset":191508,"symbol":"ReceiveNextEventCommon","symbolLocation":199,"imageIndex":50},{"imageOffset":191288,"symbol":"_BlockUntilNextEventMatchingListInModeWithFilter","symbolLocation":64,"imageIndex":50},{"imageOffset":255904,"symbol":"_DPSNextEvent","symbolLocation":858,"imageIndex":51},{"imageOffset":251466,"symbol":"-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]","symbolLocation":1214,"imageIndex":51},{"imageOffset":195768,"symbol":"-[NSApplication run]","symbolLocation":586,"imageIndex":51},{"imageOffset":839674,"symbol":"wxGUIEventLoop::OSXDoRun()","symbolLocation":186,"imageIndex":15},{"imageOffset":989741,"symbol":"wxCFEventLoop::DoRun()","symbolLocation":29,"imageIndex":17},{"imageOffset":250830,"symbol":"wxEventLoopBase::Run()","symbolLocation":158,"imageIndex":17},{"imageOffset":46579,"symbol":"wxAppConsoleBase::MainLoop()","symbolLocation":99,"imageIndex":17},{"imageOffset":3077441,"symbol":"meth_wxPyApp_MainLoop(_object*, _object*)","symbolLocation":209,"imageIndex":14},{"imageOffset":1499047,"symbol":"cfunction_call","symbolLocation":107,"imageIndex":1},{"imageOffset":2235765,"symbol":"_PyObject_MakeTpCall","symbolLocation":140,"imageIndex":1},{"imageOffset":739058,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":48655,"imageIndex":1},{"imageOffset":690059,"symbol":"PyEval_EvalCode","symbolLocation":197,"imageIndex":1},{"imageOffset":76778,"symbol":"run_eval_code_obj.llvm.3794556486307325143","symbolLocation":83,"imageIndex":1},{"imageOffset":935318,"symbol":"run_mod.llvm.3794556486307325143","symbolLocation":107,"imageIndex":1},{"imageOffset":933997,"symbol":"pyrun_file","symbolLocation":133,"imageIndex":1},{"imageOffset":932762,"symbol":"_PyRun_SimpleFileObject","symbolLocation":287,"imageIndex":1},{"imageOffset":61504,"symbol":"_PyRun_AnyFileObject","symbolLocation":148,"imageIndex":1},{"imageOffset":1854337,"symbol":"pymain_run_file_obj","symbolLocation":226,"imageIndex":1},{"imageOffset":518581,"symbol":"pymain_run_file","symbolLocation":89,"imageIndex":1},{"imageOffset":1851329,"symbol":"Py_RunMain","symbolLocation":988,"imageIndex":1},{"imageOffset":1000649,"symbol":"Py_BytesMain","symbolLocation":42,"imageIndex":1},{"imageOffset":25631,"symbol":"start","symbolLocation":1903,"imageIndex":52}]},{"id":3710983,"name":"com.apple.NSEventThread","frames":[{"imageOffset":5554,"symbol":"mach_msg2_trap","symbolLocation":10,"imageIndex":53},{"imageOffset":63277,"symbol":"mach_msg2_internal","symbolLocation":78,"imageIndex":53},{"imageOffset":34276,"symbol":"mach_msg_overwrite","symbolLocation":692,"imageIndex":53},{"imageOffset":6298,"symbol":"mach_msg","symbolLocation":19,"imageIndex":53},{"imageOffset":512431,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":145,"imageIndex":49},{"imageOffset":506928,"symbol":"__CFRunLoopRun","symbolLocation":1365,"imageIndex":49},{"imageOffset":503921,"symbol":"CFRunLoopRunSpecific","symbolLocation":560,"imageIndex":49},{"imageOffset":1698057,"symbol":"_NSEventThread","symbolLocation":132,"imageIndex":51},{"imageOffset":25043,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":54},{"imageOffset":7123,"symbol":"thread_start","symbolLocation":15,"imageIndex":54}]},{"id":3725999,"frames":[{"imageOffset":7088,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":54}]},{"id":3726561,"frames":[{"imageOffset":7088,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":54}]},{"id":3726564,"frames":[{"imageOffset":7088,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":54}]},{"id":3726576,"frames":[{"imageOffset":7088,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":54}]},{"id":3726577,"frames":[{"imageOffset":7088,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":54}]},{"id":3726660,"frames":[{"imageOffset":7088,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":54}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4298022912,
    "CFBundleShortVersionString" : "3.12.2",
    "CFBundleIdentifier" : "org.python.python",
    "size" : 16384,
    "uuid" : "ead44496-1d69-323a-8d2e-fa0a05a16c12",
    "path" : "\/usr\/local\/Cellar\/python@3.12\/3.12.2_1\/Frameworks\/Python.framework\/Versions\/3.12\/Resources\/Python.app\/Contents\/MacOS\/Python",
    "name" : "Python",
    "CFBundleVersion" : "3.12.2"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4304384000,
    "CFBundleShortVersionString" : "3.12.2, (c) 2001-2023 Python Software Foundation.",
    "CFBundleIdentifier" : "org.python.python",
    "size" : 3342336,
    "uuid" : "f3f59264-d329-3869-b664-dfbbb64bea9f",
    "path" : "\/usr\/local\/Cellar\/python@3.12\/3.12.2_1\/Frameworks\/Python.framework\/Versions\/3.12\/Python",
    "name" : "Python",
    "CFBundleVersion" : "3.12.2"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4301713408,
    "size" : 16384,
    "uuid" : "4cea1d2a-2394-31c6-93db-2c96d9d471b3",
    "path" : "\/usr\/local\/Cellar\/python@3.12\/3.12.2_1\/Frameworks\/Python.framework\/Versions\/3.12\/lib\/python3.12\/lib-dynload\/fcntl.cpython-312-darwin.so",
    "name" : "fcntl.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4301836288,
    "size" : 16384,
    "uuid" : "e2a04f42-d7fe-3dc1-ab45-9b90e6b4e78b",
    "path" : "\/usr\/local\/Cellar\/python@3.12\/3.12.2_1\/Frameworks\/Python.framework\/Versions\/3.12\/lib\/python3.12\/lib-dynload\/_posixsubprocess.cpython-312-darwin.so",
    "name" : "_posixsubprocess.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4301979648,
    "size" : 32768,
    "uuid" : "c8779338-1cef-3006-85ba-d4663d2b48d1",
    "path" : "\/usr\/local\/Cellar\/python@3.12\/3.12.2_1\/Frameworks\/Python.framework\/Versions\/3.12\/lib\/python3.12\/lib-dynload\/select.cpython-312-darwin.so",
    "name" : "select.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4302155776,
    "size" : 49152,
    "uuid" : "797fc3fb-63eb-3685-940d-20c52380f412",
    "path" : "\/usr\/local\/Cellar\/python@3.12\/3.12.2_1\/Frameworks\/Python.framework\/Versions\/3.12\/lib\/python3.12\/lib-dynload\/math.cpython-312-darwin.so",
    "name" : "math.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4301901824,
    "size" : 16384,
    "uuid" : "16d9c7e3-ba56-3eca-8354-c709724cac36",
    "path" : "\/usr\/local\/Cellar\/python@3.12\/3.12.2_1\/Frameworks\/Python.framework\/Versions\/3.12\/lib\/python3.12\/lib-dynload\/_heapq.cpython-312-darwin.so",
    "name" : "_heapq.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4302061568,
    "size" : 16384,
    "uuid" : "b569f10c-ca95-3473-b27e-3a2429d1c4dd",
    "path" : "\/usr\/local\/Cellar\/python@3.12\/3.12.2_1\/Frameworks\/Python.framework\/Versions\/3.12\/lib\/python3.12\/lib-dynload\/_queue.cpython-312-darwin.so",
    "name" : "_queue.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4302327808,
    "size" : 32768,
    "uuid" : "caccb11f-dfe3-3623-aa1b-b09dd8f77768",
    "path" : "\/usr\/local\/Cellar\/python@3.12\/3.12.2_1\/Frameworks\/Python.framework\/Versions\/3.12\/lib\/python3.12\/lib-dynload\/_json.cpython-312-darwin.so",
    "name" : "_json.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4302254080,
    "size" : 16384,
    "uuid" : "8a2ccb4a-b3e5-3a6c-b4e1-22cdef513bec",
    "path" : "\/usr\/local\/Cellar\/python@3.12\/3.12.2_1\/Frameworks\/Python.framework\/Versions\/3.12\/lib\/python3.12\/lib-dynload\/_uuid.cpython-312-darwin.so",
    "name" : "_uuid.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4303536128,
    "size" : 32768,
    "uuid" : "bce026f9-22c1-3bec-bb33-0c3743f1cc0a",
    "path" : "\/usr\/local\/Cellar\/python@3.12\/3.12.2_1\/Frameworks\/Python.framework\/Versions\/3.12\/lib\/python3.12\/lib-dynload\/zlib.cpython-312-darwin.so",
    "name" : "zlib.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4303458304,
    "size" : 16384,
    "uuid" : "a93b8231-452d-3dcb-8a41-25fc609a5022",
    "path" : "\/usr\/local\/Cellar\/python@3.12\/3.12.2_1\/Frameworks\/Python.framework\/Versions\/3.12\/lib\/python3.12\/lib-dynload\/_bz2.cpython-312-darwin.so",
    "name" : "_bz2.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4303695872,
    "size" : 32768,
    "uuid" : "1a37e3fe-6141-3e84-8d09-0bb06ff4eb29",
    "path" : "\/usr\/local\/Cellar\/python@3.12\/3.12.2_1\/Frameworks\/Python.framework\/Versions\/3.12\/lib\/python3.12\/lib-dynload\/_lzma.cpython-312-darwin.so",
    "name" : "_lzma.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4303945728,
    "size" : 131072,
    "uuid" : "04cc439a-dedd-3df9-ba6c-d9fec2c9d68e",
    "path" : "\/usr\/local\/Cellar\/xz\/5.6.1\/lib\/liblzma.5.dylib",
    "name" : "liblzma.5.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4339662848,
    "size" : 5701632,
    "uuid" : "7322aae9-28ff-3f4e-8bff-26d31ba0580c",
    "path" : "\/usr\/local\/lib\/python3.12\/site-packages\/wx\/_core.cpython-312-darwin.so",
    "name" : "_core.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4326371328,
    "size" : 5242880,
    "uuid" : "bdb8f9d4-f5e3-3ecf-a4a6-7fba1827e8ba",
    "path" : "\/usr\/local\/lib\/python3.12\/site-packages\/wx\/libwx_osx_cocoau_core-3.2.0.2.1.dylib",
    "name" : "libwx_osx_cocoau_core-3.2.0.2.1.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4311281664,
    "size" : 262144,
    "uuid" : "cc5ef275-646f-372f-b35d-1274760989f7",
    "path" : "\/usr\/local\/lib\/python3.12\/site-packages\/wx\/libwx_baseu_net-3.2.0.2.1.dylib",
    "name" : "libwx_baseu_net-3.2.0.2.1.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4316524544,
    "size" : 1785856,
    "uuid" : "40f28934-0b0e-31bb-812f-91a2b4032078",
    "path" : "\/usr\/local\/lib\/python3.12\/site-packages\/wx\/libwx_baseu-3.2.0.2.1.dylib",
    "name" : "libwx_baseu-3.2.0.2.1.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4304125952,
    "size" : 114688,
    "uuid" : "011d4d1a-be4d-3a3d-9b7c-5fbaad3474fc",
    "path" : "\/usr\/local\/lib\/python3.12\/site-packages\/wx\/siplib.cpython-312-darwin.so",
    "name" : "siplib.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4310708224,
    "size" : 65536,
    "uuid" : "d015aa2e-e7bc-3940-98c5-e2e55a30d142",
    "path" : "\/usr\/local\/Cellar\/python@3.12\/3.12.2_1\/Frameworks\/Python.framework\/Versions\/3.12\/lib\/python3.12\/lib-dynload\/_datetime.cpython-312-darwin.so",
    "name" : "_datetime.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4318998528,
    "size" : 442368,
    "uuid" : "b5809fad-8603-38bc-beeb-47388242f55d",
    "path" : "\/usr\/local\/lib\/python3.12\/site-packages\/wx\/_html.cpython-312-darwin.so",
    "name" : "_html.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4315394048,
    "size" : 458752,
    "uuid" : "449b2ae4-c06b-357f-a1cd-a269c9c0e022",
    "path" : "\/usr\/local\/lib\/python3.12\/site-packages\/wx\/libwx_osx_cocoau_html-3.2.0.2.1.dylib",
    "name" : "libwx_osx_cocoau_html-3.2.0.2.1.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4303777792,
    "size" : 49152,
    "uuid" : "c0cdb655-8044-394f-81a2-1a4786c6e7a0",
    "path" : "\/usr\/local\/lib\/python3.12\/site-packages\/wx\/_xml.cpython-312-darwin.so",
    "name" : "_xml.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4311093248,
    "size" : 65536,
    "uuid" : "caacc6ac-4327-3b91-b48a-3d7653efa5f1",
    "path" : "\/usr\/local\/lib\/python3.12\/site-packages\/wx\/libwx_baseu_xml-3.2.0.2.1.dylib",
    "name" : "libwx_baseu_xml-3.2.0.2.1.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4320243712,
    "size" : 1196032,
    "uuid" : "2b8bdc06-b95f-3329-873d-726723b0cbc2",
    "path" : "\/usr\/local\/lib\/python3.12\/site-packages\/wx\/_richtext.cpython-312-darwin.so",
    "name" : "_richtext.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4323438592,
    "size" : 1261568,
    "uuid" : "75db2fa5-48f2-38f5-bae4-9c0ec79c9082",
    "path" : "\/usr\/local\/lib\/python3.12\/site-packages\/wx\/libwx_osx_cocoau_richtext-3.2.0.2.1.dylib",
    "name" : "libwx_osx_cocoau_richtext-3.2.0.2.1.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4354244608,
    "size" : 835584,
    "uuid" : "ef694f20-8ff9-3d6a-9362-e2cb2ab395cc",
    "path" : "\/usr\/local\/lib\/python3.12\/site-packages\/wx\/_adv.cpython-312-darwin.so",
    "name" : "_adv.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4310839296,
    "size" : 16384,
    "uuid" : "7eb7a781-db47-304e-a4b8-4f3ed280d87a",
    "path" : "\/usr\/local\/Cellar\/python@3.12\/3.12.2_1\/Frameworks\/Python.framework\/Versions\/3.12\/lib\/python3.12\/lib-dynload\/_opcode.cpython-312-darwin.so",
    "name" : "_opcode.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4310904832,
    "size" : 32768,
    "uuid" : "d204831e-1d0c-3617-aa4b-4081227f0d29",
    "path" : "\/usr\/local\/Cellar\/python@3.12\/3.12.2_1\/Frameworks\/Python.framework\/Versions\/3.12\/lib\/python3.12\/lib-dynload\/_struct.cpython-312-darwin.so",
    "name" : "_struct.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4336717824,
    "size" : 458752,
    "uuid" : "a74fe61d-c256-399d-ae5d-20d9c0ac5787",
    "path" : "\/usr\/local\/lib\/python3.12\/site-packages\/wx\/_stc.cpython-312-darwin.so",
    "name" : "_stc.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4360982528,
    "size" : 1818624,
    "uuid" : "fa999b5c-d377-3203-b11e-a1c681be6b97",
    "path" : "\/usr\/local\/lib\/python3.12\/site-packages\/wx\/libwx_osx_cocoau_stc-3.2.0.2.1.dylib",
    "name" : "libwx_osx_cocoau_stc-3.2.0.2.1.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4310986752,
    "size" : 32768,
    "uuid" : "e2107ec0-1072-351e-b3a9-57a30882418a",
    "path" : "\/usr\/local\/Cellar\/python@3.12\/3.12.2_1\/Frameworks\/Python.framework\/Versions\/3.12\/lib\/python3.12\/lib-dynload\/binascii.cpython-312-darwin.so",
    "name" : "binascii.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4311207936,
    "size" : 16384,
    "uuid" : "35f268a7-16e9-3f39-b6ff-5f0310e9f5fb",
    "path" : "\/usr\/local\/Cellar\/python@3.12\/3.12.2_1\/Frameworks\/Python.framework\/Versions\/3.12\/lib\/python3.12\/lib-dynload\/_bisect.cpython-312-darwin.so",
    "name" : "_bisect.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4314836992,
    "size" : 16384,
    "uuid" : "f1e00bab-9951-3ed7-b9d8-64fc054ffa41",
    "path" : "\/usr\/local\/Cellar\/python@3.12\/3.12.2_1\/Frameworks\/Python.framework\/Versions\/3.12\/lib\/python3.12\/lib-dynload\/_random.cpython-312-darwin.so",
    "name" : "_random.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4314992640,
    "size" : 49152,
    "uuid" : "6529a485-c360-3bd2-86dd-abf12e895f12",
    "path" : "\/usr\/local\/Cellar\/python@3.12\/3.12.2_1\/Frameworks\/Python.framework\/Versions\/3.12\/lib\/python3.12\/lib-dynload\/_sha2.cpython-312-darwin.so",
    "name" : "_sha2.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4357603328,
    "size" : 393216,
    "uuid" : "74f524bc-7670-36dc-bb84-35c0950bca67",
    "path" : "\/usr\/local\/lib\/python3.12\/site-packages\/PIL\/_imaging.cpython-312-darwin.so",
    "name" : "_imaging.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4358193152,
    "size" : 655360,
    "uuid" : "eb2b7b54-aae9-33c5-ad3a-429b3a4f72ad",
    "path" : "\/usr\/local\/lib\/python3.12\/site-packages\/PIL\/.dylibs\/libtiff.6.dylib",
    "name" : "libtiff.6.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4359774208,
    "size" : 737280,
    "uuid" : "52bfa0ae-b59c-3f4e-8240-645c1a930cc1",
    "path" : "\/usr\/local\/lib\/python3.12\/site-packages\/PIL\/.dylibs\/libjpeg.62.4.0.dylib",
    "name" : "libjpeg.62.4.0.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4358963200,
    "size" : 557056,
    "uuid" : "d015dfe5-7214-33d8-bf58-350dd32c4521",
    "path" : "\/usr\/local\/lib\/python3.12\/site-packages\/PIL\/.dylibs\/libopenjp2.2.5.0.dylib",
    "name" : "libopenjp2.2.5.0.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4316196864,
    "size" : 131072,
    "uuid" : "181a76df-c680-311c-aaa6-6eeeb8854129",
    "path" : "\/usr\/local\/lib\/python3.12\/site-packages\/PIL\/.dylibs\/libz.1.3.dylib",
    "name" : "libz.1.3.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4338880512,
    "size" : 163840,
    "uuid" : "51065206-aff2-32dd-93c5-d6d05a6f5e35",
    "path" : "\/usr\/local\/lib\/python3.12\/site-packages\/PIL\/.dylibs\/libxcb.1.1.0.dylib",
    "name" : "libxcb.1.1.0.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4360593408,
    "size" : 245760,
    "uuid" : "2f03407e-0f9b-3146-b009-33e0f793869a",
    "path" : "\/usr\/local\/lib\/python3.12\/site-packages\/PIL\/.dylibs\/liblzma.5.dylib",
    "name" : "liblzma.5.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4314902528,
    "size" : 16384,
    "uuid" : "adabaf7c-bc6a-3eab-8fbc-f3d8fdd20c3e",
    "path" : "\/usr\/local\/lib\/python3.12\/site-packages\/PIL\/.dylibs\/libXau.6.0.0.dylib",
    "name" : "libXau.6.0.0.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4315205632,
    "size" : 65536,
    "uuid" : "755445c6-80b7-3f7e-a784-83ec8ee685e3",
    "path" : "\/usr\/local\/Cellar\/python@3.12\/3.12.2_1\/Frameworks\/Python.framework\/Versions\/3.12\/lib\/python3.12\/lib-dynload\/_socket.cpython-312-darwin.so",
    "name" : "_socket.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4316377088,
    "size" : 32768,
    "uuid" : "4559b013-8a92-3216-9f11-247fee1dfeb2",
    "path" : "\/usr\/local\/Cellar\/python@3.12\/3.12.2_1\/Frameworks\/Python.framework\/Versions\/3.12\/lib\/python3.12\/lib-dynload\/array.cpython-312-darwin.so",
    "name" : "array.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4315090944,
    "size" : 32768,
    "uuid" : "cc4a7194-2678-3514-acc4-75a7275bf407",
    "path" : "\/usr\/local\/lib\/python3.12\/site-packages\/psutil\/_psutil_osx.abi3.so",
    "name" : "_psutil_osx.abi3.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4303618048,
    "size" : 16384,
    "uuid" : "62001a43-deed-3f40-8d2d-57ad475e6c95",
    "path" : "\/usr\/local\/lib\/python3.12\/site-packages\/psutil\/_psutil_posix.abi3.so",
    "name" : "_psutil_posix.abi3.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64h",
    "base" : 4339560448,
    "size" : 65536,
    "uuid" : "d2da3b5f-f5ba-3ef1-b99d-bc64a8487401",
    "path" : "\/usr\/lib\/libobjc-trampolines.dylib",
    "name" : "libobjc-trampolines.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4538347520,
    "size" : 32768,
    "uuid" : "c39ab52a-6c8b-3e03-990c-27bb9a2fe87f",
    "path" : "\/usr\/local\/lib\/python3.12\/site-packages\/PIL\/_imagingmath.cpython-312-darwin.so",
    "name" : "_imagingmath.cpython-312-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64h",
    "base" : 140703355887616,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 4837360,
    "uuid" : "315a3f65-0954-3635-96dc-2f65c691d074",
    "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "1971"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703518109696,
    "CFBundleShortVersionString" : "2.1.1",
    "CFBundleIdentifier" : "com.apple.HIToolbox",
    "size" : 3112958,
    "uuid" : "a6003e8b-72cc-3d98-b569-26102836c61f",
    "path" : "\/System\/Library\/Frameworks\/Carbon.framework\/Versions\/A\/Frameworks\/HIToolbox.framework\/Versions\/A\/HIToolbox",
    "name" : "HIToolbox"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703407067136,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.AppKit",
    "size" : 16809969,
    "uuid" : "af96f40f-d333-3647-9da4-eddc52df4753",
    "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
    "name" : "AppKit",
    "CFBundleVersion" : "2299.50.120"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703351959552,
    "size" : 624040,
    "uuid" : "f22a1143-9732-3e23-a8b7-cbade6bb8301",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703355236352,
    "size" : 237560,
    "uuid" : "08606a44-7008-3658-9f00-6c250b80e9c3",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703355473920,
    "size" : 49152,
    "uuid" : "86dfa543-95fa-36b4-83c6-bf03d01b2aad",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  }
],
  "sharedCache" : {
  "base" : 140703351336960,
  "size" : 21474836480,
  "uuid" : "1b64bf32-be7f-304b-add0-ce61655e2402"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=620.3M resident=0K(0%) swapped_out_or_unallocated=620.3M(100%)\nWritable regions: Total=717.5M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=717.5M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nAccelerate framework               256K        2 \nActivity Tracing                   256K        1 \nCG backing stores                 2688K        4 \nCG image                          8152K       11 \nCG raster data                    2680K        1 \nColorSync                          264K       29 \nCoreAnimation                     23.5M       34 \nCoreGraphics                        12K        2 \nCoreServices                        92K        1 \nCoreUI image data                 3008K       22 \nFoundation                          16K        1 \nKernel Alloc Once                    8K        1 \nMALLOC                           265.5M       79 \nMALLOC guard page                   32K        8 \nMALLOC_LARGE (reserved)            384K        2         reserved VM address space (unallocated)\nMALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)\nSTACK GUARD                         32K        8 \nStack                             19.6M        8 \nVM_ALLOCATE                       13.3M       25 \n__CTF                               824        1 \n__DATA                            27.7M      461 \n__DATA_CONST                      21.9M      252 \n__DATA_DIRTY                       870K      128 \n__FONT_DATA                        2352        1 \n__LINKEDIT                       188.1M       50 \n__OBJC_RO                         66.2M        1 \n__OBJC_RW                         2012K        2 \n__TEXT                           432.3M      465 \ndyld private memory                260K        2 \nmapped file                      286.6M       35 \nshared memory                     1308K       21 \n===========                     =======  ======= \nTOTAL                              1.7G     1659 \nTOTAL, minus reserved VM space     1.3G     1659 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "logWritingSignature" : "0da46a650eca68d81e22b6d6592522201b7447f7",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "6246d6a916a70b047e454124",
      "factorPackIds" : {

      },
      "deploymentId" : 240000010
    },
    {
      "rolloutId" : "60186475825c62000ccf5450",
      "factorPackIds" : {

      },
      "deploymentId" : 240000069
    }
  ],
  "experiments" : [
    {
      "treatmentId" : "a3f9ec09-b145-49f3-8142-da4a1f338456",
      "experimentId" : "65f21aa774b6f500a45abd7d",
      "deploymentId" : 400000002
    }
  ]
}
}

Model: MacBookPro16,1, BootROM 1968.120.12.0.0 (iBridge: 20.16.5058.0.0,0), 6 processors, 6-Core Intel Core i7, 2.6 GHz, 16 GB, SMC 
Graphics: Intel UHD Graphics 630, Intel UHD Graphics 630, Built-In
Graphics: AMD Radeon Pro 5300M, AMD Radeon Pro 5300M, PCIe, 4 GB
Display: Color LCD, 3072 x 1920 Retina, Main, MirrorOff, Online
Memory Module: BANK 0/ChannelA-DIMM0, 8 GB, DDR4, 2667 MHz, SK Hynix, HMA81GS6CJR8N-VK
Memory Module: BANK 2/ChannelB-DIMM0, 8 GB, DDR4, 2667 MHz, SK Hynix, HMA81GS6CJR8N-VK
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x7BF), wl0: Dec  9 2022 17:02:25 version 9.30.492.0.32.5.87 FWID 01-e7856862
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: T2Bus
USB Device: composite_device
USB Device: Touch Bar Backlight
USB Device: Touch Bar Display
USB Device: Apple Internal Keyboard / Trackpad
USB Device: Headset
USB Device: Ambient Light Sensor
USB Device: FaceTime HD Camera (Built-in)
USB Device: Apple T2 Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 63.5
Thunderbolt Bus: MacBook Pro, Apple Inc., 63.5

command line prints:

zsh: segmentation fault  python3 batchwatermark.py

Code for batchwatermark.py is this

import os
import subprocess
from queue import Queue
from threading import Thread
from gooey import Gooey, GooeyParser

# Define the function to process a video
def process_video(input_path, output_path, watermark_image):
    # Construct the FFmpeg command for adding the watermark
    ffmpeg_command = [
        'ffmpeg',
        '-y',  # Overwrite output files without asking
        '-i', input_path,  # Input video file
        '-i', watermark_image,  # Watermark image
        '-filter_complex', '[1:v][0:v]scale2ref=w=iw/4:h=ow/mdar[watermark][video];[video][watermark]overlay=W-w-10:10',  # Resize watermark and place it in the top right corner
        '-codec:v', 'libx264',  # Use H.264 video codec
        '-movflags', 'faststart',  # Move the moov atom to the start of the file
        '-codec:a', 'aac',  # Use AAC audio codec
        output_path  # Output video file
    ]
    subprocess.run(ffmpeg_command)

# Define the function to iterate through a directory
def iterate_directory(directory, output_directory, watermark_image):
    tasks = Queue()

    # Loop through all files in the video directory
    for video_file in os.listdir(directory):
        # Check if the file is a video (you can add more extensions if needed)
        if video_file.lower().endswith(('.mp4', '.mkv', '.avi','.mov')):
            input_path = os.path.join(directory, video_file)
            output_file_name = os.path.splitext(video_file)[0] + '.mp4'  # Change the output file extension to .mp4
            output_path = os.path.join(output_directory, output_file_name)
            tasks.put((input_path, output_path))

    total_tasks = tasks.qsize()

    # Process the tasks
    for i in range(total_tasks):
        input_path, output_path = tasks.get()
        print(f'Progress: {i+1}/{total_tasks}')
        print("Processing:", input_path)
        process_video(input_path, output_path, watermark_image)
        tasks.task_done()

@Gooey(progress_regex=r"^Progress: (?P<current>\d+)/(?P<total>\d+)$",
       progress_expr="current / total * 100",show_restart_button=False, richtext_controls=True)
def main():
    parser = GooeyParser(description="This program adds a watermark to all videos in a directory")
    parser.add_argument('input_directory', type=str, help='Source directory', widget='DirChooser')
    parser.add_argument('output_directory', type=str, help='Output directory', widget='DirChooser', default=os.getcwd()+os.sep+'output')
    parser.add_argument('watermark_image', type=str, help='Watermark image', widget='FileChooser', default=os.getcwd()+os.sep+'logo.png')
    args = parser.parse_args()

    # Ensure the output directory exists
    if not os.path.exists(args.output_directory):
        os.makedirs(args.output_directory)

    iterate_directory(args.input_directory, args.output_directory, args.watermark_image)

if __name__ == '__main__':
    main()

Found a bug? Just a friendly heads up, debugging it requires information from you! Make sure the template below is filled out in its entirety.

  • MacOS Ventura 13.3.1 (22E261)
  • Python Version : Python 3.12.2
  • Gooey Version: gooey==1.0.8.1, colored==1.4.4 (to prevent another bug)
  • Thorough description of problem
    • Expected, no crash , exits successfully
    • Actual Behavior, crashes
@r5r3
Copy link

r5r3 commented Jul 20, 2024

That seems to be an issue of wxpython. For now, I use python 3.11 as a workaround.

@k-gruenberg
Copy link

Same problem here. Pretty ugly to have Python segfault..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants