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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Add comment