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
- Reflection problems when unbaked Reflection Probes are present
- Light Explorer columns sorting arrow is too small
- Context menu actions (Collapse All, Expand All, Enable All, Disable All, Remove All, Reset All) do nothing in Volume component
- [Android] Audio volume decreases when returning to the app during screen recording
- Graphical issues are caused by GPU Occlusion Culling when using Amplify Shaders
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/