Page 1 of 2

isKinematic crashes consistently

Posted: Sat Nov 02, 2013 1:06 pm
by ensomniac
Hey Guys,
I ran into a stability issue with isKinematic a few months ago when I first started using Chipmunk. The issue was that setting:

Code: Select all

body.isKinematic = false;
...crashes Unity every time I use it. I initially got around the issue by setting the entire object to inactive, which helped at the time. Now I need to figure out what is actually wrong. My understanding is that I should be able to set body.isKinematic to false at any time and freeze it's position until I set isKinematic to true.

I noticed that there were some mentions of this bug in the change log so I've updated to the latest version of Chipmunk. The issue seems to persist though.

Two questions:
1. Is this a known bug?
2. How should I go about 'freezing' the location and rotation of a body?

My end goal is to pause my game without setting the timeScale to zero. Thanks
Ryan

Re: isKinematic crashes consistently

Posted: Sat Nov 02, 2013 2:39 pm
by meapps
happend to me too

Re: isKinematic crashes consistently

Posted: Sun Nov 03, 2013 9:57 am
by slembcke
Are you using 1.0.3? (Available here) There was a bug I fixed related to that. If you are running 1.0.3, can you help me out by making a replication project? I can't reproduce it, but sometimes bugs are very order sensitive in Unity (Like a certain object gets initialized before another, that sort of thing). Since you don't have a lot of control over that, it can make it difficult to reproduce a bug.

Re: isKinematic crashes consistently

Posted: Sun Nov 03, 2013 2:14 pm
by ensomniac
I'm happy to help, but I don't see that version available. I'm Using 1.0.2, the latest available at the link you posted:

Image

Re: isKinematic crashes consistently

Posted: Tue Nov 05, 2013 11:35 am
by slembcke
Oh. I guess We should be more clear about that. The latest version is 1.0.3.

We used to have a separate places on the page for the latest version and older downloads. Some information got a little lost when we stuck it all in one place. Fixed now though.

Re: isKinematic crashes consistently

Posted: Tue Nov 05, 2013 12:07 pm
by meapps
slembcke wrote:Oh. I guess We should be more clear about that. The latest version is 1.0.3.

We used to have a separate places on the page for the latest version and older downloads. Some information got a little lost when we stuck it all in one place. Fixed now though.
Downloading 1.0.3 seems not work.

Re: isKinematic crashes consistently

Posted: Tue Nov 05, 2013 2:50 pm
by ensomniac
Same here - I get an error trying to download the latest.

Re: isKinematic crashes consistently

Posted: Tue Nov 05, 2013 3:39 pm
by meapps
ensomniac wrote:Same here - I get an error trying to download the latest.
download it from the git there is a new version...

Re: isKinematic crashes consistently

Posted: Wed Nov 06, 2013 10:28 am
by slembcke
Argh. So apparently changing "latest" to "latest (1.0.3)" breaks everything. We spent a bunch of time looking over the PHP, but can't figure out what is going on. I reverted the popup list labels so you can at least download it.

I really really hate web programming. -_-

Re: isKinematic crashes consistently

Posted: Wed Nov 06, 2013 10:22 pm
by ensomniac
I've updated to the latest, but isKinematic still crashes my app each time it's used. I currently have no solution for freezing a Chipmunk-driven element (other than setting timescale to zero) since sleeping and waking a body causes my app to crash.

I would love a solution for this since it's a requirement in my game. Thanks
Ryan