Crash when activating tree-sitter extension

I’m trying to build an extension based of this existing tree sitter syntax.

I’m using a command line build of tree-sitter CLI tool:

./tree-sitter-macos-arm64 generate 

Then compiling the extension using Panic’s own script:

./compile_parser.sh . /Applications/Nova.app

The resulting libtree-sitter-m68k.dylib is then copied into my extension’s syntaxes folder but when trying to activate the extension, I get a crash:

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	       0x191168724 __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x19119fc28 pthread_kill + 288
2   libsystem_c.dylib             	       0x1910adae8 abort + 180
3   Nova                          	       0x103484888 0x102fa0000 + 5130376
4   Nova                          	       0x103470038 0x102fa0000 + 5046328
5   HIToolbox                     	       0x19aa9f454 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1692
6   HIToolbox                     	       0x19aa9e680 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 356
7   HIToolbox                     	       0x19aab4898 SendEventToEventTarget + 40
8   HIToolbox                     	       0x19ab12738 SendHICommandEvent(unsigned int, HICommand const*, unsigned int, unsigned int, unsigned char, void const*, OpaqueEventTargetRef*, OpaqueEventTargetRef*, OpaqueEventRef**) + 416
9   HIToolbox                     	       0x19ab363b8 SendMenuCommandWithContextAndModifiers + 56
10  HIToolbox                     	       0x19ab36348 SendMenuItemSelectedEvent + 352
11  HIToolbox                     	       0x19ab36174 FinishMenuSelection(SelectionData*, MenuResult*, MenuResult*) + 100
12  HIToolbox                     	       0x19ab36b34 MenuSelectCore(MenuData*, Point, double, unsigned int, OpaqueMenuRef**, unsigned short*) + 560
13  HIToolbox                     	       0x19ab36854 _HandleMenuSelection2 + 416
14  AppKit                        	       0x1945efcf4 _NSHandleCarbonMenuEvent + 256
15  AppKit                        	       0x1945efb18 _DPSEventHandledByCarbon + 60
16  AppKit                        	       0x19449d4cc -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2232
17  AppKit                        	       0x194491344 -[NSApplication run] + 464
18  AppKit                        	       0x194468794 NSApplicationMain + 880
19  dyld                          	       0x190e47f28 start + 2236

Any clue where to start looking?

Would you be able to provide either the entire crash report (as the bit here is missing the load address alignments for the binaries for me to lookup the obfuscated symbols) or a copy of the extension that I might be able to attempt to reproduce this?

Thank you!

Sure thing! Here is also the extension itself in case you want to try it out.

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

Process:               Nova [6314]
Path:                  /Applications/Nova.app/Contents/MacOS/Nova
Identifier:            com.panic.Nova
Version:               11.2 (526549)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2023-06-22 10:22:11.4642 +0200
OS Version:            macOS 13.4 (22F66)
Report Version:        12
Anonymous UUID:        CE464F2D-F037-5FF7-3680-C951C8F8D741

Sleep/Wake UUID:       D9E60319-A0B7-4389-AC13-16D89D1B4863

Time Awake Since Boot: 14000 seconds
Time Since Wake:       722 seconds

System Integrity Protection: enabled

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

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Application Specific Information:
abort() called


Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	       0x191168724 __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x19119fc28 pthread_kill + 288
2   libsystem_c.dylib             	       0x1910adae8 abort + 180
3   Nova                          	       0x104a80888 0x10459c000 + 5130376
4   Nova                          	       0x104a6c038 0x10459c000 + 5046328
5   HIToolbox                     	       0x19aa9f454 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1692
6   HIToolbox                     	       0x19aa9e680 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 356
7   HIToolbox                     	       0x19aab4898 SendEventToEventTarget + 40
8   HIToolbox                     	       0x19ab12738 SendHICommandEvent(unsigned int, HICommand const*, unsigned int, unsigned int, unsigned char, void const*, OpaqueEventTargetRef*, OpaqueEventTargetRef*, OpaqueEventRef**) + 416
9   HIToolbox                     	       0x19ab363b8 SendMenuCommandWithContextAndModifiers + 56
10  HIToolbox                     	       0x19ab36348 SendMenuItemSelectedEvent + 352
11  HIToolbox                     	       0x19ab36174 FinishMenuSelection(SelectionData*, MenuResult*, MenuResult*) + 100
12  HIToolbox                     	       0x19ab36b34 MenuSelectCore(MenuData*, Point, double, unsigned int, OpaqueMenuRef**, unsigned short*) + 560
13  HIToolbox                     	       0x19ab36854 _HandleMenuSelection2 + 416
14  AppKit                        	       0x1945efcf4 _NSHandleCarbonMenuEvent + 256
15  AppKit                        	       0x1945efb18 _DPSEventHandledByCarbon + 60
16  AppKit                        	       0x19449d4cc -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2232
17  AppKit                        	       0x194491344 -[NSApplication run] + 464
18  AppKit                        	       0x194468794 NSApplicationMain + 880
19  dyld                          	       0x190e47f28 start + 2236

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

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

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

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

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

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

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

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

Thread 9:
0   libsystem_pthread.dylib       	       0x19119ad8c start_wqthread + 0

Thread 10:
0   libsystem_kernel.dylib        	       0x19115ff14 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x191172240 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x191168b78 mach_msg_overwrite + 604
3   libsystem_kernel.dylib        	       0x191160290 mach_msg + 24
4   Nova                          	       0x104a737dc 0x10459c000 + 5076956
5   libsystem_pthread.dylib       	       0x19119ffa8 _pthread_start + 148
6   libsystem_pthread.dylib       	       0x19119ada0 thread_start + 8

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

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

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

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

Thread 15:
0   libsystem_pthread.dylib       	       0x19119ad8c start_wqthread + 0

Thread 16:: com.apple.NSEventThread
0   libsystem_kernel.dylib        	       0x19115ff14 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x191172240 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x191168b78 mach_msg_overwrite + 604
3   libsystem_kernel.dylib        	       0x191160290 mach_msg + 24
4   CoreFoundation                	       0x19127e7e4 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x19127d0c4 __CFRunLoopRun + 1208
6   CoreFoundation                	       0x19127c4b8 CFRunLoopRunSpecific + 612
7   AppKit                        	       0x1945c8334 _NSEventThread + 172
8   libsystem_pthread.dylib       	       0x19119ffa8 _pthread_start + 148
9   libsystem_pthread.dylib       	       0x19119ada0 thread_start + 8

Thread 17:: com.apple.NSURLConnectionLoader
0   libsystem_kernel.dylib        	       0x19115ff14 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x191172240 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x191168b78 mach_msg_overwrite + 604
3   libsystem_kernel.dylib        	       0x191160290 mach_msg + 24
4   CoreFoundation                	       0x19127e7e4 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x19127d0c4 __CFRunLoopRun + 1208
6   CoreFoundation                	       0x19127c4b8 CFRunLoopRunSpecific + 612
7   CFNetwork                     	       0x195c5dbd8 0x195a09000 + 2444248
8   Foundation                    	       0x1921ef54c __NSThread__start__ + 716
9   libsystem_pthread.dylib       	       0x19119ffa8 _pthread_start + 148
10  libsystem_pthread.dylib       	       0x19119ada0 thread_start + 8


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x0000000000000010   x5: 0x0000000000000020   x6: 0x0000600001b91500   x7: 0x00000000000004a0
    x8: 0xd911d9838d83af3a   x9: 0xd911d982619a713a  x10: 0x000060000c48bd9a  x11: 0x0000000000000003
   x12: 0x0000000000000002  x13: 0x0000600000f41290  x14: 0x04000001ec1bf011  x15: 0x00000001ec1bf010
   x16: 0x0000000000000148  x17: 0x00000001f0cc0f60  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x00000001ec19de00  x21: 0x0000000000000103  x22: 0x00000001ec19dee0  x23: 0x0000000000000000
   x24: 0x000000016b862da0  x25: 0x0000600003663d40  x26: 0x0000000000000001  x27: 0x0000600002440380
   x28: 0x0000000000000000   fp: 0x000000016b862d30   lr: 0x000000019119fc28
    sp: 0x000000016b862d10   pc: 0x0000000191168724 cpsr: 0x40001000
   far: 0x000000011bd7403c  esr: 0x56000080  Address size fault

Binary Images:
       0x10459c000 -        0x104bfbfff com.panic.Nova (11.2) <ee715672-08fa-3410-a2d7-82b31262a4c4> /Applications/Nova.app/Contents/MacOS/Nova
       0x104eb0000 -        0x104ed7fff com.panic.FaceKit (1.0) <93a81e4e-a9e3-3ddf-ab9e-157fd3d18045> /Applications/Nova.app/Contents/Frameworks/FaceKit.framework/Versions/A/FaceKit
       0x1052c8000 -        0x10536ffff com.panic.PanicAppKit (1.1.2) <c71fa088-cf35-3a6a-b639-1504a0cb92b5> /Applications/Nova.app/Contents/Frameworks/PanicAppKit.framework/Versions/A/PanicAppKit
       0x104e30000 -        0x104e43fff com.panic.Markdown (1.0) <29a41cae-3c96-35bd-ad6b-3cfd854ffb0d> /Applications/Nova.app/Contents/Frameworks/Markdown.framework/Versions/A/Markdown
       0x104ff4000 -        0x105037fff org.sparkle-project.Sparkle (2.4.0) <68705f26-ced0-3e19-b644-81eb2a71b4fe> /Applications/Nova.app/Contents/Frameworks/Sparkle.framework/Versions/B/Sparkle
       0x104f20000 -        0x104f53fff com.panic.SyncKit (1.0) <6dabd44f-0697-3aa9-a088-2631e514eda4> /Applications/Nova.app/Contents/Frameworks/SyncKit.framework/Versions/A/SyncKit
       0x104e60000 -        0x104e6bfff com.pixelglow.ZipZap (8.0.3) <8eeb22a8-2af2-3a15-83d1-224a910e99ed> /Applications/Nova.app/Contents/Frameworks/ZipZap.framework/Versions/A/ZipZap
       0x105e88000 -        0x1061effff com.panic.PanicSSHKit (1.2.4) <e7e04d00-5c5b-3b36-96a3-a34e25e65efc> /Applications/Nova.app/Contents/Frameworks/PanicSSHKit.framework/Versions/A/PanicSSHKit
       0x10505c000 -        0x1050effff com.panic.PanicCore (1.1.4) <13a92f5d-30d8-399b-b43b-edb4ec47e62a> /Applications/Nova.app/Contents/Frameworks/PanicCore.framework/Versions/A/PanicCore
       0x1051e8000 -        0x105243fff com.panic.PromptKit (1.0) <20ae134d-b997-37a9-9367-f64e2ed5b948> /Applications/Nova.app/Contents/Frameworks/PromptKit.framework/Versions/A/PromptKit
       0x1054a0000 -        0x10586bfff com.panic.NovaFoundation (10) <307aebfd-c59f-3ceb-86df-1206331798a5> /Applications/Nova.app/Contents/Frameworks/NovaFoundation.framework/Versions/A/NovaFoundation
       0x104dcc000 -        0x104ddbfff com.panic.PanicGitService (1.0) <0204d050-22e4-3c27-b2da-eaf6cb2d97bf> /Applications/Nova.app/Contents/Frameworks/PanicGitService.framework/Versions/A/PanicGitService
       0x106364000 -        0x106413fff com.panic.PanicFileAppKit (1.2.4) <028506f4-1ce5-3a2e-9d35-896ba829d167> /Applications/Nova.app/Contents/Frameworks/PanicFileAppKit.framework/Versions/A/PanicFileAppKit
       0x105b0c000 -        0x105c3ffff com.panic.FTPKit (4.2.4) <cec90077-36e6-35e8-9478-6dd450964f76> /Applications/Nova.app/Contents/Frameworks/FTPKit.framework/Versions/A/FTPKit
       0x106a94000 -        0x106c37fff com.panic.PanicGit (1.0) <851776a3-a6b8-3126-a626-2fc426669d09> /Applications/Nova.app/Contents/Frameworks/PanicGit.framework/Versions/A/PanicGit
       0x108400000 -        0x108d1bfff com.panic.SyntaxKit (1.0) <2817b171-8695-30a9-9c9b-b8cf14f705b2> /Applications/Nova.app/Contents/Frameworks/SyntaxKit.framework/Versions/A/SyntaxKit
       0x104fa4000 -        0x104fcbfff com.panic.UniversalDetector (*) <2027531f-2ee0-3bb1-bc06-1db13d0ab859> /Applications/Nova.app/Contents/Frameworks/UniversalDetector.framework/Versions/A/UniversalDetector
       0x106520000 -        0x106537fff com.panic.Transistor (1.0) <f2eef1b6-7e2f-33f3-b20f-3bcdce9d172f> /Applications/Nova.app/Contents/Frameworks/Transistor.framework/Versions/A/Transistor
       0x105e40000 -        0x105e53fff com.panic.PanicSyncAppKit (1.1.4) <c157df8e-5e0b-3469-9481-83c8986a854a> /Applications/Nova.app/Contents/Frameworks/PanicSyncAppKit.framework/Versions/A/PanicSyncAppKit
       0x1076c0000 -        0x1076dffff com.apple.security.csparser (3.0) <ab8de20f-ecaa-3540-8abe-fcf57e740bec> /System/Library/Frameworks/Security.framework/Versions/A/PlugIns/csparser.bundle/Contents/MacOS/csparser
       0x10c5e8000 -        0x10c5effff com.apple.CloudDocsFileProvider (1.0) <017e043e-5737-3068-9b3a-ddb9a40d7896> /System/Library/Frameworks/FileProvider.framework/OverrideBundles/CloudDocsFileProvider.bundle/Contents/MacOS/CloudDocsFileProvider
       0x10ef58000 -        0x10ef5ffff com.apple.FileProviderOverride (855.121.1) <96bff6ca-1a7e-3003-bbbb-c1a2840a2159> /System/Library/Frameworks/FileProvider.framework/OverrideBundles/FileProviderOverride.bundle/Contents/MacOS/FileProviderOverride
       0x11ac34000 -        0x11ac53fff com.apple.findersync.fileprovideroverride.FinderSyncCollaborationFileProviderOverride (13.4) <b463deea-6610-346d-bd23-63b7501604c6> /System/Library/Frameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride
       0x11bfc8000 -        0x11bfd3fff libobjc-trampolines.dylib (*) <570c31f7-94c6-3b86-ae44-1694db0a4bcd> /usr/lib/libobjc-trampolines.dylib
       0x19115f000 -        0x191198fe7 libsystem_kernel.dylib (*) <42f503e2-9273-360a-a086-c1b19bbd3962> /usr/lib/system/libsystem_kernel.dylib
       0x191199000 -        0x1911a5fff libsystem_pthread.dylib (*) <46d35233-a051-3f4f-bba4-ba56dddc4d1a> /usr/lib/system/libsystem_pthread.dylib
       0x191037000 -        0x1910b5ff7 libsystem_c.dylib (*) <95a70e20-1df3-3ddf-900c-315ed0b2c067> /usr/lib/system/libsystem_c.dylib
       0x19aa96000 -        0x19adc9fff com.apple.HIToolbox (2.1.1) <d800278b-4e6c-3032-b56f-027a938a51d6> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
       0x194465000 -        0x195373fff com.apple.AppKit (6.9) <041c7d21-21cc-3eea-ae53-d39f5ca6a24e> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x190e42000 -        0x190ed0553 dyld (*) <bd993f39-c902-37d6-8bd8-6d827c7f121e> /usr/lib/dyld
       0x1911ff000 -        0x1916d8fff com.apple.CoreFoundation (6.9) <203e4401-8c2e-3157-a24b-92f52551d43e> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
       0x195a09000 -        0x195dccfff com.apple.CFNetwork (1408.0.4) <0e79cb17-3ea4-33f7-8589-da01432afde4> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
       0x192199000 -        0x192b5efff com.apple.Foundation (6.9) <d5337cc6-a075-3ca0-b5bf-b49da8878337> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation

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.4G resident=0K(0%) swapped_out_or_unallocated=1.4G(100%)
Writable regions: Total=2.3G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=2.3G(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework               256K        2 
Activity Tracing                   256K        1 
CG backing stores                 4032K        4 
CG image                          3008K       52 
ColorSync                          592K       30 
CoreAnimation                    150.1M      241 
CoreData Object IDs               4112K        2 
CoreGraphics                        32K        2 
CoreGraphics (reserved)             16K        1         reserved VM address space (unallocated)
CoreServices                        16K        1 
CoreUI image data                 3712K       29 
Foundation                          48K        2 
Image IO                           832K        1 
Kernel Alloc Once                   32K        1 
MALLOC                           372.8M       80 
MALLOC guard page                  288K       15 
MALLOC_MEDIUM (reserved)           1.4G       12         reserved VM address space (unallocated)
MALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)
SQLite page cache                  512K        4 
STACK GUARD                       56.3M       18 
Stack                             17.0M       18 
VM_ALLOCATE                       1552K       31 
__AUTH                            1798K      366 
__AUTH_CONST                      27.8M      595 
__CTF                               824        1 
__DATA                            14.5M      609 
__DATA_CONST                      29.7M      621 
__DATA_DIRTY                      1922K      224 
__FONT_DATA                        2352        1 
__INFO_FILTER                         8        1 
__LINKEDIT                       814.0M       25 
__OBJC_RO                         66.3M        1 
__OBJC_RW                         2011K        1 
__TEXT                           631.4M      642 
dyld private memory                272K        2 
libnetwork                         128K        8 
mapped file                      285.6M      243 
shared memory                     1024K       25 
===========                     =======  ======= 
TOTAL                              4.2G     3913 
TOTAL, minus reserved VM space     2.4G     3913 



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

{"app_name":"Nova","timestamp":"2023-06-22 10:22:11.00 +0200","app_version":"11.2","slice_uuid":"ee715672-08fa-3410-a2d7-82b31262a4c4","build_version":"526549","platform":1,"bundleID":"com.panic.Nova","share_with_app_devs":1,"is_first_party":0,"bug_type":"309","os_version":"macOS 13.4 (22F66)","roots_installed":0,"name":"Nova","incident_id":"975EEE0E-595D-4F2A-B765-624901009288"}
{
  "uptime" : 14000,
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "Mac14,6",
  "coalitionID" : 1447,
  "osVersion" : {
    "train" : "macOS 13.4",
    "build" : "22F66",
    "releaseType" : "User"
  },
  "captureTime" : "2023-06-22 10:22:11.4642 +0200",
  "incident" : "975EEE0E-595D-4F2A-B765-624901009288",
  "pid" : 6314,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2023-06-22 10:22:05.4145 +0200",
  "procStartAbsTime" : 340710651652,
  "procExitAbsTime" : 340855608843,
  "procName" : "Nova",
  "procPath" : "\/Applications\/Nova.app\/Contents\/MacOS\/Nova",
  "bundleInfo" : {"CFBundleShortVersionString":"11.2","CFBundleVersion":"526549","CFBundleIdentifier":"com.panic.Nova"},
  "storeInfo" : {"deviceIdentifierForVendor":"3E281269-BC91-5814-A680-97EFEF6ED4AD","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "com.panic.Nova",
  "crashReporterKey" : "CE464F2D-F037-5FF7-3680-C951C8F8D741",
  "codeSigningID" : "com.panic.Nova",
  "codeSigningTeamID" : "VE8FC488U5",
  "codeSigningFlags" : 570503953,
  "codeSigningValidationCategory" : 6,
  "codeSigningTrustLevel" : 0,
  "wakeTime" : 722,
  "sleepWakeUUID" : "D9E60319-A0B7-4389-AC13-16D89D1B4863",
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
  "asi" : {"libsystem_c.dylib":["abort() called"]},
  "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":215462,"threadState":{"x":[{"value":0},{"value":0},{"value":0},{"value":0},{"value":16},{"value":32},{"value":105553145173248},{"value":1184},{"value":15641522139872603962},{"value":15641522134840930618},{"value":105553322360218},{"value":3},{"value":2},{"value":105553132262032},{"value":288230384407932945,"symbolLocation":288230376151711745,"symbol":"OBJC_CLASS_$__NSCallStackArray"},{"value":8256221200,"symbolLocation":0,"symbol":"OBJC_CLASS_$__NSCallStackArray"},{"value":328},{"value":8334872416},{"value":0},{"value":6},{"value":8256085504,"symbolLocation":0,"symbol":"_main_thread"},{"value":259},{"value":8256085728,"symbolLocation":224,"symbol":"_main_thread"},{"value":0},{"value":6098922912},{"value":105553173298496},{"value":1},{"value":105553154278272},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6729366568},"cpsr":{"value":1073745920},"fp":{"value":6098922800},"sp":{"value":6098922768},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6729140004,"matchesCrashFrame":1},"far":{"value":4762058812}},"queue":"com.apple.main-thread","frames":[{"imageOffset":38692,"symbol":"__pthread_kill","symbolLocation":8,"imageIndex":24},{"imageOffset":27688,"symbol":"pthread_kill","symbolLocation":288,"imageIndex":25},{"imageOffset":486120,"symbol":"abort","symbolLocation":180,"imageIndex":26},{"imageOffset":5130376,"imageIndex":0},{"imageOffset":5046328,"imageIndex":0},{"imageOffset":37972,"symbol":"DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*)","symbolLocation":1692,"imageIndex":27},{"imageOffset":34432,"symbol":"SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*)","symbolLocation":356,"imageIndex":27},{"imageOffset":125080,"symbol":"SendEventToEventTarget","symbolLocation":40,"imageIndex":27},{"imageOffset":509752,"symbol":"SendHICommandEvent(unsigned int, HICommand const*, unsigned int, unsigned int, unsigned char, void const*, OpaqueEventTargetRef*, OpaqueEventTargetRef*, OpaqueEventRef**)","symbolLocation":416,"imageIndex":27},{"imageOffset":656312,"symbol":"SendMenuCommandWithContextAndModifiers","symbolLocation":56,"imageIndex":27},{"imageOffset":656200,"symbol":"SendMenuItemSelectedEvent","symbolLocation":352,"imageIndex":27},{"imageOffset":655732,"symbol":"FinishMenuSelection(SelectionData*, MenuResult*, MenuResult*)","symbolLocation":100,"imageIndex":27},{"imageOffset":658228,"symbol":"MenuSelectCore(MenuData*, Point, double, unsigned int, OpaqueMenuRef**, unsigned short*)","symbolLocation":560,"imageIndex":27},{"imageOffset":657492,"symbol":"_HandleMenuSelection2","symbolLocation":416,"imageIndex":27},{"imageOffset":1617140,"symbol":"_NSHandleCarbonMenuEvent","symbolLocation":256,"imageIndex":28},{"imageOffset":1616664,"symbol":"_DPSEventHandledByCarbon","symbolLocation":60,"imageIndex":28},{"imageOffset":230604,"symbol":"-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]","symbolLocation":2232,"imageIndex":28},{"imageOffset":181060,"symbol":"-[NSApplication run]","symbolLocation":464,"imageIndex":28},{"imageOffset":14228,"symbol":"NSApplicationMain","symbolLocation":880,"imageIndex":28},{"imageOffset":24360,"symbol":"start","symbolLocation":2236,"imageIndex":29}]},{"id":215492,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":25}]},{"id":215493,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":25}]},{"id":215496,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":25}]},{"id":215504,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":25}]},{"id":215530,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":25}]},{"id":215532,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":25}]},{"id":215533,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":25}]},{"id":215534,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":25}]},{"id":215535,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":25}]},{"id":215541,"frames":[{"imageOffset":3860,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":24},{"imageOffset":78400,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":24},{"imageOffset":39800,"symbol":"mach_msg_overwrite","symbolLocation":604,"imageIndex":24},{"imageOffset":4752,"symbol":"mach_msg","symbolLocation":24,"imageIndex":24},{"imageOffset":5076956,"imageIndex":0},{"imageOffset":28584,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":25},{"imageOffset":7584,"symbol":"thread_start","symbolLocation":8,"imageIndex":25}]},{"id":215617,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":25}]},{"id":215618,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":25}]},{"id":215619,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":25}]},{"id":215620,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":25}]},{"id":215621,"frames":[{"imageOffset":7564,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":25}]},{"id":215624,"name":"com.apple.NSEventThread","frames":[{"imageOffset":3860,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":24},{"imageOffset":78400,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":24},{"imageOffset":39800,"symbol":"mach_msg_overwrite","symbolLocation":604,"imageIndex":24},{"imageOffset":4752,"symbol":"mach_msg","symbolLocation":24,"imageIndex":24},{"imageOffset":522212,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":160,"imageIndex":30},{"imageOffset":516292,"symbol":"__CFRunLoopRun","symbolLocation":1208,"imageIndex":30},{"imageOffset":513208,"symbol":"CFRunLoopRunSpecific","symbolLocation":612,"imageIndex":30},{"imageOffset":1454900,"symbol":"_NSEventThread","symbolLocation":172,"imageIndex":28},{"imageOffset":28584,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":25},{"imageOffset":7584,"symbol":"thread_start","symbolLocation":8,"imageIndex":25}]},{"id":216513,"name":"com.apple.NSURLConnectionLoader","frames":[{"imageOffset":3860,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":24},{"imageOffset":78400,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":24},{"imageOffset":39800,"symbol":"mach_msg_overwrite","symbolLocation":604,"imageIndex":24},{"imageOffset":4752,"symbol":"mach_msg","symbolLocation":24,"imageIndex":24},{"imageOffset":522212,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":160,"imageIndex":30},{"imageOffset":516292,"symbol":"__CFRunLoopRun","symbolLocation":1208,"imageIndex":30},{"imageOffset":513208,"symbol":"CFRunLoopRunSpecific","symbolLocation":612,"imageIndex":30},{"imageOffset":2444248,"imageIndex":31},{"imageOffset":353612,"symbol":"__NSThread__start__","symbolLocation":716,"imageIndex":32},{"imageOffset":28584,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":25},{"imageOffset":7584,"symbol":"thread_start","symbolLocation":8,"imageIndex":25}]}],
...
}
}

Sorry for the delay. After looking into this, Nova is crashing while improperly handing an error case during loading of the extension.

The mk64.xml file is invalid—it’s missing the required root tag (<syntax>), and its child <meta>. The <tree-sitter> tag should be a child of <syntax>. You might want to check out the default Syntax extension template (accessible via “Extensions → Create New Extension…”) for the full contents required for a Syntax XML file.

Nova is crashing because it expects the root tag to be <syntax>, not <tree-sitter>. I’ll make sure we get that fixed.

Yep that makes total sense now. I mis-understood the wording regarding this in the API manual.

Thank you for your help!