MantisBT - VCMI
View Issue Details
0002692VCMIMechanics - Battlespublic2017-06-10 07:302017-06-14 08:11
0nedef 
AVS 
normalcrashalways
resolvedfixed 
AMD64Archlinux
 
1.next 
0002692: Finishing battle with a spell causes crash after confirming post-battle summary screen
Refer to reproduction steps.
Ingham hero stands next to an enemy AI Darkstorn with a single troglodyte in it's army. Kill it with magic missile.
No tags attached.
has duplicate 0002623resolved AVS after battle crash 
zip asdf.zip (751,168) 2017-06-10 07:30
https://bugs.vcmi.eu/file_download.php?file_id=2712&type=bug
? valgrind.log.xz (754,804) 2017-06-10 07:30
https://bugs.vcmi.eu/file_download.php?file_id=2713&type=bug
log gdb.log (33,046) 2017-06-10 07:31
https://bugs.vcmi.eu/file_download.php?file_id=2714&type=bug
txt VCMI_Client_log.txt (131,084) 2017-06-10 07:31
https://bugs.vcmi.eu/file_download.php?file_id=2715&type=bug
txt VCMI_Server_log.txt (113,738) 2017-06-10 07:31
https://bugs.vcmi.eu/file_download.php?file_id=2716&type=bug
Issue History
2017-06-10 07:300nedefNew Issue
2017-06-10 07:300nedefFile Added: asdf.zip
2017-06-10 07:300nedefFile Added: valgrind.log.xz
2017-06-10 07:310nedefFile Added: gdb.log
2017-06-10 07:310nedefFile Added: VCMI_Client_log.txt
2017-06-10 07:310nedefFile Added: VCMI_Server_log.txt
2017-06-13 12:54AVSAssigned To => AVS
2017-06-13 12:54AVSStatusnew => acknowledged
2017-06-13 13:17AVSNote Added: 0007086
2017-06-13 17:490nedefNote Added: 0007087
2017-06-13 18:020nedefNote Edited: 0007087bug_revision_view_page.php?bugnote_id=7087#r3354
2017-06-13 22:30AVSNote Added: 0007088
2017-06-14 01:54AVSNote Added: 0007089
2017-06-14 07:000nedefNote Added: 0007090
2017-06-14 07:46AVSStatusacknowledged => resolved
2017-06-14 07:46AVSFixed in Version => 1.next
2017-06-14 07:46AVSResolutionopen => fixed
2017-06-14 08:11AVSRelationship addedhas duplicate 0002623

Notes
(0007086)
AVS   
2017-06-13 13:17   
For me this bug is not reproducible, but valgrind log shows race condition and I`ll try to fix it. Not that easy to fix though.
(0007087)
0nedef   
2017-06-13 17:49   
(edited on: 2017-06-13 18:02)
Can confirm this does *NOT* replicate on Ubuntu daily builds.

Anything else I could provide to narrow down the crash? Could it be due to compiling the engine against particularly new versions of libraries (like Boost or SDL2)?

(0007088)
AVS   
2017-06-13 22:30   
It may depend on Boost version.
(0007089)
AVS   
2017-06-14 01:54   
Please retest after 0af9aa38
(0007090)
0nedef   
2017-06-14 07:00   
Yup, 0af9aa38 seems to have fixed it. It apparently also fixed a problem of earning a catapult artifact from the previous build.

For the record, the Boost version is the latest of the time of writing - 1.64.0.