MantisBT - VCMI
View Issue Details
0001012VCMIAI - Adventure Mappublic2012-06-17 11:362014-05-30 17:41
Ivan 
Tow 
normalcrashrandom
closedfixed 
x86_64Ubuntu Linux12.04 (precise)
 
0.9 
0001012: AI hangs with message: Player 5 has to answer queries before attempting any further actions (count=2)!
Happens sometimes (~2 out of 10 times).
Encountered on map "VCMI_Tests 2011"

One of purple heroes attacked green player Inferno.
After this AI moves his second hero but any interaction with objects (collect resource, attack hero) results in message:
System message: Server encountered a problem: Player 5 has to answer queries before attempting any further actions (count=2)!

From what I found in logs (may not be source of the issue):

Server:
Received client message (request 869 by player 5) of type with ID=169 (10QueryReply).
You were identified as player 3 while expecting 5
Player is not allowed to perform this action!
Message successfully applied (result=0)!

Client:
Listening... received server message of type 20SetCommanderProperty
    Made first apply on cl
Sending a request "10QueryReply". It'll have an ID=869.
Sending to server a pack of type 10QueryReply
We'll wait till request 869 is answered.
    Applied on gs
    Made second apply on cl

Full logs in attachment
No tags attached.
zip vcmi-ai-hangs.zip (50,234) 2012-06-17 11:36
https://bugs.vcmi.eu/file_download.php?file_id=985&type=bug
Issue History
2012-06-17 11:36IvanNew Issue
2012-06-17 11:36IvanStatusnew => assigned
2012-06-17 11:36IvanAssigned To => Tow
2012-06-17 11:36IvanFile Added: vcmi-ai-hangs.zip
2012-07-15 15:36TowNote Added: 0002797
2012-07-15 15:36TowStatusassigned => resolved
2012-07-15 15:36TowFixed in Version => 0.9
2012-07-15 15:36TowResolutionopen => fixed
2014-05-30 17:41beegeeStatusresolved => closed

Notes
(0002797)
Tow   
2012-07-15 15:36   
Should be fixed in r2785, along with several more query issues.