Search Issue Tracker
By Design
Votes
0
Found in
2017.3.0f3
Issue ID
1024705
Regression
No
[Windows] Zapis crashes when executing a method from DLL
To reproduce:
1. Download project from a link and open in Unity
2. Open "Main" scene
3. Enter Play mode
4. Press "Sudoku 3x3" button
Expected Result: Unity Editor successfully loads "Sudoku3" scene
Actual Result: Unity Editor crashes
Notes:
- This issue appears only on Windows
- This issue is not appearing in OSX
- The stack trace and project link are shared in the comments section
- DLL is in a folder "Assets/Wherever/Works/Best/Plugins/"
- It crashes when in the "Generate" script on "void Start" a method from DLL is executed
Reproduced on Unity 2017.1.3p4, 2017.2.3f1, 2017.3.2f1, 2017.4.2f2, 2018.1.0f2, 2018.2.0b3 and 2018.3.0a1
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
Resolution Note:
The crash is a problem related to marshaling. You are expecting/returning a std::string. PInvoke uses c types like char*. Please take a look here for help: http://www.mono-project.com/docs/advanced/pinvoke/