MantisBT - VCMI
View Issue Details
0003021VCMIAI - Adventure Mappublic2018-11-02 09:342019-02-06 17:35
Povelitel 
Dydzio 
normalcrashrandom
closedfixed 
64Windows10
0.99 
 
0003021: Often Crash on this map
Problem with MapObjectsEvaluator

 if(obj->ID == Obj::CREATURE_GENERATOR1 || obj->ID == Obj::CREATURE_GENERATOR4)

VCAI.dll!MapObjectsEvaluator::getObjectValue(const CGObjectInstance * obj)Строка 59 C++
    VCAI.dll!VisitObjEngine::evaluate(Goals::VisitObj & goal)Строка 375 C++
    VCAI.dll!FuzzyHelper::setPriority(Goals::TSubgoal & g)Строка 167 C++
    VCAI.dll!VCAI::mainLoop()Строка 867 C++
    VCAI.dll!VCAI::makeTurn()Строка 834 C++
I recomend use autoskip. Don't reproducible from loading autosave, but happen very often if continue game.
No tags attached.
has duplicate 0003022resolved Dydzio Obj::HERO crash 
? THE CHAIN WARS Лодкодроч.h3m (26,649) 2018-11-02 09:34
https://bugs.vcmi.eu/file_download.php?file_id=2965&type=bug
rar logs.rar (1,797,689) 2018-11-03 08:55
https://bugs.vcmi.eu/file_download.php?file_id=2966&type=bug
Issue History
2018-11-02 09:34PovelitelNew Issue
2018-11-02 09:34PovelitelStatusnew => assigned
2018-11-02 09:34PovelitelAssigned To => Dydzio
2018-11-02 09:34PovelitelFile Added: THE CHAIN WARS Лодкодроч.h3m
2018-11-02 13:10DydzioNote Added: 0007664
2018-11-02 13:28DydzioNote Added: 0007665
2018-11-02 14:19DydzioNote Edited: 0007665bug_revision_view_page.php?bugnote_id=7665#r3537
2018-11-02 15:42DydzioNote Added: 0007666
2018-11-03 08:54PovelitelNote Added: 0007669
2018-11-03 08:55PovelitelFile Added: logs.rar
2018-11-03 14:19DydzioNote Added: 0007670
2019-02-06 17:33DydzioRelationship addedhas duplicate 0003022
2019-02-06 17:35DydzioStatusassigned => closed
2019-02-06 17:35DydzioResolutionopen => fixed

Notes
(0007664)
Dydzio   
2018-11-02 13:10   
I was unable to reproduce this bug so far, but found another problems with AI when testing this...
(0007665)
Dydzio   
2018-11-02 13:28   
(edited on: 2018-11-02 14:19)
Managed to reproduce - AI is trying to evaluate removed object. Bug is not in MapObjectsEvaluator. This bug will never reproduce from any save.

(0007666)
Dydzio   
2018-11-02 15:42   
Might be fixed in https://github.com/vcmi/vcmi/pull/513 [^] - need testing.
(0007669)
Povelitel   
2018-11-03 08:54   
still happening
(0007670)
Dydzio   
2018-11-03 14:19   
Next PR with fix... Maybe this time it will work... https://github.com/vcmi/vcmi/pull/515 [^]