MantisBT - VCMI
View Issue Details
0001178VCMIGUI - Battlespublic2013-01-20 15:422013-01-21 20:19
AlexVinS 
Tow 
highmajoralways
closedfixed 
 
 
0001178: Crash when AI casts spell
map "VCMI_Tests_2011b.h3m" crash in \BattleInterface\CBattleInterface.cpp:1717 (in fact deeper in stdlib)

after wrong access to cb->battleGetFightingHero(sc->side)
attack with Sir Mullich nearby enemy hero. Will crash on first AI turn.
CBattleAI [0xcfa1b58]: Best spell is Ускорение. Will cast.
Sending a request "16MakeCustomAction". It'll have an ID=6.
Sending to server a pack of type 16MakeCustomAction
We'll wait till request 6 is answered.
    received server message of type 11StartAction
CBattleAI [0xcfa1b58]: actionStarted called
    Made first apply on cl
    Applied on gs
    Made second apply on cl
Listening... received server message of type 14SetStackEffect
    Made first apply on cl
    Applied on gs
CBattleAI [0xcfa1b58]: battleStacksEffectsSet called
    Made second apply on cl
Listening... received server message of type 15BattleSpellCast
    Made first apply on cl
    Applied on gs
FIXME: battleGetFightingHero access check

No tags attached.
? VCMI_Tests_2011b.h3m (18,793) 2013-01-20 15:42
https://bugs.vcmi.eu/file_download.php?file_id=1171&type=bug
Issue History
2013-01-20 15:42AlexVinSNew Issue
2013-01-20 15:42AlexVinSFile Added: VCMI_Tests_2011b.h3m
2013-01-20 20:04TowAssigned To => Tow
2013-01-20 20:04TowStatusnew => assigned
2013-01-20 20:30TowNote Added: 0003289
2013-01-20 20:30TowStatusassigned => resolved
2013-01-20 20:30TowResolutionopen => fixed
2013-01-21 20:12AlexVinSNote Added: 0003299
2013-01-21 20:12AlexVinSStatusresolved => closed
2013-01-21 20:19TowNote Added: 0003300

Notes
(0003289)
Tow   
2013-01-20 20:30   
Please try r3112.
(0003299)
AlexVinS   
2013-01-21 20:12   
Thanks. This is fixed, but there are more crashes ...
(0003300)
Tow   
2013-01-21 20:19   
That's what happens when I'm not around! :P

Just keep reporting them, and we'll fix them one by one. :)