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
- Text overlap and is unreadable in Inspector > Terrain Paint Texture after creating new Terrain Layer
- Event "XRInputSubsystem.trackingOriginUpdated" triggers twice when recentering the view
- UITK TextField value is overwritten incorrectly by the converter result when Binding Mode is set to "To Source"
- Out of memory crash when selecting more than 80000 Assets simultaneously
- UI Toolkit Button text is not rendered when the Button has fixed height with specific Icon font
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/