MantisBT - VCMI
View Issue Details
0000912VCMIMechanics - Battlespublic2012-03-13 08:072014-05-30 17:40
q4a 
Tow 
normalcrashalways
closedfixed 
x86WindowsXP SP3
0.88 
0.89 
0000912: Crash on 2nd turn of battle with Dungeon town
Tested on r2589.
Attached file contain save game and full client+server log.

VCMI_Client_log.txt:
Listening... received server message of type struct StartAction
CStupidAI [0D2EB758]: actionStarted called
    Made first apply on cl
    Applied on gs
    Made second apply on cl
Listening... received server message of type struct BattleStacksRemoved
    Made first apply on cl
Battle stack [7]: 1 creatures of Arrow Towers from slot 255 #detached from# Town (Dungeon) of Deepshadow
Battle stack [7]: 1 creatures of Arrow Towers from slot 255 #detached from# "Arrow Towers"
    Applied on gs
Wrong player id in blueToPlayersAdv (221)!
Load attached save game (homm3 map "Dragon Orb").
Select 2nd hero(Elleshar).
Attack Dungeon.
Battle:
Dragon-Wait.
Centaurs-Defend.
Elves-Attack Harpy.
Dwarves-Defend.
Dragon-Attack Harpy.
Then you got crash.
No tags attached.
related to 0000886resolved AVS Crash after cloned creatures move 
7z save+log.7z (112,010) 2012-03-13 08:07
https://bugs.vcmi.eu/file_download.php?file_id=876&type=bug
Issue History
2012-03-13 08:07q4aNew Issue
2012-03-13 08:07q4aFile Added: save+log.7z
2012-03-26 12:22TowNote Added: 0002317
2012-03-26 12:22TowAssigned To => Tow
2012-03-26 12:22TowStatusnew => confirmed
2012-03-26 12:23TowRelationship addedrelated to 0000886
2012-04-06 15:09TowNote Added: 0002333
2012-04-06 15:09TowStatusconfirmed => resolved
2012-04-06 15:09TowFixed in Version => 0.89
2012-04-06 15:09TowResolutionopen => fixed
2014-05-30 17:40beegeeStatusresolved => closed

Notes
(0002317)
Tow   
2012-03-26 12:22   
I'm not able to reproduce issue but found a scenario:
1 turret is killed by catapult
2 stack is removed from game
3 stack queue redraws, can't get info for deleted turret -> crash
4 GUI receives info about removed stack and removes it from queue

There's a race condition between 3 and 4, I'll try to fix this later, along with the Cloning issues.
(0002333)
Tow   
2012-04-06 15:09   
Fixed in r2611.