Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (538)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (601)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  car example crashes  (Read 2430 times)
0 Members and 1 Guest are viewing this topic.
Offline shovemedia

Senior Newbie





« Posted 2004-07-09 21: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?
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #1 - Posted 2004-07-10 02: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.

Offline shovemedia

Senior Newbie





« Reply #2 - Posted 2004-07-13 16: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!
Legends of Yore - The Casual Retro Roguelike
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #3 - Posted 2004-07-14 09:32:11 »

you've got your wish Smiley

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.

Offline shovemedia

Senior Newbie





« Reply #4 - Posted 2004-07-14 11: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.
Offline shovemedia

Senior Newbie





« Reply #5 - Posted 2004-07-14 11: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
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #6 - Posted 2004-07-14 22:10:41 »

You're welcome Smiley

Are you trying to associate a body with that Geom?

Planes must be static.

Quote

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

Offline shovemedia

Senior Newbie





« Reply #7 - Posted 2004-07-15 10: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.
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #8 - Posted 2004-07-15 21: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.

Offline shovemedia

Senior Newbie





« Reply #9 - Posted 2004-07-16 10: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!
Legends of Yore - The Casual Retro Roguelike
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #10 - Posted 2004-07-16 21: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.

Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #11 - Posted 2004-07-17 04:15:17 »

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

Will.

Offline shovemedia

Senior Newbie





« Reply #12 - Posted 2004-07-19 00: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.
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #13 - Posted 2004-07-19 03:16:00 »

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

Will.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

rwatson462 (30 views)
2014-12-15 09:26:44

Mr.CodeIt (20 views)
2014-12-14 19:50:38

BurntPizza (42 views)
2014-12-09 22:41:13

BurntPizza (76 views)
2014-12-08 04:46:31

JscottyBieshaar (37 views)
2014-12-05 12:39:02

SHC (50 views)
2014-12-03 16:27:13

CopyableCougar4 (47 views)
2014-11-29 21:32:03

toopeicgaming1999 (114 views)
2014-11-26 15:22:04

toopeicgaming1999 (102 views)
2014-11-26 15:20:36

toopeicgaming1999 (30 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!