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 ()
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
- Asset Bundles retain their previous hash and CRC values when an object within a bundle is changed and rebuilt
- APV Reflection Probe Normalization breaks when SSGI is enabled
- Default Custom Components in project have Library counterparts
- [iOS]"The destination host has an erroneous SSL certificate" error is thrown when using UnityWebRequest to connect to the server with a self-signed certificate
- Freeze/crash on DynamicHeapAllocator::Allocate when opening a specific project
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.