Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (616)
Games in Android Showcase (173)
games submitted by our members
Games in WIP (659)
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  
  unrecoverable stack overflow  (Read 2923 times)
0 Members and 1 Guest are viewing this topic.
Offline numknuf

Senior Newbie


« Posted 2003-12-21 14:55:42 »

An unrecoverable stack overflow has occurred.

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_STACK_OVERFLOW (0xc00000fd) occurred at PC=0xC889724

I get this using the stepfast method when I have a lot of, around 184, boxes stacked on top of each other.

How can I count the number of ContactJoints created or increase the stack.
Offline Jani Laakso

Junior Devvie

Do it with Java!

« Reply #1 - Posted 2003-12-21 16:42:31 »

I assume you are using windows dll, this is ODE related issue, check "/Stack:num" option for the compiler. This can occur when you have masses of simultaneous collisions happening. In other words, there can be plenty of objects around but many simultaneous collisions can be a problem.

Check for more information.

Here's a snippet from Ode's documentation:

12.11. The Windows version of ODE crashes with large systems

ODE requires stack space roughly on the order of O(n)+O(m2), where n is the number of bodies and m is the sum of all the joint constraint dimensions. If m is large, this can be a lot of space!

Unix-like operating systems typically allocate stack space as it is needed, with an upper limit that might be in the hundreds of Mb. Windows compilers normally allocate a much smaller stack. If you experience crashes when running large systems, try increasing the stack size. For example, the MS VC++ command line compiler accepts the /Stack:num flag to set the upper limit.
Offline numknuf

Senior Newbie


« Reply #2 - Posted 2003-12-21 17:09:19 »

Yes, I'm using the windows ODE. I used the dll that you provided. Do I have to recompile it to increase the stack?

And is it possible to count the number of collisions or Contact Joints created? This will probably indicate why I get a stack overflow error.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Jani Laakso

Junior Devvie

Do it with Java!

« Reply #3 - Posted 2003-12-21 17:16:09 »

I am releasing new Odejava 0.2 with huge changes (full support of ODE API, added also higher level API). I try to recompile this DLL with bigger stack option, hope you can wait a day or two Smiley

Collision checking is done still at C layer, it is most effective way but also most inconvinient. TODO contains adding Java collision callback routine, but this is not yet at Odejava. So currently you need to recompile whole library if you want to access collision information.

After 0.2 is out, the todo for Java callback functions priority will raise. This is the ideal solution for most users.
Offline numknuf

Senior Newbie


« Reply #4 - Posted 2003-12-21 17:53:55 »

Thanks. Smiley
Offline Jani Laakso

Junior Devvie

Do it with Java!

« Reply #5 - Posted 2004-01-03 09:15:17 »

Well, it took a bit more than couple days but now it's done Smiley
Check out the cvs, odejava/lib/win32 contains now a DLL that has increased stack space. Normal stackspace is 1Mb, this DLL has 2Mb initial, and maximum of 4Mb. I have tested this with about 200 concurrent collisions with boxes stacked on each other.
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Coldstream24 (16 views)
2015-09-03 00:41:28

Andrew_3ds (27 views)
2015-09-01 19:08:10

afikri (18 views)
2015-08-31 09:30:22

afikri (25 views)
2015-08-31 09:30:07

afikri (13 views)
2015-08-31 09:27:24

afikri (16 views)
2015-08-31 09:26:40

Roquen (30 views)
2015-08-29 11:30:54

GamerC4 (36 views)
2015-08-22 20:38:50

GamerC4 (33 views)
2015-08-22 20:37:18

GamerC4 (40 views)
2015-08-22 20:37:01
HotSpot Options
by Roquen
2015-08-29 11:33:11

Rendering resources
by Roquen
2015-08-17 12:42:29

Rendering resources
by Roquen
2015-08-17 09:36:56

Rendering resources
by Roquen
2015-08-13 07:40:51

Networking Resources
by Roquen
2015-08-13 07:40:43

List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30 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‑
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!