Blender 2.71 crashes on constraints in BGE

I’m trying a simple example from the API documentation and it’s crashing Blender as soon as I run the script. It crashes on the constraints.createConstraint call. Does anyone else have the same problem?


from bge import logic
from bge import constraints


# get object list
objects = logic.getCurrentScene().objects


# get object named Object1 and Object 2
object_1 = objects["Cube1"]
object_2 = objects["Cube2"]


# want to use Edge constraint type
constraint_type = 2


# get Object1 and Object2 physics IDs
physics_id_1 = object_1.getPhysicsId()
physics_id_2 = object_2.getPhysicsId()


# Use bottom right edge of Object1 for hinge position
edge_position_x = 1.0
edge_position_y = 0.0
edge_position_z = -1.0


# use Object1 y axis for angle to point hinge
edge_angle_x = 0.0
edge_angle_y = 1.0
edge_angle_z = 0.0


# create an edge constraint
constraints.createConstraint(physics_id_1, physics_id_2,
                             constraint_type,
                             edge_position_x, edge_position_y, edge_position_z,
                             edge_angle_x, edge_angle_y, edge_angle_z)

Can anyone else please try this script and let me know if it works, so that I can narrow down the problem to Blender or my PC? Thanks.

Not sure if im setting it up right, but i run the script everyframe and have Cube1 and Cube2 in the scene. No crash. Tried all physics types.


Edit: WinVista 32, geforce9400gt

Looks right. It must be something with my setup then. Win8 Radeon R9 270. Thanks for testing.

I went back to Blender 2.70 and my problem went away.