|
Post by Kjelle69 on Jul 30, 2004 1:45:19 GMT 1
I have a problem which makes the application totally freak out when the amount of objects (spheres) is more than about 500.
It kicks out and I get the message:
[COMMON] PathToEXE=C:\Documents and Settings\Kjelle\Skrivbord\Kopia av kvarnsimulering 200407\distrib\CrashOn_07_29_04.txt [CEXE] m_dwRuntimeErrorDWORD=0 m_dwRuntimeErrorLineDWORD=439
Any idea ??
|
|
|
Post by Kjelle69 on Jul 30, 2004 3:08:09 GMT 1
is line 439 the "NDB_NewtonUpdate" line? or a different line?
internally the wrapper is built to handle up to ~4000 bodies...
|
|
|
Post by Kjelle on Jul 30, 2004 13:01:17 GMT 1
Actually it is a completely standard dbp code 439: if spacekey()=0 then SPACEPRESSED = 0 Wierd !?
|
|
|
Post by Kjelle69 on Jul 31, 2004 7:02:03 GMT 1
hmmm.... if you want to send me your project, I'd be glad to take a look at it... otherwise I'm not sure how to help!
|
|
|
Post by Kjelle on Jul 31, 2004 11:34:09 GMT 1
Sure thing !
Do you have a good mail account, it is about 5 megs compressed?
|
|
|
Post by Kjelle69 on Aug 1, 2004 18:27:53 GMT 1
I got your mail, I'll have a look as soon as I get some free time (probably within a few days)
|
|
|
Post by kjelle69 on Aug 1, 2004 18:56:15 GMT 1
I tried to elaborate with different values on the line NDB_NewtonUpdate (time#*Step#) (Line 437) Maybe the error occurs round this line anyway?
I tried with only NDB_NewtonUpdate and everything went a lot slower, and smoothed out the movements, it seemed a bit more stable this way, but still kicks out completely after a while with chrash message.
I have tried the program on two different computers also to be sure that there is no hardware issue.
|
|
|
Post by kjelle69 on Aug 16, 2004 8:32:31 GMT 1
I tried the new version, put the 'world' in the new flag mode for complex objects, to see if there was any difference: col = NDB_NewtonCreateTreeCollision(1),1
The program still chrashes at about 1000 objects on this line: then NDB_NewtonUpdate (time#*step#)
This message occurs:
[COMMON] PathToEXE=C:\Program\Dark Basic Software\Dark Basic Professional\Projects\3D Mill Newton\CrashOn_08_16_04.txt [CEXE] m_dwRuntimeErrorDWORD=0 m_dwRuntimeErrorLineDWORD=437
|
|
|
Post by Kjelle69 on Aug 16, 2004 11:39:57 GMT 1
you mentioned you tried it on different computers... did both computers fail at the exact same # of bodies?
how much RAM and VRAM do the PCs have? I think it could be a memory issue...
also you know that
col = NDB_NewtonCreateTreeCollision(1),1
should be:
col = NDB_NewtonCreateTreeCollision(1,1)
|
|
|
Post by kjelle69 on Aug 16, 2004 15:27:32 GMT 1
Changed code to (1,1) and now it chrashed directly with this message:
[COMMON] PathToEXE=C:\Program\Dark Basic Software\Dark Basic Professional\Projects\3D Mill Newton\CrashOn_08_16_04.txt [CEXE] m_dwRuntimeErrorDWORD=7023 m_dwRuntimeErrorLineDWORD=251
And I cant get the program to chrash on a specific number of bodies, it seems to differ from time to time, sometimes at 650-700 bodies and sometimes at 1600. Does not matter on which of the computers, I will check the memory issue tough.
One has 256 Meg ram and the other 1 Gb. will check the Vram settings too.
|
|
|
Post by Kjelle69 on Aug 17, 2004 6:08:02 GMT 1
hmmm.. perhaps my TreeCollision system still has a few bugs in it.
I can't think of a logical explanation for the crash... I'll take another look through my source for anything obvious.
|
|