JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 19.06.2015, 10:52
bugnotme bugnotme is offline
BugMeNot Account
 
Join Date: Apr 2013
Posts: 332
Default Strange problem with downloaded files

Have something changed in the file creation algorithm in the last month? I'm having problems with the files downloaded by JD2. If I make a copy of the file everything works fine, but the original created by JD2 doesn't work with all programs like the files downloaded 3-4 weeks ago (moving or renaming the file doesn't help).

Win7 x64, Java 7u79.

P.S. The problem is present only when accessing the downloaded files with some programs. Here is a download link to a program that can be used to reproduce the problem: **External links are only visible to Support Staff****External links are only visible to Support Staff**
Reply With Quote
  #2  
Old 19.06.2015, 11:01
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 67,541
Default

Files are now created with sparse flag(to avoid preallocation issue with large files and slow disk/network drives).
Sparse Files exists since many years and if they really cause problems then it looks like issue in the tool you use.

What exactly is the problem? What error shows up?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 19.06.2015, 13:23
bugnotme bugnotme is offline
BugMeNot Account
 
Join Date: Apr 2013
Posts: 332
Default

The program can't access the file even after JD2 is shutdown and the pc is restarted. Is there an option to disable the new function?

BTW the problem is not in the software because it works fine with sparse files created by other software.
Reply With Quote
  #4  
Old 19.06.2015, 13:31
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 67,541
Default

Can we do teamviewer? Sparse is the only change. What error? Can't access...error message/screenshot?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 19.06.2015, 13:45
bugnotme bugnotme is offline
BugMeNot Account
 
Join Date: Apr 2013
Posts: 332
Default

The program log is not helpful:
Quote:
Information:
Statistics:

Erased area = 0 bytes

Cluster tips = 0 bytes



Data written = 0 bytes

Write time = 0.17 s

Write speed = 0 kB/s

Failures:
Failed: X:\...\File.part1.rar
BTW Shouldn't the sparse flag be removed once the file is downloaded?

Last edited by bugnotme; 19.06.2015 at 13:48.
Reply With Quote
  #6  
Old 19.06.2015, 13:48
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 67,541
Default

What version are you using?
2255: Fixed a few minor documentation errors on task list compatibility and on NTFS compressed/encrypted/sparse files
__________________
JD-Dev & Server-Admin
Reply With Quote
  #7  
Old 19.06.2015, 13:56
bugnotme bugnotme is offline
BugMeNot Account
 
Join Date: Apr 2013
Posts: 332
Default

Build date: Fri Jun 19 11:26:56 CEST 2015
Auto update is on.
Reply With Quote
  #8  
Old 19.06.2015, 14:16
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 67,541
Default

The sparse flag cannot be removed. It's a flag from beginning, cannot be changed once the file exists.

My guess is that the tool has issues with sparse files. Cause sparse file works different and if the tool is not prepared for it, you wont need to. Also I guess you use Eraser to delete files.
Might be right, trac.heidi.ie/changeset/1149
__________________
JD-Dev & Server-Admin
Reply With Quote
  #9  
Old 19.06.2015, 14:35
bugnotme bugnotme is offline
BugMeNot Account
 
Join Date: Apr 2013
Posts: 332
Default

Wrong on both counts:
The problem is only when using FL2KB mode (delete only first and wast 2KB of data) which I'm not using. And was fixed 2009 as can be seen by the link you provided.

"fsutil sparse setflag file_name.ext 0" removes the sparse flag, also torrent clients that use sparse files remove the flag once the files is downloaded.
Reply With Quote
  #10  
Old 19.06.2015, 14:49
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 67,541
Default

Didn't know that ntfs allows "desparse" a file at the end.
Will try to add support for this.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #11  
Old 19.06.2015, 15:06
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 67,541
Default

I will try to use same method as libtorrent, just some experimenting with jna
__________________
JD-Dev & Server-Admin
Reply With Quote
  #12  
Old 19.06.2015, 15:18
bugnotme bugnotme is offline
BugMeNot Account
 
Join Date: Apr 2013
Posts: 332
Default

Great, thanks.
Reply With Quote
  #13  
Old 19.06.2015, 15:24
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 67,541
Default

Sorry for the circumstances!
__________________
JD-Dev & Server-Admin
Reply With Quote
  #14  
Old 09.07.2015, 00:43
raymondjpg raymondjpg is offline
DSL User
 
Join Date: Dec 2014
Posts: 38
Default

Quote:
Originally Posted by Jiaz View Post
I will try to use same method as libtorrent, just some experimenting with jna
Will a fix come as an update, or new build?
Reply With Quote
  #15  
Old 09.07.2015, 05:05
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,201
Default

when ticket closes at 100% compete && core update.
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #16  
Old 09.07.2015, 09:23
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 67,541
Default

Will do it this week
__________________
JD-Dev & Server-Admin
Reply With Quote
  #17  
Old 09.07.2015, 09:46
raymondjpg raymondjpg is offline
DSL User
 
Join Date: Dec 2014
Posts: 38
Default

Quote:
Originally Posted by Jiaz View Post
Will do it this week
Thank you!
Reply With Quote
  #18  
Old 22.07.2015, 02:30
raymondjpg raymondjpg is offline
DSL User
 
Join Date: Dec 2014
Posts: 38
Default

Is there any progress with this?
Reply With Quote
  #19  
Old 22.07.2015, 10:10
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 67,541
Default

I'm sorry, not yet. Always something that stole my time. Will try to do this finally this week. Sorry for the big delay
__________________
JD-Dev & Server-Admin
Reply With Quote
  #20  
Old 23.07.2015, 01:17
raymondjpg raymondjpg is offline
DSL User
 
Join Date: Dec 2014
Posts: 38
Default

Thanks again.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 14:06.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.