Author Topic: [fixed] r4168: Timeout when pausing a simple network game  (Read 749 times)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Today I was testing with Jammy and Filux where I was hosting and they were clients. We played several games. In two of those game, one of them was crashing for reasons which were insufficiently described. When one of them crashed, I paused the game, told the remaining cconnected network player that I would discuss the matter on IRC with the other player who segfaulted - just to learn that the other player timed out when I turned back to him on the running game.

So I tested this again with Titi, he was hosting this time, and we just started a default game and paused it right at the start. Lag was increasing constantly until "0 [20.0]" and more (only the number in square brackets increased, never the first one), and while lag eventually reset it would then increase again to way too high numbers. At the same time we were chatting without noticeable delay.

My game printed the following to the terminal at that time:
Code: [Select]
$ ./megaglest
megaglest v3.8-dev
Compiled using: GNUC: 40702 [64bit] on: Mar  6 2013 18:44:32 platform: Linux-X64 endianness: little
SVN: [Rev: 4168] - using STREFLOP [SSE] - [no-denormals]
radeon: Acquired access to Hyper-Z.
Resume #1
Client waiting for packet for frame: 400, copyCachedLastPendingFrameCount = 380
Client waiting for packet for frame: 440, copyCachedLastPendingFrameCount = 420
Client waiting for packet for frame: 460, copyCachedLastPendingFrameCount = 440
Client waiting for packet for frame: 480, copyCachedLastPendingFrameCount = 460
Client waiting for packet for frame: 500, copyCachedLastPendingFrameCount = 480
Client waiting for packet for frame: 520, copyCachedLastPendingFrameCount = 500
Client waiting for packet for frame: 540, copyCachedLastPendingFrameCount = 520
Resume #1
Client waiting for packet for frame: 600, copyCachedLastPendingFrameCount = 580
Client waiting for packet for frame: 720, copyCachedLastPendingFrameCount = 700
Client waiting for packet for frame: 800, copyCachedLastPendingFrameCount = 780
Client waiting for packet for frame: 880, copyCachedLastPendingFrameCount = 860
Client waiting for packet for frame: 1000, copyCachedLastPendingFrameCount = 980
Client waiting for packet for frame: 1120, copyCachedLastPendingFrameCount = 1100
Client waiting for packet for frame: 1200, copyCachedLastPendingFrameCount = 1180
Client waiting for packet for frame: 1280, copyCachedLastPendingFrameCount = 1260
Client waiting for packet for frame: 1360, copyCachedLastPendingFrameCount = 1340
Client waiting for packet for frame: 1400, copyCachedLastPendingFrameCount = 1380
Client waiting for packet for frame: 1440, copyCachedLastPendingFrameCount = 1420
Client waiting for packet for frame: 1600, copyCachedLastPendingFrameCount = 1580
Client waiting for packet for frame: 1680, copyCachedLastPendingFrameCount = 1660
Client waiting for packet for frame: 1760, copyCachedLastPendingFrameCount = 1740
Client waiting for packet for frame: 1840, copyCachedLastPendingFrameCount = 1820
Client waiting for packet for frame: 1920, copyCachedLastPendingFrameCount = 1900
Client waiting for packet for frame: 2000, copyCachedLastPendingFrameCount = 1980
Client waiting for packet for frame: 2200, copyCachedLastPendingFrameCount = 2180
Client waiting for packet for frame: 2240, copyCachedLastPendingFrameCount = 2220
Client waiting for packet for frame: 2320, copyCachedLastPendingFrameCount = 2300
Client waiting for packet for frame: 2400, copyCachedLastPendingFrameCount = 2380
Client waiting for packet for frame: 2580, copyCachedLastPendingFrameCount = 2560
Resume #1
Client waiting for packet for frame: 2600, copyCachedLastPendingFrameCount = 2580
Client waiting for packet for frame: 2720, copyCachedLastPendingFrameCount = 2700
Client waiting for packet for frame: 2800, copyCachedLastPendingFrameCount = 2780
Client waiting for packet for frame: 2880, copyCachedLastPendingFrameCount = 2860
Client waiting for packet for frame: 2940, copyCachedLastPendingFrameCount = 2920
Client waiting for packet for frame: 2960, copyCachedLastPendingFrameCount = 2940
Client waiting for packet for frame: 3000, copyCachedLastPendingFrameCount = 2980
Client waiting for packet for frame: 3040, copyCachedLastPendingFrameCount = 3020
Client waiting for packet for frame: 3100, copyCachedLastPendingFrameCount = 3080
Client waiting for packet for frame: 3120, copyCachedLastPendingFrameCount = 3100
Client waiting for packet for frame: 3160, copyCachedLastPendingFrameCount = 3140
Client waiting for packet for frame: 3180, copyCachedLastPendingFrameCount = 3160
Client waiting for packet for frame: 3200, copyCachedLastPendingFrameCount = 3180
Client waiting for packet for frame: 3400, copyCachedLastPendingFrameCount = 3380
Client waiting for packet for frame: 3440, copyCachedLastPendingFrameCount = 3420
Client waiting for packet for frame: 3600, copyCachedLastPendingFrameCount = 3580
Client waiting for packet for frame: 3680, copyCachedLastPendingFrameCount = 3660
Client waiting for packet for frame: 3760, copyCachedLastPendingFrameCount = 3740
Client waiting for packet for frame: 3800, copyCachedLastPendingFrameCount = 3780
Client waiting for packet for frame: 3840, copyCachedLastPendingFrameCount = 3820
Client waiting for packet for frame: 4000, copyCachedLastPendingFrameCount = 3980
Client waiting for packet for frame: 4160, copyCachedLastPendingFrameCount = 4140
Client waiting for packet for frame: 4200, copyCachedLastPendingFrameCount = 4180
Client waiting for packet for frame: 4240, copyCachedLastPendingFrameCount = 4220
Client waiting for packet for frame: 4400, copyCachedLastPendingFrameCount = 4380
Client waiting for packet for frame: 4600, copyCachedLastPendingFrameCount = 4580
Client waiting for packet for frame: 4640, copyCachedLastPendingFrameCount = 4620
Client waiting for packet for frame: 4720, copyCachedLastPendingFrameCount = 4700
Client waiting for packet for frame: 4800, copyCachedLastPendingFrameCount = 4780
Client waiting for packet for frame: 4960, copyCachedLastPendingFrameCount = 4940
Client waiting for packet for frame: 5000, copyCachedLastPendingFrameCount = 4980
Client waiting for packet for frame: 5040, copyCachedLastPendingFrameCount = 5020
Client waiting for packet for frame: 5200, copyCachedLastPendingFrameCount = 5180
Client waiting for packet for frame: 5280, copyCachedLastPendingFrameCount = 5260
Client waiting for packet for frame: 5360, copyCachedLastPendingFrameCount = 5340
Client waiting for packet for frame: 5400, copyCachedLastPendingFrameCount = 5380
Client waiting for packet for frame: 5440, copyCachedLastPendingFrameCount = 5420
Client waiting for packet for frame: 5460, copyCachedLastPendingFrameCount = 5440
Client waiting for packet for frame: 5520, copyCachedLastPendingFrameCount = 5500
Client waiting for packet for frame: 5600, copyCachedLastPendingFrameCount = 5580
Client waiting for packet for frame: 5640, copyCachedLastPendingFrameCount = 5620
Client waiting for packet for frame: 5660, copyCachedLastPendingFrameCount = 5640
Client waiting for packet for frame: 5800, copyCachedLastPendingFrameCount = 5780
Client waiting for packet for frame: 5840, copyCachedLastPendingFrameCount = 5820
Client waiting for packet for frame: 6000, copyCachedLastPendingFrameCount = 5980
Client waiting for packet for frame: 6080, copyCachedLastPendingFrameCount = 6060
Client waiting for packet for frame: 6160, copyCachedLastPendingFrameCount = 6140
Client waiting for packet for frame: 6200, copyCachedLastPendingFrameCount = 6180
Client waiting for packet for frame: 6400, copyCachedLastPendingFrameCount = 6380
Client waiting for packet for frame: 6480, copyCachedLastPendingFrameCount = 6460
Client waiting for packet for frame: 6560, copyCachedLastPendingFrameCount = 6540
Client waiting for packet for frame: 6600, copyCachedLastPendingFrameCount = 6580
Client waiting for packet for frame: 6640, copyCachedLastPendingFrameCount = 6620
Client waiting for packet for frame: 6720, copyCachedLastPendingFrameCount = 6700
Client waiting for packet for frame: 6800, copyCachedLastPendingFrameCount = 6780
Client waiting for packet for frame: 7000, copyCachedLastPendingFrameCount = 6980
Client waiting for packet for frame: 7120, copyCachedLastPendingFrameCount = 7100
Client waiting for packet for frame: 7200, copyCachedLastPendingFrameCount = 7180
Client waiting for packet for frame: 7260, copyCachedLastPendingFrameCount = 7240
Client waiting for packet for frame: 7280, copyCachedLastPendingFrameCount = 7260
Client waiting for packet for frame: 7400, copyCachedLastPendingFrameCount = 7380
Client waiting for packet for frame: 7600, copyCachedLastPendingFrameCount = 7580
Client waiting for packet for frame: 7680, copyCachedLastPendingFrameCount = 7660
Client waiting for packet for frame: 7720, copyCachedLastPendingFrameCount = 7700
Client waiting for packet for frame: 7760, copyCachedLastPendingFrameCount = 7740
Client waiting for packet for frame: 7800, copyCachedLastPendingFrameCount = 7780
Client waiting for packet for frame: 7920, copyCachedLastPendingFrameCount = 7900
Client waiting for packet for frame: 8000, copyCachedLastPendingFrameCount = 7980
Client waiting for packet for frame: 8140, copyCachedLastPendingFrameCount = 8120
Client waiting for packet for frame: 8200, copyCachedLastPendingFrameCount = 8180
Client waiting for packet for frame: 8220, copyCachedLastPendingFrameCount = 8200
Client waiting for packet for frame: 8240, copyCachedLastPendingFrameCount = 8220
Client waiting for packet for frame: 8260, copyCachedLastPendingFrameCount = 8240
Client waiting for packet for frame: 8300, copyCachedLastPendingFrameCount = 8280
Client waiting for packet for frame: 8340, copyCachedLastPendingFrameCount = 8320
Client waiting for packet for frame: 8380, copyCachedLastPendingFrameCount = 8360
Client waiting for packet for frame: 8400, copyCachedLastPendingFrameCount = 8380
Client waiting for packet for frame: 8420, copyCachedLastPendingFrameCount = 8400
Client waiting for packet for frame: 8440, copyCachedLastPendingFrameCount = 8420
Client waiting for packet for frame: 8480, copyCachedLastPendingFrameCount = 8460
Client waiting for packet for frame: 8500, copyCachedLastPendingFrameCount = 8480
Client waiting for packet for frame: 8580, copyCachedLastPendingFrameCount = 8560
Client waiting for packet for frame: 8600, copyCachedLastPendingFrameCount = 8580
Client waiting for packet for frame: 8660, copyCachedLastPendingFrameCount = 8640
Client waiting for packet for frame: 8680, copyCachedLastPendingFrameCount = 8660
Client waiting for packet for frame: 8720, copyCachedLastPendingFrameCount = 8700
Client waiting for packet for frame: 8780, copyCachedLastPendingFrameCount = 8760
Client waiting for packet for frame: 8800, copyCachedLastPendingFrameCount = 8780
Client waiting for packet for frame: 8840, copyCachedLastPendingFrameCount = 8820
Client waiting for packet for frame: 8860, copyCachedLastPendingFrameCount = 8840
Client waiting for packet for frame: 8880, copyCachedLastPendingFrameCount = 8860
Client waiting for packet for frame: 9000, copyCachedLastPendingFrameCount = 8980
Client waiting for packet for frame: 9020, copyCachedLastPendingFrameCount = 9000
Client waiting for packet for frame: 9100, copyCachedLastPendingFrameCount = 9080
Client waiting for packet for frame: 9120, copyCachedLastPendingFrameCount = 9100
Client waiting for packet for frame: 9160, copyCachedLastPendingFrameCount = 9140
Client waiting for packet for frame: 9180, copyCachedLastPendingFrameCount = 9160
Client waiting for packet for frame: 9200, copyCachedLastPendingFrameCount = 9180
Client waiting for packet for frame: 9280, copyCachedLastPendingFrameCount = 9260
Client waiting for packet for frame: 9340, copyCachedLastPendingFrameCount = 9320
Client waiting for packet for frame: 9360, copyCachedLastPendingFrameCount = 9340
Client waiting for packet for frame: 9380, copyCachedLastPendingFrameCount = 9360
Client waiting for packet for frame: 9400, copyCachedLastPendingFrameCount = 9380
Client waiting for packet for frame: 9440, copyCachedLastPendingFrameCount = 9420
Client waiting for packet for frame: 9480, copyCachedLastPendingFrameCount = 9460
Client waiting for packet for frame: 9520, copyCachedLastPendingFrameCount = 9500
Client waiting for packet for frame: 9560, copyCachedLastPendingFrameCount = 9540
Client waiting for packet for frame: 9580, copyCachedLastPendingFrameCount = 9560
Client waiting for packet for frame: 9600, copyCachedLastPendingFrameCount = 9580
Client waiting for packet for frame: 9620, copyCachedLastPendingFrameCount = 9600
Client waiting for packet for frame: 9640, copyCachedLastPendingFrameCount = 9620
Client waiting for packet for frame: 9660, copyCachedLastPendingFrameCount = 9640
Client waiting for packet for frame: 9680, copyCachedLastPendingFrameCount = 9660
Client waiting for packet for frame: 9700, copyCachedLastPendingFrameCount = 9680
Client waiting for packet for frame: 9720, copyCachedLastPendingFrameCount = 9700
Client waiting for packet for frame: 9740, copyCachedLastPendingFrameCount = 9720
Client waiting for packet for frame: 9780, copyCachedLastPendingFrameCount = 9760
Client waiting for packet for frame: 9800, copyCachedLastPendingFrameCount = 9780
Client waiting for packet for frame: 9820, copyCachedLastPendingFrameCount = 9800
Client waiting for packet for frame: 9840, copyCachedLastPendingFrameCount = 9820
Client waiting for packet for frame: 9860, copyCachedLastPendingFrameCount = 9840
Client waiting for packet for frame: 9880, copyCachedLastPendingFrameCount = 9860
Client waiting for packet for frame: 9920, copyCachedLastPendingFrameCount = 9900
Client waiting for packet for frame: 10000, copyCachedLastPendingFrameCount = 9980
Client waiting for packet for frame: 10200, copyCachedLastPendingFrameCount = 10180
Client waiting for packet for frame: 10220, copyCachedLastPendingFrameCount = 10200
Client waiting for packet for frame: 10280, copyCachedLastPendingFrameCount = 10260
Client waiting for packet for frame: 10320, copyCachedLastPendingFrameCount = 10300
Client waiting for packet for frame: 10400, copyCachedLastPendingFrameCount = 10380
Client waiting for packet for frame: 10480, copyCachedLastPendingFrameCount = 10460
Client waiting for packet for frame: 10500, copyCachedLastPendingFrameCount = 10480
Client waiting for packet for frame: 10520, copyCachedLastPendingFrameCount = 10500
Client waiting for packet for frame: 10600, copyCachedLastPendingFrameCount = 10580
Client waiting for packet for frame: 10800, copyCachedLastPendingFrameCount = 10780
Client waiting for packet for frame: 10880, copyCachedLastPendingFrameCount = 10860
Client waiting for packet for frame: 10960, copyCachedLastPendingFrameCount = 10940
Client waiting for packet for frame: 11000, copyCachedLastPendingFrameCount = 10980
Client waiting for packet for frame: 11040, copyCachedLastPendingFrameCount = 11020
Client waiting for packet for frame: 11120, copyCachedLastPendingFrameCount = 11100
Client waiting for packet for frame: 11200, copyCachedLastPendingFrameCount = 11180
Client waiting for packet for frame: 11300, copyCachedLastPendingFrameCount = 11280
Client waiting for packet for frame: 11320, copyCachedLastPendingFrameCount = 11300
Client waiting for packet for frame: 11340, copyCachedLastPendingFrameCount = 11320
Client waiting for packet for frame: 11360, copyCachedLastPendingFrameCount = 11340
Client waiting for packet for frame: 11400, copyCachedLastPendingFrameCount = 11380
Client waiting for packet for frame: 11500, copyCachedLastPendingFrameCount = 11480
Client waiting for packet for frame: 11540, copyCachedLastPendingFrameCount = 11520
Client waiting for packet for frame: 11600, copyCachedLastPendingFrameCount = 11580
Client waiting for packet for frame: 11640, copyCachedLastPendingFrameCount = 11620
Client waiting for packet for frame: 11680, copyCachedLastPendingFrameCount = 11660
Client waiting for packet for frame: 11760, copyCachedLastPendingFrameCount = 11740
Client waiting for packet for frame: 11800, copyCachedLastPendingFrameCount = 11780
Client waiting for packet for frame: 11820, copyCachedLastPendingFrameCount = 11800
Client waiting for packet for frame: 11840, copyCachedLastPendingFrameCount = 11820
Client waiting for packet for frame: 11880, copyCachedLastPendingFrameCount = 11860
Client waiting for packet for frame: 12000, copyCachedLastPendingFrameCount = 11980
Client waiting for packet for frame: 12020, copyCachedLastPendingFrameCount = 12000
Client waiting for packet for frame: 12040, copyCachedLastPendingFrameCount = 12020
Client waiting for packet for frame: 12080, copyCachedLastPendingFrameCount = 12060
Client waiting for packet for frame: 12200, copyCachedLastPendingFrameCount = 12180
Client waiting for packet for frame: 12260, copyCachedLastPendingFrameCount = 12240
Client waiting for packet for frame: 12320, copyCachedLastPendingFrameCount = 12300
Client waiting for packet for frame: 12340, copyCachedLastPendingFrameCount = 12320
Client waiting for packet for frame: 12360, copyCachedLastPendingFrameCount = 12340
Client waiting for packet for frame: 12400, copyCachedLastPendingFrameCount = 12380
Client waiting for packet for frame: 12440, copyCachedLastPendingFrameCount = 12420
Client waiting for packet for frame: 12500, copyCachedLastPendingFrameCount = 12480
Client waiting for packet for frame: 12600, copyCachedLastPendingFrameCount = 12580
Client waiting for packet for frame: 12620, copyCachedLastPendingFrameCount = 12600
Client waiting for packet for frame: 12640, copyCachedLastPendingFrameCount = 12620

Crashes with "double free or corruption" during network game may be related.
« Last Edit: 12 March 2013, 22:38:58 by titi »
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: r4168: Timeout when pausing a simple network game
« Reply #1 on: 8 March 2013, 04:42:14 »
Fixed in svn rev# 4169

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: r4168: Timeout when pausing a simple network game
« Reply #2 on: 12 March 2013, 22:38:44 »
this is fixed
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

 

anything