Anonymous | Login | 2024-11-21 14:57 UTC |
My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0000985 | VCMI | Mechanics - Other | public | 2012-05-31 19:29 | 2014-05-30 17:41 | ||||
Reporter | douggie_m | ||||||||
Assigned To | Tow | ||||||||
Priority | normal | Severity | minor | Reproducibility | sometimes | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | 0.89 | |||||||
Summary | 0000985: AI got case EXPLORE -- assert(0); //this goal is not elementar! | ||||||||
Description | Clien crashes with: vcmiclient: VCAI.cpp:1719: void VCAI::tryRealize(CGoal): Assertion `0' failed. Aborted. | ||||||||
Steps To Reproduce | Play some level, and you'll get this at some turn. | ||||||||
Additional Information | I met it before, with r2709: http://bugs.vcmi.eu/view.php?id=966#c2559 [^] | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | failjustendturn.vcgm1 [^] (63 bytes) 2012-05-31 19:52 failjustendturn.vlgm1 [^] (941,612 bytes) 2012-05-31 19:53 failjustendturn.vsgm1 [^] (37 bytes) 2012-05-31 19:53 | ||||||||
Notes | |
(0002588) douggie_m (reporter) 2012-05-31 19:35 |
Oops, again. Looking for an another place for exploration... Time of looking for new exploration point was 720 ms. Time of Evaluating exploration possibilities was 720 ms. Attempting realizing goal with code EXPLORE vcmiclient: VCAI.cpp:1719: void VCAI::tryRealize(CGoal): Assertion `0' failed. Program received signal SIGABRT, Aborted. [Switching to Thread 0xec425450 (LWP 20601)] 0x0de5f98c in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) bt #0 0x0de5f98c in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #1 0x0de65040 in *__GI_abort () at abort.c:92 0000002 0x0de56af0 in *__GI___assert_fail (assertion=0xc24000c "0", file=0xc23fa20 "VCAI.cpp", line=1719, function=0xc242f2c "void VCAI::tryRealize(CGoal)") at assert.c:81 0000003 0x0c12eae4 in VCAI::tryRealize (this=0xe80006d0, g=...) at VCAI.cpp:1719 0000004 0x0c130758 in VCAI::striveToGoal (this=0xe80006d0, ultimateGoal=...) at VCAI.cpp:1987 0000005 0x0c127588 in VCAI::makeTurnInternal (this=0xe80006d0) at VCAI.cpp:981 0000006 0x0c126e0c in VCAI::makeTurn (this=0xe80006d0) at VCAI.cpp:952 0000007 0x0c1d5e60 in boost::_mfi::mf0<void, VCAI>::operator() (this=0x11d201f4, p=0xe80006d0) at /usr/include/boost/bind/mem_fn_template.hpp:49 0000008 0x0c1d5d1c in boost::_bi::list1<boost::_bi::value<VCAI*> >::operator()<boost::_mfi::mf0<void, VCAI>, boost::_bi::list0> (this=0x11d201fc, f=..., a=...) at /usr/include/boost/bind/bind.hpp:253 0000009 0x0c1d5c84 in boost::_bi::bind_t<void, boost::_mfi::mf0<void, VCAI>, boost::_bi::list1<boost::_bi::value<VCAI*> > >::operator() ( this=0x11d201f4) at /usr/include/boost/bind/bind_template.hpp:20 0000010 0x0c1d4104 in boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, VCAI>, boost::_bi::list1<boost::_bi::value<VCAI*> > > >::run (this=0x11d200f0) at /usr/include/boost/thread/detail/thread.hpp:62 0000011 0x0e46c40c in ?? () from /usr/lib/libboost_thread.so.1.49.0 0000012 0x0ddf37b0 in start_thread (arg=<optimized out>) at pthread_create.c:306 0000013 0x0df19b10 in clone () at ../sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S:123 |
(0002589) douggie_m (reporter) 2012-05-31 19:40 |
Full AI turn log from stdout: Player 2 starting turn Striving to goal of type WIN Considering goal WIN Considering goal CONQUER Considering goal EXPLORE Choosing abstract goal 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 640 ms. Time of Evaluating exploration possibilities was 660 ms. Time of looking for best exploration neighbour was 20 ms. Attempting realizing goal with code VISIT TILE Hero Oris moved from 57 24 1 to 56 24 1 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 700 ms. Time of Evaluating exploration possibilities was 680 ms. Time of looking for best exploration neighbour was 20 ms. Attempting realizing goal with code VISIT TILE Hero Oris moved from 56 24 1 to 55 24 1 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 660 ms. Time of Evaluating exploration possibilities was 680 ms. 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 660 ms. Time of Evaluating exploration possibilities was 700 ms. 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 660 ms. Time of Evaluating exploration possibilities was 660 ms. Time of looking for best exploration neighbour was 20 ms. Looking for an another place for exploration... Time of looking for new exploration point was 640 ms. Time of Evaluating exploration possibilities was 680 ms. 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 660 ms. Time of Evaluating exploration possibilities was 640 ms. 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 660 ms. Time of Evaluating exploration possibilities was 680 ms. 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 660 ms. Time of Evaluating exploration possibilities was 660 ms. Time of looking for best exploration neighbour was 20 ms. Looking for an another place for exploration... Time of looking for new exploration point was 660 ms. Time of Evaluating exploration possibilities was 660 ms. Time of looking for best exploration neighbour was 20 ms. Looking for an another place for exploration... Time of looking for new exploration point was 640 ms. Time of Evaluating exploration possibilities was 680 ms. 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 640 ms. Time of Evaluating exploration possibilities was 680 ms. Attempting realizing goal with code EXPLORE vcmiclient: VCAI.cpp:1719: void VCAI::tryRealize(CGoal): Assertion `0' failed. Aborted |
(0002590) Warmonger (administrator) 2012-05-31 19:41 |
Certainly it shouldn't happen, but also never happened for me and I tested AI quite a lot. Do you have any specific map / scenario for that issue? |
(0002591) douggie_m (reporter) 2012-05-31 19:47 |
@Warmonger: it is All for one.h3m, saved game will follow (just end turn to get it). |
(0002592) douggie_m (reporter) 2012-05-31 19:54 |
Well, there're actually 3 files... I hope you know where to place them to get them to be loaded and so (I got it from ~/.vcmi/Games/) |
(0002594) Tow (developer) 2012-06-01 16:15 |
Fixed in r2736. Also added provisional support for loading games saved with other-endian build. |
(0002602) douggie_m (reporter) 2012-06-04 16:38 |
> Also added provisional support for loading games saved with other-endian build. Great, but... Now I'm getting on "Load game" --> "Single scenario": Initialization of VCMI (together): 1360 Warning: object already assigned to this parent! [New Thread 0xf2d0c450 (LWP 12554)] Warning: object already assigned to this parent! Warning: object already has parent! Warning: object already has parent! Error: Too new file format! (file /root/.vcmi/Games/Autosave_5.vlgm1 ) Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xf2d0c450 (LWP 12554)] 0x0e15c938 in std::istream::read(char*, int) () from /usr/lib/powerpc-linux-gnu/libstdc++.so.6 (gdb) bt #0 0x0e15c938 in std::istream::read(char*, int) () from /usr/lib/powerpc-linux-gnu/libstdc++.so.6 #1 0x0fc47264 in CLoadFile::read (this=0xf2d0b438, data=0xf2d0b430, size=1) at Connection.cpp:305 0000002 0x10199750 in loadPrimitive<unsigned char> (data=@0xf2d0b430: 242 '\362', this=0xf2d0b438) at ../lib/Connection.h:766 0000003 invoke (data=@0xf2d0b430: 242 '\362', s=...) at ../lib/Connection.h:140 0000004 load<unsigned char> (data=@0xf2d0b430: 242 '\362', this=<optimized out>) at ../lib/Connection.h:758 0000005 operator>><unsigned char> (t=@0xf2d0b430: 242 '\362', this=<optimized out>) at ../lib/Connection.h:725 0000006 loadArray<unsigned char [8]> (data=..., this=<optimized out>) at ../lib/Connection.h:791 0000007 invoke (s=..., data=...) at ../lib/Connection.h:172 0000008 load<unsigned char [8]> (data=..., this=<optimized out>) at ../lib/Connection.h:758 0000009 operator>><unsigned char [8]> (t=..., this=<optimized out>) at ../lib/Connection.h:725 0000010 SelectionTab::parseGames (this=0x10453520, files=..., multi=<optimized out>) at CPreGame.cpp:1071 0000011 0x1019cc94 in SelectionTab::SelectionTab(CMenuScreen::EState, const boost::function<void(CMapInfo*)> &, CMenuScreen::EMultiMode) ( this=0x10453520, Type=<optimized out>, OnSelect=..., MultiPlayer=CMenuScreen::SINGLE_PLAYER) at CPreGame.cpp:1149 0000012 0x1019da70 in CSelectionScreen::CSelectionScreen (this=0x105d5c20, Type=CMenuScreen::loadGame, MultiPlayer=<optimized out>, Names=<optimized out>) at CPreGame.cpp:604 0000013 0x1019fa48 in CGPreGame::openSel (this=<optimized out>, screenType=<optimized out>, multi=<optimized out>) at CPreGame.cpp:451 0000014 0x1019fc6c in operator() (a2=<optimized out>, a1=<optimized out>, p=<optimized out>, this=<optimized out>) at /usr/include/boost/bind/mem_fn_template.hpp:280 0000015 operator()<boost::_mfi::mf2<void, CGPreGame, CMenuScreen::EState, CMenuScreen::EMultiMode>, boost::_bi::list0> (f=..., this=<optimized out>, a=...) at /usr/include/boost/bind/bind.hpp:392 0000016 operator() (this=<optimized out>) at /usr/include/boost/bind/bind_template.hpp:20 0000017 boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<void, boost::_mfi::mf2<void, CGPreGame, CMenuScreen::EState, CMenuScreen::EMultiMode>, boost::_bi::list3<boost::_bi::value<CGPreGame*>, boost::_bi::value<CMenuScreen::EState>, boost::_bi::value<CMenuScreen::EMultiMode> > >, void>::invoke (function_obj_ptr=...) at /usr/include/boost/function/function_template.hpp:153 0000018 0x10095674 in operator() (this=<optimized out>) at /usr/include/boost/function/function_template.hpp:760 0000019 CFunctionList<void ()>::operator()() const (this=<optimized out>) at ./UIFramework/../FunctionList.h:62 0000020 0x1008e450 in CAdventureMapButton::clickLeft (this=0x1044d860, down=..., previousState=<optimized out>) at ./UIFramework/CIntObjectClasses.cpp:309 0000021 0x100839c8 in CGuiHandler::handleEvent (this=0x102d1988, sEvent=0xe9e101a0) at ./UIFramework/CGuiHandler.cpp:255 0000022 0x10083e4c in CGuiHandler::handleEvents (this=0x102d1988) at ./UIFramework/CGuiHandler.cpp:147 0000023 0x10183f58 in CGPreGame::update (this=0x10391888) at CPreGame.cpp:491 0000024 0x10083058 in CGuiHandler::run (this=0x102d1988) at ./UIFramework/CGuiHandler.cpp:356 0000025 0x1014bf10 in operator() (t=..., this=<optimized out>) at /usr/include/boost/bind/mem_fn_template.hpp:70 0000026 operator()<boost::_mfi::mf0<void, CGuiHandler>, boost::_bi::list0> (f=..., this=<optimized out>, a=...) at /usr/include/boost/bind/bind.hpp:253 0000027 operator() (this=<optimized out>) at /usr/include/boost/bind/bind_template.hpp:20 0000028 boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, CGuiHandler>, boost::_bi::list1<boost::reference_wrapper<CGuiHandler> > > >::run (this=<optimized out>) at /usr/include/boost/thread/detail/thread.hpp:62 0000029 0x0e46c40c in ?? () from /usr/lib/libboost_thread.so.1.49.0 0000030 0x0ddf37b0 in start_thread (arg=<optimized out>) at pthread_create.c:306 0000031 0x0df19b10 in clone () at ../sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S:123 |
(0002603) douggie_m (reporter) 2012-06-04 16:51 edited on: 2012-06-04 16:53 |
I removed old ~/.vcmi/Games directory, but still cannot begin a new game: ---------- Initializing game graphics: 0 Message handler: 0 Initialization of VCMI (together): 1140 Warning: object already assigned to this parent! Warning: object already assigned to this parent! Warning: object already has parent! Warning: object already has parent! Establishing connection... Found endpoints: 0: 127.0.0.1:3030 Trying connection to 127.0.0.1:3030 (0) Established connection with VCMI 0.88b (server) Gamestate: 0 Server opened map properly. ---------- It is after I click "New Game" --> "Single scenario". It hangs forever after that, client is killable only via kill -9. Shall I report new bug? |
(0002604) Warmonger (administrator) 2012-06-04 16:53 |
Could you please keep the issue entries on-topic? It has nothing to do with AI now. |
(0002605) douggie_m (reporter) 2012-06-04 16:54 |
@Warmonger > Could you please keep the issue entries on-topic? It has nothing to do with AI now. Okay. So it is new bug. I posted it here because I cannot test was AI bug fixed or not now. |
Issue History | |||
Date Modified | Username | Field | Change |
2012-05-31 19:29 | douggie_m | New Issue | |
2012-05-31 19:35 | douggie_m | Note Added: 0002588 | |
2012-05-31 19:40 | douggie_m | Note Added: 0002589 | |
2012-05-31 19:41 | Warmonger | Note Added: 0002590 | |
2012-05-31 19:47 | douggie_m | Note Added: 0002591 | |
2012-05-31 19:52 | douggie_m | File Added: failjustendturn.vcgm1 | |
2012-05-31 19:53 | douggie_m | File Added: failjustendturn.vlgm1 | |
2012-05-31 19:53 | douggie_m | File Added: failjustendturn.vsgm1 | |
2012-05-31 19:54 | douggie_m | Note Added: 0002592 | |
2012-06-01 16:15 | Tow | Note Added: 0002594 | |
2012-06-01 16:15 | Tow | Status | new => resolved |
2012-06-01 16:15 | Tow | Fixed in Version | => 0.89 |
2012-06-01 16:15 | Tow | Resolution | open => fixed |
2012-06-01 16:15 | Tow | Assigned To | => Tow |
2012-06-01 16:17 | Tow | Relationship added | related to 0000937 |
2012-06-04 16:38 | douggie_m | Note Added: 0002602 | |
2012-06-04 16:51 | douggie_m | Note Added: 0002603 | |
2012-06-04 16:51 | douggie_m | Status | resolved => feedback |
2012-06-04 16:51 | douggie_m | Resolution | fixed => reopened |
2012-06-04 16:53 | Warmonger | Note Added: 0002604 | |
2012-06-04 16:53 | douggie_m | Note Edited: 0002603 | View Revisions |
2012-06-04 16:54 | Warmonger | Status | feedback => resolved |
2012-06-04 16:54 | Warmonger | Resolution | reopened => fixed |
2012-06-04 16:54 | douggie_m | Note Added: 0002605 | |
2014-05-30 17:41 | beegee | Status | resolved => closed |
Copyright © 2000 - 2024 MantisBT Team |