Quantcast
Channel: Questions in topic: "crash"
Viewing all articles
Browse latest Browse all 2383

Bug with 2D Sprite Shape Unity Package (memory leak and crash)

$
0
0
If a GameObject has the "Sprite Shape Controller" component attached (from the "2D Sprite Shape" package) and is parented to another GameObject which is "inactive" (meaning "gameObject.activeSelf == false"), if ANY change is made to the scene and then saved, upon hitting "Play", this error pops up: "A Native Collection has not been disposed, resulting in a memory leak.". - I used the "Full Stack Traces (Expensive)" option from the "com.unitiy.entities" Package to get details about the error, and ensured it was not caused by any of my scripts. I created a new empty project too having just a the 2 GameObjects mentioned (one with a "Sprite Shape Controller" component attached, parented to an empty inactive GameObject, plus a default camera) and the error was still there. The error doesn't prevent play, but because of the memory leak, Unity crashes eventually. - NOTE: The error just pops up in Unity 2021.X.X+ thanks to the new Jobs system (I think) which detects memory leaks.

Viewing all articles
Browse latest Browse all 2383

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>