Reproduction steps:
1. Download and extract the Dynamixel SDK to a preferred location on your device
2. Open the attached “repro-project“
3. Open the “Assets/asdf.unity“ scene
4. Locate the “Assets/Script/dynamixel.cs” script within the Project window and open it
5. Modify the 26th line of the script in an IDE to update the SDK path to the location where you extracted the SDK in step 1
6. Save the modifications in the IDE and switch back to the Unity Editor
7. Enter Play Mode
8. Observe the crash
Reproducible with: 2021.3.38f1, 2022.3.26f1, 2023.2.19f1, 6000.0.0f1
Reproduced on: Windows 10, Windows 11 (by reporter)
Not reproducible on: No other environment tested
First few lines of the stack trace:
0x000001C3B05F193A (Mono JIT Code) (wrapper managed-to-native) dynamixel_sdk.dynamixel:groupSyncReadTxRxPacket (int)
0x000001C3B05F14D3 (Mono JIT Code) [C:\Users\agnietemargeviciute\Documents\UnityProjects\IN-73551_DeltaRobot\Assets\Script\DynamixelController.cs:340] DynamixelController:GetAngle ()
0x000001C3B05F023B (Mono JIT Code) [C:\Users\agnietemargeviciute\Documents\UnityProjects\IN-73551_DeltaRobot\Assets\Script\ControlDelta.cs:64] ControlDelta:Start ()
0x000001C41DD4C388 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void_this_ (object,intptr,intptr,intptr)
0x00007FFB6357694E (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\mini\mini-runtime.c:3445] mono_jit_runtime_invoke