[winswitch] Warning: delayed region timeout

Dušan Vejnovič dusan at dussan.org
Sun Mar 3 16:21:43 GMT 2019


Thank you

Antoine Martin via shifter-users je 3. 03. 19 ob 16:24 napisal:
> On 03/03/2019 22:13, Dušan Vejnovič via shifter-users wrote:
>> I'm writing my own client in Java. Client works first 5 second OK. After
>> that I can't get any draw packet from the server, but got the message:
>>
>> Warning: delayed region timeout
>> region is 15 seconds old, will retry - bad connection?
> For each draw packet you receive, you need to send an ack packet back to
> the server.

I create an ack packet with the damage sequence packet. And server now 
report:

Traceback (most recent call last):
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/encodings_mixin.py", 
line 159, in recalculate_delays
     len(maximized_wids)>0 and wid not in maximized_wids)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/window_source.py", 
line 958, in calculate_batch_delay
     calculate_batch_delay(self.wid, self.window_dimensions, has_focus, 
other_is_fullscreen, other_is_maximized, self.is_OR, self.soft_expired, 
self.batch_config, self.global_statistics, self.statistics, 
self.bandwidth_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/batch_delay_calculator.py", 
line 41, in calculate_batch_delay
     factors += global_statistics.get_factors(low_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/source_stats.py", 
line 154, in get_factors
     factors.append(calculate_for_target(metric, l, 
self.avg_client_ping_latency, self.recent_client_ping_latency, aim=0.95, 
slope=0.005, smoothing=sqrt, weight_multiplier=wm))
   File "xpra/server/cystats.pyx", line 183, in 
xpra.server.cystats.calculate_for_target (xpra/server/cystats.c:4583)
ValueError: cannot convert float NaN to integer
2019-03-03 17:14:55,173 error on window 1
Traceback (most recent call last):
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/encodings_mixin.py", 
line 159, in recalculate_delays
     len(maximized_wids)>0 and wid not in maximized_wids)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/window_source.py", 
line 958, in calculate_batch_delay
     calculate_batch_delay(self.wid, self.window_dimensions, has_focus, 
other_is_fullscreen, other_is_maximized, self.is_OR, self.soft_expired, 
self.batch_config, self.global_statistics, self.statistics, 
self.bandwidth_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/batch_delay_calculator.py", 
line 41, in calculate_batch_delay
     factors += global_statistics.get_factors(low_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/source_stats.py", 
line 154, in get_factors
     factors.append(calculate_for_target(metric, l, 
self.avg_client_ping_latency, self.recent_client_ping_latency, aim=0.95, 
slope=0.005, smoothing=sqrt, weight_multiplier=wm))
   File "xpra/server/cystats.pyx", line 183, in 
xpra.server.cystats.calculate_for_target (xpra/server/cystats.c:4583)
ValueError: cannot convert float NaN to integer
2019-03-03 17:14:56,174 error on window 1
Traceback (most recent call last):
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/encodings_mixin.py", 
line 159, in recalculate_delays
     len(maximized_wids)>0 and wid not in maximized_wids)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/window_source.py", 
line 958, in calculate_batch_delay
     calculate_batch_delay(self.wid, self.window_dimensions, has_focus, 
other_is_fullscreen, other_is_maximized, self.is_OR, self.soft_expired, 
self.batch_config, self.global_statistics, self.statistics, 
self.bandwidth_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/batch_delay_calculator.py", 
line 41, in calculate_batch_delay
     factors += global_statistics.get_factors(low_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/source_stats.py", 
line 154, in get_factors
     factors.append(calculate_for_target(metric, l, 
self.avg_client_ping_latency, self.recent_client_ping_latency, aim=0.95, 
slope=0.005, smoothing=sqrt, weight_multiplier=wm))
   File "xpra/server/cystats.pyx", line 183, in 
xpra.server.cystats.calculate_for_target (xpra/server/cystats.c:4583)
ValueError: cannot convert float NaN to integer
2019-03-03 17:14:57,174 error on window 1
Traceback (most recent call last):
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/encodings_mixin.py", 
line 159, in recalculate_delays
     len(maximized_wids)>0 and wid not in maximized_wids)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/window_source.py", 
line 958, in calculate_batch_delay
     calculate_batch_delay(self.wid, self.window_dimensions, has_focus, 
other_is_fullscreen, other_is_maximized, self.is_OR, self.soft_expired, 
self.batch_config, self.global_statistics, self.statistics, 
self.bandwidth_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/batch_delay_calculator.py", 
line 41, in calculate_batch_delay
     factors += global_statistics.get_factors(low_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/source_stats.py", 
line 154, in get_factors
     factors.append(calculate_for_target(metric, l, 
self.avg_client_ping_latency, self.recent_client_ping_latency, aim=0.95, 
slope=0.005, smoothing=sqrt, weight_multiplier=wm))
   File "xpra/server/cystats.pyx", line 183, in 
xpra.server.cystats.calculate_for_target (xpra/server/cystats.c:4583)
ValueError: cannot convert float NaN to integer
2019-03-03 17:14:58,174 error on window 1
Traceback (most recent call last):
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/encodings_mixin.py", 
line 159, in recalculate_delays
     len(maximized_wids)>0 and wid not in maximized_wids)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/window_source.py", 
line 958, in calculate_batch_delay
     calculate_batch_delay(self.wid, self.window_dimensions, has_focus, 
other_is_fullscreen, other_is_maximized, self.is_OR, self.soft_expired, 
self.batch_config, self.global_statistics, self.statistics, 
self.bandwidth_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/batch_delay_calculator.py", 
line 41, in calculate_batch_delay
     factors += global_statistics.get_factors(low_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/source_stats.py", 
line 154, in get_factors
     factors.append(calculate_for_target(metric, l, 
self.avg_client_ping_latency, self.recent_client_ping_latency, aim=0.95, 
slope=0.005, smoothing=sqrt, weight_multiplier=wm))
   File "xpra/server/cystats.pyx", line 183, in 
xpra.server.cystats.calculate_for_target (xpra/server/cystats.c:4583)
ValueError: cannot convert float NaN to integer
2019-03-03 17:14:59,174 error on window 1
Traceback (most recent call last):
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/encodings_mixin.py", 
line 159, in recalculate_delays
     len(maximized_wids)>0 and wid not in maximized_wids)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/window_source.py", 
line 958, in calculate_batch_delay
     calculate_batch_delay(self.wid, self.window_dimensions, has_focus, 
other_is_fullscreen, other_is_maximized, self.is_OR, self.soft_expired, 
self.batch_config, self.global_statistics, self.statistics, 
self.bandwidth_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/batch_delay_calculator.py", 
line 41, in calculate_batch_delay
     factors += global_statistics.get_factors(low_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/source_stats.py", 
line 154, in get_factors
     factors.append(calculate_for_target(metric, l, 
self.avg_client_ping_latency, self.recent_client_ping_latency, aim=0.95, 
slope=0.005, smoothing=sqrt, weight_multiplier=wm))
   File "xpra/server/cystats.pyx", line 183, in 
xpra.server.cystats.calculate_for_target (xpra/server/cystats.c:4583)
ValueError: cannot convert float NaN to integer
2019-03-03 17:15:00,175 error on window 1
Traceback (most recent call last):
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/encodings_mixin.py", 
line 159, in recalculate_delays
     len(maximized_wids)>0 and wid not in maximized_wids)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/window_source.py", 
line 958, in calculate_batch_delay
     calculate_batch_delay(self.wid, self.window_dimensions, has_focus, 
other_is_fullscreen, other_is_maximized, self.is_OR, self.soft_expired, 
self.batch_config, self.global_statistics, self.statistics, 
self.bandwidth_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/batch_delay_calculator.py", 
line 41, in calculate_batch_delay
     factors += global_statistics.get_factors(low_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/source_stats.py", 
line 154, in get_factors
     factors.append(calculate_for_target(metric, l, 
self.avg_client_ping_latency, self.recent_client_ping_latency, aim=0.95, 
slope=0.005, smoothing=sqrt, weight_multiplier=wm))
   File "xpra/server/cystats.pyx", line 183, in 
xpra.server.cystats.calculate_for_target (xpra/server/cystats.c:4583)
ValueError: cannot convert float NaN to integer
2019-03-03 17:15:01,176 error on window 1
Traceback (most recent call last):
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/encodings_mixin.py", 
line 159, in recalculate_delays
     len(maximized_wids)>0 and wid not in maximized_wids)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/window_source.py", 
line 958, in calculate_batch_delay
     calculate_batch_delay(self.wid, self.window_dimensions, has_focus, 
other_is_fullscreen, other_is_maximized, self.is_OR, self.soft_expired, 
self.batch_config, self.global_statistics, self.statistics, 
self.bandwidth_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/batch_delay_calculator.py", 
line 41, in calculate_batch_delay
     factors += global_statistics.get_factors(low_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/source_stats.py", 
line 154, in get_factors
     factors.append(calculate_for_target(metric, l, 
self.avg_client_ping_latency, self.recent_client_ping_latency, aim=0.95, 
slope=0.005, smoothing=sqrt, weight_multiplier=wm))
   File "xpra/server/cystats.pyx", line 183, in 
xpra.server.cystats.calculate_for_target (xpra/server/cystats.c:4583)
ValueError: cannot convert float NaN to integer
2019-03-03 17:15:02,177 error on window 1
Traceback (most recent call last):
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/encodings_mixin.py", 
line 159, in recalculate_delays
     len(maximized_wids)>0 and wid not in maximized_wids)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/window_source.py", 
line 958, in calculate_batch_delay
     calculate_batch_delay(self.wid, self.window_dimensions, has_focus, 
other_is_fullscreen, other_is_maximized, self.is_OR, self.soft_expired, 
self.batch_config, self.global_statistics, self.statistics, 
self.bandwidth_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/batch_delay_calculator.py", 
line 41, in calculate_batch_delay
     factors += global_statistics.get_factors(low_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/source_stats.py", 
line 154, in get_factors
     factors.append(calculate_for_target(metric, l, 
self.avg_client_ping_latency, self.recent_client_ping_latency, aim=0.95, 
slope=0.005, smoothing=sqrt, weight_multiplier=wm))
   File "xpra/server/cystats.pyx", line 183, in 
xpra.server.cystats.calculate_for_target (xpra/server/cystats.c:4583)
ValueError: cannot convert float NaN to integer
2019-03-03 17:15:03,177 error on window 1
Traceback (most recent call last):
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/encodings_mixin.py", 
line 159, in recalculate_delays
     len(maximized_wids)>0 and wid not in maximized_wids)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/window_source.py", 
line 958, in calculate_batch_delay
     calculate_batch_delay(self.wid, self.window_dimensions, has_focus, 
other_is_fullscreen, other_is_maximized, self.is_OR, self.soft_expired, 
self.batch_config, self.global_statistics, self.statistics, 
self.bandwidth_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/batch_delay_calculator.py", 
line 41, in calculate_batch_delay
     factors += global_statistics.get_factors(low_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/source_stats.py", 
line 154, in get_factors
     factors.append(calculate_for_target(metric, l, 
self.avg_client_ping_latency, self.recent_client_ping_latency, aim=0.95, 
slope=0.005, smoothing=sqrt, weight_multiplier=wm))
   File "xpra/server/cystats.pyx", line 183, in 
xpra.server.cystats.calculate_for_target (xpra/server/cystats.c:4583)
ValueError: cannot convert float NaN to integer
2019-03-03 17:15:04,178 error on window 1
Traceback (most recent call last):
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/encodings_mixin.py", 
line 159, in recalculate_delays
     len(maximized_wids)>0 and wid not in maximized_wids)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/window_source.py", 
line 958, in calculate_batch_delay
     calculate_batch_delay(self.wid, self.window_dimensions, has_focus, 
other_is_fullscreen, other_is_maximized, self.is_OR, self.soft_expired, 
self.batch_config, self.global_statistics, self.statistics, 
self.bandwidth_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/batch_delay_calculator.py", 
line 41, in calculate_batch_delay
     factors += global_statistics.get_factors(low_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/source_stats.py", 
line 154, in get_factors
     factors.append(calculate_for_target(metric, l, 
self.avg_client_ping_latency, self.recent_client_ping_latency, aim=0.95, 
slope=0.005, smoothing=sqrt, weight_multiplier=wm))
   File "xpra/server/cystats.pyx", line 183, in 
xpra.server.cystats.calculate_for_target (xpra/server/cystats.c:4583)
ValueError: cannot convert float NaN to integer
2019-03-03 17:15:05,179 error on window 1
Traceback (most recent call last):
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/encodings_mixin.py", 
line 159, in recalculate_delays
     len(maximized_wids)>0 and wid not in maximized_wids)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/window_source.py", 
line 958, in calculate_batch_delay
     calculate_batch_delay(self.wid, self.window_dimensions, has_focus, 
other_is_fullscreen, other_is_maximized, self.is_OR, self.soft_expired, 
self.batch_config, self.global_statistics, self.statistics, 
self.bandwidth_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/batch_delay_calculator.py", 
line 41, in calculate_batch_delay
     factors += global_statistics.get_factors(low_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/source_stats.py", 
line 154, in get_factors
     factors.append(calculate_for_target(metric, l, 
self.avg_client_ping_latency, self.recent_client_ping_latency, aim=0.95, 
slope=0.005, smoothing=sqrt, weight_multiplier=wm))
   File "xpra/server/cystats.pyx", line 183, in 
xpra.server.cystats.calculate_for_target (xpra/server/cystats.c:4583)
ValueError: cannot convert float NaN to integer
2019-03-03 17:15:06,179 error on window 1
Traceback (most recent call last):
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/encodings_mixin.py", 
line 159, in recalculate_delays
     len(maximized_wids)>0 and wid not in maximized_wids)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/window_source.py", 
line 958, in calculate_batch_delay
     calculate_batch_delay(self.wid, self.window_dimensions, has_focus, 
other_is_fullscreen, other_is_maximized, self.is_OR, self.soft_expired, 
self.batch_config, self.global_statistics, self.statistics, 
self.bandwidth_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/batch_delay_calculator.py", 
line 41, in calculate_batch_delay
     factors += global_statistics.get_factors(low_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/source_stats.py", 
line 154, in get_factors
     factors.append(calculate_for_target(metric, l, 
self.avg_client_ping_latency, self.recent_client_ping_latency, aim=0.95, 
slope=0.005, smoothing=sqrt, weight_multiplier=wm))
   File "xpra/server/cystats.pyx", line 183, in 
xpra.server.cystats.calculate_for_target (xpra/server/cystats.c:4583)
ValueError: cannot convert float NaN to integer
2019-03-03 17:15:07,180 error on window 1
Traceback (most recent call last):
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/encodings_mixin.py", 
line 159, in recalculate_delays
     len(maximized_wids)>0 and wid not in maximized_wids)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/window_source.py", 
line 958, in calculate_batch_delay
     calculate_batch_delay(self.wid, self.window_dimensions, has_focus, 
other_is_fullscreen, other_is_maximized, self.is_OR, self.soft_expired, 
self.batch_config, self.global_statistics, self.statistics, 
self.bandwidth_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/batch_delay_calculator.py", 
line 41, in calculate_batch_delay
     factors += global_statistics.get_factors(low_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/source_stats.py", 
line 154, in get_factors
     factors.append(calculate_for_target(metric, l, 
self.avg_client_ping_latency, self.recent_client_ping_latency, aim=0.95, 
slope=0.005, smoothing=sqrt, weight_multiplier=wm))
   File "xpra/server/cystats.pyx", line 183, in 
xpra.server.cystats.calculate_for_target (xpra/server/cystats.c:4583)
ValueError: cannot convert float NaN to integer
2019-03-03 17:15:08,181 error on window 1
Traceback (most recent call last):
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/encodings_mixin.py", 
line 159, in recalculate_delays
     len(maximized_wids)>0 and wid not in maximized_wids)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/window_source.py", 
line 958, in calculate_batch_delay
     calculate_batch_delay(self.wid, self.window_dimensions, has_focus, 
other_is_fullscreen, other_is_maximized, self.is_OR, self.soft_expired, 
self.batch_config, self.global_statistics, self.statistics, 
self.bandwidth_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/batch_delay_calculator.py", 
line 41, in calculate_batch_delay
     factors += global_statistics.get_factors(low_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/source_stats.py", 
line 154, in get_factors
     factors.append(calculate_for_target(metric, l, 
self.avg_client_ping_latency, self.recent_client_ping_latency, aim=0.95, 
slope=0.005, smoothing=sqrt, weight_multiplier=wm))
   File "xpra/server/cystats.pyx", line 183, in 
xpra.server.cystats.calculate_for_target (xpra/server/cystats.c:4583)
ValueError: cannot convert float NaN to integer
2019-03-03 17:15:09,182 error on window 1
Traceback (most recent call last):
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/encodings_mixin.py", 
line 159, in recalculate_delays
     len(maximized_wids)>0 and wid not in maximized_wids)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/window_source.py", 
line 958, in calculate_batch_delay
     calculate_batch_delay(self.wid, self.window_dimensions, has_focus, 
other_is_fullscreen, other_is_maximized, self.is_OR, self.soft_expired, 
self.batch_config, self.global_statistics, self.statistics, 
self.bandwidth_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/batch_delay_calculator.py", 
line 41, in calculate_batch_delay
     factors += global_statistics.get_factors(low_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/source_stats.py", 
line 154, in get_factors
     factors.append(calculate_for_target(metric, l, 
self.avg_client_ping_latency, self.recent_client_ping_latency, aim=0.95, 
slope=0.005, smoothing=sqrt, weight_multiplier=wm))
   File "xpra/server/cystats.pyx", line 183, in 
xpra.server.cystats.calculate_for_target (xpra/server/cystats.c:4583)
ValueError: cannot convert float NaN to integer
2019-03-03 17:15:10,183 error on window 1
Traceback (most recent call last):
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/encodings_mixin.py", 
line 159, in recalculate_delays
     len(maximized_wids)>0 and wid not in maximized_wids)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/window_source.py", 
line 958, in calculate_batch_delay
     calculate_batch_delay(self.wid, self.window_dimensions, has_focus, 
other_is_fullscreen, other_is_maximized, self.is_OR, self.soft_expired, 
self.batch_config, self.global_statistics, self.statistics, 
self.bandwidth_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/window/batch_delay_calculator.py", 
line 41, in calculate_batch_delay
     factors += global_statistics.get_factors(low_limit)
   File 
"/usr/lib/python2.7/dist-packages/xpra/server/source/source_stats.py", 
line 154, in get_factors
     factors.append(calculate_for_target(metric, l, 
self.avg_client_ping_latency, self.recent_client_ping_latency, aim=0.95, 
slope=0.005, smoothing=sqrt, weight_multiplier=wm))
   File "xpra/server/cystats.pyx", line 183, in 
xpra.server.cystats.calculate_for_target (xpra/server/cystats.c:4583)
ValueError: cannot convert float NaN to integer

>
>> I'm doing ping from client to server every 5 seconds and answering on
>> ping from server with ping echo.
>> HTML5 work without problem.
>>
>> In client I use two threads:
>> - the first thread is for communication with the server
>> - the second one is for sending ping data to the server
> I don't think you need a thread just for that.
> Wouldn't a timer be more efficient?
>
> Cheers,
> Antoine
>
>
>> Xpra is running on Debian 9.
>>
>> Bye
>> Dušan
>>
>>
>> _______________________________________________
>> shifter-users mailing list
>> shifter-users at lists.devloop.org.uk
>> http://lists.devloop.org.uk/mailman/listinfo/shifter-users
> _______________________________________________
> shifter-users mailing list
> shifter-users at lists.devloop.org.uk
> http://lists.devloop.org.uk/mailman/listinfo/shifter-users



More information about the shifter-users mailing list