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
- Rigidbody2D.Slide API does not have the needed configuration when creating a 2D Top-Down character controller
- Opening reference for "Playables"component redirects to a missing page
- Sprite Renderer image is changed when switching Mask Interaction and changing Sprite to a shared Sprite
- An unsigned integer is not compared with an integer correctly in player when using IL2CPP backend
- Graphical artifacts are being rendered in Scenes that are loaded during run-time when GPU Resident Drawer is turned on
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/