MantisBT - VCMI
View Issue Details
0001864VCMIAI - Adventure Mappublic2014-07-28 21:032018-11-07 06:46
Lullu 
Warmonger 
normalcrashalways
closednot fixable 
LinuxManjaro0.8.10
 
1.next 
0001864: game crash at AI's turn
the game keeps crashing when the AI has its turn. this is a medium map with only 1 AI.
the ending code from terminal where the game is launched:

Opening StupidAI
Loaded Stupid AI 0.1
Loaded client part of save 29
Waiting for server: 1
Establishing connection...
Found endpoints:
    0: 127.0.0.1:3030
Trying connection to 127.0.0.1:3030 (0)
Established connection with VCMI 0.96 (server)
    Connecting to the server: 1
Server opened savegame properly.
Sent info to server: 2
Warning: IntObject re-activated with mismatching used and active
Player 1 starting turn
Our heroes don't move anymore, exhaustive decomposition failed
Opening StupidAI
Loaded Stupid AI 0.1
Error: server failed to close correctly or crashed!
Check /home/lullu/.cache/vcmi/server_log.txt for more info
Warning: an orphaned child!
Lost connection to server, ending listening thread!
boost: mutex lock failed in pthread_mutex_lock: Invalid argument
Something wrong, lost connection while game is still ongoing...
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::lock_error> >'
  what(): boost: mutex lock failed in pthread_mutex_lock: Invalid argument
Aborted
load the last saved game.
please answer if it is the wrong information that is provided.
No tags attached.
txt VCMI_Server_log.txt (357,884) 2014-07-28 21:03
https://bugs.vcmi.eu/file_download.php?file_id=1870&type=bug
? .dmrc (46) 2014-07-29 11:09
https://bugs.vcmi.eu/file_download.php?file_id=1871&type=bug
? kage2.vcgm1 (2,506,826) 2014-07-29 14:09
https://bugs.vcmi.eu/file_download.php?file_id=1872&type=bug
Issue History
2014-07-28 21:03LulluNew Issue
2014-07-28 21:03LulluStatusnew => assigned
2014-07-28 21:03LulluAssigned To => Tow
2014-07-28 21:03LulluFile Added: VCMI_Server_log.txt
2014-07-29 08:27WarmongerNote Added: 0004876
2014-07-29 08:28WarmongerNote Edited: 0004876bug_revision_view_page.php?bugnote_id=4876#r2610
2014-07-29 11:09LulluNote Added: 0004877
2014-07-29 11:09LulluFile Added: .dmrc
2014-07-29 11:48LulluNote Added: 0004878
2014-07-29 11:55LulluNote Added: 0004879
2014-07-29 14:09LulluFile Added: kage2.vcgm1
2018-11-06 14:44PovelitelNote Added: 0007678
2018-11-06 14:44PovelitelStatusassigned => resolved
2018-11-06 14:44PovelitelFixed in Version => 1.next
2018-11-06 14:44PovelitelResolutionopen => fixed
2018-11-06 14:44PovelitelAssigned ToTow => Warmonger
2018-11-07 06:46AVSNote Added: 0007685
2018-11-07 06:46AVSStatusresolved => closed
2018-11-07 06:46AVSResolutionfixed => not fixable

Notes
(0004876)
Warmonger   
2014-07-29 08:27   
(edited on: 2014-07-29 08:28)
Please enable AI trace mod and post the result. You cna also watch AI with vcmieagles cheat.

(0004877)
Lullu   
2014-07-29 11:09   
I have made a quick video showing the AI move.
I have also enabled AI trace, where is the AI trace file located?
(0004878)
Lullu   
2014-07-29 11:48   
Opening StupidAI
Loaded Stupid AI 0.1
Loaded client part of save 31
Waiting for server: 1
Establishing connection...
Found endpoints:
    0: 127.0.0.1:3030
Trying connection to 127.0.0.1:3030 (0)
Established connection with VCMI 0.96 (server)
    Connecting to the server: 1
Server opened savegame properly.
Sent info to server: 2
Warning: IntObject re-activated with mismatching used and active
Player 1 starting turn
Striving to goal of type WIN
Considering goal WIN
Considering goal INVALID
Trying to realize INVALID (value -10000000000.000)
Failed to realize subgoal of type INVALID (greater goal type was WIN), I will stop.
The error message was: I don't know how to fulfill this!
Our heroes don't move anymore, exhaustive decomposition failed
Striving to goal of type BUILD
Considering goal BUILD
Trying to realize BUILD (value 1.000)
Looking into Tirith
Failed to realize subgoal of type BUILD (greater goal type was BUILD), I will stop.
The error message was: BUILD has been realized as much as possible.
Looking into Melodia, MP=1500
Of all 1 destinations, object oid=439 seems nice
Melodia will try to visit Marletto Tower at (48 8 0)
Moving hero Melodia to tile 48 8 0
Hero Melodia moved from 48 10 0 to 48 8 0. Returning 1.
Of all 13 destinations, object oid=438 seems nice
Melodia will try to visit Oasis at (45 9 0)
Moving hero Melodia to tile 45 9 0
Hero Melodia moved from 48 8 0 to 45 9 0. Returning 1.
Of all 12 destinations, object oid=574 seems nice
Melodia will try to visit Golem Factory at (39 8 0)
Moving hero Melodia to tile 39 8 0
Adding query 16 - Blocking dialog query with 0 components - Much to your dismay, the Golem Factory is guarded by several Diamond Golems.

Do you wish to fight the guards?. Total queries count: 1
I'll answer the query 16 giving the choice 1
Attempted answering query 16 - Blocking dialog query with 0 components - Much to your dismay, the Golem Factory is guarded by several Diamond Golems.

Do you wish to fight the guards?. Request id=66. Waiting for results...
Opening StupidAI
Loaded Stupid AI 0.1
Removing query 16 - Blocking dialog query with 0 components - Much to your dismay, the Golem Factory is guarded by several Diamond Golems.

Do you wish to fight the guards?. Total queries count: 0
Error: server failed to close correctly or crashed!
Check /home/lullu/.cache/vcmi/server_log.txt for more info
Player 1: I won the Starting battle of Melodia attacking Melodia the Druid at 39 8 0!
Warning: an orphaned child!
Lost connection to server, ending listening thread!
boost: mutex lock failed in pthread_mutex_lock: Invalid argument
Something wrong, lost connection while game is still ongoing...
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::lock_error> >'
  what(): boost: mutex lock failed in pthread_mutex_lock: Invalid argument
Aborted
(0004879)
Lullu   
2014-07-29 11:55   
i uploaded the .dmrc file by fault. and apparently I can't make a video with file size under 5mb.

But the game crashes when AI goes into a Golem Factory.

Hope you can use the info :)
(0007678)
Povelitel   
2018-11-06 14:44   
It is ticket is very old. And it can not be reproducibility. I think it's better to close
(0007685)
AVS   
2018-11-07 06:46   
@Povelitel please do not set "fixed" resolution if bug was not actually fixed.