Search Issue Tracker
Fixed in 2022.3.10f1
Fixed in 2022.3.X, 2023.2.X, 2023.3.X, 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 (5)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on ShaderLab::Program::CreateFromSerializedProgram when opening a project with specific shaders
- VFX instances fail to batch when Set Lifetime is disabled
- [UI Toolkit] Bindings do not work when custom list is used
- VFX warning and simulation error when using a specific Custom Attribute configuration
- Resizing Device Simulator window affects the uGUI Canvas size
letterprotect
Jun 10, 2024 06:42
https://issuetracker.unity3d.com/issues/regression-render-texture-memory-leak
hueljannie581
Dec 11, 2023 03:43
https://issuetracker.unity3d.com/issues/regression-render-texture-memory-leak
Roman-Ilyin
Oct 18, 2023 16:19
Issue still present in Unity 2022.3.11f1.
Imre
Sep 21, 2023 12:13
"After entering play mode in the editor, camera rendertexture attachment is created infinitely."
Was it fixed?
YeSukKyung
Sep 04, 2023 04:45
After entering play mode in the editor, camera rendertexture attachment is created infinitely.