Author Topic: Crash on connect to network port  (Read 889 times)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Crash on connect to network port
« on: 16 April 2011, 02:43:30 »
When you try to connect to any local or remote network location where there is no open / listening network port, GAE (posing as a game client) will crash with this:

Quote
Crash!
Exception: Socket Error in : readAll() [Error code: 107]
Transport endpoint is not connected

This is a literal quote from the window which displays on screen. Unfortunately this error is not logged to any logfile (gae-crash.txt, glestadv-network.log, glestadv-error.log) and the screenshot produced at this point is reproducibly broken.

However, when you connect to a listening port (which just accepts the TCP connection but does not send any data), then cancel connecting on the GAE client, you crash with this instead:

Code: [Select]
Crash
Version: Advanced Engine git-master
Time: Sat Apr 16 04:40:18 2011
Description: SIGSEGV: address not mapped to object
Address: 0
Backtrace:
./build/source/game/glestadv(_ZN6Shared8Platform24PlatformExceptionHandler7handlerEiP7siginfoPv+0xf7) [0x70c387]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xfc60) [0x7f304a424c60]
./build/source/game/glestadv(_ZN5Glest7Widgets12WidgetWindow20removeFloatingWidgetEPNS0_6WidgetE+0xb7) [0x68cc87]
./build/source/game/glestadv(_ZN5Glest4Menu17MenuStateJoinGame6updateEv+0x1a4) [0x59fb84]
./build/source/game/glestadv(_ZN5Glest4Main7Program4loopEv+0x19e) [0x5789ae]
./build/source/game/glestadv(_ZN5Glest4Main9glestMainEiPPc+0x323) [0x575313]
./build/source/game/glestadv(main+0x35) [0x5758f5]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xff) [0x7f30484fdeff]
./build/source/game/glestadv() [0x4c4f09]

=======================

« Last Edit: 18 April 2011, 16:56:19 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 · · ·