Author Topic: [fixed] r3437: Out of synch when client disconnects/is replaced by AI  (Read 715 times)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Coldfusionstorm (client) and I (host) were playing a test game. When it was over, he disconnected. Exactly then I got an on-screen message saying this:

Code: [Select]
[2012-07-07 13:53:36] *ERROR* In [game.cpp::update Line: 1569] Error [In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/game/commander.cpp::pushNetworkCommand - 517] Command refers to non existent unit id = 1. Game out of synch.
Stack Trace:
mk/linux/megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&) address [0xa0cf26] line: 252
mk/linux/megaglest() [0x56e980] address [0x56e980]
mk/linux/megaglest:Glest::Game::Commander::tryNetworkPlayerDisconnected(int) const address [0x571abc] line: 485
mk/linux/megaglest:Glest::Game::Game::ReplaceDisconnectedNetworkPlayersWithAI(bool, Glest::Game::NetworkRole) address [0x5b0d55] line: 1685
mk/linux/megaglest:Glest::Game::Game::update() address [0x5bcfa9] line: 1282
mk/linux/megaglest:Glest::Game::Program::loopWorker() address [0x6aefd6] line: 433
mk/linux/megaglest:Glest::Game::glestMain(int, char**) address [0x695775] line: 4689
mk/linux/megaglest:Glest::Game::glestMainWrapper(int, char**) address [0x6983f6] line: 4869
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main() address [0x7fbf0079e76d] line: 0
mk/linux/megaglest() [0x4f23b9] address [0x4f23b9]

The game continued to run, I could quit normally using the menus.
« Last Edit: 19 July 2012, 00:52:20 by tomreyn »
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 · · ·

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
We reproduced this now, keeping a copy of the servers' entire verbose output.

Code: [Select]
Running command NetworkCommandType = 0, unitid = 300019 [0x101de6a0] factionindex = 3
Running command NetworkCommandType = 0, unitid = 300008 [0xd05cd70] factionindex = 3
In [/home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/sdl/platform_util.cpp::getStackTrace Line: 186]
[2012-07-07 14:59:15] *ERROR* In [game.cpp::update Line: 1569] Error [In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/game/commander.cpp::pushNetworkCommand - 517] Command refers to non existent unit id = 1. Game out of synch.
Stack Trace:
mk/linux/megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&) address [0xa0cf26] line: 252
mk/linux/megaglest() [0x56e980] address [0x56e980]
mk/linux/megaglest:Glest::Game::Commander::tryNetworkPlayerDisconnected(int) const address [0x571abc] line: 485
mk/linux/megaglest:Glest::Game::Game::ReplaceDisconnectedNetworkPlayersWithAI(bool, Glest::Game::NetworkRole) address [0x5b0d55] line: 1685
mk/linux/megaglest:Glest::Game::Game::update() address [0x5bcfa9] line: 1282
mk/linux/megaglest:Glest::Game::Program::loopWorker() address [0x6aefd6] line: 433
mk/linux/megaglest:Glest::Game::glestMain(int, char**) address [0x695775] line: 4689
mk/linux/megaglest:Glest::Game::glestMainWrapper(int, char**) address [0x6983f6] line: 4869
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main() address [0x7f40d2acc76d] line: 0
mk/linux/megaglest() [0x4f23b9] address [0x4f23b9]
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 · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: r3437: Out of synch when client disconnects/is replaced by AI
« Reply #2 on: 10 July 2012, 02:12:21 »
Nice find, this is fixed now in SVN rev#: 3441

 

anything