Filetransfer stuck and freeze

Filetransfer stuck and freeze

Postby Prisma » 2017-05-16 08:50

Hello Rudi,

how you're doing? RonnieM wrote something about file transfer, so I was remembered to report a problem we have since months:

Since a few months we have very fast upload bandwidth, 10 mbit. File transfer to vnc server should be very fast, but it isn't. Of course we know that the bandwidth is also limited by the download speed of vnc server.
We see the transfer progress bar stuck several times, freezing / in-reactive transfer dialogue and a turning crazy donut. Sometimes the viewer crashes completely. Between the breaks transfer is very fast.

It sounds for me, that it could be related to buffers / buffer management / stream compression.
Theoretically it could also be related to a clients AV scanner (Possibly we could find a modus operandi for writing files a way that AV scanners "more like"...)

Did you ever notice something similar? Would you please cross-check the behaviour with fast connections?
Prisma
100
100
 
Posts: 283
Joined: 2005-10-27 15:50

Re: Filetransfer stuck and freeze

Postby Prisma » 2017-05-23 11:09

Any Updates? Anybody else with this observation?
Prisma
100
100
 
Posts: 283
Joined: 2005-10-27 15:50

Re: Filetransfer stuck and freeze

Postby Rudi De Vos » 2017-05-31 19:49

filetransfer
viewer->server higher speed

test viewers

http://www.uvnc.eu/download/1215/vncviewer_1215.zip
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5439
Joined: 2004-04-23 10:21

Re: Filetransfer stuck and freeze

Postby Prisma » 2017-06-01 08:17

Hello Rudi,

thx for you answer.
With new viewer we recognized a lightly better throughput on connections having no hangs anyway. Speed from viewer->client 5000kb/s instead of 4500 kb/s.

But on connections having hangs the new viewer shows no difference.
Tested with connection speed of viewer cable 150mbit down/10mbit up and server side adsl 50mbit down/10mbit up.
Transfer mostly hangs. This results in an average speed of 350 kb/s which is far away from physical possibility. http based speed tests on both sides show full speed.

We are wondering. Normally packet sizes, TCP buffers sizes etc. are managed by th OS and you shouldn't have to do with this anything.
Or did you tweak some parameters for some reasons?
Prisma
100
100
 
Posts: 283
Joined: 2005-10-27 15:50

Re: Filetransfer stuck and freeze

Postby Rudi De Vos » 2017-06-01 18:55

Because of the messages limitation we can only send 1000 packets /seconds
1000 x 8 kbs -> this give tha max of 8000kbs

The change was to send bursts of 8k packets ( 1000 x (8k +8k + 8k) tests in loopback give now a max of 200 000k

Your physical limitation 10mbit -> 1.2mb -> 1200kbs.
If it's WiFi it's even lower.

The packet sizes of vnc have nothing to do with tcp packets.
We don't touch the network packages, this is optimized by the OS.
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5439
Joined: 2004-04-23 10:21

Re: Filetransfer stuck and freeze

Postby sfhub » 2017-06-05 10:18

Prisma wrote:But on connections having hangs the new viewer shows no difference.
Tested with connection speed of viewer cable 150mbit down/10mbit up and server side adsl 50mbit down/10mbit up.
Transfer mostly hangs. This results in an average speed of 350 kb/s which is far away from physical possibility. http based speed tests on both sides show full speed.

I am wondering if your problem and my problem are the same. In my case, the uvnc server seems to be not getting enough time slices to process things at speed, but only when it is running as a service. I can tell this is the problem because when I bring up the server properties page using the taskbar icon, the transfers immediately become unstuck and very fast. I am testing with server on GigaBit LAN and Client on 100Mbps LAN.

viewtopic.php?f=71&t=32810
sfhub
20
20
 
Posts: 44
Joined: 2010-05-02 19:59

Re: Filetransfer stuck and freeze

Postby Rudi De Vos » 2017-06-05 11:46

This are 2 different things, but as file transfer is client/server also related.

Your test show some interesting results the difference between service/app and option popup is worth to investigate.
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5439
Joined: 2004-04-23 10:21

Re: Filetransfer stuck and freeze

Postby sfhub » 2017-06-05 17:09

Rudi De Vos wrote:This are 2 different things, but as file transfer is client/server also related.

I understand the fix you put in the client to increase the amount of KB processed while adhering to 1000 packets/second limitation is a separate issue.

It seems even with that change Prisma/OP is still seeing stalled transfers that start/stop/start/stop.

This is the portion of his problem for which I am asking if it is the same problem. I wanted to see if Prisma/OP could bring up the Properties page on his uvnc server using the icon in the taskbar and see whether this would improve his situation.

I am suspecting Prisma/OP is also seeing two separate issues, the one you addressed, and also the one he is still seeing with the stalled transfers, which is similar to what I am seeing.

Prisma wrote:...
But on connections having hangs the new viewer shows no difference.
...
sfhub
20
20
 
Posts: 44
Joined: 2010-05-02 19:59

Re: Filetransfer stuck and freeze

Postby Rudi De Vos » 2017-06-06 21:20

Reverted back to 1.2.1.2 and added the modifications back except the latest ipv6 stuff.

**Server was indeed using the menu to send packages.
As test, changed the method, FT is faster but screen updates are to slow to be useful during transfer.
The transfer is direct without the menu, this should overcome the service issue's where the menu and winvnc run in seperate sessions.

**reconnect High cpu fix
A loop was running without any sleep, checking 1000/sec while it should only check 1/s.
Possible blocking other threads...

http://www.uvnc.eu/download/1215/winvnc1216Test.zip
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5439
Joined: 2004-04-23 10:21

Re: Filetransfer stuck and freeze

Postby sfhub » 2017-06-06 23:47

Rudi De Vos wrote:**Server was indeed using the menu to send packages.
As test, changed the method, FT is faster but screen updates are to slow to be useful during transfer.
The transfer is direct without the menu, this should overcome the service issue's where the menu and winvnc run in seperate sessions.

I confirmed this does fix the slow transfers when uvnc server is running as service issue.

As to the comments about screen updates too slow to be useful, I am not sure if that was a temporary situation while you experimented or was supposed to apply to 1216 that I downloaded.

When I minimized the transfer window, the transfers slowed down (or stopped, I forget) and the screen updates were usable.

Just to document, with server on GigaBit LAN and client on 100Mbps LAN, I can send to server at 8041 KB/sec (KiloBytes/sec)
I can retrieve file from server at 11,481 KB/sec (KiloBytes/sec)

So retrieving files over 100Mbps connection from server is operating close to theoretical. Sending files to server is about 2/3 of theoretical. It is perfectly acceptable to me, but I am not sure why there is asymmetry. Perhaps the scheduling is different for send vs receives to optimize for some performance/responsiveness?
sfhub
20
20
 
Posts: 44
Joined: 2010-05-02 19:59

Re: Filetransfer stuck and freeze

Postby Prisma » 2017-06-13 08:42

Hi,

sorry, I was on vacation. Back now. The test link is somewhere broken...
Prisma
100
100
 
Posts: 283
Joined: 2005-10-27 15:50

Re: Filetransfer stuck and freeze

Postby Rudi De Vos » 2017-06-13 09:00

You can dowload the bin or setup from
http://www.uvnc.com/downloads/ultravnc/ ... -1215.html

exe were released as 1215
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5439
Joined: 2004-04-23 10:21

Re: Filetransfer stuck and freeze

Postby Prisma » 2017-06-13 15:17

hmm, let me ask one more question. Is it a server or a viewer side improvement? From what I've understood it is a server side improvement. Just to be sure...
Prisma
100
100
 
Posts: 283
Joined: 2005-10-27 15:50

Re: Filetransfer stuck and freeze

Postby Rudi De Vos » 2017-06-13 18:18

new viewer: faster transfer from viewer to server
new server: faster transfer from server to viewer

Improvement could only be done on send site.
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5439
Joined: 2004-04-23 10:21

Re: Filetransfer stuck and freeze

Postby sfhub » 2017-06-14 18:14

Prisma wrote:hmm, let me ask one more question. Is it a server or a viewer side improvement? From what I've understood it is a server side improvement. Just to be sure...

As I understand there were 2 issues resolved.

1) client-side/server-side - packet processing limitation was restricting how much data could be processed on fast networks
2) server-side - transfer freezes/very slow transfers
sfhub
20
20
 
Posts: 44
Joined: 2010-05-02 19:59

Re: Filetransfer stuck and freeze

Postby Rudi De Vos » 2017-06-14 18:44

Indeed,


1) client-side/server-side - packet processing limitation was restricting how much data could be processed on fast networks
This is a viewer change..more packets/s can be send with less messages

2) server-side - transfer freezes/very slow transfers
This is a server change we send without the menu. More packets/s , messages are not longer used.

*sending a lot of messages make the GUI unresponsive...slow, freeze the app.
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5439
Joined: 2004-04-23 10:21

Re: Filetransfer stuck and freeze

Postby Prisma » 2017-06-28 08:22

Hello Rudi,

I had now time to investigate further with 1215 binaries. Unfortunately none of the above improvements solved our problems.
The transfer begins with rapid speed, but then freezes rather early, continues, freezes, continues etc. where the freeze periods get longer and longer. Finally the viewer crashes and that's it.

We use reverse connections with new repeater and secure vnc plugin. All 32-bit with XP winvnc binaries.
Would you please try to inspect the code if you see something what could cause the above described behaviour?
Prisma
100
100
 
Posts: 283
Joined: 2005-10-27 15:50

Re: Filetransfer stuck and freeze

Postby Rudi De Vos » 2017-07-04 22:34

As test i added a sleep 10ms after each FT block ( server site)... max speed is then 700k

result:
Viewer start ok, but after a few seconds the FT window get's slow.. just dragging the window on the screen until it lock.
After ctr-alt-del taskmggr... it's works back for a few seconds... just to press the close

It looks like when the viewer process a data block slower then data blocks are provided window messages get queued and
the complete Gui lock.

Changed to avoid that messages are used to send file data...and after 5 minutes of slow transfer i still could minize
to update screen and maximize the FT to get full speed ( just 700k in this case)

Are you able to do some test ?
Will post bins tomorrow
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5439
Joined: 2004-04-23 10:21

Re: Filetransfer stuck and freeze

Postby Prisma » 2017-07-05 07:25

Sure, I'll test it ASAP. I should have time this week.
But to clarify: It's when transferring data from viewer to server. Your're answer did sound like assuming the opposite.

Cheers
Prisma
100
100
 
Posts: 283
Joined: 2005-10-27 15:50

Re: Filetransfer stuck and freeze

Postby Rudi De Vos » 2017-07-05 12:41

indeed, viewer to server
test
server: simulate slow network by adding timout after datachunk
viewer: send full speed, to overload his message queue
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5439
Joined: 2004-04-23 10:21


Re: Filetransfer stuck and freeze

Postby ddbivens » 2017-07-06 01:18

First test, fast feedback... Sending and receiving files does not hang up!!!
If the remote PC is locked at the desktop waiting for C-A-D, I can close the File Transfer window with "X" or ALT-F4!!!
Sending a file to the remote PC is fast. I can click on the Stop button and the transfer stops.
Receiving a file from the remote PC is fast. I can click on the Stop button and the Stop button goes away but the transfer does not stop. I can't close the File Transfer window with the "X" or Alt-F4. If I right click on the icon on the task bar, I can End Task and the File Transfer window will close. If I reopen the File Transfer window the right side of the window for the remote PC will not display anything. If I close and open the VNCViewer window [and reconnect to the remote PC], the File Transfer window will work properly again.
Last edited by ddbivens on 2017-07-07 00:43, edited 1 time in total.
ddbivens
20
20
 
Posts: 50
Joined: 2015-12-26 14:53
Location: Tellico Plains, TN 37385 USA

Re: Filetransfer stuck and freeze

Postby Prisma » 2017-07-06 09:10

Crashes are gone, transmission is more continuously. Good work! Other bugs reported from ddbivens not tested.

THX a lot rudi!

PS: But transmission to test server is still unexplainable slow as hell (which was the origin of all crashes). Still investigating what's the difference between a http upload (which is very fast) and a winvnc servers upload. Possibly a QoS/Traffic-shaping problem... But hard to believe...
Prisma
100
100
 
Posts: 283
Joined: 2005-10-27 15:50

Re: Filetransfer stuck and freeze

Postby Prisma » 2017-07-06 12:36

AARG, no, still crashing. But not every time and not so early.

What's really better and very helpful: The viewer is much more responsive during transmission. At least one huge improvement ;)
Prisma
100
100
 
Posts: 283
Joined: 2005-10-27 15:50

Re: Filetransfer stuck and freeze

Postby ddbivens » 2017-07-07 00:39

At work, I am getting excellent screen refresh over a slower network connection (but much faster than my DSL connection at home) to a satellite location. I had a need so I tested the File Transfer to a few PCs over fast and slower network connections. Transferring small files and folders works great from Windows 7 to Windows 7 (and Windows 10) PCs. Tranferring files from a Windows 7 PC to a Windows XP PC works great. Transferring folders from a Windows 7 to a Windows XP PC does not work. When I tried to send a folder named "_Digital Utilities" from a Windows 7/64bit PC to the user's desktop on a Windows XP PC it fails. This happens over a fast or slow network. I picked a fairly large folder so it would take a few seconds to transfer the file. That way I had a little time to see what was happening. I clicked on the "Send" button... I waited a few seconds while the folder was compressed then the transfer started. During the transfer a file named !UVNCDIR-_Digital Utils.zip was created on the desktop on the remote PC, but as soon as the transfer completed, the file was deleted, but no folder was created. I tried different folders. It appears I can't transfer folders from Win7 to XP, but I can transfer files individually and multiple files selected at the same time. I have not tested transferring files from XP to Windows 7.
[Edit] After several other tests, I had one file transfer failure and one non-start (it zipped the file, but never started transferring.) All other transfers went through without a hitch.
Last edited by ddbivens on 2017-07-15 01:20, edited 1 time in total.
ddbivens
20
20
 
Posts: 50
Joined: 2015-12-26 14:53
Location: Tellico Plains, TN 37385 USA

Re: Filetransfer stuck and freeze

Postby Prisma » 2017-07-07 07:43

!! remarkable !! never saw such a behaviour. I'd suspect user right problems or AV in such cases.
Prisma
100
100
 
Posts: 283
Joined: 2005-10-27 15:50

Re: Filetransfer stuck and freeze

Postby Prisma » 2017-07-07 09:20

The only similar case I'm able to remember is: A transmission to a windows desktop was not possible because of parallels virtualization on a mac. The desktops filesystem was shared between mac and windows. And Windows was tweaked to be able to access the desktop, but winvnc.exe was of cause not tweaked etc...

Hmm... did you try another winvnc.exe? Is it really related to Rudis changes??
Prisma
100
100
 
Posts: 283
Joined: 2005-10-27 15:50

Re: Filetransfer stuck and freeze

Postby Rudi De Vos » 2017-07-07 18:27

folder FT
local zip, transfer zip, remote unzip
Usual the temp is used to copy the zip "!UVNCDIR-_Digital Utils.zip"
Looks like permission issue.

The FT doesn't depend on any viewer OS setting, you just need to be ablt to read the folder.
Remote you extract as "remote desktop user" or admin if impersonating is of... in that case you have full access to local folders.
( server option)

Try to copy afolder to the desktop and see if it extract !! You can aslo modify the FT impersonation, byt be carefull this allow to overwrite system files.
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5439
Joined: 2004-04-23 10:21

Re: Filetransfer stuck and freeze

Postby ddbivens » 2017-07-07 23:57

(moving this item to a new thread.)
Last edited by ddbivens on 2017-07-15 01:16, edited 1 time in total.
ddbivens
20
20
 
Posts: 50
Joined: 2015-12-26 14:53
Location: Tellico Plains, TN 37385 USA

Re: Filetransfer stuck and freeze

Postby ddbivens » 2017-07-09 01:00

(moving this item to a new thread.)
Last edited by ddbivens on 2017-07-15 01:17, edited 1 time in total.
ddbivens
20
20
 
Posts: 50
Joined: 2015-12-26 14:53
Location: Tellico Plains, TN 37385 USA

Next

Return to 1.2.1.x

Who is online

Users browsing this forum: Google [Bot] and 2 guests