TomHarte / CLK

A latency-hating emulator of: the Acorn Electron and Archimedes, Amstrad CPC, Apple II/II+/IIe and early Macintosh, Atari 2600 and ST, ColecoVision, Enterprise 64/128, Commodore Vic-20 and Amiga, MSX 1/2, Oric 1/Atmos, early PC compatibles, Sega Master System, Sinclair ZX80/81 and ZX Spectrum.
MIT License
923 stars 52 forks source link

Unable to load nib file: MainMenu, exiting #1174

Open ryandesign opened 10 months ago

ryandesign commented 10 months ago

I would like to build the latest Clock Signal from source but I'm having some difficulty. Although it compiled, it quits immediately after it launches. This is in Xcode's output pane when that happens:

Metal Shader Validation is unsupported for device MacBookPro10,1 
2023-10-16 22:54:38.155019-0500 Clock Signal[74344:4440045] Unable to load nib file: MainMenu, exiting

I'm using Xcode 13.2.1 on macOS 12.6.8.

I noticed that in my compiled app, in Contents/Resources/Base.lproj, it contains MainMenu.xib (and other .xib files), while in the working binary of 2023-09-10 you published on the GitHub releases, that directory contains MainMenu.nib (and other .nib files). If I copy all the .nib files from your binary to my compiled app, it launches ok, but then crashes with a metal shader problem:

2023-10-16 23:31:13.048873-0500 Clock Signal[75401:4471047] Metal GPU Frame Capture Enabled
2023-10-16 23:31:13.050114-0500 Clock Signal[75401:4471047] Metal API Validation Enabled
2023-10-16 23:31:35.914170-0500 Clock Signal[75401:4471047] validateWithDevice, line 3718: error 'Render Pipeline Descriptor Validation
vertexFunction must not be nil.
'
validateWithDevice:3718: failed assertion `Render Pipeline Descriptor Validation
vertexFunction must not be nil.
'
Performing @selector(newDocument:) from sender NSMenuItem 0x60000329df80
validateWithDevice:3718: failed assertion `Render Pipeline Descriptor Validation
vertexFunction must not be nil.
'
(lldb) 
crash log ``` ------------------------------------- Translated Report (Full Report Below) ------------------------------------- Process: Clock Signal [75374] Path: /Users/USER/Library/Developer/Xcode/DerivedData/Clock_Signal-dxvpmuuocdkkqteflildxennfrbe/Build/Products/Debug/Clock Signal.app/Contents/MacOS/Clock Signal Identifier: TH.Clock-Signal Version: 23.09.10 (23.09.10) Code Type: X86-64 (Native) Parent Process: launchd [1] User ID: 501 Date/Time: 2023-10-16 23:30:53.7965 -0500 OS Version: macOS 12.6.8 (21G725) Report Version: 12 Anonymous UUID: FBC688DA-CA71-E41D-0E8C-E06F8E00D142 Sleep/Wake UUID: F84B0C0F-66F3-4361-87D4-F5373E09EF33 Time Awake Since Boot: 610000 seconds Time Since Wake: 38872 seconds System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x7ff8077f9ffe __pthread_kill + 10 1 libsystem_pthread.dylib 0x7ff8078301ff pthread_kill + 263 2 libsystem_c.dylib 0x7ff80777bd24 abort + 123 3 libsystem_c.dylib 0x7ff80777b0cb __assert_rtn + 314 4 Metal 0x11be84244 MTLReportFailure.cold.1 + 43 5 Metal 0x11be6e705 MTLReportFailure + 529 6 Metal 0x11be66e78 _MTLMessageContextEnd + 1278 7 Metal 0x11be6c3a8 validateWithDevice(id, MTLRenderPipelineDescriptorPrivate const&) + 450 8 Metal 0x11be6c158 -[MTLRenderPipelineDescriptorInternal validateWithDevice:error:] + 89 9 Metal 0x11be51cb4 -[MTLCompiler newRenderPipelineStateWithDescriptorInternal:options:reflection:destinationBinaryArchive:error:completionHandler:] + 181 10 Metal 0x11bdc19d5 -[MTLCompiler newRenderPipelineStateWithDescriptor:options:reflection:error:completionHandler:] + 27 11 Metal 0x11bdc1198 -[_MTLDevice newRenderPipelineStateWithDescriptor:error:] + 65 12 Clock Signal 0x10d7eb03f -[CSScanTarget initWithView:] + 1951 (CSScanTarget.mm:319) 13 Clock Signal 0x10cd3b0a1 -[CSScanTargetView awakeFromNib] + 257 (CSScanTargetView.m:160) 14 CoreFoundation 0x7ff8078eedb7 -[NSSet makeObjectsPerformSelector:] + 215 15 AppKit 0x7ff80a248c20 -[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:] + 1360 16 AppKit 0x7ff80a23d4dd loadNib + 420 17 AppKit 0x7ff80a23cd1e +[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:] + 1602 18 AppKit 0x7ff80a4250c6 +[NSBundle(NSNibLoadingInternal) _loadNibFile:externalNameTable:options:withZone:] + 142 19 AppKit 0x7ff80a424ea5 -[NSWindowController loadWindow] + 322 20 AppKit 0x7ff80a424c2d -[NSWindowController window] + 84 21 AppKit 0x7ff80a49d286 -[NSWindowController showWindow:] + 36 22 AppKit 0x7ff80a43b29c -[NSDocument showWindows] + 116 23 AppKit 0x7ff80a7b8f8d __80-[NSDocumentController openDocumentWithContentsOfURL:display:completionHandler:]_block_invoke.772 + 163 24 AppKit 0x7ff80a7c24ba ___NSMainRunLoopPerformBlockInModes_block_invoke + 25 25 CoreFoundation 0x7ff8078f9ed0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12 26 CoreFoundation 0x7ff8078f9d7f __CFRunLoopDoBlocks + 443 27 CoreFoundation 0x7ff8078f90d9 __CFRunLoopRun + 2613 28 CoreFoundation 0x7ff8078f7fe4 CFRunLoopRunSpecific + 562 29 HIToolbox 0x7ff810a135e6 RunCurrentEventLoopInMode + 292 30 HIToolbox 0x7ff810a13213 ReceiveNextEventCommon + 283 31 HIToolbox 0x7ff810a130e5 _BlockUntilNextEventMatchingListInModeWithFilter + 70 32 AppKit 0x7ff80a269f6d _DPSNextEvent + 927 33 AppKit 0x7ff80a26862a -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1394 34 AppKit 0x7ff80a25acd9 -[NSApplication run] + 586 35 AppKit 0x7ff80a22ec57 NSApplicationMain + 817 36 Clock Signal 0x10dea1a89 main + 9 (AppDelegate.swift:12) 37 dyld 0x11b85552e start + 462 Thread 1: 0 libsystem_pthread.dylib 0x7ff80782bf48 start_wqthread + 0 Thread 2: 0 libsystem_pthread.dylib 0x7ff80782bf48 start_wqthread + 0 Thread 3: 0 libsystem_pthread.dylib 0x7ff80782bf48 start_wqthread + 0 Thread 4: 0 libsystem_pthread.dylib 0x7ff80782bf48 start_wqthread + 0 Thread 5:: Dispatch queue: Document Recents (QOS: UNSPECIFIED) 0 libsystem_kernel.dylib 0x7ff8077f396a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x7ff8077f3cd8 mach_msg + 56 2 libdispatch.dylib 0x7ff807690d41 _dispatch_mach_send_and_wait_for_reply + 514 3 libdispatch.dylib 0x7ff80769113e dispatch_mach_send_with_result_and_wait_for_reply + 50 4 libxpc.dylib 0x7ff80756dd24 xpc_connection_send_message_with_reply_sync + 238 5 Foundation 0x7ff80864cde6 __NSXPCCONNECTION_IS_WAITING_FOR_A_SYNCHRONOUS_REPLY__ + 9 6 Foundation 0x7ff80864ae26 -[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:] + 3163 7 Foundation 0x7ff808669775 -[NSXPCConnection _sendSelector:withProxy:arg1:arg2:arg3:] + 140 8 Foundation 0x7ff808669694 _NSXPCDistantObjectSimpleMessageSend3 + 68 9 SharedFileList 0x7ff80f405b13 __64-[SFLGenericList _setPropertyValuesForKeysWithDictionary:error:]_block_invoke + 475 10 libsystem_trace.dylib 0x7ff8075a6848 _os_activity_initiate_impl + 51 11 SharedFileList 0x7ff80f405886 -[SFLGenericList _setPropertyValuesForKeysWithDictionary:error:] + 283 12 SharedFileList 0x7ff80f4011b0 -[SFLGenericList setPropertyValuesForKeysWithDictionary:error:] + 63 13 SharedFileList 0x7ff80f3ff573 LSSharedFileListSetProperty + 168 14 AppKit 0x7ff80a6a7357 -[_NSRecentItemsMenuController _notePendingRecentDocumentURLsForKey:documentsSnapshot:] + 397 15 Foundation 0x7ff80866fb11 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 7 16 Foundation 0x7ff80866fa09 -[NSBlockOperation main] + 98 17 Foundation 0x7ff80866f99f __NSOPERATION_IS_INVOKING_MAIN__ + 17 18 Foundation 0x7ff80866ec0b -[NSOperation start] + 785 19 Foundation 0x7ff80866e8e1 __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 17 20 Foundation 0x7ff80866e7b8 __NSOQSchedule_f + 182 21 libdispatch.dylib 0x7ff8076863c0 _dispatch_block_async_invoke2 + 83 22 libdispatch.dylib 0x7ff807679317 _dispatch_client_callout + 8 23 libdispatch.dylib 0x7ff80767bd7c _dispatch_continuation_pop + 453 24 libdispatch.dylib 0x7ff80767b43f _dispatch_async_redirect_invoke + 704 25 libdispatch.dylib 0x7ff807688ac2 _dispatch_root_queue_drain + 343 26 libdispatch.dylib 0x7ff80768925c _dispatch_worker_thread2 + 160 27 libsystem_pthread.dylib 0x7ff80782cf8a _pthread_wqthread + 256 28 libsystem_pthread.dylib 0x7ff80782bf57 start_wqthread + 15 Thread 6:: com.apple.NSEventThread 0 libsystem_kernel.dylib 0x7ff8077f396a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x7ff8077f3cd8 mach_msg + 56 2 CoreFoundation 0x7ff8078fa510 __CFRunLoopServiceMachPort + 319 3 CoreFoundation 0x7ff8078f8ba0 __CFRunLoopRun + 1276 4 CoreFoundation 0x7ff8078f7fe4 CFRunLoopRunSpecific + 562 5 AppKit 0x7ff80a3d798e _NSEventThread + 132 6 libsystem_pthread.dylib 0x7ff8078304e1 _pthread_start + 125 7 libsystem_pthread.dylib 0x7ff80782bf6b thread_start + 15 Thread 7: 0 libsystem_kernel.dylib 0x7ff8077f63da __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x7ff807830a6f _pthread_cond_wait + 1249 2 libc++.1.dylib 0x7ff80778ed22 std::__1::condition_variable::wait(std::__1::unique_lock&) + 18 3 Clock Signal 0x10cca8fd4 Concurrency::AsyncTaskQueue::start()::'lambda'()::operator()() const + 180 (AsyncTaskQueue.hpp:132) 4 Clock Signal 0x10cca8eaf decltype(std::__1::forward::start()::'lambda'()>(fp)()) std::__1::__invoke::start()::'lambda'()>(Concurrency::AsyncTaskQueue::start()::'lambda'()&&) + 47 (type_traits:3694) 5 Clock Signal 0x10cca8e17 void std::__1::__thread_execute >, Concurrency::AsyncTaskQueue::start()::'lambda'()>(std::__1::tuple >, Concurrency::AsyncTaskQueue::start()::'lambda'()>&, std::__1::__tuple_indices<>) + 55 (thread:286) 6 Clock Signal 0x10cca8487 void* std::__1::__thread_proxy >, Concurrency::AsyncTaskQueue::start()::'lambda'()> >(void*) + 119 (thread:297) 7 libsystem_pthread.dylib 0x7ff8078304e1 _pthread_start + 125 8 libsystem_pthread.dylib 0x7ff80782bf6b thread_start + 15 Thread 8: 0 libsystem_kernel.dylib 0x7ff8077f63da __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x7ff807830a6f _pthread_cond_wait + 1249 2 libc++.1.dylib 0x7ff80778ed22 std::__1::condition_variable::wait(std::__1::unique_lock&) + 18 3 Clock Signal 0x10d60ac18 Concurrency::AsyncTaskQueue::start()::'lambda'()::operator()() const + 184 (AsyncTaskQueue.hpp:132) 4 Clock Signal 0x10d60aaef decltype(std::__1::forward::start()::'lambda'()>(fp)()) std::__1::__invoke::start()::'lambda'()>(Concurrency::AsyncTaskQueue::start()::'lambda'()&&) + 47 (type_traits:3694) 5 Clock Signal 0x10d60aa57 void std::__1::__thread_execute >, Concurrency::AsyncTaskQueue::start()::'lambda'()>(std::__1::tuple >, Concurrency::AsyncTaskQueue::start()::'lambda'()>&, std::__1::__tuple_indices<>) + 55 (thread:286) 6 Clock Signal 0x10d60a107 void* std::__1::__thread_proxy >, Concurrency::AsyncTaskQueue::start()::'lambda'()> >(void*) + 119 (thread:297) 7 libsystem_pthread.dylib 0x7ff8078304e1 _pthread_start + 125 8 libsystem_pthread.dylib 0x7ff80782bf6b thread_start + 15 Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x000000011b8d0600 rcx: 0x00007ff7b3263dc8 rdx: 0x0000000000000000 rdi: 0x0000000000000103 rsi: 0x0000000000000006 rbp: 0x00007ff7b3263df0 rsp: 0x00007ff7b3263dc8 r8: 0x0000000000000e86 r9: 0xcccccccccccccccd r10: 0x0000000000000000 r11: 0x0000000000000246 r12: 0x0000000000000103 r13: 0x000000011ba1e028 r14: 0x0000000000000006 r15: 0x0000000000000016 rip: 0x00007ff8077f9ffe rfl: 0x0000000000000246 cr2: 0x000000011beb0790 Logical CPU: 0 Error Code: 0x02000148 Trap Number: 133 Binary Images: 0x7ff8077f2000 - 0x7ff807829fff libsystem_kernel.dylib (*) <5e9789af-5bca-3e41-a07a-c2dcc3180ea3> /usr/lib/system/libsystem_kernel.dylib 0x7ff80782a000 - 0x7ff807835fff libsystem_pthread.dylib (*) /usr/lib/system/libsystem_pthread.dylib 0x7ff8076fa000 - 0x7ff807782fff libsystem_c.dylib (*) /usr/lib/system/libsystem_c.dylib 0x11bda6000 - 0x11bee5fff com.apple.Metal (263.9) /System/Library/Frameworks/Metal.framework/Versions/A/Metal 0x10cc99000 - 0x10df34fff TH.Clock-Signal (23.09.10) /Users/USER/Library/Developer/Xcode/DerivedData/Clock_Signal-dxvpmuuocdkkqteflildxennfrbe/Build/Products/Debug/Clock Signal.app/Contents/MacOS/Clock Signal 0x7ff807877000 - 0x7ff807d7bfff com.apple.CoreFoundation (6.9) <0b1005c7-a065-3a22-b2b0-9ee27f4cf98a> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x7ff80a22b000 - 0x7ff80b0bafff com.apple.AppKit (6.9) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit 0x7ff8109e5000 - 0x7ff810cd8fff com.apple.HIToolbox (2.1.1) <06fdecd6-9f69-397b-b1e2-a8226c0ba7ed> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox 0x11b850000 - 0x11b8bbfff dyld (*) /usr/lib/dyld 0x7ff807676000 - 0x7ff8076bcfff libdispatch.dylib (*) <1a04b380-76e4-3e4b-b0fc-9837533d021d> /usr/lib/system/libdispatch.dylib 0x7ff807563000 - 0x7ff80759efff libxpc.dylib (*) /usr/lib/system/libxpc.dylib 0x7ff80862e000 - 0x7ff8089eafff com.apple.Foundation (6.9) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation 0x7ff80f3ed000 - 0x7ff80f411fff com.apple.coreservices.SharedFileList (155) <42f85d0f-bc59-38c4-aa40-899e573f5ae2> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList 0x7ff80759f000 - 0x7ff8075b7fff libsystem_trace.dylib (*) /usr/lib/system/libsystem_trace.dylib 0x7ff807783000 - 0x7ff8077dbfff libc++.1.dylib (*) /usr/lib/libc++.1.dylib 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: 13 thread_create: 0 thread_set_state: 231 VM Region Summary: ReadOnly portion of Libraries: Total=1.2G resident=0K(0%) swapped_out_or_unallocated=1.2G(100%) Writable regions: Total=622.7M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=622.7M(100%) VIRTUAL REGION REGION TYPE SIZE COUNT (non-coalesced) =========== ======= ======= Accelerate framework 768K 6 Activity Tracing 256K 1 CG backing stores 720K 4 CG image 184K 4 CG raster data 172K 1 ColorSync 220K 26 CoreAnimation 756K 13 CoreGraphics 12K 2 CoreUI image data 460K 7 Foundation 16K 1 IOKit 7940K 1 Kernel Alloc Once 8K 1 MALLOC 223.7M 52 MALLOC guard page 32K 7 MALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated) STACK GUARD 56.0M 9 Stack 12.1M 9 VM_ALLOCATE 108K 17 __CTF 756 1 __DATA 50.1M 506 __DATA_CONST 29.5M 330 __DATA_DIRTY 1566K 202 __FONT_DATA 4K 1 __LINKEDIT 704.6M 14 __LLVM_COV 139.9M 1 __OBJC_RO 82.8M 1 __OBJC_RW 3200K 2 __TEXT 512.9M 523 __UNICODE 592K 1 dyld private memory 1280K 3 mapped file 163.7M 21 shared memory 1280K 15 =========== ======= ======= TOTAL 2.3G 1783 TOTAL, minus reserved VM space 1.9G 1783 ----------- Full Report ----------- {"app_name":"Clock Signal","timestamp":"2023-10-16 23:31:08.00 -0500","app_version":"23.09.10","slice_uuid":"d658a7a4-b9d8-3549-be0a-bbac263293db","build_version":"23.09.10","platform":1,"bundleID":"TH.Clock-Signal","share_with_app_devs":1,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.6.8 (21G725)","incident_id":"C8794D20-AFA5-4008-9F7A-0318ABA4A2C7","name":"Clock Signal"} { "uptime" : 610000, "procLaunch" : "2023-10-16 23:30:45.4616 -0500", "procRole" : "Foreground", "version" : 2, "userID" : 501, "deployVersion" : 210, "modelCode" : "MacBookPro10,1", "procStartAbsTime" : 611823355049074, "coalitionID" : 21808, "osVersion" : { "train" : "macOS 12.6.8", "build" : "21G725", "releaseType" : "User" }, "captureTime" : "2023-10-16 23:30:53.7965 -0500", "incident" : "C8794D20-AFA5-4008-9F7A-0318ABA4A2C7", "bug_type" : "309", "pid" : 75374, "procExitAbsTime" : 611831640384336, "cpuType" : "X86-64", "procName" : "Clock Signal", "procPath" : "\/Users\/USER\/Library\/Developer\/Xcode\/DerivedData\/Clock_Signal-dxvpmuuocdkkqteflildxennfrbe\/Build\/Products\/Debug\/Clock Signal.app\/Contents\/MacOS\/Clock Signal", "bundleInfo" : {"CFBundleShortVersionString":"23.09.10","CFBundleVersion":"23.09.10","CFBundleIdentifier":"TH.Clock-Signal"}, "storeInfo" : {"deviceIdentifierForVendor":"6F2D50B2-2731-5E12-8B6E-E52A88D0502E","thirdParty":true}, "parentProc" : "launchd", "parentPid" : 1, "coalitionName" : "TH.Clock-Signal", "crashReporterKey" : "FBC688DA-CA71-E41D-0E8C-E06F8E00D142", "wakeTime" : 38872, "sleepWakeUUID" : "F84B0C0F-66F3-4361-87D4-F5373E09EF33", "sip" : "enabled", "isCorpse" : 1, "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"}, "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":231,"task_for_pid":13},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0}, "faultingThread" : 0, "threads" : [{"triggered":true,"id":4470442,"threadState":{"r13":{"value":4758560808},"rax":{"value":0},"rflags":{"value":582},"cpu":{"value":0},"r14":{"value":6},"rsi":{"value":6},"r8":{"value":3718},"cr2":{"value":4763355024},"rdx":{"value":0},"r10":{"value":0},"r9":{"value":14757395258967641293},"r15":{"value":22},"rbx":{"value":4757194240,"symbolLocation":0,"symbol":"_main_thread"},"trap":{"value":133},"err":{"value":33554760},"r11":{"value":582},"rip":{"value":140703254421502,"matchesCrashFrame":1},"rbp":{"value":140701839277552},"rsp":{"value":140701839277512},"r12":{"value":259},"rcx":{"value":140701839277512},"flavor":"x86_THREAD_STATE","rdi":{"value":259}},"queue":"com.apple.main-thread","frames":[{"imageOffset":32766,"symbol":"__pthread_kill","symbolLocation":10,"imageIndex":0},{"imageOffset":25087,"symbol":"pthread_kill","symbolLocation":263,"imageIndex":1},{"imageOffset":531748,"symbol":"abort","symbolLocation":123,"imageIndex":2},{"imageOffset":528587,"symbol":"__assert_rtn","symbolLocation":314,"imageIndex":2},{"imageOffset":909892,"symbol":"MTLReportFailure.cold.1","symbolLocation":43,"imageIndex":3},{"imageOffset":820997,"symbol":"MTLReportFailure","symbolLocation":529,"imageIndex":3},{"imageOffset":790136,"symbol":"_MTLMessageContextEnd","symbolLocation":1278,"imageIndex":3},{"imageOffset":811944,"symbol":"validateWithDevice(id, MTLRenderPipelineDescriptorPrivate const&)","symbolLocation":450,"imageIndex":3},{"imageOffset":811352,"symbol":"-[MTLRenderPipelineDescriptorInternal validateWithDevice:error:]","symbolLocation":89,"imageIndex":3},{"imageOffset":703668,"symbol":"-[MTLCompiler newRenderPipelineStateWithDescriptorInternal:options:reflection:destinationBinaryArchive:error:completionHandler:]","symbolLocation":181,"imageIndex":3},{"imageOffset":113109,"symbol":"-[MTLCompiler newRenderPipelineStateWithDescriptor:options:reflection:error:completionHandler:]","symbolLocation":27,"imageIndex":3},{"imageOffset":111000,"symbol":"-[_MTLDevice newRenderPipelineStateWithDescriptor:error:]","symbolLocation":65,"imageIndex":3},{"imageOffset":11870271,"sourceLine":319,"sourceFile":"CSScanTarget.mm","symbol":"-[CSScanTarget initWithView:]","imageIndex":4,"symbolLocation":1951},{"imageOffset":663713,"sourceLine":160,"sourceFile":"CSScanTargetView.m","symbol":"-[CSScanTargetView awakeFromNib]","imageIndex":4,"symbolLocation":257},{"imageOffset":490935,"symbol":"-[NSSet makeObjectsPerformSelector:]","symbolLocation":215,"imageIndex":5},{"imageOffset":121888,"symbol":"-[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:]","symbolLocation":1360,"imageIndex":6},{"imageOffset":74973,"symbol":"loadNib","symbolLocation":420,"imageIndex":6},{"imageOffset":72990,"symbol":"+[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:]","symbolLocation":1602,"imageIndex":6},{"imageOffset":2072774,"symbol":"+[NSBundle(NSNibLoadingInternal) _loadNibFile:externalNameTable:options:withZone:]","symbolLocation":142,"imageIndex":6},{"imageOffset":2072229,"symbol":"-[NSWindowController loadWindow]","symbolLocation":322,"imageIndex":6},{"imageOffset":2071597,"symbol":"-[NSWindowController window]","symbolLocation":84,"imageIndex":6},{"imageOffset":2564742,"symbol":"-[NSWindowController showWindow:]","symbolLocation":36,"imageIndex":6},{"imageOffset":2163356,"symbol":"-[NSDocument showWindows]","symbolLocation":116,"imageIndex":6},{"imageOffset":5824397,"symbol":"__80-[NSDocumentController openDocumentWithContentsOfURL:display:completionHandler:]_block_invoke.772","symbolLocation":163,"imageIndex":6},{"imageOffset":5862586,"symbol":"___NSMainRunLoopPerformBlockInModes_block_invoke","symbolLocation":25,"imageIndex":6},{"imageOffset":536272,"symbol":"__CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__","symbolLocation":12,"imageIndex":5},{"imageOffset":535935,"symbol":"__CFRunLoopDoBlocks","symbolLocation":443,"imageIndex":5},{"imageOffset":532697,"symbol":"__CFRunLoopRun","symbolLocation":2613,"imageIndex":5},{"imageOffset":528356,"symbol":"CFRunLoopRunSpecific","symbolLocation":562,"imageIndex":5},{"imageOffset":189926,"symbol":"RunCurrentEventLoopInMode","symbolLocation":292,"imageIndex":7},{"imageOffset":188947,"symbol":"ReceiveNextEventCommon","symbolLocation":283,"imageIndex":7},{"imageOffset":188645,"symbol":"_BlockUntilNextEventMatchingListInModeWithFilter","symbolLocation":70,"imageIndex":7},{"imageOffset":257901,"symbol":"_DPSNextEvent","symbolLocation":927,"imageIndex":6},{"imageOffset":251434,"symbol":"-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]","symbolLocation":1394,"imageIndex":6},{"imageOffset":195801,"symbol":"-[NSApplication run]","symbolLocation":586,"imageIndex":6},{"imageOffset":15447,"symbol":"NSApplicationMain","symbolLocation":817,"imageIndex":6},{"imageOffset":18909833,"sourceLine":12,"sourceFile":"AppDelegate.swift","symbol":"main","imageIndex":4,"symbolLocation":9},{"imageOffset":21806,"symbol":"start","symbolLocation":462,"imageIndex":8}]},{"id":4470466,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":4470470,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":4470490,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":4470497,"frames":[{"imageOffset":8008,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":4470498,"queue":"Document Recents (QOS: UNSPECIFIED)","frames":[{"imageOffset":6506,"symbol":"mach_msg_trap","symbolLocation":10,"imageIndex":0},{"imageOffset":7384,"symbol":"mach_msg","symbolLocation":56,"imageIndex":0},{"imageOffset":109889,"symbol":"_dispatch_mach_send_and_wait_for_reply","symbolLocation":514,"imageIndex":9},{"imageOffset":110910,"symbol":"dispatch_mach_send_with_result_and_wait_for_reply","symbolLocation":50,"imageIndex":9},{"imageOffset":44324,"symbol":"xpc_connection_send_message_with_reply_sync","symbolLocation":238,"imageIndex":10},{"imageOffset":126438,"symbol":"__NSXPCCONNECTION_IS_WAITING_FOR_A_SYNCHRONOUS_REPLY__","symbolLocation":9,"imageIndex":11},{"imageOffset":118310,"symbol":"-[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:]","symbolLocation":3163,"imageIndex":11},{"imageOffset":243573,"symbol":"-[NSXPCConnection _sendSelector:withProxy:arg1:arg2:arg3:]","symbolLocation":140,"imageIndex":11},{"imageOffset":243348,"symbol":"_NSXPCDistantObjectSimpleMessageSend3","symbolLocation":68,"imageIndex":11},{"imageOffset":101139,"symbol":"__64-[SFLGenericList _setPropertyValuesForKeysWithDictionary:error:]_block_invoke","symbolLocation":475,"imageIndex":12},{"imageOffset":30792,"symbol":"_os_activity_initiate_impl","symbolLocation":51,"imageIndex":13},{"imageOffset":100486,"symbol":"-[SFLGenericList _setPropertyValuesForKeysWithDictionary:error:]","symbolLocation":283,"imageIndex":12},{"imageOffset":82352,"symbol":"-[SFLGenericList setPropertyValuesForKeysWithDictionary:error:]","symbolLocation":63,"imageIndex":12},{"imageOffset":75123,"symbol":"LSSharedFileListSetProperty","symbolLocation":168,"imageIndex":12},{"imageOffset":4703063,"symbol":"-[_NSRecentItemsMenuController _notePendingRecentDocumentURLsForKey:documentsSnapshot:]","symbolLocation":397,"imageIndex":6},{"imageOffset":269073,"symbol":"__NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__","symbolLocation":7,"imageIndex":11},{"imageOffset":268809,"symbol":"-[NSBlockOperation main]","symbolLocation":98,"imageIndex":11},{"imageOffset":268703,"symbol":"__NSOPERATION_IS_INVOKING_MAIN__","symbolLocation":17,"imageIndex":11},{"imageOffset":265227,"symbol":"-[NSOperation start]","symbolLocation":785,"imageIndex":11},{"imageOffset":264417,"symbol":"__NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__","symbolLocation":17,"imageIndex":11},{"imageOffset":264120,"symbol":"__NSOQSchedule_f","symbolLocation":182,"imageIndex":11},{"imageOffset":66496,"symbol":"_dispatch_block_async_invoke2","symbolLocation":83,"imageIndex":9},{"imageOffset":13079,"symbol":"_dispatch_client_callout","symbolLocation":8,"imageIndex":9},{"imageOffset":23932,"symbol":"_dispatch_continuation_pop","symbolLocation":453,"imageIndex":9},{"imageOffset":21567,"symbol":"_dispatch_async_redirect_invoke","symbolLocation":704,"imageIndex":9},{"imageOffset":76482,"symbol":"_dispatch_root_queue_drain","symbolLocation":343,"imageIndex":9},{"imageOffset":78428,"symbol":"_dispatch_worker_thread2","symbolLocation":160,"imageIndex":9},{"imageOffset":12170,"symbol":"_pthread_wqthread","symbolLocation":256,"imageIndex":1},{"imageOffset":8023,"symbol":"start_wqthread","symbolLocation":15,"imageIndex":1}]},{"id":4470576,"name":"com.apple.NSEventThread","frames":[{"imageOffset":6506,"symbol":"mach_msg_trap","symbolLocation":10,"imageIndex":0},{"imageOffset":7384,"symbol":"mach_msg","symbolLocation":56,"imageIndex":0},{"imageOffset":537872,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":319,"imageIndex":5},{"imageOffset":531360,"symbol":"__CFRunLoopRun","symbolLocation":1276,"imageIndex":5},{"imageOffset":528356,"symbol":"CFRunLoopRunSpecific","symbolLocation":562,"imageIndex":5},{"imageOffset":1755534,"symbol":"_NSEventThread","symbolLocation":132,"imageIndex":6},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"id":4470629,"frames":[{"imageOffset":17370,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":0},{"imageOffset":27247,"symbol":"_pthread_cond_wait","symbolLocation":1249,"imageIndex":1},{"imageOffset":48418,"symbol":"std::__1::condition_variable::wait(std::__1::unique_lock&)","symbolLocation":18,"imageIndex":14},{"imageOffset":65492,"sourceLine":132,"sourceFile":"AsyncTaskQueue.hpp","symbol":"Concurrency::AsyncTaskQueue::start()::'lambda'()::operator()() const","imageIndex":4,"symbolLocation":180},{"imageOffset":65199,"sourceLine":3694,"sourceFile":"type_traits","symbol":"decltype(std::__1::forward::start()::'lambda'()>(fp)()) std::__1::__invoke::start()::'lambda'()>(Concurrency::AsyncTaskQueue::start()::'lambda'()&&)","imageIndex":4,"symbolLocation":47},{"imageOffset":65047,"sourceLine":286,"sourceFile":"thread","symbol":"void std::__1::__thread_execute >, Concurrency::AsyncTaskQueue::start()::'lambda'()>(std::__1::tuple >, Concurrency::AsyncTaskQueue::start()::'lambda'()>&, std::__1::__tuple_indices<>)","imageIndex":4,"symbolLocation":55},{"imageOffset":62599,"sourceLine":297,"sourceFile":"thread","symbol":"void* std::__1::__thread_proxy >, Concurrency::AsyncTaskQueue::start()::'lambda'()> >(void*)","imageIndex":4,"symbolLocation":119},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"id":4470630,"frames":[{"imageOffset":17370,"symbol":"__psynch_cvwait","symbolLocation":10,"imageIndex":0},{"imageOffset":27247,"symbol":"_pthread_cond_wait","symbolLocation":1249,"imageIndex":1},{"imageOffset":48418,"symbol":"std::__1::condition_variable::wait(std::__1::unique_lock&)","symbolLocation":18,"imageIndex":14},{"imageOffset":9903128,"sourceLine":132,"sourceFile":"AsyncTaskQueue.hpp","symbol":"Concurrency::AsyncTaskQueue::start()::'lambda'()::operator()() const","imageIndex":4,"symbolLocation":184},{"imageOffset":9902831,"sourceLine":3694,"sourceFile":"type_traits","symbol":"decltype(std::__1::forward::start()::'lambda'()>(fp)()) std::__1::__invoke::start()::'lambda'()>(Concurrency::AsyncTaskQueue::start()::'lambda'()&&)","imageIndex":4,"symbolLocation":47},{"imageOffset":9902679,"sourceLine":286,"sourceFile":"thread","symbol":"void std::__1::__thread_execute >, Concurrency::AsyncTaskQueue::start()::'lambda'()>(std::__1::tuple >, Concurrency::AsyncTaskQueue::start()::'lambda'()>&, std::__1::__tuple_indices<>)","imageIndex":4,"symbolLocation":55},{"imageOffset":9900295,"sourceLine":297,"sourceFile":"thread","symbol":"void* std::__1::__thread_proxy >, Concurrency::AsyncTaskQueue::start()::'lambda'()> >(void*)","imageIndex":4,"symbolLocation":119},{"imageOffset":25825,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":8043,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]}], "usedImages" : [ { "source" : "P", "arch" : "x86_64", "base" : 140703254388736, "size" : 229376, "uuid" : "5e9789af-5bca-3e41-a07a-c2dcc3180ea3", "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib", "name" : "libsystem_kernel.dylib" }, { "source" : "P", "arch" : "x86_64", "base" : 140703254618112, "size" : 49152, "uuid" : "e5d44afd-2577-3cee-8711-9d8d426229e0", "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib", "name" : "libsystem_pthread.dylib" }, { "source" : "P", "arch" : "x86_64", "base" : 140703253372928, "size" : 561152, "uuid" : "e42e9d7a-03b4-340b-b61e-dcd45fd4acc0", "path" : "\/usr\/lib\/system\/libsystem_c.dylib", "name" : "libsystem_c.dylib" }, { "source" : "P", "arch" : "x86_64", "base" : 4762263552, "CFBundleShortVersionString" : "263.9", "CFBundleIdentifier" : "com.apple.Metal", "size" : 1310720, "uuid" : "d622ce86-1ed9-3362-90b2-96f02b650e32", "path" : "\/System\/Library\/Frameworks\/Metal.framework\/Versions\/A\/Metal", "name" : "Metal", "CFBundleVersion" : "263.9" }, { "source" : "P", "arch" : "x86_64", "base" : 4509503488, "CFBundleShortVersionString" : "23.09.10", "CFBundleIdentifier" : "TH.Clock-Signal", "size" : 19513344, "uuid" : "d658a7a4-b9d8-3549-be0a-bbac263293db", "path" : "\/Users\/USER\/Library\/Developer\/Xcode\/DerivedData\/Clock_Signal-dxvpmuuocdkkqteflildxennfrbe\/Build\/Products\/Debug\/Clock Signal.app\/Contents\/MacOS\/Clock Signal", "name" : "Clock Signal", "CFBundleVersion" : "23.09.10" }, { "source" : "P", "arch" : "x86_64", "base" : 140703254933504, "CFBundleShortVersionString" : "6.9", "CFBundleIdentifier" : "com.apple.CoreFoundation", "size" : 5263360, "uuid" : "0b1005c7-a065-3a22-b2b0-9ee27f4cf98a", "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation", "name" : "CoreFoundation", "CFBundleVersion" : "1866" }, { "source" : "P", "arch" : "x86_64", "base" : 140703298662400, "CFBundleShortVersionString" : "6.9", "CFBundleIdentifier" : "com.apple.AppKit", "size" : 15269888, "uuid" : "e0a08590-a95f-3b27-9fcf-04ee92840117", "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit", "name" : "AppKit", "CFBundleVersion" : "2113.60.148" }, { "source" : "P", "arch" : "x86_64", "base" : 140703407427584, "CFBundleShortVersionString" : "2.1.1", "CFBundleIdentifier" : "com.apple.HIToolbox", "size" : 3096576, "uuid" : "06fdecd6-9f69-397b-b1e2-a8226c0ba7ed", "path" : "\/System\/Library\/Frameworks\/Carbon.framework\/Versions\/A\/Frameworks\/HIToolbox.framework\/Versions\/A\/HIToolbox", "name" : "HIToolbox" }, { "source" : "P", "arch" : "x86_64", "base" : 4756668416, "size" : 442368, "uuid" : "baab2c6d-3797-3264-8595-a591561979de", "path" : "\/usr\/lib\/dyld", "name" : "dyld" }, { "source" : "P", "arch" : "x86_64", "base" : 140703252832256, "size" : 290816, "uuid" : "1a04b380-76e4-3e4b-b0fc-9837533d021d", "path" : "\/usr\/lib\/system\/libdispatch.dylib", "name" : "libdispatch.dylib" }, { "source" : "P", "arch" : "x86_64", "base" : 140703251705856, "size" : 245760, "uuid" : "f791f5e1-708f-3b18-a112-bd538aacfd66", "path" : "\/usr\/lib\/system\/libxpc.dylib", "name" : "libxpc.dylib" }, { "source" : "P", "arch" : "x86_64", "base" : 140703269314560, "CFBundleShortVersionString" : "6.9", "CFBundleIdentifier" : "com.apple.Foundation", "size" : 3919872, "uuid" : "e62db949-fe2d-3637-a40a-c1411a467e05", "path" : "\/System\/Library\/Frameworks\/Foundation.framework\/Versions\/C\/Foundation", "name" : "Foundation", "CFBundleVersion" : "1866" }, { "source" : "P", "arch" : "x86_64", "base" : 140703384391680, "CFBundleShortVersionString" : "155", "CFBundleIdentifier" : "com.apple.coreservices.SharedFileList", "size" : 151552, "uuid" : "42f85d0f-bc59-38c4-aa40-899e573f5ae2", "path" : "\/System\/Library\/Frameworks\/CoreServices.framework\/Versions\/A\/Frameworks\/SharedFileList.framework\/Versions\/A\/SharedFileList", "name" : "SharedFileList", "CFBundleVersion" : "155" }, { "source" : "P", "arch" : "x86_64", "base" : 140703251951616, "size" : 102400, "uuid" : "f0ef1345-060a-3065-a399-b1a2f89c5d12", "path" : "\/usr\/lib\/system\/libsystem_trace.dylib", "name" : "libsystem_trace.dylib" }, { "source" : "P", "arch" : "x86_64", "base" : 140703253934080, "size" : 364544, "uuid" : "a031469a-a9fe-37e0-8523-4f80351ea635", "path" : "\/usr\/lib\/libc++.1.dylib", "name" : "libc++.1.dylib" } ], "sharedCache" : { "base" : 140703251361792, "size" : 19331678208, "uuid" : "68f46821-a873-3448-a8f6-f06309f3f5bc" }, "vmSummary" : "ReadOnly portion of Libraries: Total=1.2G resident=0K(0%) swapped_out_or_unallocated=1.2G(100%)\nWritable regions: Total=622.7M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=622.7M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nAccelerate framework 768K 6 \nActivity Tracing 256K 1 \nCG backing stores 720K 4 \nCG image 184K 4 \nCG raster data 172K 1 \nColorSync 220K 26 \nCoreAnimation 756K 13 \nCoreGraphics 12K 2 \nCoreUI image data 460K 7 \nFoundation 16K 1 \nIOKit 7940K 1 \nKernel Alloc Once 8K 1 \nMALLOC 223.7M 52 \nMALLOC guard page 32K 7 \nMALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated)\nSTACK GUARD 56.0M 9 \nStack 12.1M 9 \nVM_ALLOCATE 108K 17 \n__CTF 756 1 \n__DATA 50.1M 506 \n__DATA_CONST 29.5M 330 \n__DATA_DIRTY 1566K 202 \n__FONT_DATA 4K 1 \n__LINKEDIT 704.6M 14 \n__LLVM_COV 139.9M 1 \n__OBJC_RO 82.8M 1 \n__OBJC_RW 3200K 2 \n__TEXT 512.9M 523 \n__UNICODE 592K 1 \ndyld private memory 1280K 3 \nmapped file 163.7M 21 \nshared memory 1280K 15 \n=========== ======= ======= \nTOTAL 2.3G 1783 \nTOTAL, minus reserved VM space 1.9G 1783 \n", "legacyInfo" : { "threadTriggered" : { "queue" : "com.apple.main-thread" } }, "trialInfo" : { "rollouts" : [ { "rolloutId" : "61301e3a61217b3110231469", "factorPackIds" : { "SIRI_FIND_MY_CONFIGURATION_FILES" : "652886aa2c02f032beae8316" }, "deploymentId" : 240000028 }, { "rolloutId" : "63582c5f8a53461413999550", "factorPackIds" : { }, "deploymentId" : 240000002 } ], "experiments" : [ { "treatmentId" : "6dd670af-0633-45e4-ae5f-122ae4df02be", "experimentId" : "64406ba83deb637ac8a04419", "deploymentId" : 900000017 } ] } } Model: MacBookPro10,1, BootROM 422.0.0.0.0, 4 processors, Quad-Core Intel Core i7, 2.6 GHz, 16 GB, SMC 2.3f36 Graphics: Intel HD Graphics 4000, Intel HD Graphics 4000, Built-In Graphics: NVIDIA GeForce GT 650M, NVIDIA GeForce GT 650M, PCIe, 1 GB Display: DELL ST2410, 1920 x 1080 (1080p FHD - Full High Definition), Main, MirrorOff, Online Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D5434314753364D465238432D50422020 Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D5434314753364D465238432D50422020 AirPort: spairport_wireless_card_type_wifi (0x14E4, 0xEF), Broadcom BCM43xx 1.0 (7.77.111.1 AirPortDriverBrcmNIC-1710.4) AirPort: Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports Network Service: Wi-Fi, AirPort, en0 Serial ATA Device: APPLE SSD SM512E, 500.28 GB USB Device: USB30Bus USB Device: hub_device USB Device: USB Optical Mouse USB Device: iMate, USB To ADB Adaptor USB Device: USB20Bus USB Device: hub_device USB Device: hub_device USB Device: Apple Internal Keyboard / Trackpad USB Device: BRCM20702 Hub USB Device: Bluetooth USB Host Controller USB Device: USB20Bus USB Device: hub_device USB Device: FaceTime HD Camera (Built-in) Thunderbolt Bus: MacBook Pro, Apple Inc., 23.4 ```
ryandesign commented 10 months ago

but then crashes with a metal shader problem

This was because default.metallib did not end up in my compiled app's Contents/Resources. After copying that from your binary, the app is working. So the question is just why the .nibs and the default.metallib didn't get built and copied into the app.