MantisBT - VCMI
View Issue Details
0001011VCMIAI - Adventure Mappublic2012-06-16 18:112012-06-23 15:55
topas 
Tow 
normalminorN/A
closedduplicate 
i386LinuxUbuntu 11.04
0.89 
 
0001011: The computer goes into an infinite loop
AI/VCAI/VCAI.cpp:1602

Assertation
Click end turn in save game
No tags attached.
duplicate of 0001008closed Tow Crash while ending turn 
tar test.tar (3,041,280) 2012-06-16 18:11
https://bugs.vcmi.eu/file_download.php?file_id=984&type=bug
bz2 ohmeow.savegame.tar.bz2 (143,713) 2012-06-18 18:08
https://bugs.vcmi.eu/file_download.php?file_id=987&type=bug
Issue History
2012-06-16 18:11topasNew Issue
2012-06-16 18:11topasStatusnew => assigned
2012-06-16 18:11topasAssigned To => Tow
2012-06-16 18:11topasFile Added: test.tar
2012-06-16 18:16topasNote Added: 0002734
2012-06-16 19:56topasNote Edited: 0002734bug_revision_view_page.php?bugnote_id=2734#r1749
2012-06-18 17:43douggie_mNote Added: 0002750
2012-06-18 17:44douggie_mNote Edited: 0002750bug_revision_view_page.php?bugnote_id=2750#r1751
2012-06-18 18:03douggie_mNote Added: 0002751
2012-06-18 18:03douggie_mNote Edited: 0002751bug_revision_view_page.php?bugnote_id=2751#r1755
2012-06-18 18:06douggie_mNote Edited: 0002751bug_revision_view_page.php?bugnote_id=2751#r1756
2012-06-18 18:08douggie_mFile Added: ohmeow.savegame.tar.bz2
2012-06-23 15:54IvanRelationship addedduplicate of 0001008
2012-06-23 15:55IvanNote Added: 0002765
2012-06-23 15:55IvanStatusassigned => closed
2012-06-23 15:55IvanResolutionopen => duplicate

Notes
(0002734)
topas   
2012-06-16 18:16   
(edited on: 2012-06-16 19:56)
vcmiclient: VCAI.cpp:1602: bool VCAI::moveHeroToTile(int3, const CGHeroInstance*): Assertion `cb->getVisitableObjs(dst).size() > 1' failed.

(0002750)
douggie_m   
2012-06-18 17:43   
(edited on: 2012-06-18 17:44)
Your uploaded game is not readable. It is not on the list of saved games when I put it into ~/.vcmi/Games/

UPD: Of course, I did extracted it via `tar xf'. And even tried to rename.

# xxd aaaaa.vlgm1 | head
0000000: 5643 4d49 dc02 0000 5643 4d49 5356 4700 VCMI....VCMISVG.
0000010: 3300 0000 0500 0000 4861 766f 63be 0000 3.......Havoc...
0000020: 0020 caee e3e4 e02d f2ee 20e2 e5eb e8ea . .....-.. .....
0000030: e0ff 20f1 f2f0 e0ed e020 f0e0 e7e4 e5eb .. ...... ......
0000040: e8eb e0f1 fc20 ede0 20e2 eee5 f1ec fc20 ..... .. ......
0000050: ede5 e1ee ebfc f8e8 f520 e3ee f1f3 e4e0 ......... ......
0000060: f0f1 f2e2 2e20 d2e5 efe5 f0fc 20fd f2e8 ..... ...... ...
0000070: 20e3 eef1 f3e4 e0f0 f1f2 e2e0 20e3 eef2 ........... ...
0000080: eee2 fff2 f1ff 20ea 20e2 e5eb e8ea eee9 ...... . .......
0000090: 20e2 eee9 ede5 2c0a 20e4 ebff 20f2 eee3 .....,. ... ...

(0002751)
douggie_m   
2012-06-18 18:03   
(edited on: 2012-06-18 18:06)
Heh, unfortunatelly (?), I got it too. With "original genuine" map.

----------------------------------------
...
        Decomposing goal of type EXPLORE
        Decomposing goal of type VISIT TILE
        Attempting realizing goal with code VISIT TILE
        Hero Fiona moved from 70 23 1 to 70 23 1
        Decomposing goal of type EXPLORE
                Time of looking for best exploration neighbour was 0 ms.
                Looking for an another place for exploration...
                Time of looking for new exploration point was 480 ms.
        Decomposing goal of type VISIT TILE
        Attempting realizing goal with code VISIT TILE
vcmiclient: VCAI.cpp:1602: bool VCAI::moveHeroToTile(int3, const CGHeroInstance*): Assertion `cb->getVisitableObjs(dst).size() > 1' failed.
Aborted
----------------------------------------

100% reproducible on my side (can upload a savegame). GDB backtrace:

----------------------------------------
        Attempting realizing goal with code BUILD
        Looking into Malev
const TerrainTile* CGameInfoCallback::getTile(int3, bool) const: -1 -1 -1 is not visible!
        Looking into Malekith, MP=1560
                Malekith will try to visit Gold at (69 41 1)
                Hero Malekith moved from 66 44 1 to 68 42 1

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xecd09450 (LWP 18091)]
0x0f9057e0 in ArmyDescriptor::getStrength() const () from /usr/lib/vcmi/libvcmi.so.0
(gdb) bt
#0 0x0f9057e0 in ArmyDescriptor::getStrength() const () from /usr/lib/vcmi/libvcmi.so.0
#1 0x0c113d30 in evaluateDanger(CGObjectInstance const*) () from /usr/lib/vcmi/AI/libVCAI.so
0000002 0x0c1138fc in evaluateDanger(int3 const&, CGHeroInstance const*) () from /usr/lib/vcmi/AI/libVCAI.so
0000003 0x0c11acd8 in isSafeToVisit(CGHeroInstance const*, int3 const&) () from /usr/lib/vcmi/AI/libVCAI.so
0000004 0x0c11b2e0 in VCAI::getPossibleDestinations(CGHeroInstance const*)::{lambda(CGObjectInstance const*)#1}::operator()(CGObjectInstance const*) const ()
   from /usr/lib/vcmi/AI/libVCAI.so
0000005 0x0c12e718 in __gnu_cxx::__normal_iterator<CGObjectInstance const**, std::vector<CGObjectInstance const*, std::allocator<CGObjectInstance const*> > > std::remove_if<__gnu_cxx::__normal_iterator<CGObjectInstance const**, std::vector<CGObjectInstance const*, std::allocator<CGObjectInstance const*> > >, VCAI::getPossibleDestinations(CGHeroInstance const*)::{lambda(CGObjectInstance const*)#1}>(VCAI::getPossibleDestinations(CGHeroInstance const*)::{lambda(CGObjectInstance const*)#1}, VCAI::getPossibleDestinations(CGHeroInstance const*)::{lambda(CGObjectInstance const*)#1}, VCAI::getPossibleDestinations(CGHeroInstance const*)::{lambda(CGObjectInstance const*)#1}) ()
   from /usr/lib/vcmi/AI/libVCAI.so
0000006 0x0c12d160 in boost::range_iterator<std::vector<CGObjectInstance const*, std::allocator<CGObjectInstance const*> > >::type boost::range::remove_if<std::vector<CGObjectInstance const*, std::allocator<CGObjectInstance const*> >, VCAI::getPossibleDestinations(CGHeroInstance const*)::{lambda(CGObjectInstance const*)#1}>(boost::range_iterator&, VCAI::getPossibleDestinations(CGHeroInstance const*)::{lambda(CGObjectInstance const*)#1}) () from /usr/lib/vcmi/AI/libVCAI.so
0000007 0x0c11b190 in VCAI::getPossibleDestinations(CGHeroInstance const*) () from /usr/lib/vcmi/AI/libVCAI.so
0000008 0x0c11b6a4 in VCAI::wander(CGHeroInstance const*) () from /usr/lib/vcmi/AI/libVCAI.so
0000009 0x0c122a58 in VCAI::performTypicalActions() () from /usr/lib/vcmi/AI/libVCAI.so
0000010 0x0c1205d0 in VCAI::tryRealize(CGoal) () from /usr/lib/vcmi/AI/libVCAI.so
0000011 0x0c121640 in VCAI::striveToGoal(CGoal const&) () from /usr/lib/vcmi/AI/libVCAI.so
0000012 0x0c1188f8 in VCAI::makeTurnInternal() () from /usr/lib/vcmi/AI/libVCAI.so
0000013 0x0c117e10 in VCAI::makeTurn() () from /usr/lib/vcmi/AI/libVCAI.so
0000014 0x0c1c6e68 in boost::_mfi::mf0<void, VCAI>::operator()(VCAI*) const () from /usr/lib/vcmi/AI/libVCAI.so
0000015 0x0c1c6d24 in void boost::_bi::list1<boost::_bi::value<VCAI*> >::operator()<boost::_mfi::mf0<void, VCAI>, boost::_bi::list0>(boost::_bi::type<void>, boost::_mfi::mf0<void, VCAI>&, boost::_bi::list0&, int) () from /usr/lib/vcmi/AI/libVCAI.so
0000016 0x0c1c6c8c in boost::_bi::bind_t<void, boost::_mfi::mf0<void, VCAI>, boost::_bi::list1<boost::_bi::value<VCAI*> > >::operator()() () from /usr/lib/vcmi/AI/libVCAI.so
0000017 0x0c1c510c in boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, VCAI>, boost::_bi::list1<boost::_bi::value<VCAI*> > > >::run() ()
   from /usr/lib/vcmi/AI/libVCAI.so
0000018 0x0e47340c in ?? () from /usr/lib/libboost_thread.so.1.49.0
0000019 0x0ddfa7b0 in start_thread (arg=<optimized out>) at pthread_create.c:306
0000020 0x0df20930 in clone () at ../sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S:123
(gdb)
----------------------------------------

UPD: I'm now on Revision 2761

UPD2: \r issue. What the hell? Why? I just named it "ohmeow", w/o '\r' ($0D, I suppose).

# tar cjfv ohmeow.savegame.tar.bz2 ohmeow^M.*
ohmeow\r.vcgm1
ohmeow\r.vlgm1
ohmeow\r.vsgm1

(0002765)
Ivan   
2012-06-23 15:55   
Closing duplicates