Author Topic: Crash: git-master when ordering a unit outside of the map  (Read 920 times)

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Commit # 885eba6fc25b51b1690a00ca2e4d14c6832767a4

Code: [Select]
Crash
Version: Advanced Engine git-master
Time: Fri Apr 15 22:42:47 2011
Description: SIGABRT:
Address: 0x6393
Backtrace:
/home/john/glestae_git/build/source/game/glestadv(_ZN6Shared8Platform24PlatformExceptionHandler7handlerEiP7siginfoPv+0x301) [0x8503d67]
[0xe8640c]
[0xe86416]
/lib/libc.so.6(gsignal+0x51) [0x408941]
/lib/libc.so.6(abort+0x182) [0x40be42]
/lib/libc.so.6(__assert_fail+0xf8) [0x4018e8]
/home/john/glestae_git/build/source/game/glestadv(_ZN5Glest6Search12RoutePlanner14findPathToGoalEPNS_8Entities4UnitERNS0_9PMap1GoalERKN6Shared4Math4Vec2IiEE+0x319) [0x8445a0d]
/home/john/glestae_git/build/source/game/glestadv(_ZN5Glest6Search12RoutePlanner18findPathToResourceEPNS_8Entities4UnitERKN6Shared4Math4Vec2IiEEPKNS_10ProtoTypes12ResourceTypeE+0x114) [0x83cfce6]
/home/john/glestae_git/build/source/game/glestadv(_ZNK5Glest10ProtoTypes18HarvestCommandType6updateEPNS_8Entities4UnitE+0x26a) [0x83ce246]
/home/john/glestae_git/build/source/game/glestadv(_ZN5Glest8Entities4Unit15doUpdateCommandEv+0xf6) [0x82a000e]
/home/john/glestae_git/build/source/game/glestadv(_ZN5Glest3Sim19SimulationInterface19doUpdateUnitCommandEPNS_8Entities4UnitE+0x11) [0x84a9237]
/home/john/glestae_git/build/source/game/glestadv(_ZN5Glest8Entities4Unit8doUpdateEv+0xe7) [0x82a0b7b]
/home/john/glestae_git/build/source/game/glestadv(_ZN5Glest3Sim5World11updateUnitsEPKNS_8Entities7FactionE+0x3d) [0x84b2331]
/home/john/glestae_git/build/source/game/glestadv(_ZN5Glest3Sim5World12processFrameEv+0xca) [0x84b2426]
/home/john/glestae_git/build/source/game/glestadv(_ZN5Glest3Sim19SimulationInterface11updateWorldEv+0xce) [0x84a8774]
/home/john/glestae_git/build/source/game/glestadv(_ZN5Glest3Gui9GameState6updateEv+0x167) [0x82ddcfb]
/home/john/glestae_git/build/source/game/glestadv(_ZN5Glest4Main7Program4loopEv+0x1da) [0x8347488]
/home/john/glestae_git/build/source/game/glestadv(_ZN5Glest4Main9glestMainEiPPc+0x33f) [0x83410bd]
/home/john/glestae_git/build/source/game/glestadv(main+0x79) [0x83413fa]
/lib/libc.so.6(__libc_start_main+0xe7) [0x3f4ce7]
/home/john/glestae_git/build/source/game/glestadv() [0x8267ec1]

=======================


silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Crash: git-master when ordering a unit outside of the map
« Reply #1 on: 16 April 2011, 11:56:50 »
Haven't been able to reproduce this yet, it was during a search to a resource, based on the screenie a hierarchical search, so it was probably RUNTIME_CHECK(wpPath.size() > 1); I think. If you get anything like this again (SIGABRT) check the shell console, it should state the file and line number of the failed assert().

Might have to go to extreme lengths to try and catch this one... the 'world' will be in a stable state, so if the condition I think is failing is failing (very intermittently...), we'll save the world (this will need a little extra work, as it will be a save from mid-frame), and hopefully the reconstructed world will do the same thing over and over again...

Hopefully none of the command updates change too much in the units they're updating before the path request, but that seems a reasonable assumption...
Glest Advanced Engine - Code Monkey

Timeline | Downloads