Author Topic: MG 3.5.0 freezing after player connects  (Read 764 times)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
MG 3.5.0 freezing after player connects
« on: 22 April 2011, 18:11:25 »
This is a stacktrace of the game after Strannik connected to my server:

Code: [Select]
0x00007f4c270f47c4 in __lll_lock_wait () from /lib/x86_64-linux-gnu/libpthread.so.0
#0  0x00007f4c270f47c4 in __lll_lock_wait () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f4c270ef5cf in _L_lock_1005 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007f4c270ef42b in pthread_mutex_lock () from /lib/x86_64-linux-gnu/libpthread.so.0
#3  0x00007f4c2735648e in SDL_mutexP () from /usr/lib/libSDL-1.2.so.0
#4  0x000000000089539c in Shared::Platform::Mutex::p (this=0x2a9e930) at /home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/platform/sdl/thread.cpp:117
#5  0x0000000000764c00 in Lock (this=<value optimized out>, mapSlotSignalledList=<value optimized out>, errorMsgList=..., eventList=<value optimized out>) at /home/softcoder/Code/megaglest/trunk/source/glest_game/../shared_lib/include/platform/sdl/thread.h:124
#6  MutexSafeWrapper (this=<value optimized out>, mapSlotSignalledList=<value optimized out>, errorMsgList=..., eventList=<value optimized out>) at /home/softcoder/Code/megaglest/trunk/source/glest_game/../shared_lib/include/platform/sdl/thread.h:97
#7  Glest::Game::ServerInterface::checkForCompletedClients (this=<value optimized out>, mapSlotSignalledList=<value optimized out>, errorMsgList=..., eventList=<value optimized out>) at /home/softcoder/Code/megaglest/trunk/source/glest_game/network/server_interface.cpp:629
#8  0x000000000076cecd in Glest::Game::ServerInterface::update (this=0x2a9e640) at /home/softcoder/Code/megaglest/trunk/source/glest_game/network/server_interface.cpp:860
#9  0x0000000000650136 in Glest::Game::Program::loopWorker (this=0x2444b50) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/program.cpp:316
#10 0x000000000064b525 in Glest::Game::glestMain (argc=<value optimized out>, argv=<value optimized out>) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp:2622
#11 0x000000000064c53e in Glest::Game::glestMainWrapper (argc=1, argv=0x7fff39438c78) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp:2704
#12 0x00007f4c23fcbeff in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#13 0x0000000000572a39 in _start () at ../sysdeps/x86_64/elf/start.S:113

When Strannik joined the server, mMy screen froze and did not recover within 5 minutes. I then killed the process (signal 9).
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

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: MG 3.5.0 freezing after player connects
« Reply #1 on: 22 April 2011, 18:19:57 »
It looks like Strannik is having connectivity issues today, and that they are triggering this.

I hosted again, and while another player was connected all the time and chatting with me, Strannik kept trying to connect, resulting in these messages being logged (and a message window displaying the "*ERROR*" message on screen - this message window was badly looking in terms of design again):

Code: [Select]
Server: v3.5.0-GNUC: 40401 [64bit]-Apr 20 2011 09:55:20
Client: v3.5.0-GNUC: 40204-Apr 20 2011 09:57:10 player [Strannik]
[2011-04-22 20:14:30] *ERROR* SOCKET WRITE TIMEOUT In [/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/platform/posix/socket.cpp::isWritable Line: 1435] i = 0 sock = -1
[2011-04-22 20:14:30] *ERROR* In [/home/softcoder/Code/megaglest/trunk/source/glest_game/network/connection_slot.cpp::update Line: 780] Error [In [/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/platform/sdl/thread.cpp::p Line: 114] mutex == NULL refCount = 0 owner [/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/platform/posix/socket.cpp_1378]]
Warning, Server and client are using the same version but different platforms.
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 · · ·