URL:
<http://gna.org/bugs/?12621>
Summary: Soya crashes with OpenDE 0.10.1
Project: Soya 3D
Submitted by: zaptm
Submitted on: Friday 11/21/2008 at 08:49
Category: None
Severity: 5 - Blocker
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Soya crashes with the following error when the ode-collision-* tutorials are
run with OpenDE 0.10.1:
"ODE INTERNAL ERROR 2: colliders array not initialized in dCollide()"
A brief search on Google reveals that this is because dInitODE2() has not
been called. The following patch corrects this:
Index: init.pyx
===================================================================
--- init.pyx (revision 455)
+++ init.pyx (working copy)
@@ -344,6 +344,7 @@
init_joysticks()
init_gl()
glewInit()
+ dInitODE2(dAllocateMaskAll)
SDL_UNICODE=0
@@ -370,6 +371,7 @@
soya.inited = 0
base_quit()
quit_cal3d()
+ dCloseODE()
def set_use_unicode(state):
"""when set, process_event will return a 4 part tuple for a keydown
event.
---
Index: definitions/ode/ctype.pxd
===================================================================
--- definitions/ode/ctype.pxd (revision 455)
+++ definitions/ode/ctype.pxd (working copy)
@@ -102,12 +102,17 @@
dRayClass,
dGeomTransformClass,
+ cdef enum:
+ dAllocateFlagBasicData = 0
+ dAllocateFlagCollisionData = 0x00000001
+ dAllocateMaskAll = ~0
# World
dWorldID dWorldCreate()
void dWorldDestroy (dWorldID)
void dCloseODE()
+ int dInitODE2(unsigned int uiInitFlags)
void dWorldSetGravity (dWorldID, dReal x, dReal y, dReal z)
void dWorldGetGravity (dWorldID, dVector3 gravity)
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?12621>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Soya-user mailing list
[email protected]
https://mail.gna.org/listinfo/soya-user