MantisBT - VCMI
View Issue Details
0000928VCMIOtherpublic2012-04-12 12:212014-05-30 17:41
q4a 
Tow 
normalcrashalways
closedfixed 
x86WindowsXP SP3
0.88 
 
0000928: Crash on AI turn
Tested on r2622 with attached save game.
VS point the failed assertion to:
E:\game\vcmi\lib\CObjectHandler.cpp:
        if((defInfo->visitMap[5-y] >> x) & 1)

Call stack:

> VCMI_lib.dll!CGObjectInstance::getVisitableOffset() Line 413 + 0xe bytes C++
     VCMI_lib.dll!CGObjectInstance::visitablePos() Line 496 + 0xf bytes C++
     VCAI.dll!VCAI::wander(const CGHeroInstance * h) Line 1201 + 0x15 bytes C++
     VCAI.dll!VCAI::performTypicalActions() Line 1741 C++
     VCAI.dll!VCAI::tryRealize(CGoal g) Line 1602 C++
     VCAI.dll!VCAI::striveToGoal(const CGoal & ultimateGoal) Line 1700 C++
     VCAI.dll!VCAI::makeTurnInternal() Line 943 + 0x32 bytes C++
     VCAI.dll!VCAI::makeTurn() Line 923 C++
     VCAI.dll!boost::_mfi::mf0<void,VCAI>::operator()(VCAI * p) Line 49 + 0x12 bytes C++
     VCAI.dll!boost::_bi::list1<boost::_bi::value<VCAI *> >::operator()<boost::_mfi::mf0<void,VCAI>,boost::_bi::list0>(boost::_bi::type<void> __formal, boost::_mfi::mf0<void,VCAI> & f, boost::_bi::list0 & a, boost::_bi::type<void> __formal) Line 254 C++
     VCAI.dll!boost::_bi::bind_t<void,boost::_mfi::mf0<void,VCAI>,boost::_bi::list1<boost::_bi::value<VCAI *> > >::operator()() Line 21 C++
     VCAI.dll!boost::detail::thread_data<boost::_bi::bind_t<void,boost::_mfi::mf0<void,VCAI>,boost::_bi::list1<boost::_bi::value<VCAI *> > > >::run() Line 62 C++
     VCAI.dll!boost::`anonymous namespace'::thread_start_function(void * param) Line 177 C++
     msvcr100d.dll!_callthreadstartex() Line 314 + 0xf bytes C
     msvcr100d.dll!_threadstartex(void * ptd) Line 297 C
     kernel32.dll!7c80b729()
     [Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]
Load attached save game (homm3 map "Serpents Treasure.h3m")
Click "End Turn".
Crash happen on Red AI turn.
Log files attached. Console output:
CStupidAI [0F493868]: battleAttack called
CStupidAI [0F2F4EF0]: battleAttack called
CStupidAI [0F493868]: battleStacksAttacked called
CStupidAI [0F2F4EF0]: battleStacksAttacked called
CStupidAI [0F493868]: actionFinished called
CStupidAI [0F2F4EF0]: actionFinished called
                Player 0: I won the battle of Cyra attacking Monster at 22 0 0!
CStupidAI [0F493868]: battleEnd called
CStupidAI [0F493868]: destroyed
CStupidAI [0F2F4EF0]: battleEnd called
Warning: an orphaned child!
                Hero Cyra moved from 17 3 0 to 21 0 0
                Hero Cyra apparently used all MPs (0 left)
No tags attached.
7z save.7z (140,886) 2012-04-12 12:21
https://bugs.vcmi.eu/file_download.php?file_id=903&type=bug
7z log.7z (15,724) 2012-04-12 12:23
https://bugs.vcmi.eu/file_download.php?file_id=904&type=bug
png e2.png (38,765) 2012-04-12 12:24
https://bugs.vcmi.eu/file_download.php?file_id=905&type=bug
png
Issue History
2012-04-12 12:21q4aNew Issue
2012-04-12 12:21q4aFile Added: save.7z
2012-04-12 12:23q4aFile Added: log.7z
2012-04-12 12:24q4aFile Added: e2.png
2012-04-12 12:25q4aNote Added: 0002364
2012-04-14 08:04TowAssigned To => Tow
2012-04-14 08:04TowStatusnew => confirmed
2012-04-17 15:03TowNote Added: 0002373
2012-04-17 15:03TowStatusconfirmed => resolved
2012-04-17 15:03TowResolutionopen => fixed
2014-05-30 17:41beegeeStatusresolved => closed

Notes
(0002364)
q4a   
2012-04-12 12:25   
Edit:
VS point the failed assertion to:
E:\game\vcmi\lib\CObjectHandler.cpp:431
(0002373)
Tow   
2012-04-17 15:03   
Fixed in r2629.