FCP plugin crashes when launching its app

I'm developing a workflow extension for Final Cut Pro, but I'm encountering a setback. For some reason, the extension crashes if I launch the app that contains the plugin.

I already added some logic to prevent the app from launching if one is already running, but that didn't fix the issue because the plugin crashes while the app is still loading.

It seems to me that the plugin process is being killed while the app is loading, causing the plugin to crash.

Do you know why this is happening and how to solve it?

It might be easier to diagnose this if you could supply a crash report. You can find crash reports by running Applications/Utilities/Console.app. In the lefthand sidebar there's an entry named "Crash Reports". Select that and you should see all currently-available crash reports. If there are no crash reports, we may be able to find other logs that contain more information about what's going wrong.

Here is the requested crash report.

I was testing other workflow extensions and was able to replicate this issue with them. I even tried Frame.io and could replicate the issue there as well.

To replicate the issue with Frame.io, follow these steps:

  1. Download Frame.io from the app store
  2. Open the Extension from Final Cut Pro (FCP).
  3. Without logging in, open the Frame.io app from your applications.
  4. The workflow extension should crash.

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

Process:               PageProof [28351]
Path:                  /Applications/PageProof.app/Contents/MacOS/PageProof
Identifier:            com.pageproof.fcpx
Version:               1.0.0 (30)
App Item ID:           6511237909
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2024-07-25 18:06:57.0685 -0400
OS Version:            macOS 14.5 (23F79)
Report Version:        12
Anonymous UUID:        

Sleep/Wake UUID:       03D2C0EA-3C7A-4104-85C9-00ABB9170017

Time Awake Since Boot: 460000 seconds
Time Since Wake:       32729 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 0x0000000000000020
Exception Codes:       0x0000000000000001, 0x0000000000000020

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

VM Region Info: 0x20 is not in any region.  Bytes before following region: 4338352096
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                      102960000-102974000    [   80K] r-x/r-x SM=COW  /Applications/PageProof.app/Contents/MacOS/PageProof

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libobjc.A.dylib               	       0x1872f86b4 objc_release + 16
1   libobjc.A.dylib               	       0x1872ffc90 AutoreleasePoolPage::releaseUntil(objc_object**) + 212
2   libobjc.A.dylib               	       0x1872fc2fc objc_autoreleasePoolPop + 260
3   CoreFoundation                	       0x1877ae4d8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
4   CoreFoundation                	       0x1877ae46c __CFRunLoopDoSource0 + 176
5   CoreFoundation                	       0x1877ae1dc __CFRunLoopDoSources0 + 244
6   CoreFoundation                	       0x1877acdc8 __CFRunLoopRun + 828
7   CoreFoundation                	       0x1877ac434 CFRunLoopRunSpecific + 608
8   HIToolbox                     	       0x191f5019c RunCurrentEventLoopInMode + 292
9   HIToolbox                     	       0x191f4ffd8 ReceiveNextEventCommon + 648
10  HIToolbox                     	       0x191f4fd30 _BlockUntilNextEventMatchingListInModeWithFilter + 76
11  AppKit                        	       0x18b00bd68 _DPSNextEvent + 660
12  AppKit                        	       0x18b801808 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 700
13  AppKit                        	       0x18afff09c -[NSApplication run] + 476
14  PageProof                     	       0x10296d92c static App.main() + 92 (App.swift:23) [inlined]
15  PageProof                     	       0x10296d92c static App.$main() + 92 (:15) [inlined]
16  PageProof                     	       0x10296d92c main + 104
17  dyld                          	       0x1873460e0 start + 2360

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

Thread 2:: JavaScriptCore libpas scavenger
0   libsystem_kernel.dylib        	       0x1876919ec __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x1876cf55c _pthread_cond_wait + 1228
2   JavaScriptCore                	       0x1a505bbac scavenger_thread_main + 1316
3   libsystem_pthread.dylib       	       0x1876cef94 _pthread_start + 136
4   libsystem_pthread.dylib       	       0x1876c9d34 thread_start + 8

Thread 3:: com.apple.coreanimation.render-server
0   libsystem_kernel.dylib        	       0x18768e1f4 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x1876a0b24 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x187696e34 mach_msg_overwrite + 476
3   libsystem_kernel.dylib        	       0x18768e578 mach_msg + 24
4   QuartzCore                    	       0x18f9e40ec CA::Render::Server::server_thread(void*) + 580
5   QuartzCore                    	       0x18f9e3e98 thread_fun(void*) + 32
6   libsystem_pthread.dylib       	       0x1876cef94 _pthread_start + 136
7   libsystem_pthread.dylib       	       0x1876c9d34 thread_start + 8

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

Thread 5:: WebCore: Scrolling
0   libsystem_kernel.dylib        	       0x18768e1f4 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x1876a0b24 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x187696e34 mach_msg_overwrite + 476
3   libsystem_kernel.dylib        	       0x18768e578 mach_msg + 24
4   CoreFoundation                	       0x1877ae680 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x1877acf44 __CFRunLoopRun + 1208
6   CoreFoundation                	       0x1877ac434 CFRunLoopRunSpecific + 608
7   CoreFoundation                	       0x18782a45c CFRunLoopRun + 64
8   JavaScriptCore                	       0x1a3cac2cc WTF::Detail::CallableWrapper::call() + 52
9   JavaScriptCore                	       0x1a3ccf758 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 244
10  JavaScriptCore                	       0x1a3b12120 WTF::wtfThreadEntryPoint(void*) + 16
11  libsystem_pthread.dylib       	       0x1876cef94 _pthread_start + 136
12  libsystem_pthread.dylib       	       0x1876c9d34 thread_start + 8

Thread 6:: com.apple.NSEventThread
0   libsystem_kernel.dylib        	       0x18768e1f4 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x1876a0b24 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x187696e34 mach_msg_overwrite + 476
3   libsystem_kernel.dylib        	       0x18768e578 mach_msg + 24
4   CoreFoundation                	       0x1877ae680 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x1877acf44 __CFRunLoopRun + 1208
6   CoreFoundation                	       0x1877ac434 CFRunLoopRunSpecific + 608
7   AppKit                        	       0x18b136188 _NSEventThread + 144
8   libsystem_pthread.dylib       	       0x1876cef94 _pthread_start + 136
9   libsystem_pthread.dylib       	       0x1876c9d34 thread_start + 8

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

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

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

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


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000142a26250   x1: 0x0000600001bfbe50   x2: 0x0000000000000000   x3: 0x00006000017f0240
    x4: 0x0000000000000001   x5: 0x0000000000000024   x6: 0x0000000000000000   x7: 0x0000000000000005
    x8: 0x0000000000000000   x9: 0x0000000000000000  x10: 0x0000000000003e50  x11: 0x0000000091fedbe4
   x12: 0x00000000000007fb  x13: 0x00000000000007fd  x14: 0x00000000921ee3e6  x15: 0x00000000000003e6
   x16: 0x0000000000000000  x17: 0x00000001f40b1a60  x18: 0x0000000000000000  x19: 0x0000000143809000
   x20: 0x0000000143809ec8  x21: 0x0000000142a26250  x22: 0x00000001ef508ce0  x23: 0x00000000a1a1a1a1
   x24: 0x0f00ffffffffffff  x25: 0xa3a3a3a3a3a3a3a3  x26: 0x0000000000000001  x27: 0x00000000211200d5
   x28: 0x0000000000000000   fp: 0x000000016d49e3c0   lr: 0x00000001872ffc90
    sp: 0x000000016d49e380   pc: 0x00000001872f86b4 cpsr: 0x00001000
   far: 0x0000000000000020  esr: 0x92000006 (Data Abort) byte read Translation fault

Binary Images:
       0x112dd0000 -        0x112deffff com.apple.security.csparser (3.0) <5b38c00e-20a2-3dd5-b582-3d7bf058f0ba> /System/Library/Frameworks/Security.framework/Versions/A/PlugIns/csparser.bundle/Contents/MacOS/csparser
       0x114cb4000 -        0x115593fff com.apple.audio.codecs.Components (7.0) <10dc413b-3923-3f80-8a3d-35aacaaa801e> /System/Library/Components/AudioCodecs.component/Contents/MacOS/AudioCodecs
       0x102e88000 -        0x102ef3fff com.apple.AppleMetalOpenGLRenderer (1.0) <c032830a-fbed-356d-a4a7-acd24492f336> /System/Library/Extensions/AppleMetalOpenGLRenderer.bundle/Contents/MacOS/AppleMetalOpenGLRenderer
       0x102bec000 -        0x102bf7fff libobjc-trampolines.dylib (*) <9381bd6d-84a5-3c72-b3b8-88428afa4782> /usr/lib/libobjc-trampolines.dylib
       0x102fa4000 -        0x102febfff com.pageproof.SDKFramework (1.0.0) <dd8517d7-d505-3ce2-8707-e0a124d662e5> /Applications/PageProof.app/Contents/Frameworks/SDKFramework.framework/Versions/A/SDKFramework
       0x102960000 -        0x102973fff com.pageproof.fcpx (1.0.0) <801c9232-2298-3c94-ab73-b4ecbba30393> /Applications/PageProof.app/Contents/MacOS/PageProof
       0x1872f0000 -        0x18733fd83 libobjc.A.dylib (*) <b326b2c3-1069-3d17-b49d-9dcb24efec6f> /usr/lib/libobjc.A.dylib
       0x187730000 -        0x187c08fff com.apple.CoreFoundation (6.9) <84b539d5-22c9-3f8c-84c8-903e9c7b8d29> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
       0x191f1d000 -        0x1921e0fff com.apple.HIToolbox (2.1.1) <7db6c397-563f-3756-908c-e25b019a1848> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
       0x18afd2000 -        0x18c30efff com.apple.AppKit (6.9) <61f710be-9132-3cc2-883d-066365fba1ad> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x187340000 -        0x1873c8a17 dyld (*) <37bbc384-0755-31c7-a808-0ed49e44dd8e> /usr/lib/dyld
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
       0x1876c8000 -        0x1876d4fff libsystem_pthread.dylib (*) <386b0fc1-7873-3328-8e71-43269fd1b2c7> /usr/lib/system/libsystem_pthread.dylib
       0x18768d000 -        0x1876c7ffb libsystem_kernel.dylib (*) <9b8b53f9-e2b6-36df-98e9-28d8fca732f2> /usr/lib/system/libsystem_kernel.dylib
       0x1a3b0a000 -        0x1a5231f1f com.apple.JavaScriptCore (19618) <c2b56b65-ef15-316a-b19f-24510e5d0846> /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore
       0x18f99c000 -        0x18fd4bfff com.apple.QuartzCore (1.11) <5b8ceda1-6957-3595-9775-333dde684699> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore

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: 162
    thread_create: 5
    thread_set_state: 7774

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

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework               128K        1 
Activity Tracing                   256K        1 
AttributeGraph Data               1024K        1 
ColorSync                          592K       29 
CoreAnimation                      160K       10 
CoreGraphics                        48K        3 
CoreImage                           16K        1 
CoreUI image data                 1024K        6 
Foundation                          16K        1 
Kernel Alloc Once                   32K        1 
MALLOC                             1.6G       55 
MALLOC guard page                  288K       18 
STACK GUARD                       56.2M       11 
Stack                             13.8M       11 
VM_ALLOCATE                      128.2M       12 
VM_ALLOCATE (reserved)             3.9G        1         reserved VM address space (unallocated)
WebKit Malloc                    224.1M        4 
WebKit Malloc (reserved)          32.0M        1         reserved VM address space (unallocated)
__AUTH                            3167K      445 
__AUTH_CONST                      34.5M      668 
__CTF                               824        1 
__DATA                            17.9M      659 
__DATA_CONST                      34.7M      679 
__DATA_DIRTY                      2020K      244 
__FONT_DATA                        2352        1 
__GLSLBUILTINS                    5174K        1 
__LINKEDIT                       535.0M        7 
__OBJC_RO                         71.9M        1 
__OBJC_RW                         2199K        1 
__TEXT                           807.3M      697 
dyld private memory                272K        2 
mapped file                      177.4M       36 
shared memory                      864K       14 
===========                     =======  ======= 
TOTAL                              7.6G     3623 
TOTAL, minus reserved VM space     3.7G     3623 



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

{"roots_installed":0,"app_cohort":"2|date=1721944800000&sf=143453&tid=0caa62002cd57dece28d950e8b0b53050f2b240bbd2ab49187a014b4fc830e41&ttype=i","app_name":"PageProof","app_version":"1.0.0","timestamp":"2024-07-25 18:06:57.00 -0400","slice_uuid":"801c9232-2298-3c94-ab73-b4ecbba30393","adam_id":"6511237909","build_version":"30","platform":1,"bundleID":"com.pageproof.fcpx","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 14.5 (23F79)","incident_id":"3D93C059-7E6F-4593-A368-2AB2B5890FDD","name":"PageProof","is_beta":1}
{
  "uptime" : 460000,
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "Mac14,2",
  "coalitionID" : 49054,
  "osVersion" : {
    "train" : "macOS 14.5",
    "build" : "23F79",
    "releaseType" : "User"
  },
  "captureTime" : "2024-07-25 18:06:57.0685 -0400",
  "codeSigningMonitor" : 1,
  "incident" : "3D93C059-7E6F-4593-A368-2AB2B5890FDD",
  "pid" : 28351,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2024-07-25 18:06:45.7533 -0400",
  "procStartAbsTime" : 11097713138914,
  "procExitAbsTime" : 11097984480073,
  "procName" : "PageProof",
  "procPath" : "\/Applications\/PageProof.app\/Contents\/MacOS\/PageProof",
  "bundleInfo" : {"CFBundleShortVersionString":"1.0.0","CFBundleVersion":"30","CFBundleIdentifier":"com.pageproof.fcpx"},
  "storeInfo" : {"storeCohortMetadata":"2|date=1721944800000&sf=143453&tid=0caa62002cd57dece28d950e8b0b53050f2b240bbd2ab49187a014b4fc830e41&ttype=i","itemID":"6511237909","deviceIdentifierForVendor":"49030C39-C159-50A6-9E1F-1230857C0F48","thirdParty":true,"entitledBeta":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "com.pageproof.fcpx",
  "isBeta" : 1,
  "codeSigningID" : "com.pageproof.fcpx",
  "codeSigningTeamID" : "KASWH273NF",
  "codeSigningFlags" : 570495745,
  "codeSigningValidationCategory" : 2,
  "codeSigningTrustLevel" : 4294967295,
  "instructionByteStream" : {"beforePC":"gf7\/VMADX9bAA1\/W4UwwsCEkC5FYBQAUAAAA6m3\/\/1QQAED5Aq59kg==","atPC":"URBA+TEDEDbwAwA2Ef5305H+\/7Q\/BgDxYAIAVBEg4NIRAhHL4QMQqg=="},
  "wakeTime" : 32729,
  "sleepWakeUUID" : "03D2C0EA-3C7A-4104-85C9-00ABB9170017",
  "sip" : "enabled",
  "vmRegionInfo" : "0x20 is not in any region.  Bytes before following region: 4338352096\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      __TEXT                      102960000-102974000    [   80K] r-x\/r-x SM=COW  \/Applications\/PageProof.app\/Contents\/MacOS\/PageProof",
  "exception" : {"codes":"0x0000000000000001, 0x0000000000000020","rawCodes":[1,32],"type":"EXC_BAD_ACCESS","signal":"SIGSEGV","subtype":"KERN_INVALID_ADDRESS at 0x0000000000000020"},
  "termination" : {"flags":0,"code":11,"namespace":"SIGNAL","indicator":"Segmentation fault: 11","byProc":"exc handler","byPid":28351},
  "vmregioninfo" : "0x20 is not in any region.  Bytes before following region: 4338352096\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      __TEXT                      102960000-102974000    [   80K] r-x\/r-x SM=COW  \/Applications\/PageProof.app\/Contents\/MacOS\/PageProof",
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":5,"thread_set_state":7774,"task_for_pid":162},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":5790688,"threadState":{"x":[{"value":5412905552},{"value":105553145609808},{"value":0},{"value":105553141367360},{"value":1},{"value":36},{"value":0},{"value":5},{"value":0},{"value":0},{"value":15952},{"value":2449398756},{"value":2043},{"value":2045},{"value":2451497958},{"value":998},{"value":0},{"value":8389335648},{"value":0},{"value":5427466240},{"value":5427470024},{"value":5412905552},{"value":8310000864,"symbolLocation":224,"symbol":"_main_thread"},{"value":2711724449},{"value":1081145385545629695},{"value":11791448172606497699},{"value":1},{"value":554827989},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6563036304},"cpsr":{"value":4096},"fp":{"value":6128526272},"sp":{"value":6128526208},"esr":{"value":2449473542,"description":"(Data Abort) byte read Translation fault"},"pc":{"value":6563006132,"matchesCrashFrame":1},"far":{"value":32}},"queue":"com.apple.main-thread","frames":[{"imageOffset":34484,"symbol":"objc_release","symbolLocation":16,"imageIndex":6},{"imageOffset":64656,"symbol":"AutoreleasePoolPage::releaseUntil(objc_object**)","symbolLocation":212,"imageIndex":6},{"imageOffset":49916,"symbol":"objc_autoreleasePoolPop","symbolLocation":260,"imageIndex":6},{"imageOffset":517336,"symbol":"__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__","symbolLocation":28,"imageIndex":7},{"imageOffset":517228,"symbol":"__CFRunLoopDoSource0","symbolLocation":176,"imageIndex":7},{"imageOffset":516572,"symbol":"__CFRunLoopDoSources0","symbolLocation":244,"imageIndex":7},{"imageOffset":511432,"symbol":"__CFRunLoopRun","symbolLocation":828,"imageIndex":7},{"imageOffset":508980,"symbol":"CFRunLoopRunSpecific","symbolLocation":608,"imageIndex":7},{"imageOffset":209308,"symbol":"RunCurrentEventLoopInMode","symbolLocation":292,"imageIndex":8},{"imageOffset":208856,"symbol":"ReceiveNextEventCommon","symbolLocation":648,"imageIndex":8},{"imageOffset":208176,"symbol":"_BlockUntilNextEventMatchingListInModeWithFilter","symbolLocation":76,"imageIndex":8},{"imageOffset":236904,"symbol":"_DPSNextEvent","symbolLocation":660,"imageIndex":9},{"imageOffset":8583176,"symbol":"-[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]","symbolLocation":700,"imageIndex":9},{"imageOffset":184476,"symbol":"-[NSApplication run]","symbolLocation":476,"imageIndex":9},{"symbol":"static App.main()","inline":true,"imageIndex":5,"imageOffset":55596,"symbolLocation":92,"sourceLine":23,"sourceFile":"App.swift"},{"symbol":"static App.$main()","inline":true,"imageIndex":5,"imageOffset":55596,"symbolLocation":92,"sourceLine":15,"sourceFile":""},{"imageOffset":55596,"sourceFile":"App.swift","symbol":"main","symbolLocation":104,"imageIndex":5},{"imageOffset":24800,"symbol":"start","symbolLocation":2360,"imageIndex":10}]},{"id":5790733,"frames":[{"imageOffset":7456,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":12}],"threadState":{"x":[{"value":6129086464},{"value":5379},{"value":6128549888},{"value":0},{"value":409602},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6129086464},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6567009568},"far":{"value":0}}},{"id":5790737,"name":"JavaScriptCore libpas scavenger","threadState":{"x":[{"value":260},{"value":0},{"value":24320},{"value":0},{"value":0},{"value":160},{"value":0},{"value":99999120},{"value":6130806424},{"value":0},{"value":4405209112},{"value":2199023256066},{"value":512},{"value":0},{"value":512},{"value":2199023256064},{"value":305},{"value":8481659104},{"value":0},{"value":4405209088},{"value":4405209152},{"value":6130807008},{"value":99999120},{"value":0},{"value":24320},{"value":24321},{"value":24576},{"value":8293961728,"symbolLocation":16,"symbol":"pas_large_sharing_tree_jettisoned_nodes"},{"value":8293961728,"symbolLocation":16,"symbol":"pas_large_sharing_tree_jettisoned_nodes"}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6567032156},"cpsr":{"value":1610616832},"fp":{"value":6130806544},"sp":{"value":6130806400},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6566779372},"far":{"value":0}},"frames":[{"imageOffset":18924,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":13},{"imageOffset":30044,"symbol":"_pthread_cond_wait","symbolLocation":1228,"imageIndex":12},{"imageOffset":22354860,"symbol":"scavenger_thread_main","symbolLocation":1316,"imageIndex":14},{"imageOffset":28564,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":12},{"imageOffset":7476,"symbol":"thread_start","symbolLocation":8,"imageIndex":12}]},{"id":5790739,"name":"com.apple.coreanimation.render-server","threadState":{"x":[{"value":268451845},{"value":21525170190},{"value":8589934592},{"value":0},{"value":0},{"value":124257698840576},{"value":2},{"value":0},{"value":18446744073709550527},{"value":0},{"value":0},{"value":1},{"value":28931},{"value":2095104},{"value":2043},{"value":2887796860},{"value":18446744073709551569},{"value":2889891965},{"value":0},{"value":0},{"value":2},{"value":124257698840576},{"value":0},{"value":0},{"value":6131886776},{"value":8589934592},{"value":21525170190},{"value":21525170190},{"value":4345301006}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6566841124},"cpsr":{"value":4096},"fp":{"value":6131886624},"sp":{"value":6131886544},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6566765044},"far":{"value":0}},"frames":[{"imageOffset":4596,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":13},{"imageOffset":80676,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":13},{"imageOffset":40500,"symbol":"mach_msg_overwrite","symbolLocation":476,"imageIndex":13},{"imageOffset":5496,"symbol":"mach_msg","symbolLocation":24,"imageIndex":13},{"imageOffset":295148,"symbol":"CA::Render::Server::server_thread(void*)","symbolLocation":580,"imageIndex":15},{"imageOffset":294552,"symbol":"thread_fun(void*)","symbolLocation":32,"imageIndex":15},{"imageOffset":28564,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":12},{"imageOffset":7476,"symbol":"thread_start","symbolLocation":8,"imageIndex":12}]},{"id":5790747,"frames":[{"imageOffset":7456,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":12}],"threadState":{"x":[{"value":6133051392},{"value":41987},{"value":6132514816},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6133051392},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6567009568},"far":{"value":0}}},{"id":5790749,"name":"WebCore: Scrolling","threadState":{"x":[{"value":268451845},{"value":21592279046},{"value":8589934592},{"value":148446954651648},{"value":0},{"value":148446954651648},{"value":2},{"value":4294967295},{"value":18446744073709550527},{"value":34563},{"value":0},{"value":1},{"value":34563},{"value":210738},{"value":0},{"value":0},{"value":18446744073709551569},{"value":8481643264},{"value":0},{"value":4294967295},{"value":2},{"value":148446954651648},{"value":0},{"value":148446954651648},{"value":6134194136},{"value":8589934592},{"value":21592279046},{"value":21592279046},{"value":4412409862}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6566841124},"cpsr":{"value":4096},"fp":{"value":6134193984},"sp":{"value":6134193904},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6566765044},"far":{"value":0}},"frames":[{"imageOffset":4596,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":13},{"imageOffset":80676,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":13},{"imageOffset":40500,"symbol":"mach_msg_overwrite","symbolLocation":476,"imageIndex":13},{"imageOffset":5496,"symbol":"mach_msg","symbolLocation":24,"imageIndex":13},{"imageOffset":517760,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":160,"imageIndex":7},{"imageOffset":511812,"symbol":"__CFRunLoopRun","symbolLocation":1208,"imageIndex":7},{"imageOffset":508980,"symbol":"CFRunLoopRunSpecific","symbolLocation":608,"imageIndex":7},{"imageOffset":1025116,"symbol":"CFRunLoopRun","symbolLocation":64,"imageIndex":7},{"imageOffset":1712844,"symbol":"WTF::Detail::CallableWrapper::call()","symbolLocation":52,"imageIndex":14},{"imageOffset":1857368,"symbol":"WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*)","symbolLocation":244,"imageIndex":14},{"imageOffset":33056,"symbol":"WTF::wtfThreadEntryPoint(void*)","symbolLocation":16,"imageIndex":14},{"imageOffset":28564,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":12},{"imageOffset":7476,"symbol":"thread_start","symbolLocation":8,"imageIndex":12}]},{"id":5790812,"name":"com.apple.NSEventThread","threadState":{"x":[{"value":268451845},{"value":21592279046},{"value":8589934592},{"value":199024489529344},{"value":0},{"value":199024489529344},{"value":2},{"value":4294967295},{"value":18446744073709550527},{"value":46339},{"value":0},{"value":1},{"value":46339},{"value":563677},{"value":0},{"value":0},{"value":18446744073709551569},{"value":8481643264},{"value":0},{"value":4294967295},{"value":2},{"value":199024489529344},{"value":0},{"value":199024489529344},{"value":6135341160},{"value":8589934592},{"value":21592279046},{"value":21592279046},{"value":4412409862}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6566841124},"cpsr":{"value":4096},"fp":{"value":6135341008},"sp":{"value":6135340928},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6566765044},"far":{"value":0}},"frames":[{"imageOffset":4596,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":13},{"imageOffset":80676,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":13},{"imageOffset":40500,"symbol":"mach_msg_overwrite","symbolLocation":476,"imageIndex":13},{"imageOffset":5496,"symbol":"mach_msg","symbolLocation":24,"imageIndex":13},{"imageOffset":517760,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":160,"imageIndex":7},{"imageOffset":511812,"symbol":"__CFRunLoopRun","symbolLocation":1208,"imageIndex":7},{"imageOffset":508980,"symbol":"CFRunLoopRunSpecific","symbolLocation":608,"imageIndex":7},{"imageOffset":1458568,"symbol":"_NSEventThread","symbolLocation":144,"imageIndex":9},{"imageOffset":28564,"symbol":"_pthread_start","symbolLocation":136,"imageIndex":12},{"imageOffset":7476,"symbol":"thread_start","symbolLocation":8,"imageIndex":12}]},{"id":5790848,"frames":[{"imageOffset":7456,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":12}],"threadState":{"x":[{"value":6135918592},{"value":55047},{"value":6135382016},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6135918592},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6567009568},"far":{"value":0}}},{"id":5790849,"frames":[{"imageOffset":7456,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":12}],"threadState":{"x":[{"value":6136492032},{"value":51203},{"value":6135955456},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6136492032},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6567009568},"far":{"value":0}}},{"id":5790850,"frames":[{"imageOffset":7456,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":12}],"threadState":{"x":[{"value":6137065472},{"value":51715},{"value":6136528896},{"value":0},{"value":409604},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6137065472},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6567009568},"far":{"value":0}}},{"id":5790852,"frames":[{"imageOffset":7456,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":12}],"threadState":{"x":[{"value":6137638912},{"value":0},{"value":6137102336},{"value":0},{"value":278532},{"value":18446744073709551615},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":0},"cpsr":{"value":4096},"fp":{"value":0},"sp":{"value":6137638912},"esr":{"value":0,"description":" Address size fault"},"pc":{"value":6567009568},"far":{"value":0}}}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 4611440640,
    "CFBundleShortVersionString" : "3.0",
    "CFBundleIdentifier" : "com.apple.security.csparser",
    "size" : 131072,
    "uuid" : "5b38c00e-20a2-3dd5-b582-3d7bf058f0ba",
    "path" : "\/System\/Library\/Frameworks\/Security.framework\/Versions\/A\/PlugIns\/csparser.bundle\/Contents\/MacOS\/csparser",
    "name" : "csparser",
    "CFBundleVersion" : "61123.121.1"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 4643831808,
    "CFBundleShortVersionString" : "7.0",
    "CFBundleIdentifier" : "com.apple.audio.codecs.Components",
    "size" : 9306112,
    "uuid" : "10dc413b-3923-3f80-8a3d-35aacaaa801e",
    "path" : "\/System\/Library\/Components\/AudioCodecs.component\/Contents\/MacOS\/AudioCodecs",
    "name" : "AudioCodecs",
    "CFBundleVersion" : "7.0"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 4343758848,
    "CFBundleShortVersionString" : "1.0",
    "CFBundleIdentifier" : "com.apple.AppleMetalOpenGLRenderer",
    "size" : 442368,
    "uuid" : "c032830a-fbed-356d-a4a7-acd24492f336",
    "path" : "\/System\/Library\/Extensions\/AppleMetalOpenGLRenderer.bundle\/Contents\/MacOS\/AppleMetalOpenGLRenderer",
    "name" : "AppleMetalOpenGLRenderer",
    "CFBundleVersion" : "1"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 4341022720,
    "size" : 49152,
    "uuid" : "9381bd6d-84a5-3c72-b3b8-88428afa4782",
    "path" : "\/usr\/lib\/libobjc-trampolines.dylib",
    "name" : "libobjc-trampolines.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4344922112,
    "CFBundleShortVersionString" : "1.0.0",
    "CFBundleIdentifier" : "com.pageproof.SDKFramework",
    "size" : 294912,
    "uuid" : "dd8517d7-d505-3ce2-8707-e0a124d662e5",
    "path" : "\/Applications\/PageProof.app\/Contents\/Frameworks\/SDKFramework.framework\/Versions\/A\/SDKFramework",
    "name" : "SDKFramework",
    "CFBundleVersion" : "30"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4338352128,
    "CFBundleShortVersionString" : "1.0.0",
    "CFBundleIdentifier" : "com.pageproof.fcpx",
    "size" : 81920,
    "uuid" : "801c9232-2298-3c94-ab73-b4ecbba30393",
    "path" : "\/Applications\/PageProof.app\/Contents\/MacOS\/PageProof",
    "name" : "PageProof",
    "CFBundleVersion" : "30"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6562971648,
    "size" : 327044,
    "uuid" : "b326b2c3-1069-3d17-b49d-9dcb24efec6f",
    "path" : "\/usr\/lib\/libobjc.A.dylib",
    "name" : "libobjc.A.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6567428096,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 5083136,
    "uuid" : "84b539d5-22c9-3f8c-84c8-903e9c7b8d29",
    "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "2503.1"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6743511040,
    "CFBundleShortVersionString" : "2.1.1",
    "CFBundleIdentifier" : "com.apple.HIToolbox",
    "size" : 2899968,
    "uuid" : "7db6c397-563f-3756-908c-e25b019a1848",
    "path" : "\/System\/Library\/Frameworks\/Carbon.framework\/Versions\/A\/Frameworks\/HIToolbox.framework\/Versions\/A\/HIToolbox",
    "name" : "HIToolbox"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6626811904,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.AppKit",
    "size" : 20172800,
    "uuid" : "61f710be-9132-3cc2-883d-066365fba1ad",
    "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
    "name" : "AppKit",
    "CFBundleVersion" : "2487.60.105"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6563299328,
    "size" : 559640,
    "uuid" : "37bbc384-0755-31c7-a808-0ed49e44dd8e",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6567002112,
    "size" : 53248,
    "uuid" : "386b0fc1-7873-3328-8e71-43269fd1b2c7",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6566760448,
    "size" : 241660,
    "uuid" : "9b8b53f9-e2b6-36df-98e9-28d8fca732f2",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7041228800,
    "CFBundleShortVersionString" : "19618",
    "CFBundleIdentifier" : "com.apple.JavaScriptCore",
    "size" : 24280864,
    "uuid" : "c2b56b65-ef15-316a-b19f-24510e5d0846",
    "path" : "\/System\/Library\/Frameworks\/JavaScriptCore.framework\/Versions\/A\/JavaScriptCore",
    "name" : "JavaScriptCore",
    "CFBundleVersion" : "19618.2.12.11.6"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6704185344,
    "CFBundleShortVersionString" : "1.11",
    "CFBundleIdentifier" : "com.apple.QuartzCore",
    "size" : 3866624,
    "uuid" : "5b8ceda1-6957-3595-9775-333dde684699",
    "path" : "\/System\/Library\/Frameworks\/QuartzCore.framework\/Versions\/A\/QuartzCore",
    "name" : "QuartzCore",
    "CFBundleVersion" : "1120.32"
  }
],
  "sharedCache" : {
  "base" : 6562545664,
  "size" : 4220698624,
  "uuid" : "3406ad1b-2469-30eb-9863-5dce861e6dea"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=1.3G resident=0K(0%) swapped_out_or_unallocated=1.3G(100%)\nWritable regions: Total=5.9G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=5.9G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nAccelerate framework               128K        1 \nActivity Tracing                   256K        1 \nAttributeGraph Data               1024K        1 \nColorSync                          592K       29 \nCoreAnimation                      160K       10 \nCoreGraphics                        48K        3 \nCoreImage                           16K        1 \nCoreUI image data                 1024K        6 \nFoundation                          16K        1 \nKernel Alloc Once                   32K        1 \nMALLOC                             1.6G       55 \nMALLOC guard page                  288K       18 \nSTACK GUARD                       56.2M       11 \nStack                             13.8M       11 \nVM_ALLOCATE                      128.2M       12 \nVM_ALLOCATE (reserved)             3.9G        1         reserved VM address space (unallocated)\nWebKit Malloc                    224.1M        4 \nWebKit Malloc (reserved)          32.0M        1         reserved VM address space (unallocated)\n__AUTH                            3167K      445 \n__AUTH_CONST                      34.5M      668 \n__CTF                               824        1 \n__DATA                            17.9M      659 \n__DATA_CONST                      34.7M      679 \n__DATA_DIRTY                      2020K      244 \n__FONT_DATA                        2352        1 \n__GLSLBUILTINS                    5174K        1 \n__LINKEDIT                       535.0M        7 \n__OBJC_RO                         71.9M        1 \n__OBJC_RW                         2199K        1 \n__TEXT                           807.3M      697 \ndyld private memory                272K        2 \nmapped file                      177.4M       36 \nshared memory                      864K       14 \n===========                     =======  ======= \nTOTAL                              7.6G     3623 \nTOTAL, minus reserved VM space     3.7G     3623 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "logWritingSignature" : "169d986ef1a2a02ff69157eabfa5bfd4e6a79a8d",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "63f9578e238e7b23a1f3030a",
      "factorPackIds" : {

      },
      "deploymentId" : 240000005
    },
    {
      "rolloutId" : "6410af69ed1e1e7ab93ed169",
      "factorPackIds" : {

      },
      "deploymentId" : 240000011
    }
  ],
  "experiments" : [
    {
      "treatmentId" : "c47ab4cc-c9c3-4b5d-a87c-e2433ce02597",
      "experimentId" : "6639bc6ba73d460582162323",
      "deploymentId" : 400000006
    },
    {
      "treatmentId" : "45f4e2a5-551b-4bc2-a2dc-19c244dda8f8",
      "experimentId" : "6643969b3099cf28e049862f",
      "deploymentId" : 400000007
    }
  ]
}
}

Thanks for the crash log and the additional info. I'm going to try and reproduce locally and see if I can narrow down what the issue is.

Here's what I'm able to tell: the crash log you supplied shows an over release of some Objective-C object that was in an autorelease pool in the PageProof process. I can't tell from the crash log what the object was, so can't say much more than that.

Testing with Frame.io as you've suggested doesn't result in any crash logs on my machine. When I launch it while the plug-in is open in FCP, the app immediately quits but doesn't appear to crash. There is a console log that says that it has the wrong UUID for FCP to connect to it, which makes sense as it's already connected to the instance it launched.

You might try running your plug-in with Zombies turned on to see if that gives you any insight into what object is being over-released. You can also try attaching to it in Instruments (using the Zombies instrument) to see if it can give you additional information.

I followed your suggestion, and there were no zombies to be found. In the meantime, I found a temporary solution for the issue.

The problem was that I wanted to export the FCP project using the main app as the action, but FCP was executing it, which caused the crash.

To resolve this, I added an auxiliary application to the project to handle the export instead. This change has prevented the plugin from crashing. However, it will still crash if the user opens the app from Applications while it is already open in FCP.

This behavior seems to be present in other plugins as well, even in simpler ones.

FCP plugin crashes when launching its app
 
 
Q