Search Issue Tracker

Fixed

Fixed in 2022.3.10f1, 2023.2.0b8, 2023.3.0a6

Votes

33

Found in

2022.3.8f1

2023.2.0b5

2023.3.0a4

Issue ID

UUM-46882

Regression

Yes

[Regression] Render Texture memory leak

--

-

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 (4)

  1. Roman-Ilyin

    Oct 18, 2023 16:19

    Issue still present in Unity 2022.3.11f1.

  2. Imre

    Sep 21, 2023 12:13

    "After entering play mode in the editor, camera rendertexture attachment is created infinitely."
    Was it fixed?

  3. YeSukKyung

    Sep 04, 2023 04:45

    After entering play mode in the editor, camera rendertexture attachment is created infinitely.

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.