Code center > Bugs and fixes

DarwinBot crash (ver 2.44)

(1/6) > >>

peterb:
Hi

Darwinbots seams to crash frequently sometimes the error reason differs
But so far I got the folowing noted :

An Error Ocurred. DarwinBots cannot contineu. Sorry Badfilename or number 52 0

or :

The instruction at "0x7c911762" referenced at 0x000000018". The memory could not be "read"

or:

Some kind of DEP error on XP thats tipicaly a program that doesnt do well on its memory reservations.
Even if I disable DEP protection since I trust DarwinBots, it still crashes

To the programmer >> -- you might also be able to run it with a debuger connected [requires source code]  (then you see exactly how it goes wrong)


 
I gues the program has a problem with arrays since a virus can make species discription longer.  
Its not such a wild gues, for my IT job I did many crash debugs... on NT4.0
Since I could run the program run for days if I dont use viruses in the sim.
The only thing a virus can do is making DNA longer.
In fact this virus DNA introduces sexrepro to any species
A slightly modified algeahelper (from jknilinux > the modification is that it can only infects once but thats still to much, doesnt keep me from crashing).

.. I believe strings can be quite long even in VB6, maybe encode a bot in a string (I dont know where it is stored in).
   otherways make sure that virus execution, dont result in array seize problems (meaning the bot becomes larger then was reserved for)
   A way to solve that is to re-create the string/array with proper size  
   .. and if for some reason a virus has to much genes inserted allready > then just dont excute the virus command sillently ignore it

About my PC its XP with latest fixes.
Darwin Bots version 2.44
DEP was enabled but I Disabled it still didnt solve it (and that gives a good cleu in the direction where it went wrong)



Feel free to run attached bots and sim
Sim is in no pond mode small, it might take a while crash is usualy random but often within 5 minutes or so or less
(realy sometimes it takes longer, but I cannt run it for an hour).

jknilinux:
My only recommendation would be to send all the DB folders to your desktop, delete DB, and reinstall from 2.1. Then, download 2.43.1l & m from here, since 2.44 is sometimes a bit buggy.

The bug support here used to be good, but now that eric's gone I don't think this will be fixed for a while, if ever...

Just thought you should know, since you came after eric left, that he was the main(only?) VB developer. So, we may not have another release of DB until DB3 in about a year.

You don't have tons of free time and know how to use C# or VB, do you?

peterb:
What is the difference from 2.43.1 and 2.44 ?

Well I do understand VB6 and vb.net and a little bit of C# C.net, and various other languages.
Time is a bit of a problem, but also usualy I'd like to solve the computer problems I face (bad habitat but it results in work too)

Can I get the source code of 2.44 ( I couldnt find it).
I'd like to run in in Debug mode and try to solve this.

peterb:

--- Quote from: jknilinux ---My only recommendation would be to send all the DB folders to your desktop, delete DB, and reinstall from 2.1. Then, download 2.43.1l & m from here, since 2.44 is sometimes a bit buggy.
--- End quote ---

Noting also that L and M version have (what it looks like the same crashgin problems)
And also  the same as you had posted in that forum with the download you mentioned you then had too problems with virus genes inside bots..
Me personal hinting that Genes resize DNA...

Anyway th L version gave another bug hint..



This array is fixed or temporarily locked

(Visual Basic)  Visual Basic Reference: Error Messages   ( http://msdn.microsoft.com/en-us/library/0d8t4e00(VS.80).aspx )
This error has the following possible causes:

Using ReDim to change the number of elements of a fixed-size array.

Redimensioning a module-level dynamic array, in which one element has been passed as an argument to a procedure. If an element is passed, the array is locked to prevent deallocating memory for the reference parameter within the procedure.

Attempting to assign a value to a Variant variable containing an array, but the Variant is currently locked.

To correct this error
Make the original array dynamic rather than fixed by declaring it with ReDim (if the array is declared within a procedure), or by declaring it without specifying the number of elements (if the array is declared at the module level.

Determine whether you really need to pass the element, since it is visible within all procedures in the module.

Determine what is locking the Variant and remedy it.

See Also

Numsgil:
we don't have the source ar present, unfortunately.  At least not the current source.

Navigation

[0] Message Index

[#] Next page

Go to full version