PDA

View Full Version : 32000 Actions


acdep
5th November 2004, 07:15 AM
Hello Andy,

Using network communication towards AC3D, it seems that when My program has
done 32000 object actions (select, unselect size_to..etc..) AC3D stops..
(I did not try manualy clicking in AC3D 32000 times...btw..:-)

Im unable to detect if its an Buffer limitation somewhere in AC3D but for sure is
that the Windows version 4.0 Hangs and that the Linux version simply stops working with networking...
Stopping the network client fixes the problem on Linux but not on Windows. Windows completly hangs...(needs a kill)

Perhpas an internal buffer needs to be flushed somewhere in Ac3d??

Hope you have a clue...

Regards,
Norman.

Andy
5th November 2004, 10:30 AM
There should be no limits in AC3D AFAIK. The Undos will start dropping off (I think AC3D remembers the last 100 ops?)

Run it with -debug and see if you can find where it's hanging. Also - check the memory allocation (Windows task manager/linux ps/top).

Andy

acdep
6th November 2004, 05:45 AM
Hello Andy,

I did the testing twise again and again (linux only with 4.0) it stops at
32000 selects on the objects.
Now linux AC3D freezes up too, untill i release the network client.

I did a -debug and a -debugmem and both take up over 1 Gig of logging Wink
But i could not find anything strange in them regaring errors...

Thought i think i know what it could be...

It looks like AC3D is freeing memory oke, but sometimes after every 10
selects of an object it skips 4 Kb of memory freeing... Although that is what i
notice.. So the memory eats upto +/- 32 Mb for AC3D and then stops... I think this
only happens when using network selects... perhpas im sending too quick the
commands? (im retesting this) I cant simmulate 32000 manual object selection :)


You can simple summulate the problem when you run my "clock" example
for at least 1:30 hours... (depends on your computer speed Wink Then it
locks up..

Here my Memory output:

at start ->
Mem: 645084k total, 211268k used, 433816k free, 4812k buffers
Swap: 1437776k total, 0k used, 1437776k free, 94160k cached

at hang ->
Mem: 645084k total, 239696k used, 405388k free, 4896k buffers
Swap: 1437776k total, 0k used, 1437776k free, 96412k cached

$ps al ->$ps al
F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND
0 1000 1713 1381 9 0 12744 6920 wait_f S+ pts/2 1:36 ac3d

I hope you can simmulate it...

Regards, Norman.