MantisBT - VCMI
View Issue Details
0002375VCMIAI - Adventure Mappublic2016-01-14 20:012022-03-21 18:01
misiokles 
Nullkiller 
normalcrashrandom
assignedopen 
PCWindows10
0.98f 
 
0002375: Crash during AI turn
During AI turn, after AI's victourious battle, there's random crash.
Used mods: Forgotten Tales (Bastion) and Axolotl Creature Pack.
R1
? Autosave_4.vcgm1 (2,872,611) 2016-01-15 06:30
https://bugs.vcmi.eu/file_download.php?file_id=2423&type=bug
? Autosave_4.vsgm1 (2,866,015) 2016-01-15 06:31
https://bugs.vcmi.eu/file_download.php?file_id=2424&type=bug
Issue History
2016-01-14 20:01misioklesNew Issue
2016-01-14 20:01misioklesStatusnew => assigned
2016-01-14 20:01misioklesAssigned To => Warmonger
2016-01-14 20:04misioklesNote Added: 0006277
2016-01-14 20:49SXXNote Added: 0006278
2016-01-14 20:51SXXNote Edited: 0006278bug_revision_view_page.php?bugnote_id=6278#r3132
2016-01-15 04:19SXXAssigned ToWarmonger => SXX
2016-01-15 04:19SXXStatusassigned => feedback
2016-01-15 06:30misioklesFile Added: Autosave_4.vcgm1
2016-01-15 06:31misioklesFile Added: Autosave_4.vsgm1
2016-01-15 06:34misioklesNote Added: 0006280
2016-01-15 06:34misioklesStatusfeedback => assigned
2016-01-15 14:23SXXNote Added: 0006282
2016-01-15 18:24misioklesNote Added: 0006286
2016-01-15 19:56SXXNote Added: 0006287
2016-01-15 19:57SXXNote Edited: 0006287bug_revision_view_page.php?bugnote_id=6287#r3134
2016-01-15 20:16SXXNote Edited: 0006287bug_revision_view_page.php?bugnote_id=6287#r3135
2016-01-15 21:19misioklesNote Added: 0006288
2016-01-15 22:08SXXNote Added: 0006290
2016-01-15 22:09SXXNote Added: 0006291
2016-01-15 22:35SXXNote Added: 0006292
2016-01-15 22:45SXXNote Edited: 0006292bug_revision_view_page.php?bugnote_id=6292#r3137
2016-01-16 08:51misioklesNote Added: 0006295
2016-01-16 13:22SXXNote Added: 0006296
2016-01-16 13:23SXXNote Edited: 0006296bug_revision_view_page.php?bugnote_id=6296#r3139
2016-01-18 20:55misioklesNote Added: 0006307
2016-01-18 20:59SXXNote Added: 0006308
2022-03-21 18:01PovelitelTag Attached: R1
2022-03-21 18:01PovelitelAssigned ToSXX => Nullkiller

Notes
(0006277)
misiokles   
2016-01-14 20:04   
Link to crash_infos.dmp files (over 5 MB)
http://www102.zippyshare.com/v/nFerkCc3/file.html [^]
(0006278)
SXX   
2016-01-14 20:49   
(edited on: 2016-01-14 20:51)
Welcome to bug tracker. Any chance you have save file before that crash?
VCMI make auto saves on start of each turn.

So if you have one please upload both vcgm1 and vsgm1 files.

(0006280)
misiokles   
2016-01-15 06:34   
Here's savegames. Played mods: Forgotten Tales (Bastion) and Axolotl creature pack. It's strange - game crashes when AI attacks Bastion's Netsutset hero. But sometimes during AI turn, Netsutset become completely another hero without crashes!
(0006282)
SXX   
2016-01-15 14:23   
What exactly Bastion version you running? Can you give a link please?
(0006286)
misiokles   
2016-01-15 18:24   
Version 1.0, with removed Forgotten Tales\mods\Bastion\Content\Sprites\bastion\town-hall.json file, because it seems to cause errors. Here's my zipped 'version': http://www106.zippyshare.com/v/cV38PZi8/file.html [^]
(0006287)
SXX   
2016-01-15 19:56   
(edited on: 2016-01-15 20:16)
Your save is also clearly require WoG, anything else? What submods of WoG enabled?

Did you manage to load it yourself? For me it's stuck on YourTurn package.

(0006288)
misiokles   
2016-01-15 21:19   
Yes, WoG with all submods (except russian translations). Yes, I manage to load it without errors. Used AB map: Time's Up! (quite good for testing).
(0006290)
SXX   
2016-01-15 22:08   
Ok got it working, probably messed up save files last time.
Though now it's doesn't crash for me right away.

Though if I skip multiple turns then I getting crash due to some lock.
(0006291)
SXX   
2016-01-15 22:09   
1	raise			0x7f3167aeecc9	
2	abort			0x7f3167af20d8	
3	??			0x7f3167ae7b86	
4	__assert_fail			0x7f3167ae7c32	
5	boost::shared_mutex::state_data::assert_lock_shared	shared_mutex.hpp	59	0x56a8e5	
6	boost::shared_mutex::unlock_shared	shared_mutex.hpp	262	0x56a756	
7	vstd::detail::unlock_shared_policy<boost::shared_mutex>::unlock	UnlockGuard.h	37	0x56a719	
8	vstd::unlock_guard<boost::shared_mutex, vstd::detail::unlock_shared_policy<boost::shared_mutex>>::unlock_guard	
UnlockGuard.h	60	0x56a6f6	
9	vstd::makeUnlockSharedGuard<boost::shared_mutex>	UnlockGuard.h	106	0x56a69c	
10	vstd::makeUnlockSharedGuardIf<boost::shared_mutex>	UnlockGuard.h	112	0x5581a5	
11	CBattleCallback::sendRequest	CCallback.cpp	188	0x553fae	
12	CBattleCallback::battleMakeAction	CCallback.cpp	178	0x555454	
13	CBattleAI::attemptCastingSpell	BattleAI.cpp	527	0x7f3149e2cf33	
14	CBattleAI::activeStack	BattleAI.cpp	137	0x7f3149e2bd77	
15	CAdventureAI::activeStack	CGameInterface.cpp	238	0x7f316c50f025	
16	CClient::waitForMoveAndSend	Client.cpp	142	0x7aa78c	
17	std::_Mem_fn<void (CClient:: *)(PlayerColor)>::operator()<PlayerColor&, void>	functional	
601	0xa90b6e	
18	std::_Bind<std::_Mem_fn<void (CClient:: *)(PlayerColor)> (CClient *, PlayerColor)>::__call<void, 
, 0ul, 1ul>(std::tuple<>&&, std::_Index_tuple<0ul, 1ul>)	functional	1295	0xa90acb	

19	std::_Bind<std::_Mem_fn<void (CClient:: *)(PlayerColor)> (CClient *, PlayerColor)>::operator()<, 
void>()	functional	1353	0xa90a56	
20	boost::detail::thread_data<std::_Bind<std::_Mem_fn<void (CClient:: *)(PlayerColor)> (CClient 
*, PlayerColor)>>::run()	thread.hpp	117	0xa908dc	
21	??			0x7f316af5da4a	
22	start_thread			0x7f316ad3c182	
23	clone			0x7f3167bb247d	
(0006292)
SXX   
2016-01-15 22:35   
(edited on: 2016-01-15 22:45)
So one more question? Does it crash for you always on skip of turn?
Also what is set as "Neutral AI" for you? StupidAI or BattleAI?

PS: Anyway, how often does it crash for you?

(0006295)
misiokles   
2016-01-16 08:51   
No, it crashes from time to time. Sometimes reload savegame helps, sometimes restart computer, and sometimes nothing :( But I've noticed that crash is often followed by green messages at bottom-left part of the screen. These messages can't be print-screened, but they say that 'something went fishy'. I see strange behaviour with Bastion (for now) heroes before AI turn and after AI turn. In some cases Bastion heroes are switched into another after many autosave reload and new AI turns.

Neutral AI is set to Battle AI.
(0006296)
SXX   
2016-01-16 13:22   
(edited on: 2016-01-16 13:23)
> But I've noticed that crash is often followed by green messages at bottom-left part of the screen.
Green message it's just server error. Most of time they just mean that AI attempt to do something without checking if that possible to do that or not. Though these may be related to crashes.

Also all details most likely present in terminal window that runs alongside with VCMI and there also log files in your documents directory called VCMI_Client.txt / VCMI_Server.txt, so in about the same location as save files are.

(0006307)
misiokles   
2016-01-18 20:55   
Unfortunatelly these logs are lost and re-written due to further games :(
(0006308)
SXX   
2016-01-18 20:59   
It's just for future reports. :-)

Though I may confirm that save sometimes crash, but it's really hard to reproduce it.