AcademySoftwareFoundation / MaterialX

MaterialX is an open standard for the exchange of rich material and look-development content across applications and renderers.
http://www.materialx.org/
Apache License 2.0
1.86k stars 352 forks source link

Crash trying to capture frame in MaterialXView (Mac) #1295

Closed kwokcb closed 1 year ago

kwokcb commented 1 year ago

I'm getting a crash when trying to save a frame in MaterialXView on Mac. (Pressing 'F' key) Unsure if it's related to the Metal port so adding @Morteeza in case. Seems strange it's making GL calls ? I'm not sure if it's related to my setup so I could have something set up incorrectly.

This is the crash dialog text:

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

Process:               MaterialXView [2412]
Path:                  /Users/USER/*/MaterialXView
Identifier:            MaterialXView
Version:               ???
Code Type:             ARM-64 (Native)
Parent Process:        zsh [678]
Responsible:           Terminal [440]
User ID:               501

Date/Time:             2023-03-20 09:31:40.9715 -0400
OS Version:            macOS 13.2.1 (22D68)
Report Version:        12
Anonymous UUID:        909B16C4-672B-3254-C583-A48E43211FDA

Time Awake Since Boot: 2700 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 0x00000000000002d8
Exception Codes:       0x0000000000000001, 0x00000000000002d8

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

VM Region Info: 0x2d8 is not in any region.  Bytes before following region: 105553518918952
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      MALLOC_NANO (reserved)   600018000000-600020000000 [128.0M] rw-/rwx SM=NUL  ...(unallocated)

Kernel Triage:
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libGL.dylib                            0x1ea333254 glFlush + 8
1   MaterialXView                          0x100e25d88 Viewer::getFrameImage() + 28 (Viewer.cpp:1962)
2   MaterialXView                          0x100e2811c Viewer::draw_contents() + 856 (Viewer.cpp:2170)
3   MaterialXView                          0x100f5f150 nanogui::Screen::draw_all() + 68 (screen.cpp:609)
4   MaterialXView                          0x100f57b78 nanogui::mainloop(float)::$_1::operator()() const + 252 (common.cpp:121) [inlined]
5   MaterialXView                          0x100f57b78 nanogui::mainloop(float) + 512 (common.cpp:185)
6   MaterialXView                          0x100df7884 main + 7148 (Main.cpp:326)
7   dyld                                   0x19a8c7e50 start + 2544

Thread 1:: com.apple.NSEventThread
0   libsystem_kernel.dylib                 0x19abb2050 mach_msg2_trap + 8
1   libsystem_kernel.dylib                 0x19abc411c mach_msg2_internal + 80
2   libsystem_kernel.dylib                 0x19abbac24 mach_msg_overwrite + 452
3   libsystem_kernel.dylib                 0x19abb23cc mach_msg + 24
4   CoreFoundation                         0x19acd1bb0 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                         0x19acd049c __CFRunLoopRun + 1232
6   CoreFoundation                         0x19accf878 CFRunLoopRunSpecific + 612
7   AppKit                                 0x19e08019c _NSEventThread + 172
8   libsystem_pthread.dylib                0x19abf206c _pthread_start + 148
9   libsystem_pthread.dylib                0x19abece2c thread_start + 8

Thread 2:
0   libsystem_kernel.dylib                 0x19abb5648 __semwait_signal + 8
1   libsystem_c.dylib                      0x19aabf52c nanosleep + 220
2   libc++.1.dylib                         0x19ab4b358 std::__1::this_thread::sleep_for(std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > const&) + 84
3   MaterialXView                          0x100f59008 void std::__1::this_thread::sleep_for<long long, std::__1::ratio<1l, 1000000l> >(std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000l> > const&) + 44 (thread:386) [inlined]
4   MaterialXView                          0x100f59008 nanogui::mainloop(float)::$_2::operator()() const + 88 (common.cpp:171) [inlined]
5   MaterialXView                          0x100f59008 decltype(static_cast<nanogui::mainloop(float)::$_2>(fp)()) std::__1::__invoke<nanogui::mainloop(float)::$_2>(nanogui::mainloop(float)::$_2&&) + 88 (type_traits:3918) [inlined]
6   MaterialXView                          0x100f59008 void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, nanogui::mainloop(float)::$_2>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, nanogui::mainloop(float)::$_2>&, std::__1::__tuple_indices<>) + 88 (thread:287) [inlined]
7   MaterialXView                          0x100f59008 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, nanogui::mainloop(float)::$_2> >(void*) + 180 (thread:298)
8   libsystem_pthread.dylib                0x19abf206c _pthread_start + 148
9   libsystem_pthread.dylib                0x19abece2c thread_start + 8

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

Thread 4::  Dispatch queue: com.Metal.CompletionQueueDispatch
0   libsystem_kernel.dylib                 0x19abb2050 mach_msg2_trap + 8
1   libsystem_kernel.dylib                 0x19abc411c mach_msg2_internal + 80
2   IOKit                                  0x19dde24e4 io_connect_method + 520
3   IOKit                                  0x19dde2274 IOConnectCallMethod + 176
4   IOGPU                                  0x1b6534914 ioGPUResourceFinalize + 136
5   CoreFoundation                         0x19ada64b8 _CFRelease + 316
6   IOGPU                                  0x1b652e7bc -[IOGPUMetalResource dealloc] + 228
7   IOGPU                                  0x1b652049c -[IOGPUMetalBuffer dealloc] + 312
8   AGXMetal13_3                           0x1fddc171c 0x1fdbc0000 + 2103068
9   Metal                                  0x1a3ff23dc MTLResourceListChunkFreeEntries(MTLResourceListChunk*) + 64
10  Metal                                  0x1a3ef8230 -[MTLResourceList releaseAllObjectsAndReset] + 72
11  IOGPU                                  0x1b6522584 IOGPUMetalCommandBufferStorageReset + 36
12  IOGPU                                  0x1b65224b8 IOGPUMetalCommandBufferStorageDealloc + 92
13  IOGPU                                  0x1b6520d08 -[IOGPUMetalCommandBuffer didCompleteWithStartTime:endTime:error:] + 240
14  Metal                                  0x1a3ef7c44 -[_MTLCommandQueue commandBufferDidComplete:startTime:completionTime:error:] + 108
15  IOGPU                                  0x1b652a358 IOGPUNotificationQueueDispatchAvailableCompletionNotifications + 128
16  IOGPU                                  0x1b652a464 __IOGPUNotificationQueueSetDispatchQueue_block_invoke + 64
17  libdispatch.dylib                      0x19aa6a5c4 _dispatch_client_callout4 + 20
18  libdispatch.dylib                      0x19aa86fe8 _dispatch_mach_msg_invoke + 468
19  libdispatch.dylib                      0x19aa71a94 _dispatch_lane_serial_drain + 376
20  libdispatch.dylib                      0x19aa87d04 _dispatch_mach_invoke + 448
21  libdispatch.dylib                      0x19aa71a94 _dispatch_lane_serial_drain + 376
22  libdispatch.dylib                      0x19aa7273c _dispatch_lane_invoke + 436
23  libdispatch.dylib                      0x19aa71a94 _dispatch_lane_serial_drain + 376
24  libdispatch.dylib                      0x19aa72708 _dispatch_lane_invoke + 384
25  libdispatch.dylib                      0x19aa7d34c _dispatch_workloop_worker_thread + 652
26  libsystem_pthread.dylib                0x19abee100 _pthread_wqthread + 288
27  libsystem_pthread.dylib                0x19abece20 start_wqthread + 8

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

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

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

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000120048c00   x1: 0x0000000000000000   x2: 0x0000000000000100   x3: 0x0000000000000000
    x4: 0x0000000000000000   x5: 0x00000000000000a0   x6: 0x0000000000000000   x7: 0x0000000000000000
    x8: 0x0000000000000000   x9: 0xffffffffffffffff  x10: 0x0000000000000000  x11: 0x0000000000000002
   x12: 0x0000000000000002  x13: 0x0000000000000000  x14: 0x0000000000000000  x15: 0x0000000000000000
   x16: 0x00000001ea33324c  x17: 0x00000001fafdca30  x18: 0x0000000000000000  x19: 0x0000000120048c00
   x20: 0x0000600003a318c0  x21: 0x000000016f01ee10  x22: 0x000000010115a000  x23: 0x000000010115a1c0
   x24: 0x000000010115a1a8  x25: 0x0000000000000000  x26: 0x000060000384ac70  x27: 0x0000000000000002
   x28: 0x0000000000000002   fp: 0x000000016f01ed80   lr: 0x0000000100e25d88
    sp: 0x000000016f01ed60   pc: 0x00000001ea333254 cpsr: 0x60001000
   far: 0x00000000000002d8  esr: 0x92000006 (Data Abort) byte read Translation fault

Binary Images:
       0x1ea332000 -        0x1ea33bfff libGL.dylib (*) <1a381668-4004-3da9-a59b-013d13cc2684> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
       0x100de0000 -        0x101137fff MaterialXView (*) <4b635fd4-bffc-3bb8-a585-3e10aca7aa02> /Users/USER/*/MaterialXView
       0x19a8c2000 -        0x19a94cba3 dyld (*) <191e84f1-4b95-39c8-b253-1c1ef56c0fa8> /usr/lib/dyld
       0x19abb1000 -        0x19abeafeb libsystem_kernel.dylib (*) <3dcd49b9-b3c5-3d90-be40-a3b807cb9cd7> /usr/lib/system/libsystem_kernel.dylib
       0x19ac50000 -        0x19b127fff com.apple.CoreFoundation (6.9) <18260df4-69a8-30d3-8175-fb8ae7ae7709> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
       0x19df1c000 -        0x19ee27fff com.apple.AppKit (6.9) <88722053-0df0-3d4f-bf55-7e3c2d2c8e29> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x19abeb000 -        0x19abf7ffb libsystem_pthread.dylib (*) <9f3b729a-ed04-3e65-adac-d75ad06ebbdc> /usr/lib/system/libsystem_pthread.dylib
       0x19aab1000 -        0x19ab31ffb libsystem_c.dylib (*) <14cd841b-0c7b-34a2-a342-cc6796ef9259> /usr/lib/system/libsystem_c.dylib
       0x19ab32000 -        0x19ab98ff3 libc++.1.dylib (*) <e2679357-b2af-30d4-8130-50d31765af88> /usr/lib/libc++.1.dylib
       0x19dddf000 -        0x19debafff com.apple.framework.IOKit (2.0.2) <a5367643-e422-3594-8c2c-d0f2bb5cbf96> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
       0x1b651e000 -        0x1b6556fff com.apple.IOGPU (65.0.22) <e0268d54-1276-3873-ab39-9637af4f8936> /System/Library/PrivateFrameworks/IOGPU.framework/Versions/A/IOGPU
       0x1fdbc0000 -        0x1fe194fff com.apple.AGXMetal13-3 (227.2.45) <053302ab-5700-3b89-8aa1-d49e47fa11cb> /System/Library/Extensions/AGXMetal13_3.bundle/Contents/MacOS/AGXMetal13_3
       0x1a3ed8000 -        0x1a40b6fff com.apple.Metal (306.3.5) <03dcb34f-f25e-35ce-b534-054c35444c69> /System/Library/Frameworks/Metal.framework/Versions/A/Metal
       0x19aa66000 -        0x19aaadfff libdispatch.dylib (*) <4d52c3a5-32e6-37a2-9d6c-23c612038354> /usr/lib/system/libdispatch.dylib
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0

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

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework               128K        1 
Activity Tracing                   256K        1 
CG backing stores                 2176K        4 
CG image                           176K        7 
ColorSync                          528K       25 
CoreAnimation                      208K       13 
CoreGraphics                        32K        2 
CoreUI image data                 1776K       12 
Foundation                         208K        3 
Kernel Alloc Once                   32K        1 
MALLOC                             3.7G      183 
MALLOC guard page                  192K       10 
MALLOC_MEDIUM (reserved)         664.0M        6         reserved VM address space (unallocated)
MALLOC_NANO (reserved)           256.0M        1         reserved VM address space (unallocated)
STACK GUARD                       56.1M        8 
Stack                             11.7M        8 
VM_ALLOCATE                        112K        7 
__AUTH                            1465K      280 
__AUTH_CONST                      18.3M      471 
__CTF                               756        1 
__DATA                            5572K      457 
__DATA_CONST                      23.4M      476 
__DATA_DIRTY                      1508K      169 
__FONT_DATA                        2352        1 
__LINKEDIT                       770.5M        3 
__OBJC_CONST                      3460K      240 
__OBJC_RO                         65.5M        1 
__OBJC_RW                         1988K        1 
__TEXT                           410.2M      492 
dyld private memory                256K        1 
mapped file                      207.8M       42 
shared memory                      960K       19 
===========                     =======  ======= 
TOTAL                              6.2G     2946 
TOTAL, minus reserved VM space     5.3G     2946 

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

{"app_name":"MaterialXView","timestamp":"2023-03-20 09:31:49.00 -0400","app_version":"","slice_uuid":"4b635fd4-bffc-3bb8-a585-3e10aca7aa02","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 13.2.1 (22D68)","roots_installed":0,"incident_id":"0683965B-5423-4297-9A0B-4568522C7A95","name":"MaterialXView"}
{
  "uptime" : 2700,
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "MacBookAir10,1",
  "coalitionID" : 429,
  "osVersion" : {
    "train" : "macOS 13.2.1",
    "build" : "22D68",
    "releaseType" : "User"
  },
  "captureTime" : "2023-03-20 09:31:40.9715 -0400",
  "incident" : "0683965B-5423-4297-9A0B-4568522C7A95",
  "pid" : 2412,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2023-03-20 09:18:01.5412 -0400",
  "procStartAbsTime" : 45265011367,
  "procExitAbsTime" : 64930241385,
  "procName" : "MaterialXView",
  "procPath" : "\/Users\/USER\/*\/MaterialXView",
  "parentProc" : "zsh",
  "parentPid" : 678,
  "coalitionName" : "com.apple.Terminal",
  "crashReporterKey" : "909B16C4-672B-3254-C583-A48E43211FDA",
  "responsiblePid" : 440,
  "responsibleProc" : "Terminal",
  "sip" : "enabled",
  "vmRegionInfo" : "0x2d8 is not in any region.  Bytes before following region: 105553518918952\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      MALLOC_NANO (reserved)   600018000000-600020000000 [128.0M] rw-\/rwx SM=NUL  ...(unallocated)",
  "exception" : {"codes":"0x0000000000000001, 0x00000000000002d8","rawCodes":[1,728],"type":"EXC_BAD_ACCESS","signal":"SIGSEGV","subtype":"KERN_INVALID_ADDRESS at 0x00000000000002d8"},
  "termination" : {"flags":0,"code":11,"namespace":"SIGNAL","indicator":"Segmentation fault: 11","byProc":"exc handler","byPid":2412},
  "ktriageinfo" : "VM - pmap_enter retried due to resource shortage\nVM - pmap_enter retried due to resource shortage\nVM - pmap_enter retried due to resource shortage\nVM - pmap_enter retried due to resource shortage\nVM - pmap_enter retried due to resource shortage\n",
  "vmregioninfo" : "0x2d8 is not in any region.  Bytes before following region: 105553518918952\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      MALLOC_NANO (reserved)   600018000000-600020000000 [128.0M] rw-\/rwx SM=NUL  ...(unallocated)",
  "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":25613,"threadState":{"x":[{"value":4832136192},{"value":0},{"value":256},{"value":0},{"value":0},{"value":160},{"value":0},{"value":0},{"value":0},{"value":18446744073709551615},{"value":0},{"value":2},{"value":2},{"value":0},{"value":0},{"value":0},{"value":8224191052,"symbolLocation":0,"symbol":"glFlush"},{"value":8505903664},{"value":0},{"value":4832136192},{"value":105553177286848},{"value":6157364752},{"value":4313161728,"symbolLocation":0,"symbol":"MaterialX_v1_38_7::Type::MDL_SCATTER_MODE"},{"value":4313162176,"symbolLocation":0,"symbol":"nanogui::__nanogui_screens"},{"value":4313162152,"symbolLocation":0,"symbol":"nanogui::m_async_functions"},{"value":0},{"value":105553175293040},{"value":2},{"value":2}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4309802376},"cpsr":{"value":1610616832},"fp":{"value":6157364608},"sp":{"value":6157364576},"esr":{"value":2449473542,"description":"(Data Abort) byte read Translation fault"},"pc":{"value":8224191060,"matchesCrashFrame":1},"far":{"value":728}},"queue":"com.apple.main-thread","frames":[{"imageOffset":4692,"symbol":"glFlush","symbolLocation":8,"imageIndex":0},{"imageOffset":286088,"sourceLine":1962,"sourceFile":"Viewer.cpp","symbol":"Viewer::getFrameImage()","imageIndex":1,"symbolLocation":28},{"imageOffset":295196,"sourceLine":2170,"sourceFile":"Viewer.cpp","symbol":"Viewer::draw_contents()","imageIndex":1,"symbolLocation":856},{"imageOffset":1569104,"sourceLine":609,"sourceFile":"screen.cpp","symbol":"nanogui::Screen::draw_all()","imageIndex":1,"symbolLocation":68},{"symbol":"nanogui::mainloop(float)::$_1::operator()() const","inline":true,"imageIndex":1,"imageOffset":1538936,"symbolLocation":252,"sourceLine":121,"sourceFile":"common.cpp"},{"imageOffset":1538936,"sourceLine":185,"sourceFile":"common.cpp","symbol":"nanogui::mainloop(float)","imageIndex":1,"symbolLocation":512},{"imageOffset":96388,"sourceLine":326,"sourceFile":"Main.cpp","symbol":"main","imageIndex":1,"symbolLocation":7148},{"imageOffset":24144,"symbol":"start","symbolLocation":2544,"imageIndex":2}]},{"id":25634,"name":"com.apple.NSEventThread","frames":[{"imageOffset":4176,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":3},{"imageOffset":78108,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":3},{"imageOffset":39972,"symbol":"mach_msg_overwrite","symbolLocation":452,"imageIndex":3},{"imageOffset":5068,"symbol":"mach_msg","symbolLocation":24,"imageIndex":3},{"imageOffset":531376,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":160,"imageIndex":4},{"imageOffset":525468,"symbol":"__CFRunLoopRun","symbolLocation":1232,"imageIndex":4},{"imageOffset":522360,"symbol":"CFRunLoopRunSpecific","symbolLocation":612,"imageIndex":4},{"imageOffset":1458588,"symbol":"_NSEventThread","symbolLocation":172,"imageIndex":5},{"imageOffset":28780,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":7724,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"id":25636,"frames":[{"imageOffset":17992,"symbol":"__semwait_signal","symbolLocation":8,"imageIndex":3},{"imageOffset":58668,"symbol":"nanosleep","symbolLocation":220,"imageIndex":7},{"imageOffset":103256,"symbol":"std::__1::this_thread::sleep_for(std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > const&)","symbolLocation":84,"imageIndex":8},{"symbol":"void std::__1::this_thread::sleep_for<long long, std::__1::ratio<1l, 1000000l> >(std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000l> > const&)","inline":true,"imageIndex":1,"imageOffset":1544200,"symbolLocation":44,"sourceLine":386,"sourceFile":"thread"},{"symbol":"nanogui::mainloop(float)::$_2::operator()() const","inline":true,"imageIndex":1,"imageOffset":1544200,"symbolLocation":88,"sourceLine":171,"sourceFile":"common.cpp"},{"symbol":"decltype(static_cast<nanogui::mainloop(float)::$_2>(fp)()) std::__1::__invoke<nanogui::mainloop(float)::$_2>(nanogui::mainloop(float)::$_2&&)","inline":true,"imageIndex":1,"imageOffset":1544200,"symbolLocation":88,"sourceLine":3918,"sourceFile":"type_traits"},{"symbol":"void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, nanogui::mainloop(float)::$_2>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, nanogui::mainloop(float)::$_2>&, std::__1::__tuple_indices<>)","inline":true,"imageIndex":1,"imageOffset":1544200,"symbolLocation":88,"sourceLine":287,"sourceFile":"thread"},{"imageOffset":1544200,"sourceLine":298,"sourceFile":"thread","symbol":"void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, nanogui::mainloop(float)::$_2> >(void*)","imageIndex":1,"symbolLocation":180},{"imageOffset":28780,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":6},{"imageOffset":7724,"symbol":"thread_start","symbolLocation":8,"imageIndex":6}]},{"id":27073,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":6}]},{"id":27257,"queue":"com.Metal.CompletionQueueDispatch","frames":[{"imageOffset":4176,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":3},{"imageOffset":78108,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":3},{"imageOffset":13540,"symbol":"io_connect_method","symbolLocation":520,"imageIndex":9},{"imageOffset":12916,"symbol":"IOConnectCallMethod","symbolLocation":176,"imageIndex":9},{"imageOffset":92436,"symbol":"ioGPUResourceFinalize","symbolLocation":136,"imageIndex":10},{"imageOffset":1402040,"symbol":"_CFRelease","symbolLocation":316,"imageIndex":4},{"imageOffset":67516,"symbol":"-[IOGPUMetalResource dealloc]","symbolLocation":228,"imageIndex":10},{"imageOffset":9372,"symbol":"-[IOGPUMetalBuffer dealloc]","symbolLocation":312,"imageIndex":10},{"imageOffset":2103068,"imageIndex":11},{"imageOffset":1156060,"symbol":"MTLResourceListChunkFreeEntries(MTLResourceListChunk*)","symbolLocation":64,"imageIndex":12},{"imageOffset":131632,"symbol":"-[MTLResourceList releaseAllObjectsAndReset]","symbolLocation":72,"imageIndex":12},{"imageOffset":17796,"symbol":"IOGPUMetalCommandBufferStorageReset","symbolLocation":36,"imageIndex":10},{"imageOffset":17592,"symbol":"IOGPUMetalCommandBufferStorageDealloc","symbolLocation":92,"imageIndex":10},{"imageOffset":11528,"symbol":"-[IOGPUMetalCommandBuffer didCompleteWithStartTime:endTime:error:]","symbolLocation":240,"imageIndex":10},{"imageOffset":130116,"symbol":"-[_MTLCommandQueue commandBufferDidComplete:startTime:completionTime:error:]","symbolLocation":108,"imageIndex":12},{"imageOffset":50008,"symbol":"IOGPUNotificationQueueDispatchAvailableCompletionNotifications","symbolLocation":128,"imageIndex":10},{"imageOffset":50276,"symbol":"__IOGPUNotificationQueueSetDispatchQueue_block_invoke","symbolLocation":64,"imageIndex":10},{"imageOffset":17860,"symbol":"_dispatch_client_callout4","symbolLocation":20,"imageIndex":13},{"imageOffset":135144,"symbol":"_dispatch_mach_msg_invoke","symbolLocation":468,"imageIndex":13},{"imageOffset":47764,"symbol":"_dispatch_lane_serial_drain","symbolLocation":376,"imageIndex":13},{"imageOffset":138500,"symbol":"_dispatch_mach_invoke","symbolLocation":448,"imageIndex":13},{"imageOffset":47764,"symbol":"_dispatch_lane_serial_drain","symbolLocation":376,"imageIndex":13},{"imageOffset":51004,"symbol":"_dispatch_lane_invoke","symbolLocation":436,"imageIndex":13},{"imageOffset":47764,"symbol":"_dispatch_lane_serial_drain","symbolLocation":376,"imageIndex":13},{"imageOffset":50952,"symbol":"_dispatch_lane_invoke","symbolLocation":384,"imageIndex":13},{"imageOffset":95052,"symbol":"_dispatch_workloop_worker_thread","symbolLocation":652,"imageIndex":13},{"imageOffset":12544,"symbol":"_pthread_wqthread","symbolLocation":288,"imageIndex":6},{"imageOffset":7712,"symbol":"start_wqthread","symbolLocation":8,"imageIndex":6}]},{"id":29267,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":6}]},{"id":30262,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":6}]},{"id":30263,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":6}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 8224186368,
    "size" : 40960,
    "uuid" : "1a381668-4004-3da9-a59b-013d13cc2684",
    "path" : "\/System\/Library\/Frameworks\/OpenGL.framework\/Versions\/A\/Libraries\/libGL.dylib",
    "name" : "libGL.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4309516288,
    "size" : 3506176,
    "uuid" : "4b635fd4-bffc-3bb8-a585-3e10aca7aa02",
    "path" : "\/Users\/USER\/*\/MaterialXView",
    "name" : "MaterialXView"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6887841792,
    "size" : 568228,
    "uuid" : "191e84f1-4b95-39c8-b253-1c1ef56c0fa8",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6890917888,
    "size" : 237548,
    "uuid" : "3dcd49b9-b3c5-3d90-be40-a3b807cb9cd7",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6891569152,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 5079040,
    "uuid" : "18260df4-69a8-30d3-8175-fb8ae7ae7709",
    "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "1953.300"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6944833536,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.AppKit",
    "size" : 15777792,
    "uuid" : "88722053-0df0-3d4f-bf55-7e3c2d2c8e29",
    "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
    "name" : "AppKit",
    "CFBundleVersion" : "2299.40.118"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6891155456,
    "size" : 53244,
    "uuid" : "9f3b729a-ed04-3e65-adac-d75ad06ebbdc",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6889869312,
    "size" : 528380,
    "uuid" : "14cd841b-0c7b-34a2-a342-cc6796ef9259",
    "path" : "\/usr\/lib\/system\/libsystem_c.dylib",
    "name" : "libsystem_c.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6890397696,
    "size" : 421876,
    "uuid" : "e2679357-b2af-30d4-8130-50d31765af88",
    "path" : "\/usr\/lib\/libc++.1.dylib",
    "name" : "libc++.1.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6943535104,
    "CFBundleShortVersionString" : "2.0.2",
    "CFBundleIdentifier" : "com.apple.framework.IOKit",
    "size" : 901120,
    "uuid" : "a5367643-e422-3594-8c2c-d0f2bb5cbf96",
    "path" : "\/System\/Library\/Frameworks\/IOKit.framework\/Versions\/A\/IOKit",
    "name" : "IOKit"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7353786368,
    "CFBundleShortVersionString" : "65.0.22",
    "CFBundleIdentifier" : "com.apple.IOGPU",
    "size" : 233472,
    "uuid" : "e0268d54-1276-3873-ab39-9637af4f8936",
    "path" : "\/System\/Library\/PrivateFrameworks\/IOGPU.framework\/Versions\/A\/IOGPU",
    "name" : "IOGPU",
    "CFBundleVersion" : "65.0.22"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 8551923712,
    "CFBundleShortVersionString" : "227.2.45",
    "CFBundleIdentifier" : "com.apple.AGXMetal13-3",
    "size" : 6115328,
    "uuid" : "053302ab-5700-3b89-8aa1-d49e47fa11cb",
    "path" : "\/System\/Library\/Extensions\/AGXMetal13_3.bundle\/Contents\/MacOS\/AGXMetal13_3",
    "name" : "AGXMetal13_3",
    "CFBundleVersion" : "227.2.45"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7045218304,
    "CFBundleShortVersionString" : "306.3.5",
    "CFBundleIdentifier" : "com.apple.Metal",
    "size" : 1961984,
    "uuid" : "03dcb34f-f25e-35ce-b534-054c35444c69",
    "path" : "\/System\/Library\/Frameworks\/Metal.framework\/Versions\/A\/Metal",
    "name" : "Metal",
    "CFBundleVersion" : "306.3.5"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6889562112,
    "size" : 294912,
    "uuid" : "4d52c3a5-32e6-37a2-9d6c-23c612038354",
    "path" : "\/usr\/lib\/system\/libdispatch.dylib",
    "name" : "libdispatch.dylib"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  }
],
  "sharedCache" : {
  "base" : 6887194624,
  "size" : 3447455744,
  "uuid" : "835716ae-b363-3187-b065-cf94139bfc85"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=1.2G resident=0K(0%) swapped_out_or_unallocated=1.2G(100%)\nWritable regions: Total=4.6G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=4.6G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nAccelerate framework               128K        1 \nActivity Tracing                   256K        1 \nCG backing stores                 2176K        4 \nCG image                           176K        7 \nColorSync                          528K       25 \nCoreAnimation                      208K       13 \nCoreGraphics                        32K        2 \nCoreUI image data                 1776K       12 \nFoundation                         208K        3 \nKernel Alloc Once                   32K        1 \nMALLOC                             3.7G      183 \nMALLOC guard page                  192K       10 \nMALLOC_MEDIUM (reserved)         664.0M        6         reserved VM address space (unallocated)\nMALLOC_NANO (reserved)           256.0M        1         reserved VM address space (unallocated)\nSTACK GUARD                       56.1M        8 \nStack                             11.7M        8 \nVM_ALLOCATE                        112K        7 \n__AUTH                            1465K      280 \n__AUTH_CONST                      18.3M      471 \n__CTF                               756        1 \n__DATA                            5572K      457 \n__DATA_CONST                      23.4M      476 \n__DATA_DIRTY                      1508K      169 \n__FONT_DATA                        2352        1 \n__LINKEDIT                       770.5M        3 \n__OBJC_CONST                      3460K      240 \n__OBJC_RO                         65.5M        1 \n__OBJC_RW                         1988K        1 \n__TEXT                           410.2M      492 \ndyld private memory                256K        1 \nmapped file                      207.8M       42 \nshared memory                      960K       19 \n===========                     =======  ======= \nTOTAL                              6.2G     2946 \nTOTAL, minus reserved VM space     5.3G     2946 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "61675b89201f677a9a4cbd65",
      "factorPackIds" : {
        "HEALTH_FEATURE_AVAILABILITY" : "63f8068a238e7b23a1f30123"
      },
      "deploymentId" : 240000055
    },
    {
      "rolloutId" : "62b4513af75dc926494899c6",
      "factorPackIds" : {
        "COREOS_ICD" : "62fbe3cfa9a700130f60b3ea"
      },
      "deploymentId" : 240000019
    }
  ],
  "experiments" : [

  ]
}
}

Model: MacBookAir10,1, BootROM 8419.80.7, proc 8:4:4 processors, 8 GB, SMC 
Graphics: Apple M1, Apple M1, Built-In
Display: Color LCD, 2560 x 1600 Retina, Main, MirrorOff, Online
Memory Module: LPDDR4, Hynix
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x4378), wl0: Nov 30 2022 03:35:43 version 18.20.379.9.7.8.145 FWID 01-9578a936
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: USB31Bus
USB Device: USB-C HUB
USB Device: USB-C HUB
USB Device: USB-PS/2 Optical Mouse
Thunderbolt Bus: MacBook Air, Apple Inc.
Thunderbolt Bus: MacBook Air, Apple Inc.
Morteeza commented 1 year ago

@bernardkwok Great catch! I will work a fix out for this.

Morteeza commented 1 year ago

@bernardkwok I have a PR that addresses this issue:

https://github.com/AcademySoftwareFoundation/MaterialX/pull/1297

Thanks again for catching this issue.