Calling Deallocate on pointer, that can not be deallocated by allocator ALLOC_TEMP_MAIN
To Debug, run app with -diag-temp-memory-leak-validation cmd line argument. This will output the callstacks of the leaked allocations.
I don’t know what happened to have caused this. I’ve been looking around at solutions from others and I’ve tried Reimporting All, Rebuilding Library, Creating a new HDRP asset.
Ive also been trying to figure out how to find the source of the issue with the -diag-temp-memory-leak-validation cmd line argument but I don’t know how to set that up. Tried following a tutorial on this but no such luck…
I can still play and build without it crashing but these errors are constant. Any tips would be greatly appreciated.
I’ve seen dozens of people report similar issues, there seems to be a bug with Unity.Collections, Burst.
I have not seen anyone from Unity respond.
Can I ask if you are using DX12?
My Project is filled with these errors, mine leads to crashing in editor, game and while building, although I edited a Memory.cs file which has at least stop the crashing, although probably isn’t a good workaround.
Ah interesting…thanks! That worked but still only said ‘Calling Deallocate on pointer, that can not be deallocated by allocator ALLOC_TEMP_MAIN’ in the console.
hi! Such an error still occurs in Unity 6.1
In my case, I figured out that using MaterialVariant can cause spamming of this error.
Usually, I get it after saving a scene or clicking on some random objects.
I make a search by type “Material” and do “flatten material variant” to all MaterialVariants in my project, and have no errors!
I was gradually deleting all objects from the scene (regulary resarting Unity to clear memory) till 1 object was left, and it was using a MaterialVariant, so I get rid of it and after another Unity restart, I had no error, then changed material to MaterialVariant and it start erroring again.