Author Topic: [invalid] Bug: Freeze during network device change in menu  (Read 812 times)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
[invalid] Bug: Freeze during network device change in menu
« on: 28 September 2010, 03:34:44 »
Today I had an issue where the game froze on the menu where it lists available game servers.

What I did to provoke this situation:
1. I started the game and entered the 'Internet game' menu.
2. I disconnected my internet connection (via eth0).
3. I enabled my wireless internet connection (via wlan0), switching to a different internet provider.
4. As soon as I clicked (mouse) on some GUI button the game froze.

I created a backtrace_running.log backtrace by attaching GDB to the running process. This andmy debug log can be found in my log dump megaglest_btrunk+r1028_d20100927-211650UTC_ptomreyntrunk_tfreeze_after_switching_ISPs_and_network_device.tar.gz (available at the usual location).
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: Bug: Freeze during network device change in menu
« Reply #1 on: 28 September 2010, 20:22:22 »
This is caused by the masterserver thread waiting for network status, while at the same time you try to close the master server menu and the thread is hung waiting for a reply (it waits about 10 seconds max) but the menu return tries to end that same thread, this ending process has a smaller max wait time than the network wait time and thus it segfaults under these conditions.

This case is highly unusual but I will try to figure a way to solve it easily if possible.

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Bug: Freeze during network device change in menu
« Reply #2 on: 29 September 2010, 00:23:43 »
Well it doesn't actually segfault, just freezes. Thanks for explaining the situation evoking this situation, though, that's appreciated.
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 · · ·