MantisBT - VCMI
View Issue Details
0000700VCMIMechanics - Otherpublic2011-03-04 02:242014-05-30 17:40
Zamolxis 
Warmonger 
normalcrashalways
closedfixed 
AMD 5600+WindowsXP SP3
0.84 
0.85 
0000700: Crash at map start for custom map (containing standard WoG objects)
Please see attached map, screenshot & logs (no crashdump created).

I made multiple additions to the map I've been using since 0000570, but when I tried to start it, I got the Runtime Error crash. I validated the map in the Editor and it opened under WoG. I also removed some of the more rare WoG objects, but the crash was still occurring. I couldn't check each and every object because I added at least 50, but I guess you have better tools to trace the cause.
No tags attached.
?  VCMI_Tests_2011.h3m (18,615) 2011-03-04 02:24
https://bugs.vcmi.eu/file_download.php?file_id=673&type=bug
jpg 2011-03-04_WoGMapCrash.jpg (124,064) 2011-03-04 02:25
https://bugs.vcmi.eu/file_download.php?file_id=675&type=bug
jpg

7z 2011-03-04_WoGMapCrash.7z (4,850) 2011-03-04 02:26
https://bugs.vcmi.eu/file_download.php?file_id=676&type=bug
Issue History
2011-03-04 02:24ZamolxisNew Issue
2011-03-04 02:24ZamolxisFile Added: VCMI_Tests_2011.h3m
2011-03-04 02:25ZamolxisFile Added: 2011-03-04_WoGMapCrash.jpg
2011-03-04 02:26ZamolxisFile Added: 2011-03-04_WoGMapCrash.7z
2011-03-04 13:29IvanNote Added: 0001619
2011-03-04 13:54ZamolxisNote Added: 0001620
2011-03-08 14:06WarmongerNote Added: 0001638
2011-03-08 14:06WarmongerStatusnew => resolved
2011-03-08 14:06WarmongerFixed in Version => 0.89
2011-03-08 14:06WarmongerResolutionopen => fixed
2011-03-08 14:06WarmongerAssigned To => Warmonger
2011-03-08 17:55Tow dragonNote Added: 0001639
2014-05-30 17:40beegeeStatusresolved => closed

Notes
(0001619)
Ivan   
2011-03-04 13:29   
>>I couldn't check each and every object
Crash located in hero placeholder loading. Check placeholder at underground, 55,25
(0001620)
Zamolxis   
2011-03-04 13:54   
It's that indeed. Just curious - where did you look to spot the cause? Did you use a debugging tool, or is it something I could have found myself if I looked in the right file?
(0001638)
Warmonger   
2011-03-08 14:06   
Don't know about Ivan, but indeed we have quite handy debugger built in MVS. Without it, it would be impossible to track most of bugs.


The hero placeholder seems to be not handled. Crash was forced by coders who just didn't know what it is ;):

int a = bufor[i++]; //unkown byte, seems to be always 0 (if not - scream!)
assert(!a);

I enabled it in r2026 as it doesn't seem to have negative influence on game.
(0001639)
Tow dragon   
2011-03-08 17:55   
I think that assertion was left there to see what that byte means. Maybe it contains important information?