Search Issue Tracker

Active

Under Consideration for 2021.3.X, 2022.3.X, 6000.0.X

Votes

1

Found in

2021.3.42f1

2022.3.42f1

6000.0.15f1

Issue ID

UUM-82199

Regression

No

A Memory leak occurs when the "JsonSerialization.FromJson" function is executed

--

-

How to reproduce:
1. Open the “JsonMemoryBug.zip“ project
2. Open the “Assets/TryFromJson/SerializationBugExample1.unity” Scene
3. Enter Play Mode
4. Observe the Console

Expected result: Nothing is logged
Actual result: A Memory leak warning is logged

Reproducible in: 2021.3.42f1, 2022.3.42f1, 6000.0.15f1

Reproduced on: Windows 11 Pro (23H2)
Not reproduced on: No other environment tested

Notes:
- Full warning reads: “Internal: JobTempAlloc has allocations that are more than 4 frames old - this is not allowed and likely a leak”
- The Serialization package (com.unity.serialization) is required for the reproduction
- Reproducible both with "JsonSerialization.FromJson" and "JsonSerialization.TryFromJson" functions

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.