MantisBT - VCMI
View Issue Details
0001835VCMIOtherpublic2014-07-12 12:122018-11-07 06:47
Nikolay.IT 
Warmonger 
highcrashN/A
resolvedunable to reproduce 
64 bitWindows 8
0.96 
0.next 
0001835: Crash on end turn
Disaster happened.
Reason: 0xc0000005 - EXCEPTION_ACCESS_VIOLATION at 0023:5A10BA4E
Attempt to read from 0x00000000
Thread ID: 11176 [11176]
Crash info will be put in VCMI_client.exe_crashinfo.dmp
1. Load the given save file
2. Click end turn
3. The game crashes
No tags attached.
related to 0001839closed Tow Crash turn AI 
related to 0001840closed Tow Crash turn AI 
zip _report.zip (1,387,420) 2014-07-12 12:12
https://bugs.vcmi.eu/file_download.php?file_id=1848&type=bug
zip vcmi.crash.zip (976,958) 2014-07-17 15:12
https://bugs.vcmi.eu/file_download.php?file_id=1855&type=bug
zip savegame.zip (958,132) 2014-07-20 19:58
https://bugs.vcmi.eu/file_download.php?file_id=1864&type=bug
Issue History
2014-07-12 12:12Nikolay.ITNew Issue
2014-07-12 12:12Nikolay.ITFile Added: _report.zip
2014-07-16 15:06amerglNote Added: 0004838
2014-07-16 15:41IvanNote Added: 0004839
2014-07-17 15:12amerglFile Added: vcmi.crash.zip
2014-07-17 15:14amerglNote Added: 0004840
2014-07-17 18:11IvanRelationship addedrelated to 0001839
2014-07-17 18:11IvanRelationship addedrelated to 0001840
2014-07-17 18:16IvanNote Added: 0004841
2014-07-20 19:57giffNote Added: 0004852
2014-07-20 19:58giffFile Added: savegame.zip
2014-08-13 01:27sirenryNote Added: 0004914
2014-08-16 07:41Nikolay.ITNote Added: 0004918
2018-11-06 14:52PovelitelNote Added: 0007679
2018-11-06 14:52PovelitelStatusnew => resolved
2018-11-06 14:52PovelitelFixed in Version => 0.next
2018-11-06 14:52PovelitelResolutionopen => fixed
2018-11-06 14:52PovelitelAssigned To => Warmonger
2018-11-07 06:47AVSReproducibilityalways => N/A
2018-11-07 06:47AVSResolutionfixed => unable to reproduce

Notes
(0004838)
amergl   
2014-07-16 15:06   
The same problem I encountered under Debian Wheezy. If you require I can upload the saved game status.

There are two other but very similar tickets 0001839 and 0001840 reporting this bug.

Is it new in version 0.96?
(0004839)
Ivan   
2014-07-16 15:41   
amergl, upload saves and logs so we can make sure that this is the same bug.

Logs are usually in ~/.cache/vcmi/ directory, saves are in ~/.local/share/vcmi/Saves
(0004840)
amergl   
2014-07-17 15:14   
dear Ivan,

as you requested done, see attached vcmi.crash.zip

Attila
(0004841)
Ivan   
2014-07-17 18:16   
Thanks. Yes, looks to be at least similar. All 3 issues have a crash during AI turn so I've marked them as related.
(0004852)
giff   
2014-07-20 19:57   
Most likely same issue on Ubuntu 14.04. Console output:

Another allied hero stands in our way
Another allied hero stands in our way
Another allied hero stands in our way
Our heroes don't move anymore, exhaustive decomposition failed
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
vcmiclient: ../../src/xcb_io.c:179: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.
Aborted (core dumped)


Save game attached (savegame.zip)
(0004914)
sirenry   
2014-08-13 01:27   
Same issue here. Ubuntu 14.04 also. Kind of annoying, since I just discovered this, and now I can't play past a few turns :(

Can provide saved game / more logs if necessary, very easy to reproduce (it's happened to me on 2 different games, after a week or so).

Where it says "SNIP" there are about 70 copies omitted of the allied hero error.
Maybe some sort of infinite recursion for pathfinding..?

Full terminal output:

Opening VCAI
Loaded VCAI
Opening StupidAI
Loaded Stupid AI 0.1
Loaded client part of save 284
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: 9
Server opened savegame properly.
Sent info to server: 55
Warning: IntObject re-activated with mismatching used and active
Player 1 starting turn
Another allied hero stands in our way
Another allied hero stands in our way

  - - - - SNIP - - - -
Another allied hero stands in our way
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
vcmiclient: ../../src/xcb_io.c:274: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
(0004918)
Nikolay.IT   
2014-08-16 07:41   
It happens in almost every game. It's very annoying.
(0007679)
Povelitel   
2018-11-06 14:52   
Saves are very old and impossible to check. The AI has been improved during this time and I believe this ticket is no longer relevant.