Search Issue Tracker
Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.
Postponed
Votes
5
Found in
2018.4
2019.4
2020.2
2020.2.1f1
2021.1
2021.2
Issue ID
1313988
Regression
No
Calling Marshal.PrelinkAll() on a class that contains a DllImport attribute of a non-existent dll will log errors
Calling Marshal.PrelinkAll() on a class that contains a DllImport attribute of a non-existent dll will always log lines that look like errors even if the call is from a try/catch block
How to reproduce:
1. Open the attached project (case_1313988-EditorLogs)
2. Open SampleScene
3. Click Play
4. Open the Editor Log
Expected result: If the call is in a try/catch block 'Fallback handler could not load library' should not be printed
Actual result: 'Fallback handler could not load library' is always printed to the Editor log
Reproducible with: 2018.4.30f1, 2019.4.20f1, 2020.2.5f1, 2021.1.0b8, 2021.2.0a6
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (2021.2.X):
This will be fixed as part of a larger effort to improve Unity's handling of errors from Mono.