MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001177VCMIGUI - Adventure Mappublic2013-01-20 14:512014-05-30 17:41
Reporterbeegee 
Assigned ToIvan 
PriorityhighSeveritycrashReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version0.91 
Summary0001177: Crash when returning to main menu from adv map
DescriptionGame crashes when you want to switch/go back to main menu from the adventure map.
Additional InformationStacktrace:
CModHandler.cpp at line 360 in CModHandler->reload()
CMT.cpp at line 801 in listenForEvents()
...

Problem is that townInfos[town.first] is null. This is the line where it crashes:
townInfos[town.first]->name = cientInfo.advMapCastle;
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0003291)
Ivan (developer)
2013-01-20 22:53

Found it. But how modHandler::reload worked all this time?

listenForEvents does not updates pointer in VLC (which is used by modHander). As result game crashes as soon as it reaches deallocated memory block.

Should be fixed (as in "does not crashes") with rev 3113 but maybe there is a better fix than this:
http://sourceforge.net/apps/trac/vcmi/changeset/3113/trunk/client/CMT.cpp [^]
(0003293)
beegee (developer)
2013-01-21 19:25

Thanks, seems to be fixed.

- Issue History
Date Modified Username Field Change
2013-01-20 14:51 beegee New Issue
2013-01-20 21:43 Ivan Assigned To => Ivan
2013-01-20 21:43 Ivan Status new => assigned
2013-01-20 22:53 Ivan Note Added: 0003291
2013-01-20 22:53 Ivan Assigned To Ivan =>
2013-01-20 22:54 Ivan Status assigned => feedback
2013-01-21 19:25 beegee Note Added: 0003293
2013-01-21 19:25 beegee Status feedback => new
2013-01-21 19:25 beegee Status new => resolved
2013-01-21 19:25 beegee Fixed in Version => 0.dev
2013-01-21 19:25 beegee Resolution open => fixed
2013-01-21 19:25 beegee Assigned To => Ivan
2013-02-01 14:12 Warmonger Product Version 0.dev => 0.91
2013-02-01 14:12 Warmonger Product Version 0.91 => 0.dev
2013-02-01 14:12 Warmonger Fixed in Version 0.dev => 0.91
2014-05-30 17:41 beegee Status resolved => closed

Site | Forums | Wiki | Slack | GitHub


Copyright © 2000 - 2024 MantisBT Team
Hosting provided by DigitalOcean