Author Topic: error NULL crash  (Read 2500 times)

andy_5995

  • Moderator
  • Ornithopter
  • ********
  • Posts: 487
  • Debian Linux user
    • View Profile
    • Andy Alt's home page
error NULL crash
« on: 6 May 2016, 19:22:45 »
I don't know what to put in the subject.

A crash for all 4 players. No idea how to reproduce it.

v3.12.0   finished   00:05:40   NL   david123 controls   megapack   0   0   0   bigeight4vs4a1   jungle   94.23.148.250   62001   Linux-X64-Rev: 5421.0fcffb1   2016-05-06 21:12:26

1    Network Player    david123    Windows-X64    1.00    Norsemen    1    no    0    0    0    22    4566    1,557    no    00:00:00
2    Network Player    andy5995    Linux-X64    1.00    Indian    1    no    0    0    0    11    2731    823    no    00:00:00
3    Network Player    andy123    Linux-X64    1.00    Romans    1    no    0    0    0    30    4381    1,938    no    00:00:00
4    Network Player    CuSToM94    Linux-X64    1.00    Egypt    1    no    0    0    4    31    4098    1,960    no    00:00:00
5    CPU Mega    AI1       4.90    Romans    2    no    2    2    0    24    9284    2,328    no    00:00:00
6    CPU Mega    AI2       3.50    Tech    2    no    0    0    0    20    7915    1,792    no    00:00:00
7    CPU Mega    AI3       3.50    Indian    2    no    0    0    0    42    8299    2,930    no    00:00:00
8    CPU Mega    AI4       4.90    Egypt    2    no    2    2    0    45    8013    3,251    no    00:00:00

Code: [Select]
*ERROR* [2016-05-06 14:12:23] In [/home/andy/src/megaglest-3.12.0/source/glest_game/world/unit_updater.cpp::updateRepair Line: 2235] Error [ut == NULL
Stack Trace:
megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&, bool)address [0x7f96b0e8a9a1] line: 0
megaglest:Glest::Game::Map::findBestBuildApproach(Glest::Game::Unit const*, Shared::Graphics::Vec2<int>, Glest::Game::UnitType const*) constaddress [0x7f96b0d3d704] line: 0
megaglest:Glest::Game::UnitUpdater::updateRepair(Glest::Game::Unit*, int)address [0x7f96b0d5f473] line: 0
megaglest:Glest::Game::UnitUpdater::updateUnitCommand(Glest::Game::Unit*, int)address [0x7f96b0d539a0] line: 0
megaglest:Glest::Game::UnitUpdater::updateUnit(Glest::Game::Unit*)address [0x7f96b0d540b9] line: 0
megaglest:Glest::Game::World::updateAllFactionUnits()address [0x7f96b0d257cc] line: 0
megaglest:Glest::Game::World::update()address [0x7f96b0d2cac2] line: 0
megaglest:Glest::Game::Game::update()address [0x7f96b088d071] line: 0
megaglest:Glest::Game::Program::loopWorker()address [0x7f96b09bef54] line: 0
megaglest:Glest::Game::glestMain(int, char**)address [0x7f96b09aab1f] line: 0
megaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x7f96b09af0f2] line: 0
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7f96abc74b45] line: 0
megaglest:()address [0x7f96b077a4ca] line: 0
]
*ERROR* [2016-05-06 14:12:23] In [/home/andy/src/megaglest-3.12.0/source/glest_game/world/unit_updater.cpp::updateUnitCommand Line: 439] Error [ut == NULL
Stack Trace:
megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&, bool)address [0x7f96b0e8a9a1] line: 0
megaglest:Glest::Game::Map::findBestBuildApproach(Glest::Game::Unit const*, Shared::Graphics::Vec2<int>, Glest::Game::UnitType const*) constaddress [0x7f96b0d3d704] line: 0
megaglest:Glest::Game::UnitUpdater::updateRepair(Glest::Game::Unit*, int)address [0x7f96b0d5f473] line: 0
megaglest:Glest::Game::UnitUpdater::updateUnitCommand(Glest::Game::Unit*, int)address [0x7f96b0d539a0] line: 0
megaglest:Glest::Game::UnitUpdater::updateUnit(Glest::Game::Unit*)address [0x7f96b0d540b9] line: 0
megaglest:Glest::Game::World::updateAllFactionUnits()address [0x7f96b0d257cc] line: 0
megaglest:Glest::Game::World::update()address [0x7f96b0d2cac2] line: 0
megaglest:Glest::Game::Game::update()address [0x7f96b088d071] line: 0
megaglest:Glest::Game::Program::loopWorker()address [0x7f96b09bef54] line: 0
megaglest:Glest::Game::glestMain(int, char**)address [0x7f96b09aab1f] line: 0
megaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x7f96b09af0f2] line: 0
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7f96abc74b45] line: 0
megaglest:()address [0x7f96b077a4ca] line: 0

Stack Trace:
megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&, bool)address [0x7f96b0e8a9a1] line: 0
megaglest:Glest::Game::UnitUpdater::updateRepair(Glest::Game::Unit*, int)address [0x7f96b0d5fa04] line: 0
megaglest:Glest::Game::UnitUpdater::updateUnitCommand(Glest::Game::Unit*, int)address [0x7f96b0d539a0] line: 0
megaglest:Glest::Game::UnitUpdater::updateUnit(Glest::Game::Unit*)address [0x7f96b0d540b9] line: 0
megaglest:Glest::Game::World::updateAllFactionUnits()address [0x7f96b0d257cc] line: 0
megaglest:Glest::Game::World::update()address [0x7f96b0d2cac2] line: 0
megaglest:Glest::Game::Game::update()address [0x7f96b088d071] line: 0
megaglest:Glest::Game::Program::loopWorker()address [0x7f96b09bef54] line: 0
megaglest:Glest::Game::glestMain(int, char**)address [0x7f96b09aab1f] line: 0
megaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x7f96b09af0f2] line: 0
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7f96abc74b45] line: 0
megaglest:()address [0x7f96b077a4ca] line: 0
]
*ERROR* [2016-05-06 14:12:23] In [game.cpp::update Line: 2783] Error [ut == NULL
Stack Trace:
megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&, bool)address [0x7f96b0e8a9a1] line: 0
megaglest:Glest::Game::Map::findBestBuildApproach(Glest::Game::Unit const*, Shared::Graphics::Vec2<int>, Glest::Game::UnitType const*) constaddress [0x7f96b0d3d704] line: 0
megaglest:Glest::Game::UnitUpdater::updateRepair(Glest::Game::Unit*, int)address [0x7f96b0d5f473] line: 0
megaglest:Glest::Game::UnitUpdater::updateUnitCommand(Glest::Game::Unit*, int)address [0x7f96b0d539a0] line: 0
megaglest:Glest::Game::UnitUpdater::updateUnit(Glest::Game::Unit*)address [0x7f96b0d540b9] line: 0
megaglest:Glest::Game::World::updateAllFactionUnits()address [0x7f96b0d257cc] line: 0
megaglest:Glest::Game::World::update()address [0x7f96b0d2cac2] line: 0
megaglest:Glest::Game::Game::update()address [0x7f96b088d071] line: 0
megaglest:Glest::Game::Program::loopWorker()address [0x7f96b09bef54] line: 0
megaglest:Glest::Game::glestMain(int, char**)address [0x7f96b09aab1f] line: 0
megaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x7f96b09af0f2] line: 0
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7f96abc74b45] line: 0
megaglest:()address [0x7f96b077a4ca] line: 0

Stack Trace:
megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&, bool)address [0x7f96b0e8a9a1] line: 0
megaglest:Glest::Game::UnitUpdater::updateRepair(Glest::Game::Unit*, int)address [0x7f96b0d5fa04] line: 0
megaglest:Glest::Game::UnitUpdater::updateUnitCommand(Glest::Game::Unit*, int)address [0x7f96b0d539a0] line: 0
megaglest:Glest::Game::UnitUpdater::updateUnit(Glest::Game::Unit*)address [0x7f96b0d540b9] line: 0
megaglest:Glest::Game::World::updateAllFactionUnits()address [0x7f96b0d257cc] line: 0
megaglest:Glest::Game::World::update()address [0x7f96b0d2cac2] line: 0
megaglest:Glest::Game::Game::update()address [0x7f96b088d071] line: 0
megaglest:Glest::Game::Program::loopWorker()address [0x7f96b09bef54] line: 0
megaglest:Glest::Game::glestMain(int, char**)address [0x7f96b09aab1f] line: 0
megaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x7f96b09af0f2] line: 0
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7f96abc74b45] line: 0
megaglest:()address [0x7f96b077a4ca] line: 0

Stack Trace:
megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&, bool)address [0x7f96b0e8a9a1] line: 0
megaglest:Glest::Game::UnitUpdater::updateUnitCommand(Glest::Game::Unit*, int)address [0x7f96b0d53c91] line: 0
megaglest:Glest::Game::UnitUpdater::updateUnit(Glest::Game::Unit*)address [0x7f96b0d540b9] line: 0
megaglest:Glest::Game::World::updateAllFactionUnits()address [0x7f96b0d257cc] line: 0
megaglest:Glest::Game::World::update()address [0x7f96b0d2cac2] line: 0
megaglest:Glest::Game::Game::update()address [0x7f96b088d071] line: 0
megaglest:Glest::Game::Program::loopWorker()address [0x7f96b09bef54] line: 0
megaglest:Glest::Game::glestMain(int, char**)address [0x7f96b09aab1f] line: 0
megaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x7f96b09af0f2] line: 0
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7f96abc74b45] line: 0
megaglest:()address [0x7f96b077a4ca] line: 0
]
Auto Change resolution to (1280 x 720) from (800 x 600)
**WARNING** thread destructor delayed, trying to exit...
andy@oceanus:~$ cat ~/.megaglest/error.log
[2016-05-04 13:09:46] Runtime Error information:
======================================================
In [/home/andy/src/megaglest-3.12.0/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5862] Error detected: signal 11:

Stack Trace:
megaglest:Glest::Game::ExceptionHandler::handleRuntimeError(char const*, bool)address [0x7f6343026eb2] line: 0
megaglest:Glest::Game::handleSIGSEGV(int)address [0x7f6343027223] line: 0
/lib/x86_64-linux-gnu/libc.so.6:()address [0x7f633e3180e0] line: 0
/usr/lib/x86_64-linux-gnu/libstdc++.so.6:()address [0x7f633ec1a564] line: 0
/usr/lib/x86_64-linux-gnu/libstdc++.so.6:std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)address [0x7f633ec1a841] line: 0
megaglest:std::_Rb_tree<std::string, std::pair<std::string const, Shared::Platform::Mutex*>, std::_Select1st<std::pair<std::string const, Shared::Platform::Mutex*> >, std::less<std::string>, std::allocator<std::pair<std::string const, Shared::Platform::Mutex*> > >::_M_insert_unique_(std::_Rb_tree_const_iterator<std::pair<std::string const, Shared::Platform::Mutex*> >, std::pair<std::string const, Shared::Platform::Mutex*> const&)address [0x7f6342e5507c] line: 0
megaglest:std::map<std::string, Shared::Platform::Mutex*, std::less<std::string>, std::allocator<std::pair<std::string const, Shared::Platform::Mutex*> > >::operator[](std::string const&)address [0x7f6342fce9f1] line: 0
megaglest:std::map<std::string, unsigned int, std::less<std::string>, std::allocator<std::pair<std::string const, unsigned int> > >& Shared::PlatformCommon::CacheManager::getCachedItem<std::map<std::string, unsigned int, std::less<std::string>, std::allocator<std::pair<std::string const, unsigned int> > > >(std::string)address [0x7f63434bda67] line: 0
megaglest:Shared::PlatformCommon::getFolderTreeContentsCheckSumRecursively(std::vector<std::string, std::allocator<std::string> >, std::string, std::string const&, Shared::Util::Checksum*, bool)address [0x7f63434b6700] line: 0
megaglest:Shared::PlatformCommon::FileCRCPreCacheThread::execute()address [0x7f63434c66f6] line: 0
megaglest:Shared::Platform::Thread::beginExecution(void*)address [0x7f634350f0fd] line: 0
/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0:()address [0x7f634285ccfc] line: 0
/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0:()address [0x7f63428a69c9] line: 0
/lib/x86_64-linux-gnu/libpthread.so.0:()address [0x7f63425d10a4] line: 0
/lib/x86_64-linux-gnu/libc.so.6:clone()address [0x7f633e3cb87d] line: 0

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: error NULL crash
« Reply #1 on: 12 May 2016, 08:51:18 »
This doesn't look like somethig new, something must still be wrong ...
https://forum.megaglest.org/index.php?topic=9196.0
https://forum.megaglest.org/index.php?topic=9490.0
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

andy_5995

  • Moderator
  • Ornithopter
  • ********
  • Posts: 487
  • Debian Linux user
    • View Profile
    • Andy Alt's home page
Re: error NULL crash
« Reply #2 on: 12 February 2017, 23:32:50 »
I opened GitHub ticket #150 for this. It's happened to me again.

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: error NULL crash
« Reply #3 on: 14 March 2017, 09:42:11 »
Which version of MG ?
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

andy_5995

  • Moderator
  • Ornithopter
  • ********
  • Posts: 487
  • Debian Linux user
    • View Profile
    • Andy Alt's home page
Re: error NULL crash
« Reply #4 on: 14 March 2017, 18:01:00 »
On Git. Ticket #150 was last updated 8 days ago.