Code center > Bugs and fixes

2.42.6e

<< < (6/7) > >>

Elite:
OK, after much coaxing it uploaded, I hope this works ...

EricL:

--- Quote from: Elite ---OK, after much coaxing it uploaded, I hope this works ...
--- End quote ---
Got it.  Bot 17's velocity is overflowing the single valued vaurables in the friction routine.  I suspect somewhere the code is doing assignment using a double or Long.  Will have to look at everyplace velocity gets changed.  Probalby has to do with gravity.  Stay tuned.

EricL:
Is it possible for you to post a sim from before the error occurred?  The error.sim file contains bots whose velocity has already overflowed.  I need to track down the root cause of why the velocity is overflowing in the first place so I need to catch it in the act so to speak.

BTW, I suspect this is specific to your specific physics settings, so I do appreciate you posting the sim as it lets me reproduce them exactly.  Thanks.

Elite:
OK, here's a similar sim, it will overflow within a couple of cycles

EricL:
Found it.  In sims with fluid density=0, the sphere drag routine could cause bot velocities to get progressivly smaller and smaller but never reach 0, eventually resulting in an overflow of the Single valued velocity varibles.  I now avoid the drag routine all together when density is 0 (without fluid desity there is no drag - friction yes, but not drag) and added some protection code which now sets very very small velocities to zero in such cases.

Here's a new buddy drop.  Give it a try.



Darwinbots 2.42.6c

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version