Skip to content

Instantly share code, notes, and snippets.

@ZachBacon
Created April 23, 2025 16:32
Show Gist options
  • Save ZachBacon/37501e23e7482fec288be52226090499 to your computer and use it in GitHub Desktop.
Save ZachBacon/37501e23e7482fec288be52226090499 to your computer and use it in GitHub Desktop.
lldb ./visualboyadvance-m
(lldb) target create "./visualboyadvance-m"
Current executable set to '/Users/zachbacon/Documents/visualboyadvance-m/build/visualboyadvance-m.app/Contents/MacOS/visualboyadvance-m' (arm64).
(lldb) run
Process 28618 launched: '/Users/zachbacon/Documents/visualboyadvance-m/build/visualboyadvance-m.app/Contents/MacOS/visualboyadvance-m' (arm64)
2025-04-23 12:30:47.804123-0400 visualboyadvance-m[28618:21753647] [CursorUI] ViewBridge to RemoteViewService Terminated: Error Domain=com.apple.ViewBridge Code=18 "(null)" UserInfo={com.apple.ViewBridge.error.hint=this process disconnected remote view controller -- benign unless unexpected, com.apple.ViewBridge.error.description=NSViewBridgeErrorCanceled}
2025-04-23 12:30:56.575925-0400 visualboyadvance-m[28618:21753647] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x600001717b00> F8BB1C28-BAE8-11D6-9C31-00039315CD46
2025-04-23 12:30:56.584689-0400 visualboyadvance-m[28618:21753647] HALDefaultDevice.cpp:742 Could not find default device for dIn
2025-04-23 12:30:56.613894-0400 visualboyadvance-m[28618:21754051] [aqme] AQMEIO_HAL.cpp:893 kAudioDevicePropertyMute returned err 2003332927
Loaded battery /Users/zachbacon/Documents/roms/Metroid - Fusion.sav
2025-04-23 12:30:56.889594-0400 visualboyadvance-m[28618:21753647] validateWithDevice, line 4704: error 'Render Pipeline Descriptor Validation
vertexFunction must not be nil.
'
validateWithDevice:4704: failed assertion `Render Pipeline Descriptor Validation
vertexFunction must not be nil.
'
Process 28618 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = hit program assert
frame #4: 0x00000001a0e04b24 Metal`MTLReportFailure.cold.1 + 48
Metal`bool MTLGetEnvCase<MTLErrorModeType>(char const*, MTLErrorModeType&, std::__1::vector<std::__1::pair<char const*, MTLErrorModeType>, std::__1::allocator<std::__1::pair<char const*, MTLErrorModeType>>> const&) (.cold.1):
-> 0x1a0e04b24 <+0>: pacibsp
0x1a0e04b28 <+4>: sub sp, sp, #0x40
0x1a0e04b2c <+8>: stp x22, x21, [sp, #0x10]
0x1a0e04b30 <+12>: stp x20, x19, [sp, #0x20]
Target 0: (visualboyadvance-m) stopped.
(lldb) br
Commands for operating on breakpoints (see 'help b' for shorthand.)
Syntax: breakpoint <subcommand> [<command-options>]
The following subcommands are supported:
clear -- Delete or disable breakpoints matching the specified source file and line.
command -- Commands for adding, removing and listing LLDB commands executed when a breakpoint is hit.
delete -- Delete the specified breakpoint(s). If no breakpoints are specified, delete them all.
disable -- Disable the specified breakpoint(s) without deleting them. If none are specified, disable all breakpoints.
enable -- Enable the specified disabled breakpoint(s). If no breakpoints are specified, enable all of them.
list -- List some or all breakpoints at configurable levels of detail.
modify -- Modify the options on a breakpoint or set of breakpoints in the executable. If no breakpoint is specified, acts on the last created breakpoint. With
the exception of -e, -d and -i, passing an empty argument clears the modification.
name -- Commands to manage breakpoint names
read -- Read and set the breakpoints previously saved to a file with "breakpoint write".
set -- Sets a breakpoint or set of breakpoints in the executable.
write -- Write the breakpoints listed to a file that can be read in with "breakpoint read". If given no arguments, writes all breakpoints.
For more help on any particular subcommand, type 'help <command> <subcommand>'.
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = hit program assert
frame #0: 0x0000000195b14388 libsystem_kernel.dylib`__pthread_kill + 8
frame #1: 0x0000000195b4d88c libsystem_pthread.dylib`pthread_kill + 296
frame #2: 0x0000000195a56c60 libsystem_c.dylib`abort + 124
frame #3: 0x0000000195a55eec libsystem_c.dylib`__assert_rtn + 284
* frame #4: 0x00000001a0e04b24 Metal`MTLReportFailure.cold.1 + 48
frame #5: 0x00000001a0dd9be4 Metal`MTLReportFailure + 576
frame #6: 0x00000001a0dcf7a4 Metal`_MTLMessageContextEnd + 876
frame #7: 0x00000001a0dd6dec Metal`validateWithDevice(id<MTLDevice>, MTLRenderPipelineDescriptorPrivate const&) + 556
frame #8: 0x00000001a0dd6b3c Metal`-[MTLRenderPipelineDescriptorInternal validateWithDevice:error:] + 104
frame #9: 0x000000010cf3fa80 AGXMetalG16G_B0`AGXG16GFamilyRenderPipeline* AGX::UserCommonShaderFactory<AGX::HAL200::Encoders, AGX::HAL200::Classes, AGX::HAL200::ObjClasses>::createRenderPipeline<MTLRenderPipelineDescriptor>(MTLRenderPipelineDescriptor*, AGXG16GFamilyDevice*, unsigned long, MTLRenderPipelineReflection**, NSError**, void (id<MTLRenderPipelineState>, MTLRenderPipelineReflection*, NSError*) block_pointer) + 136
frame #10: 0x000000010cf57588 AGXMetalG16G_B0`-[AGXG16GFamilyDevice newRenderPipelineStateWithDescriptor:error:] + 116
frame #11: 0x00000001000ce154 visualboyadvance-m`MetalDrawingPanel::DrawingPanelInit() + 368
frame #12: 0x00000001000846a0 visualboyadvance-m`GameArea::OnIdle(wxIdleEvent&) + 1932
frame #13: 0x000000010100baec libwx_baseu-3.2.dylib`wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 112
frame #14: 0x000000010100b9b4 libwx_baseu-3.2.dylib`wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 132
frame #15: 0x000000010100c6fc libwx_baseu-3.2.dylib`wxEvtHandler::TryHereOnly(wxEvent&) + 80
frame #16: 0x000000010100c5f8 libwx_baseu-3.2.dylib`wxEvtHandler::ProcessEventLocally(wxEvent&) + 48
frame #17: 0x000000010100c508 libwx_baseu-3.2.dylib`wxEvtHandler::ProcessEvent(wxEvent&) + 56
frame #18: 0x000000010100c3b0 libwx_baseu-3.2.dylib`wxEvtHandler::SafelyProcessEvent(wxEvent&) + 24
frame #19: 0x0000000101506bc0 libwx_osx_cocoau_core-3.2.dylib`wxWindowBase::SendIdleEvents(wxIdleEvent&) + 84
frame #20: 0x0000000101506be8 libwx_osx_cocoau_core-3.2.dylib`wxWindowBase::SendIdleEvents(wxIdleEvent&) + 124
frame #21: 0x000000010145f878 libwx_osx_cocoau_core-3.2.dylib`wxAppBase::ProcessIdle() + 136
frame #22: 0x00000001013e48e4 libwx_osx_cocoau_core-3.2.dylib`wxApp::ProcessIdle() + 36
frame #23: 0x0000000100ff6270 libwx_baseu-3.2.dylib`wxCFEventLoop::CommonModeObserverCallBack(__CFRunLoopObserver*, int) + 100
frame #24: 0x0000000195c381a8 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36
frame #25: 0x0000000195c38090 CoreFoundation`__CFRunLoopDoObservers + 536
frame #26: 0x0000000195c377a0 CoreFoundation`__CFRunLoopRun + 944
frame #27: 0x0000000195c36d68 CoreFoundation`CFRunLoopRunSpecific + 572
frame #28: 0x00000001a13ea27c HIToolbox`RunCurrentEventLoopInMode + 324
frame #29: 0x00000001a13ed4e8 HIToolbox`ReceiveNextEventCommon + 676
frame #30: 0x00000001a1578484 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 76
frame #31: 0x0000000199889ab4 AppKit`_DPSNextEvent + 684
frame #32: 0x000000019a228314 AppKit`-[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688
frame #33: 0x000000019987cc64 AppKit`-[NSApplication run] + 480
frame #34: 0x000000010142eaec libwx_osx_cocoau_core-3.2.dylib`wxGUIEventLoop::OSXDoRun() + 112
frame #35: 0x0000000100ff6704 libwx_baseu-3.2.dylib`wxCFEventLoop::DoRun() + 40
frame #36: 0x0000000100f82960 libwx_baseu-3.2.dylib`wxEventLoopBase::Run() + 112
frame #37: 0x0000000100f61ab4 libwx_baseu-3.2.dylib`wxAppConsoleBase::MainLoop() + 120
frame #38: 0x00000001013e493c libwx_osx_cocoau_core-3.2.dylib`wxApp::OnRun() + 36
frame #39: 0x0000000100fa51b4 libwx_baseu-3.2.dylib`wxEntry(int&, wchar_t**) + 104
frame #40: 0x00000001000bdab8 visualboyadvance-m`main + 816
frame #41: 0x00000001957aeb4c dyld`start + 6000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment