MantisBT - VCMI
View Issue Details
0002311VCMIAI - Adventure Mappublic2015-10-20 14:312016-04-07 13:41
Povelitel 
Warmonger 
normalmajoralways
closedfixed 
64WindowsXP sp2
0.98d 
0.98e 
0002311: Heroes just closed when turn AI
Just press end turn
No tags attached.
related to 0002072resolved Warmonger After loading save of last 7 day without town you lose 
rar QUIT.rar (375,579) 2015-10-20 14:31
https://bugs.vcmi.eu/file_download.php?file_id=2368&type=bug
txt VCMI_Client_log.txt (385,611) 2015-10-20 14:31
https://bugs.vcmi.eu/file_download.php?file_id=2369&type=bug
txt VCMI_Server_log.txt (248,242) 2015-10-20 14:31
https://bugs.vcmi.eu/file_download.php?file_id=2370&type=bug
Issue History
2015-10-20 14:31PovelitelNew Issue
2015-10-20 14:31PovelitelStatusnew => assigned
2015-10-20 14:31PovelitelAssigned To => Warmonger
2015-10-20 14:31PovelitelFile Added: QUIT.rar
2015-10-20 14:31PovelitelFile Added: VCMI_Client_log.txt
2015-10-20 14:31PovelitelFile Added: VCMI_Server_log.txt
2015-10-20 14:31PovelitelRelationship addedrelated to 0002287
2015-10-22 11:32SXXNote Added: 0005963
2015-10-22 12:21PovelitelNote Added: 0005964
2015-10-22 12:38SXXNote Added: 0005965
2015-10-22 12:42SXXNote Added: 0005966
2015-10-24 12:34WarmongerNote Added: 0005969
2015-10-24 12:34WarmongerStatusassigned => confirmed
2015-10-24 12:46SXXNote Added: 0005970
2015-10-24 12:46SXXNote Edited: 0005970bug_revision_view_page.php?bugnote_id=5970#r2980
2015-10-24 13:13WarmongerNote Added: 0005972
2015-10-24 13:58WarmongerNote Added: 0005973
2015-10-24 15:38WarmongerRelationship addedrelated to 0002072
2015-10-24 16:22WarmongerNote Added: 0005979
2015-10-24 16:22WarmongerStatusconfirmed => resolved
2015-10-24 16:22WarmongerFixed in Version => 0.98e
2015-10-24 16:22WarmongerResolutionopen => fixed
2015-10-24 16:48SXXRelationship deletedrelated to 0002287
2016-04-07 13:41PovelitelStatusresolved => closed

Notes
(0005963)
SXX   
2015-10-22 11:32   
Can't reproduce, it's don't crash for me.
(0005964)
Povelitel   
2015-10-22 12:21   
They don't crash, they just closed. Or you have good work?
(0005965)
SXX   
2015-10-22 12:38   
It's working fine for me on commit 273392752754a8d766cf3b80c02b5b0c49d8f64d which is basically 0.98d release. Basically on this turn Teal player is dying on that turn and game continues.

BTW I may confirm it's does crash on 0.98d Windows build.....
(0005966)
SXX   
2015-10-22 12:42   
Assertion failed: obj, file AIUtility.cpp, line 103
(0005969)
Warmonger   
2015-10-24 12:34   
Confirmed, game crashes after players are supposed to win / lose.
(0005970)
SXX   
2015-10-24 12:46   
BTW I asked @AVS to check it and it's crashes for him too while he's not using VC++.
Any idea why it's not crash on Linux for me?

(0005972)
Warmonger   
2015-10-24 13:13   
Looks like desync / threading issue, AI player still tries to move heroes around despite he lost.
(0005973)
Warmonger   
2015-10-24 13:58   
It seems that loss condition (no town) is checked for player 6 only after AI has already started turn.
(0005979)
Warmonger   
2015-10-24 16:22   
Fixed in https://github.com/vcmi/vcmi/commit/61692ba168bafa5f08df9bbd7526bf21339b0dcb [^]