MantisBT - VCMI
View Issue Details
0000732VCMIGUI - Adventure Mappublic2011-05-29 07:422014-05-30 17:40
Warmonger 
Tow 
highcrashrandom
closedfixed 
PCWindows 7vanillia
0.84b 
0.85 
0000732: Chance to freeze on messages showing on a new day
I noticed there's high chance for the interface to freeze on new turn: either when there's a new week with its message displayed, or a timed event. Cursor stands still and GUI is not accessible anymore.
Easily reproductible on Arrogance3 or any other map if you click "pass turn" fast enough, especially before event occurs.
No tags attached.
related to 0000658closed Tow Game freeze after building Hall of Valhalla on conquered town, perhaps due to overlapping with "player has been vanquished" msg 
jpg 2011-05-29_EndTurnCrash.jpg (152,859) 2011-05-29 09:21
https://bugs.vcmi.eu/file_download.php?file_id=715&type=bug
jpg

7z 2011-05-29_EndTurnCrash.7z (67,076) 2011-05-29 09:22
https://bugs.vcmi.eu/file_download.php?file_id=716&type=bug
Issue History
2011-05-29 07:42WarmongerNew Issue
2011-05-29 07:43WarmongerRelationship addedrelated to 0000628
2011-05-29 07:43WarmongerRelationship deletedrelated to 0000628
2011-05-29 07:43WarmongerRelationship addedrelated to 0000658
2011-05-29 07:44WarmongerDescription Updatedbug_revision_view_page.php?rev_id=1316#r1316
2011-05-29 09:20ZamolxisNote Added: 0001742
2011-05-29 09:21ZamolxisFile Added: 2011-05-29_EndTurnCrash.jpg
2011-05-29 09:22ZamolxisFile Added: 2011-05-29_EndTurnCrash.7z
2011-05-29 14:17TowNote Added: 0001753
2011-05-29 14:17TowStatusnew => resolved
2011-05-29 14:17TowFixed in Version => 0.89
2011-05-29 14:17TowResolutionopen => fixed
2011-05-29 14:17TowAssigned To => Tow
2014-05-30 17:40beegeeStatusresolved => closed

Notes
(0001742)
Zamolxis   
2011-05-29 09:20   
What I noticed is that if I press End Turn immediately after the map starts, there's a good chance either the command is not taken (freeze already), or the next day (with higher chance the days after, if we press End Turn few times in a row), the hero cannot move anymore. That is, as soon as the new day starts, try to move the default hero. I can set the path, but game often freezes with the "galop" sound, but hero does not move.

Another interesting thing, as seen in the screenshot, is that I cannot force a Crash, but that may be because a server crashinfo dump file was already created beforehand (see attached files).

And maybe another interesting thing, is that it can easily be reproduced in 084b & 084c, but way harder to reproduce in 084. So it happens there as well, but only after hitting End Turn more than 10 times in a row - while closing event messages fast as well on the way - and even then it's not always reproducible.

If attachments don't help you identify the bug, I can try to run more tests and find patterns. Also, the console message with "not allowed to perform this action", makes me wonder if this is not related perhaps to 0000729 as well...?
(0001753)
Tow   
2011-05-29 14:17   
Should be fixed in r2158.
Recent changes to framerate keeping code that made game run smoother also increased likelihood of encountering this bug.

However this is only for freeze on new turn issue. Clicking end turn button very, very fast can confuse VCMI and lead to "not allowed to perform this action" message, but it should not cause any lasting problems (just some of the clicks will be ignored).
I'm unable to reproduce issue with moving hero — actually it looks as there are two issues: not allowing to move hero during turn (that is 0000729, where apparently all actions became prohibited at some point) and freeze with a gallop sound, that most likely is a separate issue.

@Zamolxis
You have to type "crash", without capital 'C'. Commands are case-sensitive.