MantisBT - VCMI
View Issue Details
0000947VCMIOtherpublic2012-05-04 09:112014-05-30 17:41
ench0 
Tow 
normalcrashalways
closedfixed 
i386GNU/LinuxFC 15 Lovelock
0.88 
 
0000947: Restarting scenario crashes the game
strace attached
Start game, select "Single Scenario" (I tried Arrogance, Capre Diem and a couple others - happens every time).

After scenario loads select the "Restart Scenario" from the "System Options" menu and confirm. The game crashes.
No tags attached.
txt strace-crash-restart-scenario.txt (1,213,434) 2012-05-04 09:11
https://bugs.vcmi.eu/file_download.php?file_id=920&type=bug
Issue History
2012-05-04 09:11ench0New Issue
2012-05-04 09:11ench0File Added: strace-crash-restart-scenario.txt
2012-05-04 09:17IvanNote Added: 0002398
2012-05-04 11:21ench0Note Added: 0002400
2012-05-04 16:56TowNote Added: 0002405
2012-05-04 16:56TowAssigned To => Tow
2012-05-04 16:56TowStatusnew => confirmed
2012-05-04 17:05TowNote Edited: 0002405bug_revision_view_page.php?bugnote_id=2405#r1572
2012-05-22 21:09TowNote Added: 0002528
2012-05-22 21:09TowStatusconfirmed => resolved
2012-05-22 21:09TowResolutionopen => fixed
2014-05-30 17:41beegeeStatusresolved => closed

Notes
(0002398)
Ivan   
2012-05-04 09:17   
Looks to be desync:

vcmiserver: ../../src/lib/CGameState.cpp:1584: void CGameState::init(StartInfo*): Assertion `scenarioOps->seedPostInit == actualSeed' failed.
(0002400)
ench0   
2012-05-04 11:21   
Happens with a campaign game as well...
(0002405)
Tow   
2012-05-04 16:56   
(edited on: 2012-05-04 17:05)
Map randomization is dependant on state of handlers (or at least art handler) and affects it. The handlers do also need to be recreated during restart.

(0002528)
Tow   
2012-05-22 21:09   
Fixed in r2706.
I was wrong, bug was in mismatch between randomized start info and the one from before randomization.