Initially, I used HidSharp.DeviceList.Local.GetAllDevices() without any issues, however, after repeatedly calling it several times, the following Native Crash occurred.
Native Crash Reporting
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
=================================================================
Native stacktrace:
=================================================================
Thread started: <Thread Pool> #18
0x10ddf06e4 - /Users/test/Documents/DotNet/DockingTool/DockingTool/bin/Debug/net7.0-maccatalyst/maccatalyst-x64/DockingTool.app/Contents/MonoBundle/libmonosgen-2.0.dylib : mono_dump_native_crash_info
0x10dd9485e - /Users/test/Documents/DotNet/DockingTool/DockingTool/bin/Debug/net7.0-maccatalyst/maccatalyst-x64/DockingTool.app/Contents/MonoBundle/libmonosgen-2.0.dylib : mono_handle_native_crash
0x10dceb9ff - /Users/test/Documents/DotNet/DockingTool/DockingTool/bin/Debug/net7.0-maccatalyst/maccatalyst-x64/DockingTool.app/Contents/MonoBundle/libmonosgen-2.0.dylib : mono_sigsegv_signal_handler_debug
0x7ff803ce9c1d - /usr/lib/system/libsystem_platform.dylib : _sigtramp
0x4400000100000000 - Unknown
0x1 - Unknown
=================================================================
Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x7ff803d38434):0x7ff803d38424 d2 80 ca 04 89 d1 49 d3 f9 48 8d 05 7c 0c 1f 00 ......I..H..|...
0x7ff803d38434 0f b7 0c 70 83 e1 1f ff c9 83 f9 05 77 5f 48 8d ...p........w_H.
0x7ff803d38444 05 ab 00 00 00 48 63 0c 88 48 01 c1 ff e1 45 88 .....Hc..H....E.
0x7ff803d38454 08 eb 78 a8 01 74 13 48 8b 0d 86 c7 fa 42 48 23 ..x..t.H.....BH#
=================================================================
Managed Stacktrace:
=================================================================
at <unknown> <0xffffffff>
at HidSharp.Platform.MacOS.NativeMethods:CFNumberGetValue <0x00048>
at HidSharp.Platform.MacOS.NativeMethods:CFNumberGetValue <0x00064>
at HidSharp.Platform.MacOS.NativeMethods:IORegistryEntryGetCFProperty_Int <0x00058>
at HidSharp.Platform.MacOS.MacHidDevice:TryCreate <0x000b2>
at HidSharp.Platform.MacOS.MacHidManager:TryCreateHidDevice <0x00026>
at <>c__DisplayClass11_1:<GetDevices>b__0 <0x0003a>
at System.Threading.QueueUserWorkItemCallbackDefaultContext:Execute <0x00066>
at System.Threading.ThreadPoolWorkQueue:DispatchWorkItem <0x0006a>
at System.Threading.ThreadPoolWorkQueue:DispatchItemWithAutoreleasePool <0x00064>
at System.Threading.ThreadPoolWorkQueue:Dispatch <0x003e0>
at WorkerThread:WorkerThreadStart <0x0011e>
at StartHelper:RunWorker <0x00096>
at StartHelper:Run <0x00074>
at System.Threading.Thread:StartCallback <0x00046>
at System.Object:runtime_invoke_direct_void__this__ <0x00120>
at <unknown> <0x00000>
=================================================================
Initially, I used
HidSharp.DeviceList.Local.GetAllDevices()
without any issues, however, after repeatedly calling it several times, the following Native Crash occurred.