Author Topic: [dupe] Crash / freeze when server quits game  (Read 1243 times)

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
[dupe] Crash / freeze when server quits game
« on: 10 March 2013, 01:14:49 »
I got this when tomreyn ( the server)  quits the game.
Code: [Select]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./megaglest'.
Program terminated with signal 6, Aborted.
#0  0x00007f21357c2425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#0  0x00007f21357c2425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f21357c5b8b in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007f213580039e in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x00007f2135896807 in __fortify_fail () from /lib/x86_64-linux-gnu/libc.so.6
#4  0x00007f2135895700 in __chk_fail () from /lib/x86_64-linux-gnu/libc.so.6
#5  0x00007f21358967be in __fdelt_warn () from /lib/x86_64-linux-gnu/libc.so.6
#6  0x0000000000aa6fe8 in Shared::Platform::Socket::hasDataToRead (socket=901007224) at /home/tscharn/glest/megaglest/source/shared_lib/sources/platform/posix/socket.cpp:1056
#7  0x0000000000865cb8 in Glest::Game::NetworkInterface::getNextMessageType (this=0x2b77f80) at /home/tscharn/glest/megaglest/source/glest_game/network/network_interface.cpp:84
#8  0x000000000087c12d in Glest::Game::ClientInterface::waitForMessage (this=0x2b77f80) at /home/tscharn/glest/megaglest/source/glest_game/network/client_interface.cpp:1664
#9  0x0000000000883cee in Glest::Game::ClientInterface::updateFrame (this=0x2b77f80, checkFrame=0x0) at /home/tscharn/glest/megaglest/source/glest_game/network/client_interface.cpp:866
#10 0x0000000000887340 in updateNetworkFrame (this=<optimized out>) at /home/tscharn/glest/megaglest/source/glest_game/network/client_interface.cpp:847
#11 Glest::Game::ClientInterfaceThread::execute (this=0x39bbd80) at /home/tscharn/glest/megaglest/source/glest_game/network/client_interface.cpp:115
#12 0x0000000000a6eb4f in Shared::Platform::Thread::beginExecution (data=<optimized out>) at /home/tscharn/glest/megaglest/source/shared_lib/sources/platform/sdl/thread.cpp:85
#13 0x00007f2139344fd5 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#14 0x00007f2139388999 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0
#15 0x00007f213911ce9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#16 0x00007f213587fcbd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#17 0x0000000000000000 in ?? ()
« Last Edit: 1 May 2013, 09:49:05 by tomreyn »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: crash when server quits game
« Reply #1 on: 11 March 2013, 03:52:51 »
Try rev 4184

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: crash when server quits game
« Reply #2 on: 12 March 2013, 22:17:52 »
still always happens if I am the client and the server quits his game: ( easy to reproduce , I think it happens always )

Code: [Select]
#0  0x00007febbc2d6425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#0  0x00007febbc2d6425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007febbc2d9b8b in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007febbc31439e in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x00007febbc31eb96 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#4  0x00007febbcc0fc13 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x0000000000a6f646 in Shared::Platform::Mutex::~Mutex (this=0x2ac0280, __in_chrg=<optimized out>) at /home/tscharn/glest/megaglest/source/shared_lib/sources/platform/sdl/thread.cpp:164
#6  0x0000000000ab0a97 in Shared::Platform::Socket::~Socket (this=0x4955c10, __in_chrg=<optimized out>) at /home/tscharn/glest/megaglest/source/shared_lib/sources/platform/posix/socket.cpp:943
#7  0x0000000000ab12de in ~ClientSocket (this=0x4955c10, __in_chrg=<optimized out>) at /home/tscharn/glest/megaglest/source/shared_lib/sources/platform/posix/socket.cpp:1849
#8  Shared::Platform::ClientSocket::~ClientSocket (this=0x4955c10, __in_chrg=<optimized out>) at /home/tscharn/glest/megaglest/source/shared_lib/sources/platform/posix/socket.cpp:1855
#9  0x0000000000871f5f in Glest::Game::ClientInterface::close (this=0x3e96a40) at /home/tscharn/glest/megaglest/source/glest_game/network/client_interface.cpp:1754
#10 0x000000000086804e in Glest::Game::NetworkInterface::DisplayErrorMessage (this=0x3e96a40, sErr=..., closeSocket=true) at /home/tscharn/glest/megaglest/source/glest_game/network/network_interface.cpp:131
#11 0x0000000000874907 in Glest::Game::ClientInterface::update (this=0x3e96a40) at /home/tscharn/glest/megaglest/source/glest_game/network/client_interface.cpp:313
#12 0x00000000006c62d9 in Glest::Game::Program::loopWorker (this=0x2b0b800) at /home/tscharn/glest/megaglest/source/glest_game/main/program.cpp:483
#13 0x00000000006ba391 in Glest::Game::glestMain (argc=<optimized out>, argv=<optimized out>) at /home/tscharn/glest/megaglest/source/glest_game/main/main.cpp:5049
#14 0x00000000006bd1d4 in Glest::Game::glestMainSEHWrapper (argc=1, argv=0x7fffb614e848) at /home/tscharn/glest/megaglest/source/glest_game/main/main.cpp:5288
#15 0x00000000006bd3b2 in Glest::Game::glestMainWrapper (argc=1, argv=0x7fffb614e848) at /home/tscharn/glest/megaglest/source/glest_game/main/main.cpp:5361
#16 0x00007febbc2c176d in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#17 0x0000000000501959 in _start ()
« Last Edit: 12 March 2013, 22:29:35 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: crash when server quits game
« Reply #3 on: 12 March 2013, 22:51:17 »
Try svn head again (I committed a fix attempt)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: crash when server quits game
« Reply #4 on: 12 March 2013, 23:50:57 »
It no longer freezes entirely for me, but as the server quits / disconnects, the clients' screen stalls for 15-20 seconds. I think this is too long.
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: crash when server quits game
« Reply #5 on: 20 March 2013, 00:51:47 »
Is this still reproducible or fixed with latest svn head?

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: crash when server quits game
« Reply #6 on: 26 March 2013, 09:47:38 »
No more crash, but long freeze is still present ( rev 4209 )
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: crash when server quits game
« Reply #7 on: 29 March 2013, 01:14:45 »
See the other report, too: https://forum.megaglest.org/index.php?topic=8927.0
For me there is only the client freeze on exit of the server left. I don't think the client ever recovers from this freeze.
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: crash when server quits game
« Reply #8 on: 30 April 2013, 06:39:57 »
Is there still this freeze? Is this a duplicate bug report of the other bug reported (where I tested in Virtualbox on windows)?

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
(fixed)Re: crash when server quits game
« Reply #9 on: 30 April 2013, 18:37:31 »
This is a duplicate report.

 orginal one is here: https://forum.megaglest.org/index.php?topic=8927.0
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios