MantisBT - VCMI
View Issue Details
0000534VCMIMechanics - Objectspublic2010-07-13 13:242011-11-01 20:42
Zamolxis 
Tow 
normalcrashsometimes
closedfixed 
0.81 
0.82 
0000534: Cartographers work incorrectly again (can lead to crash)
See Cartographer Test map which was attached to 0000010. Visit the 2 cartographers under your hero at surface:
- The Underground Cartographer will reveal nothing.
- The Surface Cartographer will make even what's visible to disappear. If you try to move the hero in this case, the game crashes. No crashdump created, but it's always reproducible, so let me know if you need any extra files. The console message I get is: "Assertion failed: gotInfo, file CPlayerInterface.cpp, line 377"
- At the See Cartographer, I get the same as above, only when the came crashes, the console message mentions line 368.
No tags attached.
related to 0000010closed Tow Cartographers do not correctly reveal grounds. 
jpg 2010-07-13_Cartographer.jpg (134,973) 2010-07-13 13:24
https://bugs.vcmi.eu/file_download.php?file_id=463&type=bug
jpg

?  Cartographer+Test.h3m (12,792) 2010-07-14 08:30
https://bugs.vcmi.eu/file_download.php?file_id=465&type=bug
7z 2010-07-13_CartographerIssue.7z (198,079) 2010-07-14 08:31
https://bugs.vcmi.eu/file_download.php?file_id=466&type=bug
Issue History
2010-07-13 13:24ZamolxisNew Issue
2010-07-13 13:24ZamolxisStatusnew => assigned
2010-07-13 13:24ZamolxisAssigned To => Tow
2010-07-13 13:24ZamolxisFile Added: 2010-07-13_Cartographer.jpg
2010-07-13 13:24ZamolxisIssue generated from: 0000010
2010-07-13 13:24ZamolxisRelationship addedrelated to 0000010
2010-07-13 13:25ZamolxisDescription Updatedbug_revision_view_page.php?rev_id=958#r958
2010-07-14 01:56TowAssigned ToTow => Zamolxis
2010-07-14 01:56TowAssigned ToZamolxis => Tow
2010-07-14 02:42TowNote Added: 0001107
2010-07-14 02:43TowNote Edited: 0001107bug_revision_view_page.php?bugnote_id=1107#r960
2010-07-14 08:12ZamolxisReproducibilityalways => sometimes
2010-07-14 08:30ZamolxisNote Added: 0001109
2010-07-14 08:30ZamolxisFile Added: Cartographer+Test.h3m
2010-07-14 08:31ZamolxisFile Added: 2010-07-13_CartographerIssue.7z
2010-07-14 08:34ZamolxisNote Edited: 0001109bug_revision_view_page.php?bugnote_id=1109#r962
2010-07-14 08:37ZamolxisNote Edited: 0001109bug_revision_view_page.php?bugnote_id=1109#r963
2010-07-20 09:20TowNote Added: 0001136
2010-07-20 09:20TowStatusassigned => resolved
2010-07-20 09:20TowFixed in Version => 0.89
2010-07-20 09:20TowResolutionopen => fixed
2010-07-20 09:24TowNote Added: 0001137
2011-11-01 20:42ZamolxisNote Added: 0002124
2011-11-01 20:42ZamolxisStatusresolved => closed

Notes
(0001107)
Tow   
2010-07-14 02:42   
(edited on: 2010-07-14 02:43)
Not reproducible.
Bug is related to drawing town infobox. You're using a different map than 0000010 - I can see town your screenshot, while 0000010 doesn't have any. Could you upload your map? Savegame also may be helpful.

(0001109)
Zamolxis   
2010-07-14 08:30   
(edited on: 2010-07-14 08:37)
After a moment of frustration when I realized I also cannot reproduce it (while yesterday it happened 4 times in a row), I remembered yesterday I had also H3 open on the same map, so that may have had sth to do with it (and/or combined with going back to Main Manu to start/load the game). About the map difference, it can be I edited the map from 0000010 later on, by adding that town. I'm attaching here my version, together with saved games (before/after bug) and crashdump. There is also a file - ACREDIT.SMK - which seems to have been last updated in the minute the bug happened (couple of minutes before the crashdump was created, after I saved the game). I'm not sure if this is relevant. Let me know if I should ignore it or keep attaching it in similar future situations.

I managed to reproduce it today following these steps:
- Open map in VCMI, visit Cartographer (behaves ok)
- Open same map in H3 and visit a Cartographer
- Go back to VCMI and access Main Menu and load the saved Newgame_Autosave3 (attached here), then visit the Cartographer
(I'm not sure if first the Underground Cartographer, or directly the Surface Cartographer, further attempts to reproduce either failed to lead to the bug)
- When I had the bug happening again when visiting Surface Cartographer, I saved the game (attached above, but you'll see, it fails to load)
- After saving the game, the game crashed by itself, creating a crashdump file (also attached)

But I am obviously more puzzled on this as compared to yesterday, when I was able to reproduce it 3 more times in a row without a problem, regardless of which destination I chose as first (Underground/Surface/or/Sea Cartographer). For some reason it worked only once out of 4-5 attempts today. So I hope the map, saved games & crashdump attached will help you figure this out.

(0001136)
Tow   
2010-07-20 09:20   
I've looked into the code and noticed that mode parameter (saying whether reveal or hide map) was not initialized. So the issue was completely random, occurring when uninitialized stack memory byte was 0.
Fixed in r1674
(0001137)
Tow   
2010-07-20 09:24   
> There is also a file - ACREDIT.SMK - which seems to have been last updated in the minute the bug happened (couple of minutes before the crashdump was created, after I saved the game). I'm not sure if this is relevant. Let me know if I should ignore it or keep attaching it in similar future situations.

There's no need, the file is irrelevant.
(0002124)
Zamolxis   
2011-11-01 20:42   
Tested in 0.86 and confirmed as fixed.