MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002479VCMIAI - Adventure Mappublic2016-09-16 01:382022-04-12 11:04
ReporterSXX 
Assigned ToSXX 
PrioritynormalSeveritycrashReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version0.98g 
Target VersionFixed in Version0.99 
Summary0002479: VCAI::performTypicalActions: crash when attempt to use removed hero
DescriptionProblem occur because in that function getUnblockedHeroes called here once and resulting vector actually remain there for all AI turn duration. Within turn hero might get killed and of course when AI try to use removed hero game crashing.

First I though there is some race condition, but actually it's looks like problem occur due to lack of checks.

What bother me the most is that is why we didn't catch this one before since I run a lot of games and only now I got reproducible crash. I suppose this can be related to both fixed RMG or fact that AI just not usually lose heroes on it's turn.
TagsNo tags attached.
Attached Fileszip file icon BUG_2479_CRASH_VCAI.zip [^] (1,666,178 bytes) 2016-09-16 01:38

- Relationships

-  Notes
(0006676)
SXX (administrator)
2016-09-16 01:57

Applied fix:
https://github.com/vcmi/vcmi/commit/30042cac3d5ede31155ca98e0c1294dcaff7e05b [^]

- Issue History
Date Modified Username Field Change
2016-09-16 01:38 SXX New Issue
2016-09-16 01:38 SXX Status new => assigned
2016-09-16 01:38 SXX Assigned To => SXX
2016-09-16 01:38 SXX File Added: BUG_2479_CRASH_VCAI.zip
2016-09-16 01:57 SXX Note Added: 0006676
2016-09-16 01:57 SXX Status assigned => resolved
2016-09-16 01:57 SXX Fixed in Version => 0.99
2016-09-16 01:57 SXX Resolution open => fixed
2022-04-12 11:04 Povelitel Status resolved => closed

Site | Forums | Wiki | Slack | GitHub


Copyright © 2000 - 2024 MantisBT Team
Hosting provided by DigitalOcean