Djomanix / bwta

Automatically exported from code.google.com/p/bwta
GNU Lesser General Public License v3.0
0 stars 0 forks source link

access violation in AstarSearchPath #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
On ICCUP python, do AstarSearchPath between 2 starting locations, sometimes 
it crashes, sometimes it doesn't (or only for certain combinations of 
starting locations). My AI module does the search around 10 min into the 
game, so maybe that's related.

What is the expected output? What do you see instead?
The instruction at 0x66a00754 referenced memory at 0xcf72f347. the memory 
could not be read.

What version of the product are you using? On what operating system?
SVN version of bwta, also happens on the one bundled with bwsal.

Please provide any additional information below.
Stack Trace:
>   ExampleAIModule.dll!BWTA::AstarSearchPath(BWAPI::TilePosition 
start={...}, BWAPI::TilePosition end={...})  Line 191 + 0x23 bytes  C++
    ExampleAIModule.dll!BWTA::getShortestPath(BWAPI::TilePosition 
start={...}, BWAPI::TilePosition end={...})  Line 173 + 0x19 bytes  C++
    ExampleAIModule.dll!DefenseManager::update()  Line 88 + 0x1e bytes  
C++

code around where the program crashes:
if (!MapData::lowResWalkability[x][y]) continue; // this line
BWAPI::TilePosition t(x,y);

x == maxx == 128 when this happens. y = 41, though I've seen different 
values for it.

Original issue reported on code.google.com by aek...@gmail.com on 26 Jan 2010 at 6:32

GoogleCodeExporter commented 9 years ago
Here's a set of input that caused crash
start: {_x=118 _y=41 }
end: {_x=83 _y=6 }

Original comment by aek...@gmail.com on 26 Jan 2010 at 6:55

GoogleCodeExporter commented 9 years ago

Original comment by lowerlo...@gmail.com on 12 Feb 2010 at 8:48

GoogleCodeExporter commented 9 years ago
the "mapWidth()-1" from issue 7 solves this problem too i'd guess.
http://code.google.com/p/bwta/issues/detail?id=7

x == maxx == 128 should never happen on a map that's 128 wide.
(it points to a tile outside the map area). 

:)

Original comment by Kali...@gmail.com on 21 May 2010 at 7:27

GoogleCodeExporter commented 9 years ago

Original comment by lowerlo...@gmail.com on 21 May 2010 at 10:19