Error: call go.delete() after ray cast in on_message function (DEF-3192)

When I call go.delete() my program freeze and closes without any console or Error Log messages. I call it in on_message function when receive collision_responses from TWO another game objects.

I have pushed last commit “commit with error”. Can you check?

We don’t have access to your project. The only ones who can read it are team members that you have added. You can add me (mikael at sicher dot org) and I’ll check monday.

2 Likes

done

Can you look?

Yes. What’s the name of the project?

combs

I don’t get any errors or freeze.

Did you try to launch the ball?

Yes, lots of them.

Hmm, now it suddely crashed… Will investigate.

EDIT: It crashed just once. I’m trying to cause it to crash again…

Strange.
I have the crash every time when I launch the ball.
It happens when the ball touching bottom and right sides.2018-03-19_204727_ball

I use Version 1.2.123, Java 1.8.0_05.
And I don’t have a crash for HTML5 version. Windows and Android.

I have managed to reproduce this bug 100% and have added a ticket. The bug triggers when you do the second ray cast on “collision_response” and then delete the object.

DEF-3192

3 Likes

As a workaround, you can postpone go.delete() an extra frame.

1 Like

Thanks!