Glyphs 3 Crashes on Macro

I’ve tried Python 3.82/3.9.1/3.9.13, 3.10,pyobjc 6.0/6.2.2/7.0/8.4/8.5.1, but till crash when execute macro

import sys
print("--version")
print(sys.version)

image

------
-------------------------------------

Process:               Glyphs 3 [1862]
Path:                  /Applications/Glyphs 3.app/Contents/MacOS/Glyphs 3
Identifier:            com.GeorgSeifert.Glyphs3
Version:               3.1.1 (3135)
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
User ID:               502

Date/Time:             2022-10-20 23:22:39.1919 +0800
OS Version:            macOS 12.6 (21G115)
Report Version:        12
Bridge OS Version:     6.6 (19P6067)
Anonymous UUID:        4BCC41B2-D0B6-B615-FA60-41EEFCB66AAF


Time Awake Since Boot: 700 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 0x0000000000000008
Exception Codes:       0x0000000000000001, 0x0000000000000008
Exception Note:        EXC_CORPSE_NOTIFY

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

VM Region Info: 0x8 is not in any region.  Bytes before following region: 140737486282744
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      VM_ALLOCATE              7fffffe06000-7fffffe07000 [    4K] r-x/r-x SM=ALI  

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   Python                        	       0x1220f7cb0 convertitem + 2880
1   Python                        	       0x1220f38a3 vgetargs1_impl + 867
2   Python                        	       0x1220f336b PyArg_ParseTuple + 171
3   Python                        	       0x12205152d type_new + 109
4   _objc.cpython-39-darwin.so    	       0x1280630d9 PyObjCClass_NewMetaClass + 281
5   _objc.cpython-39-darwin.so    	       0x128062b38 PyObjCClass_New + 152
6   _objc.cpython-39-darwin.so    	       0x12803b9a9 PyObjC_GetClassList + 137
7   _objc.cpython-39-darwin.so    	       0x12805bc11 loadBundle + 369
8   Python                        	       0x12203a48b cfunction_call + 59
9   Python                        	       0x121ffb357 _PyObject_MakeTpCall + 359
10  Python                        	       0x1220d3cbc call_function + 876
11  Python                        	       0x1220d1208 _PyEval_EvalFrameDefault + 25880
12  Python                        	       0x1220d4923 _PyEval_EvalCode + 2611
13  Python                        	       0x121ffba51 _PyFunction_Vectorcall + 289
14  Python                        	       0x1220d3c2c call_function + 732
15  Python                        	       0x1220d1208 _PyEval_EvalFrameDefault + 25880
16  Python                        	       0x1220d4923 _PyEval_EvalCode + 2611
17  Python                        	       0x1220cabcb PyEval_EvalCode + 139
18  Python                        	       0x1220c7a32 builtin_exec + 626
19  Python                        	       0x122039dd3 cfunction_vectorcall_FASTCALL + 195
20  Python                        	       0x1220d17a9 _PyEval_EvalFrameDefault + 27321
21  Python                        	       0x1220d4923 _PyEval_EvalCode + 2611
22  Python                        	       0x121ffba51 _PyFunction_Vectorcall + 289
23  Python                        	       0x1220d3c2c call_function + 732
24  Python                        	       0x1220d10c2 _PyEval_EvalFrameDefault + 25554
25  Python                        	       0x121ffbac8 function_code_fastcall + 104
26  Python                        	       0x1220d3c2c call_function + 732
27  Python                        	       0x1220d109e _PyEval_EvalFrameDefault + 25518
28  Python                        	       0x121ffbac8 function_code_fastcall + 104
29  Python                        	       0x1220d3c2c call_function + 732
30  Python                        	       0x1220d116b _PyEval_EvalFrameDefault + 25723
31  Python                        	       0x121ffbac8 function_code_fastcall + 104
32  Python                        	       0x1220d3c2c call_function + 732
33  Python                        	       0x1220d116b _PyEval_EvalFrameDefault + 25723
34  Python                        	       0x121ffbac8 function_code_fastcall + 104
35  Python                        	       0x121ffcca6 object_vacall + 374
36  Python                        	       0x121ffce2f _PyObject_CallMethodIdObjArgs + 255
37  Python                        	       0x122100a0c PyImport_ImportModuleLevelObject + 1228
38  Python                        	       0x1220cfb76 _PyEval_EvalFrameDefault + 20102
39  Python                        	       0x1220d4923 _PyEval_EvalCode + 2611
40  Python                        	       0x1220cabcb PyEval_EvalCode + 139
41  Glyphs 3                      	       0x103d61687 0x103b79000 + 2000519
42  Glyphs 3                      	       0x103c94cdc 0x103b79000 + 1162460
43  Glyphs 3                      	       0x103c94c5a 0x103b79000 + 1162330
44  Glyphs 3                      	       0x103d665ca 0x103b79000 + 2020810
45  AppKit                        	    0x7ff8212970ce -[NSApplication(NSResponder) sendAction:to:from:] + 288
46  Glyphs 3                      	       0x103c90522 0x103b79000 + 1144098
47  AppKit                        	    0x7ff821296f74 -[NSControl sendAction:to:] + 86
48  AppKit                        	    0x7ff821296ea6 __26-[NSCell _sendActionFrom:]_block_invoke + 131
49  AppKit                        	    0x7ff821296daf -[NSCell _sendActionFrom:] + 171
50  AppKit                        	    0x7ff821296cf7 -[NSButtonCell _sendActionFrom:] + 96
51  AppKit                        	    0x7ff821293b6f NSControlTrackMouse + 1813
52  AppKit                        	    0x7ff821293436 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 121
53  AppKit                        	    0x7ff821293306 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 679
54  AppKit                        	    0x7ff8212926d6 -[NSControl mouseDown:] + 678
55  AppKit                        	    0x7ff821290bc1 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 4859
56  AppKit                        	    0x7ff821204d7e -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2582
57  AppKit                        	    0x7ff82120414e -[NSWindow(NSEventRouting) sendEvent:] + 352
58  AppKit                        	    0x7ff821202524 -[NSApplication(NSEvent) sendEvent:] + 352
59  Glyphs 3                      	       0x103c8ff3b 0x103b79000 + 1142587
60  AppKit                        	    0x7ff8214bb18b -[NSApplication _handleEvent:] + 65
61  AppKit                        	    0x7ff821083d3e -[NSApplication run] + 623
62  AppKit                        	    0x7ff821057c97 NSApplicationMain + 817
63  Glyphs 3                      	       0x103c029eb 0x103b79000 + 563691
64  dyld                          	       0x11092152e start + 462

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

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

Thread 3:: JavaScriptCore libpas scavenger
0   libsystem_kernel.dylib        	    0x7ff81e55a3ea __psynch_cvwait + 10
1   libsystem_pthread.dylib       	    0x7ff81e594a6f _pthread_cond_wait + 1249
2   JavaScriptCore                	    0x7ff836fc4f25 scavenger_thread_main + 1397
3   libsystem_pthread.dylib       	    0x7ff81e5944e1 _pthread_start + 125
4   libsystem_pthread.dylib       	    0x7ff81e58ff6b thread_start + 15

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

Thread 5:: com.apple.CFSocket.private
0   libsystem_kernel.dylib        	    0x7ff81e55fd5a __select + 10
1   CoreFoundation                	    0x7ff81e682679 __CFSocketManager + 641
2   libsystem_pthread.dylib       	    0x7ff81e5944e1 _pthread_start + 125
3   libsystem_pthread.dylib       	    0x7ff81e58ff6b thread_start + 15

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

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

Thread 8:
0   libsystem_pthread.dylib       	    0x7ff81e58ff48 start_wqthread + 0

Thread 9:: com.apple.NSEventThread
0   libsystem_kernel.dylib        	    0x7ff81e55797a mach_msg_trap + 10
1   libsystem_kernel.dylib        	    0x7ff81e557ce8 mach_msg + 56
2   CoreFoundation                	    0x7ff81e65b36d __CFRunLoopServiceMachPort + 319
3   CoreFoundation                	    0x7ff81e6599f8 __CFRunLoopRun + 1276
4   CoreFoundation                	    0x7ff81e658e3c CFRunLoopRunSpecific + 562
5   AppKit                        	    0x7ff8212009ce _NSEventThread + 132
6   libsystem_pthread.dylib       	    0x7ff81e5944e1 _pthread_start + 125
7   libsystem_pthread.dylib       	    0x7ff81e58ff6b thread_start + 15

Thread 10:
0   libsystem_pthread.dylib       	    0x7ff81e58ff48 start_wqthread + 0

Thread 11:
0   libsystem_pthread.dylib       	    0x7ff81e58ff48 start_wqthread + 0

Thread 12:
0   libsystem_pthread.dylib       	    0x7ff81e58ff48 start_wqthread + 0

Thread 13:
0   libsystem_pthread.dylib       	    0x7ff81e58ff48 start_wqthread + 0

Thread 14:
0   libsystem_pthread.dylib       	    0x7ff81e58ff48 start_wqthread + 0


Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x00007ff7bc383c10  rbx: 0x0000000000000055  rcx: 0x0000000000000018  rdx: 0x00007ff7bc383cb0
  rdi: 0x0000000000000000  rsi: 0x0000000000000100  rbp: 0x00007ff7bc383950  rsp: 0x00007ff7bc383800
   r8: 0x00007ff7bc383a40   r9: 0x0000000000000000  r10: 0x00007ff7bc383cb0  r11: 0x0000000000000003
  r12: 0x00000001221a1575  r13: 0x00000001221a1576  r14: 0x0000000000000003  r15: 0x00007ff7bc3839b8
  rip: 0x00000001220f7cb0  rfl: 0x0000000000010202  cr2: 0x0000000000000008
  
Logical CPU:     4
Error Code:      0x00000004 (no mapping for user data read)
Trap Number:     14

Thread 0 instruction stream:
  0f 85 89 0a 00 00 4c 89-fb 83 f8 28 0f 87 5b 0e  ......L....(..[.
  00 00 49 03 4a 10 83 c0-08 41 89 02 e9 58 0e 00  ..I.J....A...X..
  00 49 8b 42 08 48 8d 48-08 49 89 4a 08 49 8b 49  .I.B.H.H.I.J.I.I
  08 f6 81 ab 00 00 00 08-4c 8b b5 08 ff ff ff 0f  ........L.......
  84 a4 07 00 00 4c 89 bd-00 ff ff ff 48 8b 00 e9  .....L......H...
  55 0e 00 00 49 8b 42 08-48 8d 48 08 49 89 4a 08  U...I.B.H.H.I.J.
 [49]8b 49 08 f6 81 ab 00-00 00 10 0f 84 8e 07 00  I.I.............	<==
  00 4c 89 ad f8 fe ff ff-4c 89 bd 00 ff ff ff 4c  .L......L......L
  8b 30 41 f6 41 20 80 4c-89 cb 75 1b 48 89 df e8  .0A.A .L..u.H...
  7c ba f6 ff 83 f8 ff 4d-89 e5 48 8b 8d 08 ff ff  |......M..H.....
  ff 0f 84 3e f5 ff ff 49-89 1e e9 8e 11 00 00 49  ...>...I.......I
  8b 42 08 48 8d 48 08 49-89 4a 08 48 8b 18 49 8b  .B.H.H.I.J.H..I.

Binary Images:
       0x121fbc000 -        0x122224fff org.python.python (3.9.13, (c) 2001-2021 Python Software Foundation.) <b97c2dab-9fcd-3750-a80d-9066c44adab3> /Library/Frameworks/Python.framework/Versions/3.9/Python
       0x128029000 -        0x12808cfff _objc.cpython-39-darwin.so (*) <1715f4b3-3814-32fb-ac10-b331391c6101> /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/objc/_objc.cpython-39-darwin.so
       0x103b79000 -        0x103dccfff com.GeorgSeifert.Glyphs3 (3.1.1) <72a158ab-5950-340b-893b-6d0380ac04f8> /Applications/Glyphs 3.app/Contents/MacOS/Glyphs 3
    0x7ff821054000 -     0x7ff821ee3fff com.apple.AppKit (6.9) <06015263-62ac-3b08-a298-dc835c18452a> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x11091c000 -        0x110987fff dyld (*) <71febccd-d9dc-3599-9971-2b3407c588a8> /usr/lib/dyld
    0x7ff81e58e000 -     0x7ff81e599fff libsystem_pthread.dylib (*) <b5454e27-e8c7-3fdb-b77f-714f1e82e70b> /usr/lib/system/libsystem_pthread.dylib
    0x7ff81e556000 -     0x7ff81e58dfff libsystem_kernel.dylib (*) <8cc28466-fd2f-3c80-9834-9525b7beac19> /usr/lib/system/libsystem_kernel.dylib
    0x7ff836d5e000 -     0x7ff838371fff com.apple.JavaScriptCore (17613) <3b6788e4-14ab-3a85-b507-2ec9495c9e76> /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore
    0x7ff81e5db000 -     0x7ff81eaddfff com.apple.CoreFoundation (6.9) <93c48919-68af-367e-9a67-db4159bc962c> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
               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=2.0G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=2.0G(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework              1024K        8 
Activity Tracing                   256K        1 
CG backing stores                 2688K        4 
CG image                          2528K       31 
ColorSync                          240K       29 
CoreAnimation                     24.2M      157 
CoreGraphics                        12K        2 
CoreUI image data                 4596K       35 
Foundation                          44K        2 
Image IO                           256K        1 
JS JIT generated code              1.0G        3 
Kernel Alloc Once                    8K        1 
MALLOC                           634.3M      396 
MALLOC guard page                   48K       12 
MALLOC_NANO (reserved)           128.0M        1         reserved VM address space (unallocated)
ObjC additional data                15K        1 
SQLite page cache                  128K        2 
STACK GUARD                       56.1M       15 
Stack                             15.1M       15 
VM_ALLOCATE                       1732K       28 
WebKit Malloc                    192.0M        4 
WebKit Malloc (reserved)          32.0M        1         reserved VM address space (unallocated)
__CTF                               756        1 
__DATA                            33.7M      610 
__DATA_CONST                      29.6M      344 
__DATA_DIRTY                      1559K      203 
__FONT_DATA                          4K        1 
__LINKEDIT                       652.6M       92 
__TEXT                           514.6M      611 
__UNICODE                          592K        1 
dyld private memory               1024K        1 
libnetwork                         128K        8 
mapped file                      277.1M       58 
shared memory                      776K       18 
===========                     =======  ======= 
TOTAL                              3.5G     2697 
TOTAL, minus reserved VM space     3.4G     2697 



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

{"app_name":"Glyphs 3","timestamp":"2022-10-20 23:22:41.00 +0800","app_version":"3.1.1","slice_uuid":"72a158ab-5950-340b-893b-6d0380ac04f8","build_version":"3135","platform":1,"bundleID":"com.GeorgSeifert.Glyphs3","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.6 (21G115)","incident_id":"E575C5D0-9956-4B89-91B7-25BF46D37497","name":"Glyphs 3"}
{
  "uptime" : 700,
  "procLaunch" : "2022-10-20 23:22:22.2964 +0800",
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 502,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro16,1",
  "procStartAbsTime" : 690263422617,
  "coalitionID" : 1718,
  "osVersion" : {
    "train" : "macOS 12.6",
    "build" : "21G115",
    "releaseType" : "User"
  },
  "captureTime" : "2022-10-20 23:22:39.1919 +0800",
  "incident" : "E575C5D0-9956-4B89-91B7-25BF46D37497",
  "bug_type" : "309",
  "pid" : 1862,
  "procExitAbsTime" : 707154834195,
  "cpuType" : "X86-64",
  "procName" : "Glyphs 3",
  "procPath" : "\/Applications\/Glyphs 3.app\/Contents\/MacOS\/Glyphs 3",
  "bundleInfo" : {"CFBundleShortVersionString":"3.1.1","CFBundleVersion":"3135","CFBundleIdentifier":"com.GeorgSeifert.Glyphs3"},
  "storeInfo" : {"deviceIdentifierForVendor":"D2ED1144-47B5-5CD2-9A34-50DB9887C906","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "com.GeorgSeifert.Glyphs3",
  "crashReporterKey" : "4BCC41B2-D0B6-B615-FA60-41EEFCB66AAF",
  "bridgeVersion" : {"build":"19P6067","train":"6.6"},
  "sip" : "enabled",
  "vmRegionInfo" : "0x8 is not in any region.  Bytes before following region: 140737486282744\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      VM_ALLOCATE              7fffffe06000-7fffffe07000 [    4K] r-x\/r-x SM=ALI  ",
  "isCorpse" : 1,
  "exception" : {"codes":"0x0000000000000001, 0x0000000000000008","rawCodes":[1,8],"type":"EXC_BAD_ACCESS","signal":"SIGSEGV","subtype":"KERN_INVALID_ADDRESS at 0x0000000000000008"},
  "termination" : {"flags":0,"code":11,"namespace":"SIGNAL","indicator":"Segmentation fault: 11","byProc":"exc handler","byPid":1862},
  "vmregioninfo" : "0x8 is not in any region.  Bytes before following region: 140737486282744\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      VM_ALLOCATE              7fffffe06000-7fffffe07000 [    4K] r-x\/r-x SM=ALI  ",
  "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":19778,"instructionState":{"instructionStream":{"bytes":[15,133,137,10,0,0,76,137,251,131,248,40,15,135,91,14,0,0,73,3,74,16,131,192,8,65,137,2,233,88,14,0,0,73,139,66,8,72,141,72,8,73,137,74,8,73,139,73,8,246,129,171,0,0,0,8,76,139,181,8,255,255,255,15,132,164,7,0,0,76,137,189,0,255,255,255,72,139,0,233,85,14,0,0,73,139,66,8,72,141,72,8,73,137,74,8,73,139,73,8,246,129,171,0,0,0,16,15,132,142,7,0,0,76,137,173,248,254,255,255,76,137,189,0,255,255,255,76,139,48,65,246,65,32,128,76,137,203,117,27,72,137,223,232,124,186,246,255,131,248,255,77,137,229,72,139,141,8,255,255,255,15,132,62,245,255,255,73,137,30,233,142,17,0,0,73,139,66,8,72,141,72,8,73,137,74,8,72,139,24,73,139],"offset":96}},"threadState":{"r13":{"value":4867102070},"rax":{"value":140701991451664},"rflags":{"value":66050},"cpu":{"value":4},"r14":{"value":3},"rsi":{"value":256},"r8":{"value":140701991451200},"cr2":{"value":8},"rdx":{"value":140701991451824},"r10":{"value":140701991451824},"r9":{"value":0},"r15":{"value":140701991451064},"rbx":{"value":85},"trap":{"value":14,"description":"(no mapping for user data read)"},"err":{"value":4},"r11":{"value":3},"rip":{"value":4866407600,"matchesCrashFrame":1},"rbp":{"value":140701991450960},"rsp":{"value":140701991450624},"r12":{"value":4867102069},"rcx":{"value":24},"flavor":"x86_THREAD_STATE","rdi":{"value":0}},"queue":"com.apple.main-thread","frames":[{"imageOffset":1293488,"symbol":"convertitem","symbolLocation":2880,"imageIndex":0},{"imageOffset":1276067,"symbol":"vgetargs1_impl","symbolLocation":867,"imageIndex":0},{"imageOffset":1274731,"symbol":"PyArg_ParseTuple","symbolLocation":171,"imageIndex":0},{"imageOffset":611629,"symbol":"type_new","symbolLocation":109,"imageIndex":0},{"imageOffset":237785,"symbol":"PyObjCClass_NewMetaClass","symbolLocation":281,"imageIndex":1},{"imageOffset":236344,"symbol":"PyObjCClass_New","symbolLocation":152,"imageIndex":1},{"imageOffset":76201,"symbol":"PyObjC_GetClassList","symbolLocation":137,"imageIndex":1},{"imageOffset":207889,"symbol":"loadBundle","symbolLocation":369,"imageIndex":1},{"imageOffset":517259,"symbol":"cfunction_call","symbolLocation":59,"imageIndex":0},{"imageOffset":258903,"symbol":"_PyObject_MakeTpCall","symbolLocation":359,"imageIndex":0},{"imageOffset":1146044,"symbol":"call_function","symbolLocation":876,"imageIndex":0},{"imageOffset":1135112,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":25880,"imageIndex":0},{"imageOffset":1149219,"symbol":"_PyEval_EvalCode","symbolLocation":2611,"imageIndex":0},{"imageOffset":260689,"symbol":"_PyFunction_Vectorcall","symbolLocation":289,"imageIndex":0},{"imageOffset":1145900,"symbol":"call_function","symbolLocation":732,"imageIndex":0},{"imageOffset":1135112,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":25880,"imageIndex":0},{"imageOffset":1149219,"symbol":"_PyEval_EvalCode","symbolLocation":2611,"imageIndex":0},{"imageOffset":1108939,"symbol":"PyEval_EvalCode","symbolLocation":139,"imageIndex":0},{"imageOffset":1096242,"symbol":"builtin_exec","symbolLocation":626,"imageIndex":0},{"imageOffset":515539,"symbol":"cfunction_vectorcall_FASTCALL","symbolLocation":195,"imageIndex":0},{"imageOffset":1136553,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":27321,"imageIndex":0},{"imageOffset":1149219,"symbol":"_PyEval_EvalCode","symbolLocation":2611,"imageIndex":0},{"imageOffset":260689,"symbol":"_PyFunction_Vectorcall","symbolLocation":289,"imageIndex":0},{"imageOffset":1145900,"symbol":"call_function","symbolLocation":732,"imageIndex":0},{"imageOffset":1134786,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":25554,"imageIndex":0},{"imageOffset":260808,"symbol":"function_code_fastcall","symbolLocation":104,"imageIndex":0},{"imageOffset":1145900,"symbol":"call_function","symbolLocation":732,"imageIndex":0},{"imageOffset":1134750,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":25518,"imageIndex":0},{"imageOffset":260808,"symbol":"function_code_fastcall","symbolLocation":104,"imageIndex":0},{"imageOffset":1145900,"symbol":"call_function","symbolLocation":732,"imageIndex":0},{"imageOffset":1134955,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":25723,"imageIndex":0},{"imageOffset":260808,"symbol":"function_code_fastcall","symbolLocation":104,"imageIndex":0},{"imageOffset":1145900,"symbol":"call_function","symbolLocation":732,"imageIndex":0},{"imageOffset":1134955,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":25723,"imageIndex":0},{"imageOffset":260808,"symbol":"function_code_fastcall","symbolLocation":104,"imageIndex":0},{"imageOffset":265382,"symbol":"object_vacall","symbolLocation":374,"imageIndex":0},{"imageOffset":265775,"symbol":"_PyObject_CallMethodIdObjArgs","symbolLocation":255,"imageIndex":0},{"imageOffset":1329676,"symbol":"PyImport_ImportModuleLevelObject","symbolLocation":1228,"imageIndex":0},{"imageOffset":1129334,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":20102,"imageIndex":0},{"imageOffset":1149219,"symbol":"_PyEval_EvalCode","symbolLocation":2611,"imageIndex":0},{"imageOffset":1108939,"symbol":"PyEval_EvalCode","symbolLocation":139,"imageIndex":0},{"imageOffset":2000519,"imageIndex":2},{"imageOffset":1162460,"imageIndex":2},{"imageOffset":1162330,"imageIndex":2},{"imageOffset":2020810,"imageIndex":2},{"imageOffset":2371790,"symbol":"-[NSApplication(NSResponder) sendAction:to:from:]","symbolLocation":288,"imageIndex":3},{"imageOffset":1144098,"imageIndex":2},{"imageOffset":2371444,"symbol":"-[NSControl sendAction:to:]","symbolLocation":86,"imageIndex":3},{"imageOffset":2371238,"symbol":"__26-[NSCell _sendActionFrom:]_block_invoke","symbolLocation":131,"imageIndex":3},{"imageOffset":2370991,"symbol":"-[NSCell _sendActionFrom:]","symbolLocation":171,"imageIndex":3},{"imageOffset":2370807,"symbol":"-[NSButtonCell _sendActionFrom:]","symbolLocation":96,"imageIndex":3},{"imageOffset":2358127,"symbol":"NSControlTrackMouse","symbolLocation":1813,"imageIndex":3},{"imageOffset":2356278,"symbol":"-[NSCell trackMouse:inRect:ofView:untilMouseUp:]","symbolLocation":121,"imageIndex":3},{"imageOffset":2355974,"symbol":"-[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:]","symbolLocation":679,"imageIndex":3},{"imageOffset":2352854,"symbol":"-[NSControl mouseDown:]","symbolLocation":678,"imageIndex":3},{"imageOffset":2345921,"symbol":"-[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:]","symbolLocation":4859,"imageIndex":3},{"imageOffset":1772926,"symbol":"-[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:]","symbolLocation":2582,"imageIndex":3},{"imageOffset":1769806,"symbol":"-[NSWindow(NSEventRouting) sendEvent:]","symbolLocation":352,"imageIndex":3},{"imageOffset":1762596,"symbol":"-[NSApplication(NSEvent) sendEvent:]","symbolLocation":352,"imageIndex":3},{"imageOffset":1142587,"imageIndex":2},{"imageOffset":4616587,"symbol":"-[NSApplication _handleEvent:]","symbolLocation":65,"imageIndex":3},{"imageOffset":195902,"symbol":"-[NSApplication run]","symbolLocation":623,"imageIndex":3},{"imageOffset":15511,"symbol":"NSApplicationMain","symbolLocation":817,"imageIndex":3},{"imageOffset":563691,"imageIndex":2},{"imageOffset":21806,"symbol":"start","symbolLocation":462,"imageIndex":4}]},{"id":19788,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":5}]},{"id":19789,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":5}]},{"id":19792,"name":"JavaScriptCore libpas scavenger","frames":[{"imageOffset":17386,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":6},{"imageOffset":27247,"symbol":"_pthread_cond_wait","symbolLocation":1249,"imageIndex":5},{"imageOffset":2518821,"symbol":"scavenger_thread_main","symbolLocation":1397,"imageIndex":7},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":5},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":5}]},{"id":19803,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":5}]},{"id":19983,"name":"com.apple.CFSocket.private","frames":[{"imageOffset":40282,"symbol":"__select","symbolLocation":10,"imageIndex":6},{"imageOffset":685689,"symbol":"__CFSocketManager","symbolLocation":641,"imageIndex":8},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":5},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":5}]},{"id":20013,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":5}]},{"id":20014,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":5}]},{"id":20127,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":5}]},{"id":20128,"name":"com.apple.NSEventThread","frames":[{"imageOffset":6522,"symbol":"mach_msg_trap","symbolLocation":10,"imageIndex":6},{"imageOffset":7400,"symbol":"mach_msg","symbolLocation":56,"imageIndex":6},{"imageOffset":525165,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":319,"imageIndex":8},{"imageOffset":518648,"symbol":"__CFRunLoopRun","symbolLocation":1276,"imageIndex":8},{"imageOffset":515644,"symbol":"CFRunLoopRunSpecific","symbolLocation":562,"imageIndex":8},{"imageOffset":1755598,"symbol":"_NSEventThread","symbolLocation":132,"imageIndex":3},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":5},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":5}]},{"id":20954,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":5}]},{"id":20955,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":5}]},{"id":20964,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":5}]},{"id":20965,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":5}]},{"id":20978,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":5}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4865114112,
    "CFBundleShortVersionString" : "3.9.13, (c) 2001-2021 Python Software Foundation.",
    "CFBundleIdentifier" : "org.python.python",
    "size" : 2527232,
    "uuid" : "b97c2dab-9fcd-3750-a80d-9066c44adab3",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/3.9\/Python",
    "name" : "Python",
    "CFBundleVersion" : "3.9.13"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4966223872,
    "size" : 409600,
    "uuid" : "1715f4b3-3814-32fb-ac10-b331391c6101",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/3.9\/lib\/python3.9\/site-packages\/objc\/_objc.cpython-39-darwin.so",
    "name" : "_objc.cpython-39-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4357328896,
    "CFBundleShortVersionString" : "3.1.1",
    "CFBundleIdentifier" : "com.GeorgSeifert.Glyphs3",
    "size" : 2441216,
    "uuid" : "72a158ab-5950-340b-893b-6d0380ac04f8",
    "path" : "\/Applications\/Glyphs 3.app\/Contents\/MacOS\/Glyphs 3",
    "name" : "Glyphs 3",
    "CFBundleVersion" : "3135"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703682609152,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.AppKit",
    "size" : 15269888,
    "uuid" : "06015263-62ac-3b08-a298-dc835c18452a",
    "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
    "name" : "AppKit",
    "CFBundleVersion" : "2113.60.148"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4572954624,
    "size" : 442368,
    "uuid" : "71febccd-d9dc-3599-9971-2b3407c588a8",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703637757952,
    "size" : 49152,
    "uuid" : "b5454e27-e8c7-3fdb-b77f-714f1e82e70b",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703637528576,
    "size" : 229376,
    "uuid" : "8cc28466-fd2f-3c80-9834-9525b7beac19",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140704048603136,
    "CFBundleShortVersionString" : "17613",
    "CFBundleIdentifier" : "com.apple.JavaScriptCore",
    "size" : 23150592,
    "uuid" : "3b6788e4-14ab-3a85-b507-2ec9495c9e76",
    "path" : "\/System\/Library\/Frameworks\/JavaScriptCore.framework\/Versions\/A\/JavaScriptCore",
    "name" : "JavaScriptCore",
    "CFBundleVersion" : "17613.3.9.1.16"
  },
  {
    "source" : "P",
    "arch" : "x86_64h",
    "base" : 140703638073344,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 5255168,
    "uuid" : "93c48919-68af-367e-9a67-db4159bc962c",
    "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "1866"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  }
],
  "sharedCache" : {
  "base" : 140703634501632,
  "size" : 19331678208,
  "uuid" : "73669942-bd8a-3e40-951f-7fbe07b51cb8"
},

Model: MacBookPro16,1, BootROM 1731.140.2.0.0 (iBridge: 19.16.16067.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
Display: Color LCD, 3072 x 1920 Retina, Main, MirrorOff, Online
Graphics: AMD Radeon Pro 5300M, AMD Radeon Pro 5300M, PCIe, 4 GB
Memory Module: BANK 0/ChannelA-DIMM0, 8 GB, DDR4, 2667 MHz, Micron, 8ATF1G64HZ-2G6E1
Memory Module: BANK 2/ChannelB-DIMM0, 8 GB, DDR4, 2667 MHz, Micron, 8ATF1G64HZ-2G6E1

  1. I’ve tried Glyphs Python 3.9.1, it crashes all the time when I execute Macro

  2. then I’ve tried my own Python versions, and installed pyobjc 6.0/6.2.2/7/8.4/8.5.1, but failed

Any reason why you installed python 3.8 and not the latest version?
What have you selected in Preferences > Addons > Python version?

What happens if you run that same script in Terminal?