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
- Dragging any draggable query block makes the query block background invisible until hovering on it again
- Alternating row background lines in table view are left over when clearing the search field
- Getting duplicate search query results for created scripts in search window
- There is no information or any visual indicator/response when some properties are set as inline value in the UI Builder
- Dialog Text during the Confirmation stage of Bug Report Submission is cut off when the Bug Reporter Window is resized to it's smallest possible size
Add comment