From dusan at dussan.org Sun Mar 3 15:13:25 2019 From: dusan at dussan.org (=?UTF-8?Q?Du=c5=a1an_Vejnovi=c4=8d?=) Date: Sun, 3 Mar 2019 16:13:25 +0100 Subject: [winswitch] Warning: delayed region timeout Message-ID: <09429d6b-6de6-cff5-2aa7-8c20f465a3a1@dussan.org> 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? 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 Xpra is running on Debian 9. Bye Du?an From antoine at nagafix.co.uk Sun Mar 3 15:24:33 2019 From: antoine at nagafix.co.uk (Antoine Martin) Date: Sun, 3 Mar 2019 22:24:33 +0700 Subject: [winswitch] Warning: delayed region timeout In-Reply-To: <09429d6b-6de6-cff5-2aa7-8c20f465a3a1@dussan.org> References: <09429d6b-6de6-cff5-2aa7-8c20f465a3a1@dussan.org> Message-ID: <9a0b98f4-81ea-7790-c291-3ee21eb8c3a6@nagafix.co.uk> 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'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 From dusan at dussan.org Sun Mar 3 16:21:43 2019 From: dusan at dussan.org (=?UTF-8?Q?Du=c5=a1an_Vejnovi=c4=8d?=) Date: Sun, 3 Mar 2019 17:21:43 +0100 Subject: [winswitch] Warning: delayed region timeout In-Reply-To: <9a0b98f4-81ea-7790-c291-3ee21eb8c3a6@nagafix.co.uk> References: <09429d6b-6de6-cff5-2aa7-8c20f465a3a1@dussan.org> <9a0b98f4-81ea-7790-c291-3ee21eb8c3a6@nagafix.co.uk> Message-ID: <9639ba36-5c10-5953-09a6-832fb6249b52@dussan.org> 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 From antoine at nagafix.co.uk Mon Mar 4 01:32:12 2019 From: antoine at nagafix.co.uk (Antoine Martin) Date: Mon, 4 Mar 2019 08:32:12 +0700 Subject: [winswitch] Warning: delayed region timeout In-Reply-To: <9639ba36-5c10-5953-09a6-832fb6249b52@dussan.org> References: <09429d6b-6de6-cff5-2aa7-8c20f465a3a1@dussan.org> <9a0b98f4-81ea-7790-c291-3ee21eb8c3a6@nagafix.co.uk> <9639ba36-5c10-5953-09a6-832fb6249b52@dussan.org> Message-ID: <94baae7c-50ea-e970-5bd3-e288d03e173a@nagafix.co.uk> (..) >> 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): (..) > ValueError: cannot convert float NaN to integer Your ack packet and / or ping packets must contain invalid data. Please create a ticket for this, it will be easier to follow than through the mailing list. Cheers, Antoine > >> >>> 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 > > _______________________________________________ > shifter-users mailing list > shifter-users at lists.devloop.org.uk > http://lists.devloop.org.uk/mailman/listinfo/shifter-users From dusan at dussan.org Wed Mar 6 17:44:34 2019 From: dusan at dussan.org (=?UTF-8?Q?Du=c5=a1an_Vejnovi=c4=8d?=) Date: Wed, 6 Mar 2019 18:44:34 +0100 Subject: [winswitch] Warning: delayed region timeout In-Reply-To: <8dccb975-d94e-60d2-b4af-41de30b52303@dussan.org> References: <09429d6b-6de6-cff5-2aa7-8c20f465a3a1@dussan.org> <9a0b98f4-81ea-7790-c291-3ee21eb8c3a6@nagafix.co.uk> <9639ba36-5c10-5953-09a6-832fb6249b52@dussan.org> <8dccb975-d94e-60d2-b4af-41de30b52303@dussan.org> Message-ID: <4cf16359-ed38-b041-d448-3da782e799e0@dussan.org> Hello! I get error after 1 minute connections with the server. Bye Du?an Du?an Vejnovi? je 6. 03. 19 ob 18:15?napisal: > I debug the HTML5 client to understand when to send the ack packet > back to the server. I cannot find any rules for this. > Have I to make some delay before send the ack packet, or is there any > other rule? > > Bye > Du?an > > Du?an Vejnovi? je 3. 03. 19 ob 17:21?napisal: >> 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 From antoine at nagafix.co.uk Thu Mar 7 05:37:45 2019 From: antoine at nagafix.co.uk (Antoine Martin) Date: Thu, 7 Mar 2019 12:37:45 +0700 Subject: [winswitch] Warning: delayed region timeout In-Reply-To: <4cf16359-ed38-b041-d448-3da782e799e0@dussan.org> References: <09429d6b-6de6-cff5-2aa7-8c20f465a3a1@dussan.org> <9a0b98f4-81ea-7790-c291-3ee21eb8c3a6@nagafix.co.uk> <9639ba36-5c10-5953-09a6-832fb6249b52@dussan.org> <8dccb975-d94e-60d2-b4af-41de30b52303@dussan.org> <4cf16359-ed38-b041-d448-3da782e799e0@dussan.org> Message-ID: Hi, ACK packets are sent as soon as the picture has been decoded and/or painted on screen. In both the python and the html5 clients, that's done using the send_damage_sequence function. If you have more queries, please try creating a ticket on the bug tracker. Make sure to always quote the full error message, ie not: "I get error" Cheers, Antoine On 07/03/2019 00:44, Du?an Vejnovi? via shifter-users wrote: > Hello! > > I get error after 1 minute connections with the server. > > Bye > Du?an > > Du?an Vejnovi? je 6. 03. 19 ob 18:15?napisal: >> I debug the HTML5 client to understand when to send the ack packet >> back to the server. I cannot find any rules for this. >> Have I to make some delay before send the ack packet, or is there any >> other rule? >> >> Bye >> Du?an >> >> Du?an Vejnovi? je 3. 03. 19 ob 17:21?napisal: >>> 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 > > _______________________________________________ > shifter-users mailing list > shifter-users at lists.devloop.org.uk > http://lists.devloop.org.uk/mailman/listinfo/shifter-users From immortalin at icloud.com Sun Mar 10 08:12:00 2019 From: immortalin at icloud.com (Lin) Date: Sun, 10 Mar 2019 04:12:00 -0400 Subject: [winswitch] Xpra compiler and video compression formats Message-ID: <32d80e90-0841-51a9-85fa-259341bd7c6d@icloud.com> Hi! Has anyone tried replacing Xpra's Cython with Nuitka? I think it might give it a performance boost. Also, what do you guys think of the VP9 protocol for video compression? Is it worth it? -Lin From antoine at nagafix.co.uk Sun Mar 10 10:35:19 2019 From: antoine at nagafix.co.uk (Antoine Martin) Date: Sun, 10 Mar 2019 17:35:19 +0700 Subject: [winswitch] Xpra compiler and video compression formats In-Reply-To: <32d80e90-0841-51a9-85fa-259341bd7c6d@icloud.com> References: <32d80e90-0841-51a9-85fa-259341bd7c6d@icloud.com> Message-ID: <074fd1ea-5dd1-7633-520e-843d464cc650@nagafix.co.uk> On 10/03/2019 15:12, Lin via shifter-users wrote: > Hi! Has anyone tried replacing Xpra's Cython with Nuitka? No. > I think it might give it a performance boost. This is a common misconception: the performance of xpra comes first and foremost from the performance of the picture and video encoder libraries that it uses to do the grunt of the work. Those are already heavily optimized using hand crafted assembly code. The Cython parts are mostly glue code for those libraries, rather than performance optimizations. I'm in no way saying that the python code couldn't be improved, just that you are unlikely to see major performance improvements there. But please prove me wrong! >Also, what do you guys think of the VP9 protocol for video compression? VP9 has been supported in xpra since early 2014. > Is it worth it? Newer versions of libvpx are much better / faster, in particular v1.8.0: https://www.xpra.org/trac/ticket/2132 Software vp8 or vp9 video compression is a good alternative to software-h264. Cheers, Antoine > > > -Lin > > _______________________________________________ > shifter-users mailing list > shifter-users at lists.devloop.org.uk > http://lists.devloop.org.uk/mailman/listinfo/shifter-users > From FrankL at envipco.com Tue Mar 12 15:39:23 2019 From: FrankL at envipco.com (Frank Loemker) Date: Tue, 12 Mar 2019 15:39:23 +0000 Subject: [winswitch] Windows to Linux shadow: Wrong keyboard mapping Message-ID: Hello, I am currently trying to get shadow access from Windows 10 to Ubuntu Linux 14.04 working. The server on the Linux box is using 1.0.13-r21370 64-bit. The client on Windows is 1.0.13-r21474 32-bit. I tried as well 2.4.3-r21365 and 0.17.4-r12925 under Windows with exactly the same result. All the time keyboard mapping is completely off. E.g. space -> 'o' 'p' -> '-' 'y' -> ~ Insert -> 'k' Home -> Return ... >From Linux to Linux it works fine, all keys are correct. It works as well fine when using "start" to start a single program instead of using "shadow". For "start" all keys are working when connecting from Windows to Linux. What I saw till now, from Windows to Linux: Client log: parse_key_event(, True)= Server log: client parse_key_event(, True)= >From Linux to Linux: Client log: client parse_key_event(, True)= Server log: client parse_key_event(, True)= I.e. if I interpret that correctly: The keycode in the Windows case is wrong. For space a keycode of 32 is generated, which is exactly the 'o'. For the Linux case the correct keycode 65 is generated. The windows case seems to send keyval==keycode. I see that as well in the debug output of get_entries_for_keycode(): Windows: get_entries_for_keycode(32)=((32, 32, 0, 0), (32, 32, 0, 1), (16777215, 32, 1, 0), (16777215, 32, 1, 1)) get_entries_for_keycode(65)=((97, 65, 0, 0), (65, 65, 0, 1), (16777215, 65, 1, 0), (16777215, 65, 1, 1)) Linux: get_entries_for_keycode(32)=((111, 32, 0, 0), (79, 32, 0, 1)) get_entries_for_keycode(65)=((32, 65, 0, 0),) Keyboard: Windows: .get_layout_spec()=('us', ['us', 'us'], None, []) Am I doing something wrong? Or should I report a bug with complete logs attached? Thanks, -- Frank L?mker From dusan at dussan.org Tue Mar 12 17:22:22 2019 From: dusan at dussan.org (=?UTF-8?Q?Du=c5=a1an_Vejnovi=c4=8d?=) Date: Tue, 12 Mar 2019 18:22:22 +0100 Subject: [winswitch] Warning: delayed region timeout In-Reply-To: <4cf16359-ed38-b041-d448-3da782e799e0@dussan.org> References: <09429d6b-6de6-cff5-2aa7-8c20f465a3a1@dussan.org> <9a0b98f4-81ea-7790-c291-3ee21eb8c3a6@nagafix.co.uk> <9639ba36-5c10-5953-09a6-832fb6249b52@dussan.org> <8dccb975-d94e-60d2-b4af-41de30b52303@dussan.org> <4cf16359-ed38-b041-d448-3da782e799e0@dussan.org> Message-ID: It's my fault, sorry for the noise. Bye Du?an Du?an Vejnovi? je 6. 03. 19 ob 18:44?napisal: > Hello! > > I get error after 1 minute connections with the server. > > Bye > Du?an > > Du?an Vejnovi? je 6. 03. 19 ob 18:15?napisal: >> I debug the HTML5 client to understand when to send the ack packet >> back to the server. I cannot find any rules for this. >> Have I to make some delay before send the ack packet, or is there any >> other rule? >> >> Bye >> Du?an >> >> Du?an Vejnovi? je 3. 03. 19 ob 17:21?napisal: >>> 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 From dusan at dussan.org Tue Mar 12 17:37:35 2019 From: dusan at dussan.org (=?UTF-8?Q?Du=c5=a1an_Vejnovi=c4=8d?=) Date: Tue, 12 Mar 2019 18:37:35 +0100 Subject: [winswitch] Values x and y for positioning window are always 0 (zero) Message-ID: <1168dc0b-2103-5909-cd59-feaeaaa21a26@dussan.org> I have trouble to save the window positioning, I can only save window dimensions. So, if send to the server window position and size over configure-window packet, I always got answer from the server in window-move-resize packet where the window position values fox x and y are 0 (zero). For window dimensions I got correct values. Bellow are the values for the client capabilities: version=2.4.3, desktop_size=[663, 895], dpi=96, client_type=Java, screen_sizes=[663, 895], auto_refresh_delay=500, png=70, encoding=png, encoding.icons.max_size=[40, 40], encoding.flush=true, encoding.transparency=true, encodings=[jpeg, png, rgb, rgb24, rgb32], encodings.core=[jpeg, png, rgb, rgb24, rgb32], encodings.cursor=[png], encoding.rgb_zlib=true, encoding.rgb24zlib=true, encodings.window-icon=[png], zlib=true, lzo=false, compression_level=1, windows=true, clipboard=false, notifications=false, cursors=true, named_cursors=false, bell=true, bencode=false, rencode=false, chunked_compression=false, platform=linux, uuid=(value hidden) keyboard=true, system_tray=false, xkbmap_layout=si Bye Du?an From antoine at nagafix.co.uk Wed Mar 13 06:31:51 2019 From: antoine at nagafix.co.uk (Antoine Martin) Date: Wed, 13 Mar 2019 13:31:51 +0700 Subject: [winswitch] Warning: delayed region timeout In-Reply-To: References: <09429d6b-6de6-cff5-2aa7-8c20f465a3a1@dussan.org> <9a0b98f4-81ea-7790-c291-3ee21eb8c3a6@nagafix.co.uk> <9639ba36-5c10-5953-09a6-832fb6249b52@dussan.org> <8dccb975-d94e-60d2-b4af-41de30b52303@dussan.org> <4cf16359-ed38-b041-d448-3da782e799e0@dussan.org> Message-ID: <72483510-e014-1b0b-ed6c-d5efe002d20f@nagafix.co.uk> On 13/03/2019 00:22, Du?an Vejnovi? via shifter-users wrote: > It's my fault, sorry for the noise. It's always preferable to explain what mistake you made so that others may avoid repeating it in the future. Mandatory xkcd reference: https://xkcd.com/979/ Cheers, Antoine > > Bye > Du?an > > Du?an Vejnovi? je 6. 03. 19 ob 18:44?napisal: >> Hello! >> >> I get error after 1 minute connections with the server. >> >> Bye >> Du?an >> >> Du?an Vejnovi? je 6. 03. 19 ob 18:15?napisal: >>> I debug the HTML5 client to understand when to send the ack packet >>> back to the server. I cannot find any rules for this. >>> Have I to make some delay before send the ack packet, or is there any >>> other rule? >>> >>> Bye >>> Du?an >>> >>> Du?an Vejnovi? je 3. 03. 19 ob 17:21?napisal: >>>> 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 > > _______________________________________________ > shifter-users mailing list > shifter-users at lists.devloop.org.uk > http://lists.devloop.org.uk/mailman/listinfo/shifter-users From antoine at nagafix.co.uk Wed Mar 13 06:33:31 2019 From: antoine at nagafix.co.uk (Antoine Martin) Date: Wed, 13 Mar 2019 13:33:31 +0700 Subject: [winswitch] Values x and y for positioning window are always 0 (zero) In-Reply-To: <1168dc0b-2103-5909-cd59-feaeaaa21a26@dussan.org> References: <1168dc0b-2103-5909-cd59-feaeaaa21a26@dussan.org> Message-ID: <837899db-561c-b35c-8924-015f00106853@nagafix.co.uk> On 13/03/2019 00:37, Du?an Vejnovi? via shifter-users wrote: > I have trouble to save the window positioning, I can only save window > dimensions. > So, if send to the server window position and size over configure-window > packet, I always got answer from the server in window-move-resize packet > where the window position values fox x and y are 0 (zero). For window > dimensions I got correct values. There is nowhere near enough information here to even begin to try to help you. Please try to file a ticket and make sure to provide enough details, as per: https://xpra.org/trac/wiki/ReportingBugs Cheers, Antoine > > Bellow are the values for the client capabilities: > version=2.4.3, > desktop_size=[663, 895], > dpi=96, > client_type=Java, > screen_sizes=[663, 895], > auto_refresh_delay=500, > png=70, > encoding=png, > encoding.icons.max_size=[40, 40], > encoding.flush=true, > encoding.transparency=true, > encodings=[jpeg, png, rgb, rgb24, rgb32], > encodings.core=[jpeg, png, rgb, rgb24, rgb32], > encodings.cursor=[png], > encoding.rgb_zlib=true, > encoding.rgb24zlib=true, > encodings.window-icon=[png], > zlib=true, > lzo=false, > compression_level=1, > windows=true, > clipboard=false, > notifications=false, > cursors=true, > named_cursors=false, > bell=true, > bencode=false, > rencode=false, > chunked_compression=false, > platform=linux, > uuid=(value hidden) > keyboard=true, > system_tray=false, > xkbmap_layout=si > > > Bye > Du?an > > > _______________________________________________ > shifter-users mailing list > shifter-users at lists.devloop.org.uk > http://lists.devloop.org.uk/mailman/listinfo/shifter-users From antoine at nagafix.co.uk Wed Mar 13 06:35:55 2019 From: antoine at nagafix.co.uk (Antoine Martin) Date: Wed, 13 Mar 2019 13:35:55 +0700 Subject: [winswitch] Windows to Linux shadow: Wrong keyboard mapping In-Reply-To: References: Message-ID: <226fb890-fa32-b3a0-c039-6b150051d665@nagafix.co.uk> On 12/03/2019 22:39, Frank Loemker via shifter-users wrote: > Hello, > > I am currently trying to get shadow access from Windows 10 to Ubuntu Linux > 14.04 working. The server on the Linux box is using 1.0.13-r21370 64-bit. > The client on Windows is 1.0.13-r21474 32-bit. I tried as well 2.4.3-r21365 > and 0.17.4-r12925 under Windows with exactly the same result. Please try 2.4.3 at both ends, or even 2.5rc3 from the beta channel. Keyboard mapping when shadowing is unlikely to work with older versions. (especially for the server version) > All the time keyboard mapping is completely off. E.g. > space -> 'o' > 'p' -> '-' > 'y' -> ~ > Insert -> 'k' > Home -> Return > ... > From Linux to Linux it works fine, all keys are correct. It works as well fine when > using "start" to start a single program instead of using "shadow". For "start" all > keys are working when connecting from Windows to Linux. That's because the "start" mode will modify the keymap on the fly to match that of the client. In "shadow" mode, we try to translate all key events instead, leaving the server's existing keymap completely untouched. Finding the correct translation is not always easy, or even possible. > What I saw till now, from Windows to Linux: > Client log: parse_key_event(, True)= > Server log: client parse_key_event(, True)= > > From Linux to Linux: > Client log: client parse_key_event(, True)= > Server log: client parse_key_event(, True)= > > I.e. if I interpret that correctly: The keycode in the Windows case is wrong. For > space a keycode of 32 is generated, which is exactly the 'o'. For the Linux case > the correct keycode 65 is generated. The windows case seems to send > keyval==keycode. > > I see that as well in the debug output of get_entries_for_keycode(): > Windows: > get_entries_for_keycode(32)=((32, 32, 0, 0), (32, 32, 0, 1), (16777215, 32, 1, 0), (16777215, 32, 1, 1)) > get_entries_for_keycode(65)=((97, 65, 0, 0), (65, 65, 0, 1), (16777215, 65, 1, 0), (16777215, 65, 1, 1)) > Linux: > get_entries_for_keycode(32)=((111, 32, 0, 0), (79, 32, 0, 1)) > get_entries_for_keycode(65)=((32, 65, 0, 0),) > > Keyboard: > Windows: .get_layout_spec()=('us', ['us', 'us'], None, []) > > Am I doing something wrong? Or should I report a bug with complete logs attached? If you can reproduce the bug with the latest version (2.5rc3), then please file a ticket following the instructions found here: https://xpra.org/trac/wiki/Keyboard Thanks, Antoine > > Thanks, > > -- > Frank L?mker > _______________________________________________ > shifter-users mailing list > shifter-users at lists.devloop.org.uk > http://lists.devloop.org.uk/mailman/listinfo/shifter-users > From floemker at gmx.de Wed Mar 13 15:19:31 2019 From: floemker at gmx.de (=?UTF-8?Q?Frank_L=c3=b6mker?=) Date: Wed, 13 Mar 2019 11:19:31 -0400 Subject: [winswitch] Windows to Linux shadow: Wrong keyboard mapping In-Reply-To: <226fb890-fa32-b3a0-c039-6b150051d665@nagafix.co.uk> References: <226fb890-fa32-b3a0-c039-6b150051d665@nagafix.co.uk> Message-ID: <2d412ec7-565a-35e9-7501-a4dadb9935aa@gmx.de> Hello, On 3/13/19 2:35 AM, Antoine Martin via shifter-users wrote: > On 12/03/2019 22:39, Frank Loemker via shifter-users wrote: >> Hello, >> >> I am currently trying to get shadow access from Windows 10 to Ubuntu Linux >> 14.04 working. The server on the Linux box is using 1.0.13-r21370 64-bit. >> The client on Windows is 1.0.13-r21474 32-bit. I tried as well 2.4.3-r21365 >> and 0.17.4-r12925 under Windows with exactly the same result. > > Please try 2.4.3 at both ends, or even 2.5rc3 from the beta channel. > Keyboard mapping when shadowing is unlikely to work with older versions. > (especially for the server version) That unfortunately does not work. I am stuck on the server with Ubuntu 14.04, and that has Python 3.4.3 and Python 2.7.6. Python3 is not supported on the server and Python 2.7.6 is too old. Updating Python2 with something from a PPA did not work as well as too many other packages depend on exactly the correct Python 2.7.6 version. >> All the time keyboard mapping is completely off. E.g. >> space -> 'o' >> 'p' -> '-' >> 'y' -> ~ >> Insert -> 'k' >> Home -> Return >> ... >> From Linux to Linux it works fine, all keys are correct. It works as well fine when >> using "start" to start a single program instead of using "shadow". For "start" all >> keys are working when connecting from Windows to Linux. > > That's because the "start" mode will modify the keymap on the fly to > match that of the client. > In "shadow" mode, we try to translate all key events instead, leaving > the server's existing keymap completely untouched. > Finding the correct translation is not always easy, or even possible. Thanks for the info. Looks a little bit as if no translation is done here in this case, and thus keyval == keycode. Let's see if some hack is possible. Regards, >> What I saw till now, from Windows to Linux: >> Client log: parse_key_event(, True)= >> Server log: client parse_key_event(, True)= >> >> From Linux to Linux: >> Client log: client parse_key_event(, True)= >> Server log: client parse_key_event(, True)= >> >> I.e. if I interpret that correctly: The keycode in the Windows case is wrong. For >> space a keycode of 32 is generated, which is exactly the 'o'. For the Linux case >> the correct keycode 65 is generated. The windows case seems to send >> keyval==keycode. >> >> I see that as well in the debug output of get_entries_for_keycode(): >> Windows: >> get_entries_for_keycode(32)=((32, 32, 0, 0), (32, 32, 0, 1), (16777215, 32, 1, 0), (16777215, 32, 1, 1)) >> get_entries_for_keycode(65)=((97, 65, 0, 0), (65, 65, 0, 1), (16777215, 65, 1, 0), (16777215, 65, 1, 1)) >> Linux: >> get_entries_for_keycode(32)=((111, 32, 0, 0), (79, 32, 0, 1)) >> get_entries_for_keycode(65)=((32, 65, 0, 0),) >> >> Keyboard: >> Windows: .get_layout_spec()=('us', ['us', 'us'], None, []) >> >> Am I doing something wrong? Or should I report a bug with complete logs attached? > > If you can reproduce the bug with the latest version (2.5rc3), then > please file a ticket following the instructions found here: > https://xpra.org/trac/wiki/Keyboard -- Frank L?mker From dusan at dussan.org Wed Mar 13 17:46:58 2019 From: dusan at dussan.org (=?UTF-8?Q?Du=c5=a1an_Vejnovi=c4=8d?=) Date: Wed, 13 Mar 2019 18:46:58 +0100 Subject: [winswitch] Values x and y for positioning window are always 0 (zero) In-Reply-To: <837899db-561c-b35c-8924-015f00106853@nagafix.co.uk> References: <1168dc0b-2103-5909-cd59-feaeaaa21a26@dussan.org> <837899db-561c-b35c-8924-015f00106853@nagafix.co.uk> Message-ID: <3717a7db-d95b-614d-649a-76d10ca8f811@dussan.org> Create a ticket #2212. Antoine Martin via shifter-users je 13. 03. 19 ob 07:33?napisal: > On 13/03/2019 00:37, Du?an Vejnovi? via shifter-users wrote: >> I have trouble to save the window positioning, I can only save window >> dimensions. >> So, if send to the server window position and size over configure-window >> packet, I always got answer from the server in window-move-resize packet >> where the window position values fox x and y are 0 (zero). For window >> dimensions I got correct values. > There is nowhere near enough information here to even begin to try to > help you. Please try to file a ticket and make sure to provide enough > details, as per: > https://xpra.org/trac/wiki/ReportingBugs > > Cheers, > Antoine > >> Bellow are the values for the client capabilities: >> version=2.4.3, >> desktop_size=[663, 895], >> dpi=96, >> client_type=Java, >> screen_sizes=[663, 895], >> auto_refresh_delay=500, >> png=70, >> encoding=png, >> encoding.icons.max_size=[40, 40], >> encoding.flush=true, >> encoding.transparency=true, >> encodings=[jpeg, png, rgb, rgb24, rgb32], >> encodings.core=[jpeg, png, rgb, rgb24, rgb32], >> encodings.cursor=[png], >> encoding.rgb_zlib=true, >> encoding.rgb24zlib=true, >> encodings.window-icon=[png], >> zlib=true, >> lzo=false, >> compression_level=1, >> windows=true, >> clipboard=false, >> notifications=false, >> cursors=true, >> named_cursors=false, >> bell=true, >> bencode=false, >> rencode=false, >> chunked_compression=false, >> platform=linux, >> uuid=(value hidden) >> keyboard=true, >> system_tray=false, >> xkbmap_layout=si >> >> >> 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 From antoine at nagafix.co.uk Thu Mar 14 02:58:29 2019 From: antoine at nagafix.co.uk (Antoine Martin) Date: Thu, 14 Mar 2019 09:58:29 +0700 Subject: [winswitch] Windows to Linux shadow: Wrong keyboard mapping In-Reply-To: References: <226fb890-fa32-b3a0-c039-6b150051d665@nagafix.co.uk> Message-ID: On 13/03/2019 22:13, Frank Loemker wrote: > Hello, > > On 3/13/19 2:35 AM, Antoine Martin via shifter-users wrote:> On 12/03/2019 22:39, Frank Loemker via shifter-users wrote: >>> Hello, >>> >>> I am currently trying to get shadow access from Windows 10 to Ubuntu Linux >>> 14.04 working. The server on the Linux box is using 1.0.13-r21370 64-bit. >>> The client on Windows is 1.0.13-r21474 32-bit. I tried as well 2.4.3-r21365 >>> and 0.17.4-r12925 under Windows with exactly the same result. >> >> Please try 2.4.3 at both ends, or even 2.5rc3 from the beta channel. >> Keyboard mapping when shadowing is unlikely to work with older versions. >> (especially for the server version) > > That unfortunately does not work. I am stuck on the server with Ubuntu 14.04, > and that has Python 3.4.3 and Python 2.7.6. Python3 is not supported on the > server and Python 2.7.6 is too old. Updating Python2 with something from a > PPA did not work as well as too many other packages depend on exactly the > correct Python 2.7.6 version. Ubuntu 14.04 is going to be EOLed at the end of next month, it might just be easier to upgrade to a newer version, and skip 16.04 if you can. If you're willing to use xpra without SSL support, and with some ugly warnings in places, you can build trunk (2.5rc4) as of this changeset: http://xpra.org/trac/changeset/22080/xpra Cheers, Antoine From antoine at nagafix.co.uk Wed Mar 20 06:07:31 2019 From: antoine at nagafix.co.uk (Antoine Martin) Date: Wed, 20 Mar 2019 13:07:31 +0700 Subject: [winswitch] [ANNOUNCE] Xpra 2.5 Message-ID: <180be8b9-b82f-242a-9e4c-72f11d184b3c@nagafix.co.uk> Hi, The most significant changes in this new release are: * full python3 support, with packages for all platforms * better compression and bandwidth congestion management * automatic and manual tuning for specific client applications * client stability (opengl) and usability (ie: starting new commands) * platforms: MSYS2, Windows Subsystem for Linux, Fedora 30, Ubuntu Disco * optimizations in the network layer * SSH via paramiko: honour .config, SSHFP, proxy hosts, etc For more details, including links to the documentation and tickets, see: https://xpra.org/trac/wiki/News#a2.5ImportantFeatures The next release will be version 3.0 and this will be the next LTS release, support for a minimum of 3 years: https://xpra.org/trac/wiki/Versions The source: https://xpra.org/src/ Downloads: https://xpra.org/trac/wiki/Download Cheers Antoine From lonnie at outstep.com Mon Mar 25 09:23:16 2019 From: lonnie at outstep.com (Lonnie Cumberland) Date: Mon, 25 Mar 2019 05:23:16 -0400 Subject: [winswitch] Audio in Winswitch Message-ID: Hello All, While working out the details for a project that I am doing at the moment, I came across winswitch which I think is going to be perfect for what I need. On that note, I had a question. If I understand everything correctly, then winswitch will definitely handle the ideas of working with applications running across different platforms. but I was just wondering about applications that have audio associated with them like video players or browsers, etc. Can winswitch also pass audio data as well? Best Regards, Lonnie T. Cumberland, PhD. Email: Lonnie.Cumberland at Outstep.com From antoine at nagafix.co.uk Mon Mar 25 13:29:48 2019 From: antoine at nagafix.co.uk (Antoine Martin) Date: Mon, 25 Mar 2019 20:29:48 +0700 Subject: [winswitch] Audio in Winswitch In-Reply-To: References: Message-ID: <03fa7202-2fc2-c868-0c01-69364bffa7d2@nagafix.co.uk> On 25/03/2019 16:23, Lonnie Cumberland via shifter-users wrote: > Hello All, > > While working out the details for a project that I am doing at the moment, > I came across winswitch which I think is going to be perfect for what I > need. > > On that note, I had a question. If I understand everything correctly, then > winswitch will definitely handle the ideas of working with applications > running across different platforms. Server and client(s) can run on completely different platforms. > but I was just wondering about > applications that have audio associated with them like video players or > browsers, etc Audio works pretty well with the xpra transport. > Can winswitch also pass audio data as well? Winswitch is just a GUI wrapper around transports: xpra, VNC, RDP, etc. It's down to the transport that you choose to use. Audio is supported with xpra, not with the other ones. Cheers Antoine > > Best Regards, > > Lonnie T. Cumberland, PhD. > Email: Lonnie.Cumberland at Outstep.com > _______________________________________________ > shifter-users mailing list > shifter-users at lists.devloop.org.uk > http://lists.devloop.org.uk/mailman/listinfo/shifter-users > From venkataramakoundinya1998 at gmail.com Wed Mar 27 16:10:55 2019 From: venkataramakoundinya1998 at gmail.com (Venkata Rama Koundinya Lanka) Date: Wed, 27 Mar 2019 21:40:55 +0530 Subject: [winswitch] Request to work on Android Client for Xpra for GSoC 2019 Message-ID: Hi everyone, My name is Venkata Rama Koundinya Lanka, a final year engineering student from India. I have some experience in android programming and interest in networks. I would like to contribute to xpra android client for GSoC 2019. I have downloaded the code and I am locally running it in android studio. Can anyone tell me a good issue to start with? Yours sincerely, Venkata Rama Koundinya Lanka