Project crushes on Defold 1.2.164

Hello!

My Defold application (1.2.164) crashes in some situations.
First I have errors in console:

ERROR:GAMEOBJECT: Animation listener could not be stored since the buffer is full (1024).
ERROR:SCRIPT: %path%: go.animate failed with error code -7

And then it completely crashes with a dump:
_crash.zip (1.0 KB)

Please, help me to understand what’s going on and how to fix it.
Thanks

Defold should not hard crash on you like that. We will look into this.

But I think the error is indicating some problem in your code/design. Can you describe what you are doing when it crashes? It seems like you have quite a few go.animate() calls with callbacks running at the same time?

I cannot seem to symbolicate that crash log.
Are you using native extensions?

Ok, I’ll try to explain.
I have animation function which checks if another animation is in progress. If another animation is in progress the function cancels previous animation, calls it’s callback and run actual animation. I have few different animations at the same time.
No, I don’t use native extensions.

1 Like

I figured out what’s going on.
My animation code was falling into infinite recursion, what’s why I had the error. I fixed it and now everything is ok.
Only one thing a little confusing is a crash.

Good!

Agree. Defold should preferably never crash lime that.

Can you share an example showing how to get it to crash?

Unfortunately, I can’t reproduce the crash without sharing all my a bit complicated logic.