isKinematic crashes consistently

Chipmunk2D Bindings for the Unity3D engine

isKinematic crashes consistently

Postby ensomniac » Sat Nov 02, 2013 1:06 pm

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
User avatar
ensomniac
 
Posts: 17
Joined: Thu Sep 05, 2013 1:54 pm

Re: isKinematic crashes consistently

Postby meapps » Sat Nov 02, 2013 2:39 pm

happend to me too
meapps
 
Posts: 10
Joined: Wed Sep 25, 2013 5:00 pm

Re: isKinematic crashes consistently

Postby slembcke » Sun Nov 03, 2013 9:57 am

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.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Re: isKinematic crashes consistently

Postby ensomniac » Sun Nov 03, 2013 2:14 pm

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
User avatar
ensomniac
 
Posts: 17
Joined: Thu Sep 05, 2013 1:54 pm

Re: isKinematic crashes consistently

Postby slembcke » Tue Nov 05, 2013 11:35 am

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.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Re: isKinematic crashes consistently

Postby meapps » Tue Nov 05, 2013 12:07 pm

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.
meapps
 
Posts: 10
Joined: Wed Sep 25, 2013 5:00 pm

Re: isKinematic crashes consistently

Postby ensomniac » Tue Nov 05, 2013 2:50 pm

Same here - I get an error trying to download the latest.
User avatar
ensomniac
 
Posts: 17
Joined: Thu Sep 05, 2013 1:54 pm

Re: isKinematic crashes consistently

Postby meapps » Tue Nov 05, 2013 3:39 pm

ensomniac wrote:Same here - I get an error trying to download the latest.


download it from the git there is a new version...
meapps
 
Posts: 10
Joined: Wed Sep 25, 2013 5:00 pm

Re: isKinematic crashes consistently

Postby slembcke » Wed Nov 06, 2013 10:28 am

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. -_-
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Re: isKinematic crashes consistently

Postby ensomniac » Wed Nov 06, 2013 10:22 pm

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
User avatar
ensomniac
 
Posts: 17
Joined: Thu Sep 05, 2013 1:54 pm

Next

Return to Chipmunk2D for Unity

Who is online

Users browsing this forum: No registered users and 1 guest