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
- Blank, Light-Themed "Create Node" window becomes visible on the next project open
- UI Elements/Layout inconsistencies in the Particle System component
- The Game view and Scene view fail to render when launching the Editor with a maximized Render Graph Viewer window
- "List is empty" is poorly visible in the "Create Node" window
- [Android] GameObject with a custom shader becomes invisible when deployed with the Vulkan Graphics API
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/