MantisBT - VCMI
View Issue Details
0000223VCMIMechanics - Battlespublic2009-11-21 15:352009-11-28 11:52
Zamolxis 
Tow dragon 
highcrashsometimes
closedfixed 
0.74b 
0.74c 
0000223: Crashes when trying to cast in the beginning of battles in 0.74b
In the first case, when the battle started, no creature was selected to start its turn (I think because the highest speed creature was the enemy Sprite, which did not move). When I tried to cast a spell, the game crashed (see attached logs - a .dmp file was created, but empty).



In an attempt to reproduce with a different army, I could start the battle as the highest speed creature (Griffin) was on my side. But when I tried to cast, I got a crash (see second attachment, this time .dmp file was created).
No tags attached.
7z CrashWhenTryingToCast.7z (10,029) 2009-11-21 15:35
https://bugs.vcmi.eu/file_download.php?file_id=87&type=bug
7z CrashWhenTryingToCast2.7z (39,506) 2009-11-21 15:36
https://bugs.vcmi.eu/file_download.php?file_id=88&type=bug
Issue History
2009-11-21 15:35ZamolxisNew Issue
2009-11-21 15:35ZamolxisFile Added: CrashWhenTryingToCast.7z
2009-11-21 15:36ZamolxisFile Added: CrashWhenTryingToCast2.7z
2009-11-25 00:07ZamolxisSticky IssueNo => Yes
2009-11-25 00:07ZamolxisPrioritynormal => high
2009-11-25 00:08ZamolxisNote Added: 0000263
2009-11-25 23:26TowNote Added: 0000264
2009-11-25 23:26TowNote Edited: 0000264bug_revision_view_page.php?bugnote_id=264#r372
2009-11-27 01:20ZamolxisNote Added: 0000265
2009-11-28 02:23TowNote Added: 0000267
2009-11-28 11:49ZamolxisSticky IssueYes => No
2009-11-28 11:52ZamolxisNote Added: 0000282
2009-11-28 11:52ZamolxisStatusassigned => closed
2009-11-28 11:52ZamolxisResolutionopen => fixed
2009-11-28 11:52ZamolxisFixed in Version => 0.74c

Notes
(0000263)
Zamolxis   
2009-11-25 00:08   
Priority changed to high because it's very important that this is fixed before the next release, otherwise testing will be hardly possible.
(0000264)
Tow   
2009-11-25 23:26   
The crashes on casting are fixed (not uploaded yet). My bad.

I haven't reproduced the freeze on start though. Logs say there is an infinite loop of AI trying to move creature. I'll take a closer look soon.

(0000265)
Zamolxis   
2009-11-27 01:20   
Let me know if you need me to try to reproduce it. I remember having a starting army with low speed creatures, which made the neutral (enemy) Sprite have the fastest speed on the battlefield. My guess was that it had something to do with the fact that AI had to act first at the very beginning of the battle... but if you can't reproduce it, I'll try to investigate more.
(0000267)
Tow   
2009-11-28 02:23   
I haven't reproduced it, please give it a try with 0.74c.
It will also report what type of action AI is unsuccessfully attempting.
(0000282)
Zamolxis   
2009-11-28 11:52   
Impossible to reproduce in 0.74c. Most probably fixed.