Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics

Error on DoodleAnimator.ChangeAnimation()

A topic by Alex Duncan created Oct 31, 2018 Views: 233 Replies: 1
Viewing posts 1 to 2

Hi, I'm trying to call DoodleAnimator.ChangeAnimation() and have hit a very serious error that will crash Unity unless I restart the program. My code is pretty simple.

if(playerHits >= minPlayerHits){
        activating = true;
    getPowerUpTimer += Time.deltaTime;
    if(getPowerUpTimer > getPowerUpTime){
         getPowerUpTimer = 0f;
         playerHits = 0;
         Debug.Log("HEYO WE GOT DAT POWERUP");
} else if(activating){
    activating = false;

The error I get when I call ChangeAnimation is the following:

Assertion failed: TLS Allocator ALLOC_TEMP_THREAD, underlying allocator ALLOC_TEMP_THREAD has unfreed allocations, size 12

The size of the unfreed allocation increments by 12 each frame after this, it seems. I have tried a few other ways to change the animation, but all of them give me the same results.

I tried your script on Unity 2018 and couldn't reproduce your error. Can you let me know what platform and unity version you're running on?  And if you happen to have a simple project that produces your error I can look at, even better. Thanks!!