Search Issue Tracker

Fixed

Votes

1

Found in

2023.1.11f1

2023.2.0b7

2023.3.0a3

Issue ID

UUM-48028

Regression

Yes

Memory leak causing Editor to crash on UnityEditor.ConsoleWindow:OnGUI () when resizing Scene or Game view windows on a URP project

-

Reproduction steps:
1. Open the attached "PROJECTFILE" project
2. Open Activity Monitor or Task Manager and observe the Unity process Memory usage
3. Resize the Scene or Game view windows for about 10 seconds
4. Observe the Unity Memory usage in Activity Monitor or Task Manager
5. Resize the Scene or Game view windows for about 3 minutes

Expected result: No memory usage increase and the Unity Editor does not crash
Actual result: Memory usage increases and eventually the Unity Editor crashes

Reproducible with: 2022.3.8f1, 2023.1.11f1, 2023.2.0b7, 2023.3.0a3
Not reproducible with: 2021.3.30f1, 2022.3.7f1

Reproducible on: macOS 13.4.1 (M1 Max), Windows 11
Not reproducible on: No other environment tested

Note:
-Issue reproduction on the 2023.1 stream is inconsistent
-Issue is reproducible only with URP, couldn’t reproduce the issue with Built-in or HDRP
-Issue is reproducible with a fresh new project and is not linked to the attached project
-On macOS console errors “IsCounterSamplingSupported: Unsupported MTLCommandEncoder protocol” appear before the crash

First few lines of stack frames:
0x0000020481540087 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.LogEntries:StartGettingEntries ()
0x000002048153ff7b (Mono JIT Code) UnityEditor.GettingLogEntriesScope:.ctor (UnityEditor.ListViewState)
0x0000020481537ea3 (Mono JIT Code) UnityEditor.ConsoleWindow:OnGUI ()
0x000002045839c3a2 (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
0x000002045839c183 (Mono JIT Code) UnityEditor.DockArea:DrawView (UnityEngine.Rect)
0x00000204583894e3 (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()

Comments (1)

  1. mmidoto

    Sep 04, 2023 08:04

    Same.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.