Search Issue Tracker
By Design
Votes
0
Found in
2018.4
2019.4
2019.4.1f1
2020.1
2020.2
2021.1
Issue ID
1299248
Regression
No
Crash on (mono-2.0-bdwgc) mono_gc_run_finalize non-deterministically when running a script that calls out to a native DLL
How to reproduce:
1. Open the attached project from "New Unity Project.zip"
2. Enter Play Mode
3. Click Button until the crash occurs (2 - 5 times)
Reproducible with: 2018.4.30f1, 2019.4.17f1, 2020.1.17f1, 2020.2.0f1, 2021.1.0a10
First lines of stack trace:
0x00007FFA72323F44 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\gc.c:257] mono_gc_run_finalize
0x00007FFA7251D9A2 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\external\bdwgc\finalize.c:1300] GC_invoke_finalizers
0x00007FFA723230B9 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\gc.c:959] finalizer_thread
0x00007FFA722E6368 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\threads.c:1042] start_wrapper_internal
0x00007FFA722E60F6 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\threads.c:1101] start_wrapper
0x00007FFAD0387C24 (KERNEL32) BaseThreadInitThunk
0x00007FFAD228D4D1 (ntdll) RtlUserThreadStart
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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- Crash with “Fatal Error! The file ‘MemoryStream’ is corrupted!” when adding a large number in Font Character Rects Size field
Resolution Note:
This was due to a memory corruption caused by passing a managed array of too small a size to native code for use as a buffer.