Data viewer tool stop working during Synchronization

Discussions about syncing data via Bluetooth, Dropbox, FTP, and using CSWeb
Forum rules
New release: CSPro 8.0
Post Reply
sah
Posts: 97
Joined: May 28th, 2015, 3:16 pm

Data viewer tool stop working during Synchronization

Post by sah »

Dear Team,
I am experiencing this problem most time synchronizing data using the data viewer tool. Below is the details of the problem reported by windows 7 for your perusal.
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: DataViewer.exe
Problem Signature 02: 7.0.0.0
Problem Signature 03: 59146d77
Problem Signature 04: zSyncCLR
Problem Signature 05: 7.0.0.0
Problem Signature 06: 59146d43
Problem Signature 07: 172
Problem Signature 08: 64
Problem Signature 09: RML5K4UDBMA5NI04CIYRWVDHKEWFDHCV
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789


Any explanation, is welcome.
Regards,
Sah
Attachments
error.png
error.png (192.45 KiB) Viewed 5667 times
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Data viewer tool stop working during Synchronization

Post by josh »

Is this doing "Synchronize" or "Download" from the menu? Is it CSWeb, FTP or Dropbox? Could you post the sync.log file from C:\Users\<your username>\AppData\Roaming\CSPro?
sah
Posts: 97
Joined: May 28th, 2015, 3:16 pm

Re: Data viewer tool stop working during Synchronization

Post by sah »

Hello Team,
It is FTP synchronization. and this happens when synchronizing
Attachments
sync.log
(489.06 KiB) Downloaded 301 times
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Data viewer tool stop working during Synchronization

Post by josh »

Looks like it is crashing downloading one of the files but I can't tell why without seeing the files themselves.

Could you PM or email me login info for your FTP server so I can test it from here? If not, could you send a zip of all the files in the CSPro directory on your FTP server so I can reproduce your setup on my test server?
sah
Posts: 97
Joined: May 28th, 2015, 3:16 pm

Re: Data viewer tool stop working during Synchronization

Post by sah »

Sure, Josh, please check your PM
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Data viewer tool stop working during Synchronization

Post by josh »

Thanks for sending the server credentials. I was able to reproduce the problem on my end. There is a file on your server that is incomplete - it is missing the ending tag and probably some data as well. This is causing CSPro to fail to parse the file when it downloads it. Due to a bug in the code CSPro fails to catch that parse error and it crashes rather than downloading and syncing the remaining files. I renamed the incomplete file on the server from "001c423f73a6$a7d80839-9088-4990-8ffa-5aa05c5f44a9" to "001c423f73a6$a7d80839-9088-4990-8ffa-5aa05c5f44a9.partial" which causes CSPro to ignore the file. Now DataViewer will sync the data without crashing. However any data in that file is now excluded so you may need to resync the data from the device that sent that data. Based on the filename the device id is "001c423f73a6" which is a Windows device, not Android. If you sync again from that device it should upload the data and you will have everything on the server.

The root cause of this is probably that when you were syncing and uploading data from CSEntry, the transfer was cut off part way through and so the file was not completely uploaded. We had seen this problem on Android before and had added checks to prevent it from happening but this is the first time we have seen it happen with the Windows FTP library we use. I thought that the Windows FTP library would correctly handle such cases but apparently it doesn't. In the next release we will add similar checks on Windows to prevent incomplete uploads.
sah
Posts: 97
Joined: May 28th, 2015, 3:16 pm

Re: Data viewer tool stop working during Synchronization

Post by sah »

Thanks for the reply and the troubleshooting.
Post Reply