cday41 / paz-search

Automatically exported from code.google.com/p/paz-search
0 stars 0 forks source link

intial residents don't rebuild home ranges after social map swap #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I put together a run where year 1 started with intial residents on the 
social map. I then swapped in a mixed suitable/unsuitable social map for 
year 2. From the animalManger.log it appears that SEARCH tries to loop 
through the residents after the map swap but fails:

12:16:10:228:  inside resetResidentsHomeRange we are going to loop through 
20 residents
12:16:10:228:  my animals location is 458102.539700171 634205.03906975
12:16:10:228:  now going to try and build a home range with the map manager
12:16:10:306:  could not create one
12:16:10:322:  inside addNewDispersers starting loop

This seems to be associated with the only lines in the DispersalError.log:

12:16:10:244:  Object reference not set to an instance of an object.
   at System.Runtime.InteropServices.Marshal.ReleaseComObject(Object o)
   at SEARCH.HomeRangeBuilder.BuildHomeRange(Animal inAnimal, String 
currSocialFileName) in C:\v95\DataCentric\HomeRangeBuilder.cs:line 79
   at SEARCH.MapManager.BuildHomeRange(Animal inAnimal) in C:\v95
\DataCentric\MapManager.cs:line 248

12:16:10:306:  Object reference not set to an instance of an object.
   at SEARCH.AnimalManager.resetResidentsHomeRange(Map newSocialMap) in 
C:\v95\DataCentric\AnimalManager.cs:line 935

From what I can tell all of the HRs are gone from the social map but the 
animals are still breeding (although this I am not positive about). I have 
attached the xml (number seed = 1). I believed I only used maps from the 
most recently posted test_maps.zip so you should be able to recreate on 
your end.

Original issue reported on code.google.com by bpa...@purdue.edu on 5 Oct 2009 at 7:17

Attachments:

GoogleCodeExporter commented 9 years ago
I thought we fixed this with another release?  Or am I confused?

Original comment by ran...@mwwb.net on 26 Oct 2009 at 11:33

GoogleCodeExporter commented 9 years ago
I reran the above test and we are no longer getting the error logs or the 
problem 
with the animalmanager.log. We are also getting the correct animals with HRs on 
the 
social maps.

Original comment by bpa...@purdue.edu on 27 Oct 2009 at 3:26