Filetransfer stuck and freeze

Re: Filetransfer stuck and freeze

Postby Rudi De Vos » 2017-07-09 21:21

Thanks for the detailed info...
Installing some network simultaion software to be able to lock/crash in debug mode..
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5438
Joined: 2004-04-23 10:21

Re: Filetransfer stuck and freeze

Postby Prisma » 2017-07-10 13:26

@ddbivens:
Thank you for your help. I don't have much time for testing and I'm only able to check in short if my reported problems disappear or not. I'm not able to test everything in depth. So, I very very appreciate your help. A good software can only become better, when engaged user help to improve and test it.
But I'm not sure if the problems you've reported and the tests you did are related to my initial posting. Possibly it's better to report your results in an independent thread.
Please don't misunderstand me and excuse me if I'm wrong.
Prisma
100
100
 
Posts: 283
Joined: 2005-10-27 15:50

Re: Filetransfer stuck and freeze

Postby Rudi De Vos » 2017-07-10 18:05

Fast in the beginning... and after x% slow

Keep in mind that when you have a "!UVNCPFT-" file, next Filetransfer to the same spot resume the previous upload.
First part looks fast, it only check the content.
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5438
Joined: 2004-04-23 10:21

Re: Filetransfer stuck and freeze

Postby Prisma » 2017-07-11 09:38

To give you an idea what could be the problem I made a video. Sometimes you see something and you think, uh, yes of course, this is because...
https://youtu.be/ITA7FfGStAk
Prisma
100
100
 
Posts: 283
Joined: 2005-10-27 15:50

Re: Filetransfer stuck and freeze

Postby Rudi De Vos » 2017-07-11 13:46

If the vnc connection goes down, the viewer crash.
I'm adding code to prevent the crash, but this wil not prevent the disconnect.
The crash is a result, not the cause.
Does the ping to that server stay alive during FT ?

Your transfer is extreme slow 200kb.
What's the network connectionand type.
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5438
Joined: 2004-04-23 10:21

Re: Filetransfer stuck and freeze

Postby Prisma » 2017-07-11 15:33

I wouldn't call that slow.

This is the server side:
Image

This is the viewer side:
Image
Prisma
100
100
 
Posts: 283
Joined: 2005-10-27 15:50

Re: Filetransfer stuck and freeze

Postby Rudi De Vos » 2017-07-11 20:00

my test
VNC started as app in a RDP session

Server upload 460Mbps download 20MBps USA
Viewer upload 8Mbps download 40Mbs Belgium


theoretical max speed is around 1 mb/s
Actual speed 0.87Mbs using vnc FT

Doesn't look that bad in my case.
As test i upload file of 4GB mp4

compression ON, but doesn't compress a lot
No encryption
15ms to send a 8k block
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5438
Joined: 2004-04-23 10:21

Re: Filetransfer stuck and freeze

Postby Prisma » 2017-07-11 21:19

Did you try this with secure plugin, reverse connection and repeater behind NAT?
Maybe the connection handling of the repeater is the bottle neck?
Prisma
100
100
 
Posts: 283
Joined: 2005-10-27 15:50

Re: Filetransfer stuck and freeze

Postby Rudi De Vos » 2017-07-12 09:36

Not yet,
current just playing with source options to optimize plain sending.
before 20ms -> 8k now 15 ms -> 8k

It's a fast pc, so compression doesn't have any impact (still need to test without comrpression)

Then i have a good base to compare - with encryption, with repeater
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5438
Joined: 2004-04-23 10:21

Re: Filetransfer stuck and freeze

Postby Prisma » 2017-07-12 09:40

THX Rudi!
Prisma
100
100
 
Posts: 283
Joined: 2005-10-27 15:50

Re: Filetransfer stuck and freeze

Postby Rudi De Vos » 2017-07-12 19:40

with encryption, still 0.85mb
WIth encryption + repeater 0.89mb going up to 0.925Mb
Crazy...faster with repeater then without LOL

Can you try with our public repeater
support2.uvnc.com.. standard 5901 and 5500 ports
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5438
Joined: 2004-04-23 10:21

Re: Filetransfer stuck and freeze

Postby Prisma » 2017-07-13 08:55

Thanks for the idea to use your public repeater. I had the same idea of an external standing repeater and thought about setting up a azure VM. You saved me hours of senseless work, because:
Still crashing, at 2:45 while using your repeater
https://youtu.be/kaCsWcFq21k

To find the problem:
* We did cut the second WAN interface we normally use, to be sure that it's not an LoadBalancer issue,
* We used an external repeater
* We deactivated the AV on the remoted machine
* We tested the connections, seems all stable.

I can't get it. Without any debug info we'll not be able to find the problem. This server is owned by us, therefore I'm able to test so much. But we do have this problem with many customers.

Could you please try to fix the crash when disconnected first. Then we are able to test if the crash is really related to a real disconnect.
Prisma
100
100
 
Posts: 283
Joined: 2005-10-27 15:50

Re: Filetransfer stuck and freeze

Postby Prisma » 2017-07-13 09:39

hmm, when connection is interrupted -> filetransfer initiates reconnect (with timeout). Possible? Or a huge project?
Prisma
100
100
 
Posts: 283
Joined: 2005-10-27 15:50

Re: Filetransfer stuck and freeze

Postby Rudi De Vos » 2017-07-17 20:18

Viewer FT crash fix ( detect disconnect) + tuning some parameters.

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

Re: Filetransfer stuck and freeze

Postby Prisma » 2017-07-18 07:44

Nope, sorry. Still crashing at 5:20
https://youtu.be/KYjkh3KxE-0

As I said, I don't suspect the connection persistence. Data, freeze, data, longer freeze, data, longest freeze, crash -> sounds like overflow

But anyway, thank you for your engagement. We very appreciate it! Should I record something with wireshark, do we have some debug options?

Shall I post the viewer and server configuration?
Prisma
100
100
 
Posts: 283
Joined: 2005-10-27 15:50

Re: Filetransfer stuck and freeze

Postby Rudi De Vos » 2017-07-18 10:22

I could crash the viewer by pulling the server plug while the viewer FT was running.
Bugfix was for this unexpected disconnect...
Then the crash in your case is something else....dammm
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5438
Joined: 2004-04-23 10:21

Re: Filetransfer stuck and freeze

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

Crashrpt version
http://www.uvnc.eu/download/1215/vncviewerFT003.zip

On crash it generate a dump that i can analyse to trace the origin of the crashed function.
It use http://crashrpt.sourceforge.net/ internal.
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5438
Joined: 2004-04-23 10:21

Re: Filetransfer stuck and freeze

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

seems using the plugin it still crash...trying to fix that also.
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5438
Joined: 2004-04-23 10:21

Re: Filetransfer stuck and freeze

Postby Prisma » 2017-07-19 07:30

Ok, I'll wait until the plugin related crash is fixed. When the viewer then crashes anyway, I'll use crashrpt.
Prisma
100
100
 
Posts: 283
Joined: 2005-10-27 15:50

Re: Filetransfer stuck and freeze

Postby Rudi De Vos » 2017-07-24 19:36

http://www.uvnc.eu/download/1215/vncviewerFT004.zip

This version should proper close is FT is interrupted.
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5438
Joined: 2004-04-23 10:21

Re: Filetransfer stuck and freeze

Postby Rudi De Vos » 2017-07-30 18:35

http://www.uvnc.eu/download/1215/vncviewerFT005.zip

Found another one.
keepalive send messages to the uninitialized encryption after disconnect -> crash
This was the reason the reconnect didn't worked proper when the encryption was used.
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5438
Joined: 2004-04-23 10:21

Re: Filetransfer stuck and freeze

Postby Prisma » 2017-07-31 07:39

Ok, sounds good. I tested your last posted version and I got reported an disconnect. So, if you've fixed this error, the viewer should reconnect after disconnect.

But I'm wondering, why should 2 very fast connections break? Break after observed slowing down and stuck? While other internet connection problems are not observed?
So maybe we'll find a server side bug if we continue digging?!?

If I can do more than cross check the fixed bugs, please let me know.
Prisma
100
100
 
Posts: 283
Joined: 2005-10-27 15:50

Re: Filetransfer stuck and freeze

Postby Rudi De Vos » 2017-07-31 18:33

That the catch, i need to be able to break the connection in a repeatable way without pulling the cable.

Reconnect with FT.... to complex for now
Local/remote path, selected folders files...all need to be cached so the viewer can reuse it.

First we need to know if the connection stay alive or the fast packets kill something on the route

Can you run something like this so we can see if the pings change on break
test.bat > test.txt
---test.bat--
:start
echo %TIME%
ping ipserver
timeout /t 10 /nobreak
goto start
This info with the server log should give some clue
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5438
Joined: 2004-04-23 10:21

Re: Filetransfer stuck and freeze

Postby AnotherUVNCuser » 2017-10-06 13:28

I also experience this with 1.2.0.6 when:

- The remote computer has a bad/slow connection
- When i try to abort/close an active (running) filetransfer

(this has been tested under Windows 10 x64)


When clicking "Stop" in the filetransfer window, the active filetransfer continues as if no button was clicked in the first place.
This is bad when needing to abort/stop (big) file transfers. The only thing that goes away when clicking "Stop" is the Stop button itself...

Besides the above problem i'm also experiencing other type of problems related to the filetransfer function:

- When adding a removable drive with the filetransfer window already opened, the new drive doesn't appear
(it could be useful to enumerate/refresh the available/connected drives\network shares when clicking a Home/Root directory or \ button)

- You can't change (or copy+paste another) path by typing it in the text input bar (value is read-only)
(navigating a remote computer would be much better if you could could change the path by hand)

- A non (or badly) responding remote computer (due to bad/slow connection or wrong screen poll settings) makes the filetransfer function unresponsive too (keeps showing "> Browsing The Local Directory. Please Wait...")

In the last case i also can't close the remote window of the connected(?) computer.

update: I've noticed another problem which is pretty serious. When connected and opening the filetransfer window, the remote screen isn't updated anymore.. but, when keeping the filetransfer window open, the program becomes unresponsive and eventually you'll lose the connection.

Perhaps the screen updating and filetransfer happen in the same thread? (just a thought).

I really hope this will be fixed, because besides this and the above problems/limitations i've also noticed that UVNC seems to be less responsive than TightVNC, and that's a real shame/disappointment... :(
AnotherUVNCuser
8
8
 
Posts: 29
Joined: 2017-09-13 00:40

Re: Filetransfer stuck and freeze

Postby Rudi De Vos » 2017-10-08 14:07

FT window open -> only FT network active. Screen updates are locked
FT window minized-> FT and screen updates simultanious
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5438
Joined: 2004-04-23 10:21

Re: Filetransfer stuck and freeze

Postby AnotherUVNCuser » 2017-10-09 01:05

ok, good to know :wink:

But what about the other problems that i've mentioned?


Look at the filetransfer problem for instance:

When sending/receiving files is taking really long, i'm not able to stop/abort it by clicking the Stop button.
The filetransfer still continues...
AnotherUVNCuser
8
8
 
Posts: 29
Joined: 2017-09-13 00:40

Re: Filetransfer stuck and freeze

Postby nzsolt » 2017-10-09 15:02

There is maybe another bug: if the screen updating (youtube) or FileTransfer (get or put in minimized window) is active on remote screen and you do vnc chat on remote screen, it seems the data is not correctly mixed and the datastream decryption (zrle encription) is broken on viewer side. The chat text data injection (at winvnc.exe side) cause the problem.
nzsolt
8
8
 
Posts: 18
Joined: 2010-02-08 10:35

Re: Filetransfer stuck and freeze

Postby Rudi De Vos » 2017-10-09 17:42

No fast fix.
I didn't wrote the FT myself, need to study and debug it to understand and fix.
Gonna take a few months.
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5438
Joined: 2004-04-23 10:21

Re: Filetransfer stuck and freeze

Postby nzsolt » 2017-10-09 19:38

The problem exists if you watch a video (for screen update) on remote computer and answer in chat.
Maybe the screen update and the chat messages are mixed.
nzsolt
8
8
 
Posts: 18
Joined: 2010-02-08 10:35

Re: Filetransfer stuck and freeze

Postby Rudi De Vos » 2017-10-10 18:50

I was extracting all network code parts in a lib as part of a viewer rewrite.
Perhpas i find the bug while on that.
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5438
Joined: 2004-04-23 10:21

PreviousNext

Return to 1.2.1.x

Who is online

Users browsing this forum: No registered users and 1 guest