MantisBT - VCMI
View Issue Details
0002710VCMIOtherpublic2017-07-07 02:302022-03-28 18:37
catalina 
SXX 
normalcrashalways
closedunable to reproduce 
macOS10.12.5
0.99 
 
0002710: segfault on victory
When a campaign or single-player game is won on macOS, VCMI segfaults. Here are two sample crash logs; let me know if more are needed: https://gist.github.com/dunn/36539f4a779520fc57a49d3cc7ab7f4e [^]
Boost version: 1.64.0
No tags attached.
Issue History
2017-07-07 02:30catalinaNew Issue
2017-07-07 07:25SXXNote Added: 0007105
2017-07-07 13:01catalinaNote Added: 0007107
2017-07-07 14:13catalinaNote Added: 0007108
2017-07-08 19:49catalinaNote Added: 0007109
2017-07-22 14:19SXXAssigned To => SXX
2017-07-22 14:19SXXStatusnew => assigned
2017-07-22 16:56catalinaNote Added: 0007167
2017-08-12 06:15SXXNote Added: 0007225
2017-08-14 09:46SXXNote Added: 0007228
2018-04-08 19:59s_noopyNote Added: 0007572
2022-03-16 10:16PovelitelNote Added: 0008106
2022-03-16 10:16PovelitelStatusassigned => feedback
2022-03-28 18:37PovelitelNote Added: 0008234
2022-03-28 18:37PovelitelStatusfeedback => closed
2022-03-28 18:37PovelitelResolutionopen => unable to reproduce

Notes
(0007105)
SXX   
2017-07-07 07:25   
Is it true for absolutely every game?
(0007107)
catalina   
2017-07-07 13:01   
True for all three I've finished so far (Myth and Legend once, first part of Restoration of Erathia twice). I'll try some more, though.
(0007108)
catalina   
2017-07-07 14:13   
Victory in Dungeon Keeper: https://gist.github.com/47eb120423cdb4d8a1459024483fbfa1 [^]
(0007109)
catalina   
2017-07-08 19:49   
Just now, for the first time it didn't segfault after a victory. It's possible something was fixed when I rebuilt against the latest commit; I'll see if it happens again.
(0007167)
catalina   
2017-07-22 16:56   
It's still crashing most of the time as of cdd9dbc7f1228f62b872e800cca301e0ee38fb19.
(0007225)
SXX   
2017-08-12 06:15   
Yeah it's crashing because it's doesn't handle server shutdown too well. We had similar problem across platforms because our server startup code is ugly.

Now I'm being able to actually debug it in both Xcode and Qt Creator on Mac and I see it.
(0007228)
SXX   
2017-08-14 09:46   
I somewhat mitigated it here:
https://github.com/vcmi/vcmi/commit/9c7c47c754af90855e520864255688a39a27cb2e [^]

Though no way it's correct fix for the problem.
(0007572)
s_noopy   
2018-04-08 19:59   
Hello there,

Sorry for digging it up but it seems to be roughly the same scenario of reproduction. I only see a different stacktrace.

Map: Arrogance
Condition: Victory
Crash Report dump: https://gist.github.com/dariuszseweryn/9f3c673bc99b8e913ac62fdb403decfd [^]

Best Regards
(0008106)
Povelitel   
2022-03-16 10:16   
Try the latest build from here https://builds.vcmi.download/branch/develop/macOS/ [^]
Does the problem still exist?
(0008234)
Povelitel   
2022-03-28 18:37   
Should be fixed. Try the latest build