Author Topic: 3.9.1: unit_updater.cpp::updateRepair Line: 2170] Error [ut == NULL  (Read 1165 times)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
David123 (Windows 7), Typedef and I (both Linux x86_64) were playing a game with Prax on one of the "MG Team" headless servers (the one listening on port 62001 on the "initiate" server) today. Somewhere in the middle of the game the process failed for both Typedef and me (possibly for David as well). I was controlling (headless admin / controlling player) this game from the start to this point.

Typedef's terminal output:
Code: [Select]
megaglest v3.9.1
Compiled using: GNUC: 40801 [64bit] on: Jan 30 2014 22:03:50 platform: Linux-X64 endianness: little
GIT: [Rev: 4638.0b86e1c] - using STREFLOP [SSE] - [no-denormals]
Game unique identifier is: 01b421ee-c1cf-11e3-95fe-43a44111f694
Game unique identifier is: 55b7c218-c234-11e3-bf24-11d82b53a9b9
*ERROR* [2014-04-12 13:39:38] In [/home/andy/bin/megaglest-source/source/glest_game/world/unit_updater.cpp::updateRepair Line: 2170] Error [ut == NULL
Stack Trace:
./megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&, bool)address [0xb119d8] line: 305
./megaglest:Glest::Game::Map::findBestBuildApproach(Glest::Game::Unit const*, Shared::Graphics::Vec2<int>, Glest::Game::UnitType const*) constaddress [0xa0c02a] line: 1198
./megaglest:Glest::Game::UnitUpdater::updateRepair(Glest::Game::Unit*, int)address [0x9ec37b] line: 1945
./megaglest:Glest::Game::UnitUpdater::updateUnitCommand(Glest::Game::Unit*, int)address [0x9e42d5] line: 343
./megaglest:Glest::Game::UnitUpdater::updateUnit(Glest::Game::Unit*)address [0x9e48a8] line: 179
./megaglest:Glest::Game::World::updateAllFactionUnits()address [0x9cb5a9] line: 712
./megaglest:Glest::Game::World::update()address [0x9d2625] line: 871
./megaglest:Glest::Game::Game::update()address [0x560a4b] line: 2157
./megaglest:Glest::Game::Program::loopWorker()address [0x6a528e] line: 476
./megaglest:Glest::Game::glestMain(int, char**)address [0x6f66b7] line: 5451
./megaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x6fa0a1] line: 5699
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7fd8bdfe0de5] line: 0
./megaglest() [0x4e70a8]address [0x4e70a8]
]
*ERROR* [2014-04-12 13:39:39] In [/home/andy/bin/megaglest-source/source/glest_game/world/unit_updater.cpp::updateUnitCommand Line: 374] Error [ut == NULL
Stack Trace:
./megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&, bool)address [0xb119d8] line: 305
./megaglest:Glest::Game::Map::findBestBuildApproach(Glest::Game::Unit const*, Shared::Graphics::Vec2<int>, Glest::Game::UnitType const*) constaddress [0xa0c02a] line: 1198
./megaglest:Glest::Game::UnitUpdater::updateRepair(Glest::Game::Unit*, int)address [0x9ec37b] line: 1945
./megaglest:Glest::Game::UnitUpdater::updateUnitCommand(Glest::Game::Unit*, int)address [0x9e42d5] line: 343
./megaglest:Glest::Game::UnitUpdater::updateUnit(Glest::Game::Unit*)address [0x9e48a8] line: 179
./megaglest:Glest::Game::World::updateAllFactionUnits()address [0x9cb5a9] line: 712
./megaglest:Glest::Game::World::update()address [0x9d2625] line: 871
./megaglest:Glest::Game::Game::update()address [0x560a4b] line: 2157
./megaglest:Glest::Game::Program::loopWorker()address [0x6a528e] line: 476
./megaglest:Glest::Game::glestMain(int, char**)address [0x6f66b7] line: 5451
./megaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x6fa0a1] line: 5699
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7fd8bdfe0de5] line: 0
./megaglest() [0x4e70a8]address [0x4e70a8]                                                                                           
                                                                                                                                     
Stack Trace:                                                                                                                         
./megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&, bool)address [0xb119d8] line: 305
./megaglest:Glest::Game::UnitUpdater::updateRepair(Glest::Game::Unit*, int)address [0x9ec844] line: 2173                             
./megaglest:Glest::Game::UnitUpdater::updateUnitCommand(Glest::Game::Unit*, int)address [0x9e42d5] line: 343                         
./megaglest:Glest::Game::UnitUpdater::updateUnit(Glest::Game::Unit*)address [0x9e48a8] line: 179                                     
./megaglest:Glest::Game::World::updateAllFactionUnits()address [0x9cb5a9] line: 712                                                 
./megaglest:Glest::Game::World::update()address [0x9d2625] line: 871                                                                 
./megaglest:Glest::Game::Game::update()address [0x560a4b] line: 2157                                                                 
./megaglest:Glest::Game::Program::loopWorker()address [0x6a528e] line: 476                                                           
./megaglest:Glest::Game::glestMain(int, char**)address [0x6f66b7] line: 5451                                                         
./megaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x6fa0a1] line: 5699                                               
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7fd8bdfe0de5] line: 0                                                 
./megaglest() [0x4e70a8]address [0x4e70a8]                                                                                           
]                                                                                                                                   
*ERROR* [2014-04-12 13:39:39] In [game.cpp::update Line: 2774] Error [ut == NULL                                                     
Stack Trace:                                                                                                                         
./megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&, bool)address [0xb119d8] line: 305
./megaglest:Glest::Game::Map::findBestBuildApproach(Glest::Game::Unit const*, Shared::Graphics::Vec2<int>, Glest::Game::UnitType const*) constaddress [0xa0c02a] line: 1198                                                                                               
./megaglest:Glest::Game::UnitUpdater::updateRepair(Glest::Game::Unit*, int)address [0x9ec37b] line: 1945                             
./megaglest:Glest::Game::UnitUpdater::updateUnitCommand(Glest::Game::Unit*, int)address [0x9e42d5] line: 343                         
./megaglest:Glest::Game::UnitUpdater::updateUnit(Glest::Game::Unit*)address [0x9e48a8] line: 179                                     
./megaglest:Glest::Game::World::updateAllFactionUnits()address [0x9cb5a9] line: 712
./megaglest:Glest::Game::World::update()address [0x9d2625] line: 871
./megaglest:Glest::Game::Game::update()address [0x560a4b] line: 2157
./megaglest:Glest::Game::Program::loopWorker()address [0x6a528e] line: 476
./megaglest:Glest::Game::glestMain(int, char**)address [0x6f66b7] line: 5451
./megaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x6fa0a1] line: 5699
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7fd8bdfe0de5] line: 0
./megaglest() [0x4e70a8]address [0x4e70a8]

Stack Trace:
./megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&, bool)address [0xb119d8] line: 305
./megaglest:Glest::Game::UnitUpdater::updateRepair(Glest::Game::Unit*, int)address [0x9ec844] line: 2173
./megaglest:Glest::Game::UnitUpdater::updateUnitCommand(Glest::Game::Unit*, int)address [0x9e42d5] line: 343
./megaglest:Glest::Game::UnitUpdater::updateUnit(Glest::Game::Unit*)address [0x9e48a8] line: 179
./megaglest:Glest::Game::World::updateAllFactionUnits()address [0x9cb5a9] line: 712
./megaglest:Glest::Game::World::update()address [0x9d2625] line: 871
./megaglest:Glest::Game::Game::update()address [0x560a4b] line: 2157
./megaglest:Glest::Game::Program::loopWorker()address [0x6a528e] line: 476
./megaglest:Glest::Game::glestMain(int, char**)address [0x6f66b7] line: 5451
./megaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x6fa0a1] line: 5699
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7fd8bdfe0de5] line: 0
./megaglest() [0x4e70a8]address [0x4e70a8]

Stack Trace:
./megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&, bool)address [0xb119d8] line: 305
./megaglest:Glest::Game::UnitUpdater::updateUnitCommand(Glest::Game::Unit*, int)address [0x9e459f] line: 377
./megaglest:Glest::Game::UnitUpdater::updateUnit(Glest::Game::Unit*)address [0x9e48a8] line: 179
./megaglest:Glest::Game::World::updateAllFactionUnits()address [0x9cb5a9] line: 712
./megaglest:Glest::Game::World::update()address [0x9d2625] line: 871
./megaglest:Glest::Game::Game::update()address [0x560a4b] line: 2157
./megaglest:Glest::Game::Program::loopWorker()address [0x6a528e] line: 476
./megaglest:Glest::Game::glestMain(int, char**)address [0x6f66b7] line: 5451
./megaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x6fa0a1] line: 5699
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7fd8bdfe0de5] line: 0
./megaglest() [0x4e70a8]address [0x4e70a8]
]

Mine:
Code: [Select]
megaglest v3.9.1
Compiled using: GNUC: 40403 [64bit] on: Jan 18 2014 17:44:55 platform: Linux-X64 endianness: little
GIT: [Rev: 4628.11ac54a] - using STREFLOP [SSE] - [no-denormals]
radeon: Acquired access to Hyper-Z.
*ERROR* [2014-04-12 13:20:10] SOCKET WRITE TIMEOUT In [/home/softcoder/Code/megaglest/git/source/shared_lib/sources/platform/posix/socket.cpp::isWritable Line: 1786] i = 0 sock = 12 []
Game unique identifier is: 55b7c218-c234-11e3-bf24-11d82b53a9b9
*ERROR* [2014-04-12 13:39:41] In [/home/softcoder/Code/megaglest/git/source/glest_game/world/unit_updater.cpp::updateRepair Line: 2170] Error [ut == NULL
Stack Trace:
./megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&, bool)address [0xc05d8e] line: 305
./megaglest:Glest::Game::Map::findBestBuildApproach(Glest::Game::Unit const*, Shared::Graphics::Vec2<int>, Glest::Game::UnitType const*) constaddress [0xb39346] line: 1198
./megaglest:Glest::Game::UnitUpdater::updateRepair(Glest::Game::Unit*, int)address [0xb139ae] line: 1945
./megaglest() [0xb084db]address [0xb084db]
./megaglest:Glest::Game::UnitUpdater::updateUnit(Glest::Game::Unit*)address [0xb19b14] line: 179
./megaglest:Glest::Game::World::updateAllFactionUnits()address [0xafc0c7] line: 712
./megaglest:Glest::Game::World::update()address [0xafd7b6] line: 871
./megaglest:Glest::Game::Game::update()address [0x6707fd] line: 2157
./megaglest:Glest::Game::Program::loopWorker()address [0x7dc958] line: 476
./megaglest:Glest::Game::glestMain(int, char**)address [0x7d2a75] line: 5451
./megaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x7d45c1] line: 5699
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7f58e578bde5] line: 0
./megaglest() [0x5eddd9]address [0x5eddd9]
]
*ERROR* [2014-04-12 13:39:42] In [/home/softcoder/Code/megaglest/git/source/glest_game/world/unit_updater.cpp::updateUnitCommand Line: 374] Error [ut == NULL
Stack Trace:
./megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&, bool)address [0xc05d8e] line: 305
./megaglest:Glest::Game::Map::findBestBuildApproach(Glest::Game::Unit const*, Shared::Graphics::Vec2<int>, Glest::Game::UnitType const*) constaddress [0xb39346] line: 1198
./megaglest:Glest::Game::UnitUpdater::updateRepair(Glest::Game::Unit*, int)address [0xb139ae] line: 1945
./megaglest() [0xb084db]address [0xb084db]
./megaglest:Glest::Game::UnitUpdater::updateUnit(Glest::Game::Unit*)address [0xb19b14] line: 179
./megaglest:Glest::Game::World::updateAllFactionUnits()address [0xafc0c7] line: 712
./megaglest:Glest::Game::World::update()address [0xafd7b6] line: 871
./megaglest:Glest::Game::Game::update()address [0x6707fd] line: 2157
./megaglest:Glest::Game::Program::loopWorker()address [0x7dc958] line: 476
./megaglest:Glest::Game::glestMain(int, char**)address [0x7d2a75] line: 5451
./megaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x7d45c1] line: 5699
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7f58e578bde5] line: 0
./megaglest() [0x5eddd9]address [0x5eddd9]

Stack Trace:
./megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&, bool)address [0xc05d8e] line: 305
./megaglest:Glest::Game::UnitUpdater::updateRepair(Glest::Game::Unit*, int)address [0xb13f64] line: 2173
./megaglest() [0xb084db]address [0xb084db]
./megaglest:Glest::Game::UnitUpdater::updateUnit(Glest::Game::Unit*)address [0xb19b14] line: 179
./megaglest:Glest::Game::World::updateAllFactionUnits()address [0xafc0c7] line: 712
./megaglest:Glest::Game::World::update()address [0xafd7b6] line: 871
./megaglest:Glest::Game::Game::update()address [0x6707fd] line: 2157
./megaglest:Glest::Game::Program::loopWorker()address [0x7dc958] line: 476
./megaglest:Glest::Game::glestMain(int, char**)address [0x7d2a75] line: 5451
./megaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x7d45c1] line: 5699
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7f58e578bde5] line: 0
./megaglest() [0x5eddd9]address [0x5eddd9]
]
*ERROR* [2014-04-12 13:39:43] In [game.cpp::update Line: 2774] Error [ut == NULL
Stack Trace:
./megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&, bool)address [0xc05d8e] line: 305
./megaglest:Glest::Game::Map::findBestBuildApproach(Glest::Game::Unit const*, Shared::Graphics::Vec2<int>, Glest::Game::UnitType const*) constaddress [0xb39346] line: 1198
./megaglest:Glest::Game::UnitUpdater::updateRepair(Glest::Game::Unit*, int)address [0xb139ae] line: 1945
./megaglest() [0xb084db]address [0xb084db]
./megaglest:Glest::Game::UnitUpdater::updateUnit(Glest::Game::Unit*)address [0xb19b14] line: 179
./megaglest:Glest::Game::World::updateAllFactionUnits()address [0xafc0c7] line: 712
./megaglest:Glest::Game::World::update()address [0xafd7b6] line: 871
./megaglest:Glest::Game::Game::update()address [0x6707fd] line: 2157
./megaglest:Glest::Game::Program::loopWorker()address [0x7dc958] line: 476
./megaglest:Glest::Game::glestMain(int, char**)address [0x7d2a75] line: 5451
./megaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x7d45c1] line: 5699
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7f58e578bde5] line: 0
./megaglest() [0x5eddd9]address [0x5eddd9]

Stack Trace:
./megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&, bool)address [0xc05d8e] line: 305
./megaglest:Glest::Game::UnitUpdater::updateRepair(Glest::Game::Unit*, int)address [0xb13f64] line: 2173
./megaglest() [0xb084db]address [0xb084db]
./megaglest:Glest::Game::UnitUpdater::updateUnit(Glest::Game::Unit*)address [0xb19b14] line: 179
./megaglest:Glest::Game::World::updateAllFactionUnits()address [0xafc0c7] line: 712
./megaglest:Glest::Game::World::update()address [0xafd7b6] line: 871
./megaglest:Glest::Game::Game::update()address [0x6707fd] line: 2157
./megaglest:Glest::Game::Program::loopWorker()address [0x7dc958] line: 476
./megaglest:Glest::Game::glestMain(int, char**)address [0x7d2a75] line: 5451
./megaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x7d45c1] line: 5699
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7f58e578bde5] line: 0
./megaglest() [0x5eddd9]address [0x5eddd9]

Stack Trace:
./megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&, bool)address [0xc05d8e] line: 305
./megaglest() [0xb087b1]address [0xb087b1]
./megaglest:Glest::Game::UnitUpdater::updateUnit(Glest::Game::Unit*)address [0xb19b14] line: 179
./megaglest:Glest::Game::World::updateAllFactionUnits()address [0xafc0c7] line: 712
./megaglest:Glest::Game::World::update()address [0xafd7b6] line: 871
./megaglest:Glest::Game::Game::update()address [0x6707fd] line: 2157
./megaglest:Glest::Game::Program::loopWorker()address [0x7dc958] line: 476
./megaglest:Glest::Game::glestMain(int, char**)address [0x7d2a75] line: 5451
./megaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x7d45c1] line: 5699
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7f58e578bde5] line: 0
./megaglest() [0x5eddd9]address [0x5eddd9]
]

David was not in the position to preserve his output. Nor does the server do so. The error.log file was no updated on Davids computer, mine nor on the server.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

andy_5995

  • Moderator
  • Ornithopter
  • ********
  • Posts: 454
  • Debian Linux user
    • View Profile
    • Andy Alt's home page
Re: 3.9.1: unit_updater.cpp::updateRepair Line: 2170] Error [ut == NULL
« Reply #1 on: 12 February 2017, 23:32:19 »
I opened GitHub ticket #150 for this. It's happened to me 2x now.