Search Issue Tracker
Fixed
Fixed in 2021.3.49f1, 2022.3.59f1, 6000.0.40f1, 6000.1.0b8, 6000.2.0a5, 7000.0.0a17
Votes
0
Found in
2021.3.48f1
2022.3.56f1
6000.0.34f1
6000.1.0b2
Issue ID
UUM-95599
Regression
No
UnityLinker causes crash when outputting snapshot data for very large projects
Steps to reproduce:
- Run a player build using these UnityLinker args:
{code:java}
-enable-snapshot --snapshot-out=c:\snapshot --enable-report --generate-preservations{code}
- (There is no reproduction case as the bug just requires a very large project.)
Stack Trace:
{code:java}
Fatal error in Unity CIL Linker
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.Text.StringBuilder.ToString()
at System.IO.StreamReader.ReadToEnd()
at Unity.Linker.Steps.Diagnostic.Reports.ReportGenerationStep.WriteHtmlReport()
at Unity.Linker.Steps.Diagnostic.Reports.ReportGenerationStep.Process()
at Mono.Linker.Steps.BaseStep.Process(LinkContext context)
at Unity.Linker.UnityPipeline.ProcessStep(LinkContext context, IStep step)
at Mono.Linker.Pipeline.Process(LinkContext context)
at Unity.Linker.UnityDriver.UnityRun(Boolean noProfilerAllowed, ILogger customLogger)
at Unity.Linker.UnityDriver.RunDriverWithoutErrorHandling(ILogger customLogger, Boolean noProfilerAllowed)
at Unity.Linker.UnityDriver.RunDriver(){code}
Notes:
- Problem occurs in ReportGenerationStep.WriteHtmlReport where the entire XML report is being read into memory.
Actual results: Build fails
Expected results: Build succeeds
Reproducible with versions: 2021.3.48f1, 2022.3.56f1, 6000.0.34f1, 6000.1.0b2
Not reproducible with versions: -
Can’t test with versions: -
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Reflection Probe “Probe Scene Editing Mode:” text is barely visible
- [HDRP] Game view doesn’t refresh after changing Camera Background Type until mouse moves over it
- Some Shaders appear twice in Material Shader selection menu
- Editor freezes with a StackOverflowException when certain asset types are assigned to a managed component in a SubScene via AddComponentObject
- Text Script Importer Reference button links to a Missing Page when clicking the Reference Button in the Inspector
Add comment