car example crashes

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?

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.

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

you’ve got your wish :slight_smile:

https://odejava.dev.java.net/servlets/ProjectDocumentList?folderID=1571

Believe it or not, I did that before seeing this post (in fact I came here to post about what I had done…)

Will.

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.

       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

You’re welcome :slight_smile:

Are you trying to associate a body with that Geom?

Planes must be static.

http://q12.org/pipermail/ode/2003-February/003494.html

I 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.

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.

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.

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

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.

I’ve committed a few fixes, and my tests indicate they solve this problem.

Will.

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.

hehe, sorry to disappoint, but I’m GMT+10 (Brisbane, Australia), so it was quarter past four in the afternoon for me :slight_smile:

Will.