shovemedia
Senior Newbie 
|
 |
«
Posted
2004-07-09 23:15:13 » |
|
I've been adapting the car example for use with unity (a multiuser server: http://www.moock.org/unity ) I get intermittent crashes in the odejava.dll It's an EXCEPTION_ACCESS_VIOLATION *usually* in dJointAddSliderForce. The only similar issues I can find suggest increasing the amount of memory available to the java VM, but I haven't found that to be a reliable solution. Any thoughts?
|
|
|
|
|
William Denniss
|
 |
«
Reply #1 - Posted
2004-07-10 04:26:05 » |
|
native crashes are a pain in java, esp. since we're used to the nice and helpful java stack traces.
Use the DLL in Debug mode (you'll have to compile it youself for now, I will do it when I have time).
post your dump reports in the forums (these are more useful with debug mode on - but still helpful even if it's off).
Will.
|
|
|
|
shovemedia
Senior Newbie 
|
 |
«
Reply #2 - Posted
2004-07-13 18:19:22 » |
|
any chance someone out there could compile me a debug DLL?
C++ isn't my bag and, being on windows, I'm having a hell of a time finding a free compiler that wants to play nice with the makefile.
TIA
|
|
|
|
|
Games published by our own members! Check 'em out!
|
|
|
|
shovemedia
Senior Newbie 
|
 |
«
Reply #4 - Posted
2004-07-14 13:22:10 » |
|
a thousand thanks!
interestingly, i have yet to crash ode with the new DLL (EDIT: now i have!) and when I attempt to use the debug version, i get the following error popup:
ODE INTERNAL ERROR 2 geom must be placeable (ode/src/collision_kernel.cpp:389)
This is during ODE initialization, before any clients are connected to the system, which means there are no "cars" or collisions yet -- only the 4 walls of the environment.
curious and curious-er
Source available by request.
|
|
|
|
|
shovemedia
Senior Newbie 
|
 |
«
Reply #5 - Posted
2004-07-14 13:53:37 » |
|
GeomPlane rightwallGeom = new GeomPlane(-1f, 0f, 0f, -600f); space.add(rightwallGeom);
Does the fact that a GeomPlane isn't placeable have something to do with it may-haps? ; )
Not that I have any idea what to do about it... :j
|
|
|
|
|
William Denniss
|
 |
«
Reply #6 - Posted
2004-07-15 00:10:41 » |
|
You're welcome  Are you trying to associate a body with that Geom? Planes must be static. > I am trying to use ODE in CrystalSpace. They have a tutroial called phystutor, but it dies with: > geom must be placeable in dGeomSetBody() > Any pointer as to where to look???
I believe the bug is in CrystalSpace rather than ODE. As the error message indicates, it seems that CS is trying to associate a body with a non-placeable geom (ie. a plane). This is silently ignored in ODE release builds but is a runtime error in ODE debug builds.
http://q12.org/pipermail/ode/2003-February/003494.htmlI found that by this google search: " geom must be placeable site:q12.org" (note the site:q12.org - that means I just search the mailing list archives). I'm glad the debug DLL gave you a useful error message! Nothing is more annoying that having stuff die for no reason. Cheers, Will.
|
|
|
|
shovemedia
Senior Newbie 
|
 |
«
Reply #7 - Posted
2004-07-15 12:37:58 » |
|
I did the same google ; )
no, no body. In fact, at the execution point at which I get the msg, the two lines of code I posted are the only references to the geom object at all.
I'm glad the debug lib gave me a message too, but it's at an execution point prior to that of my original issue, and therefore (most likely) unrelated.
|
|
|
|
|
William Denniss
|
 |
«
Reply #8 - Posted
2004-07-15 23:35:03 » |
|
a bug in Odejava perhaps?
I tried updating the JWS last night and it's now broken (on linux & OS X at least).
It now dies with: "ODE INTERNAL ERROR 2: geom must be placeable in dGeomGetPosition()"
I have a feeling this is because of the debug version (the release version would have just gone on running, perhaps to its peril).
My personal Odejava/Xith3D project is running using JWS on OS X with the latest version of everything so it's probably either a bug with the demo's or a bit of code they use.
Will.
|
|
|
|
shovemedia
Senior Newbie 
|
 |
«
Reply #9 - Posted
2004-07-16 12:34:51 » |
|
i changed my walls from planes to boxes, and not only does the debug version work (boxes are placeable, planes not so), but i haven't crashed it since (knock on wood).
So, in my very uninformed opinion, there're problems somewhere with planes...
:j
|
|
|
|
|
Games published by our own members! Check 'em out!
|
|
William Denniss
|
 |
«
Reply #10 - Posted
2004-07-16 23:40:10 » |
|
I have a feeling you're correct - I'll try and get to the bottom of this. I don't use planes in my program and I have no troubles.
It's strange, the official odejava demo's worked when I first did the upgrade to ODE 0.5(cvs) but they don't now :-S
Will.
|
|
|
|
William Denniss
|
 |
«
Reply #11 - Posted
2004-07-17 06:15:17 » |
|
I've committed a few fixes, and my tests indicate they solve this problem.
Will.
|
|
|
|
shovemedia
Senior Newbie 
|
 |
«
Reply #12 - Posted
2004-07-19 02:31:26 » |
|
sweet. I'll download the latest stuff this week.
I have mad respect for anybody who posts fixes at 2am on saturday night by-the-way.
|
|
|
|
|
William Denniss
|
 |
«
Reply #13 - Posted
2004-07-19 05:16:00 » |
|
hehe, sorry to disappoint, but I'm GMT+10 (Brisbane, Australia), so it was quarter past four in the afternoon for me  Will.
|
|
|
|
|