MantisBT - VCMI
View Issue Details
0000886VCMIMechanics - Battlespublic2012-02-29 05:512018-11-06 15:16
q4a 
AVS 
normalcrashsometimes
resolvedfixed 
x86WindowsXP SP3
 
1.next 
0000886: Crash after cloned creatures move
Tested on r2563.
 
VCMI_Client_log.txt:
Listening... received server message of type struct BattleStackMoved
CStupidAI [0C876780]: battleStackMoved called
    Made first apply on cl
    Applied on gs
    Made second apply on cl
Listening... received server message of type struct BattleAttack
CPlayerInterface::battleAttack - locking...done!
CStupidAI [0C876780]: battleAttack called
    Made first apply on cl
Battle stack [8]: -858993460 creatures of Imps from slot 255 #detached from# Hero Ignatius
Battle stack [8]: -858993460 creatures of Imps from slot 255 #detached from# "Imps"
    Applied on gs
CPlayerInterface::battleStackAttacked - locking...done!
CStupidAI [0C876780]: battleStacksAttacked called
    Made second apply on cl
Listening... Wrong player id in blueToPlayersAdv (96)!
Server finished
Lost connection to server, ending listening thread!
read: An existing connection was forcibly closed by the remote host
Something wrong, lost connection while game is still ongoing...

VCMI_Server_log.txt:
Message successfully applied (result=1)!
Sending to all clients a package of type struct BattleNextRound
Sending to all clients a package of type struct BattleSetActiveStack
Received client message of type struct MakeAction
    Making action of type 
Sending to all clients a package of type struct StartAction
Sending to all clients a package of type struct BattleStackMoved
Sending to all clients a package of type struct BattleAttack
Battle stack [8]: -858993460 creatures of Imps from slot 255 #detached from# Hero Ignatius
Battle stack [8]: -858993460 creatures of Imps from slot 255 #detached from# "Imps"
Start any map.
Get all spells by cheat "vcmiistari".
Attack enemy.
Click defend to your 1st current set of creatures.
Cast Defend (4th lev) spell on that set.
Click defend to all other your creatures, except cloned.
Move cloned creatures forward.

Sometimes it needs to do more moves to get crash. Once I don't get crash at all.
No tags attached.
related to 0000912closed Tow Crash on 2nd turn of battle with Dungeon town 
Issue History
2012-02-29 05:51q4aNew Issue
2012-03-01 16:38TowNote Added: 0002266
2012-03-01 16:38TowAssigned To => Tow
2012-03-01 16:38TowStatusnew => confirmed
2012-03-26 12:23TowRelationship addedrelated to 0000912
2014-11-26 03:40SXXNote Added: 0005172
2018-11-06 15:16PovelitelNote Added: 0007680
2018-11-06 15:16PovelitelStatusconfirmed => resolved
2018-11-06 15:16PovelitelFixed in Version => 1.next
2018-11-06 15:16PovelitelResolutionopen => fixed
2018-11-06 15:16PovelitelAssigned ToTow => AVS

Notes
(0002266)
Tow   
2012-03-01 16:38   
This one is complex, I found two possible crashes while investigating. They're related to removing cloned stack after attack, not movement.
(0005172)
SXX   
2014-11-26 03:40   
Tried to reproduce in 0.97, but failed.
(0007680)
Povelitel   
2018-11-06 15:16   
Don't reproducibility in last develop.