#1
|
|||
|
|||
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** |
#2
|
||||
|
||||
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 |
#3
|
|||
|
|||
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. |
#4
|
||||
|
||||
Can we do teamviewer? Sparse is the only change. What error? Can't access...error message/screenshot?
__________________
JD-Dev & Server-Admin |
#5
|
|||
|
|||
The program log is not helpful:
Quote:
Last edited by bugnotme; 19.06.2015 at 13:48. |
#6
|
||||
|
||||
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 |
#7
|
|||
|
|||
Build date: Fri Jun 19 11:26:56 CEST 2015
Auto update is on. |
#8
|
||||
|
||||
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 |
#9
|
|||
|
|||
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. |
#10
|
||||
|
||||
Didn't know that ntfs allows "desparse" a file at the end.
Will try to add support for this.
__________________
JD-Dev & Server-Admin |
#11
|
||||
|
||||
I will try to use same method as libtorrent, just some experimenting with jna
__________________
JD-Dev & Server-Admin |
#12
|
|||
|
|||
Great, thanks.
|
#13
|
||||
|
||||
Sorry for the circumstances!
__________________
JD-Dev & Server-Admin |
#14
|
|||
|
|||
Will a fix come as an update, or new build?
|
#15
|
||||
|
||||
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. :] |
#16
|
||||
|
||||
Will do it this week
__________________
JD-Dev & Server-Admin |
#17
|
|||
|
|||
|
#18
|
|||
|
|||
Is there any progress with this?
|
#19
|
||||
|
||||
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 |
#20
|
|||
|
|||
Thanks again.
|
#21
|
|||
|
|||
Still no resolution? I wonder how many people have stopped using JDownloader because of this?
|
#22
|
||||
|
||||
honestly? bugmenot and you are the only ones that has made any noise about this. Most wouldn't even know that its taking place.
We had a few queries about sparse been added, and function not working when Jiaz first implemented. But since then, its been very quiet. raztoki
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] Last edited by raztoki; 22.08.2015 at 04:39. Reason: used added too many times! |
#23
|
|||
|
|||
That is fair comment, but still doesn't say how many security conscious users may have stopped using JDownloader because secure erase of downloaded files is borked.
|
#24
|
||||
|
||||
How could you account that? to me that's pie in the sky figure that you would never know definitively. We can only go from those that communicate and its been like just you guys. You could extrapolate a factor maybe for those that don't/wont communicate over the user base? Will only ever been approximation at best.
In my opinion very few users even know about secure wiping data or have the options natively supported by their OS (I see MacOSX does). As windows is the most popular Operating system and doesn't offer this natively, users would then have to install something like BCWipe themselves. So the odds are very low if you look at availability. To me secure delete isn't be all to end all, for example: it's more than likely what's still on your on your computer that's likely to ever get you into trouble, compared to what "might be deleted" (traditional delete = index is wiped). PS. secure wipe will reduce the read/write life cycle of your storage device since its writing to those sectors multiple times in order to ensure secure wipe outcome. This is on the assumption that there is a limited read/write cycle of each sector, which is case for traditional spinning disks, and now even more so with SSD.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] Last edited by raztoki; 22.08.2015 at 04:53. |
#25
|
|||
|
|||
I just noticed this bug and found this thread. Is this still being worked on?
|
#26
|
||||
|
||||
This is no bug, more a sign that the tool you use does not proper handle sparse files. No, the ticket for this feature is still open, still no option to disable sparse at the end. I will work on this soon
__________________
JD-Dev & Server-Admin |
#27
|
|||
|
|||
Thanks man for working on this. Yep it's not a jdownloader bug, it's eraser acting weird
|
#28
|
||||
|
||||
I will work on this asap
__________________
JD-Dev & Server-Admin |
#29
|
|||
|
|||
Looks like the feature is added, thank you man!
|
#30
|
||||
|
||||
Don't think any changes have been made, though I could be wrong.
raztoki
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#31
|
|||
|
|||
Never mind, it worked for one file but not the other, weird!
|
#32
|
|||
|
|||
Is it possible to disable sparse completely in JD2 so files get preallocated completely at start? Its better to keep fragmentation down.
|
#33
|
||||
|
||||
Not possible yet. fragmentatin should not be real problem though, only when your disk is near full. And in case of downloading archive parts the fragmentation is no problem at all since JDownloader will extract them after download.
__________________
JD-Dev & Server-Admin |
#34
|
|||
|
|||
While I wouldn't mind an advanced option to enable/disable sparse file support, an option (or default) to remove the sparse flag when the download's finished is most definitely required. I can see that fsutil sparse setflag <FileName> 0 does the job, but I'd rather have JD do that itself and frankly it doesn't sound like it would be hard to implement.
So here's another vote for: Note #1: If you really need a reason for why I came searching for this specific issue, Windows 8/8.1/10 RTM and certain Server versions such as 2012 have problems mounting ISOs and VHDs with the sparse attribute set (see links below). I know, how dumb, right? Still, JD's current default behavior does cause an issue for those of us downloading such files on these Windows versions, and thus having this more than a year old issue be finally fixed would be appreciated. **External links are only visible to Support Staff****External links are only visible to Support Staff** **External links are only visible to Support Staff****External links are only visible to Support Staff** Note #2: After checking further, it seems fsutil sparse setflag <FileName> 0 doesn't work in Windows Vista, 7, 8 and many Server versions according to the TechNet link below since setflag only accepts <FileName> as a parameter. **External links are only visible to Support Staff****External links are only visible to Support Staff** I don't know about how it works in Windows 8.1 or Windows 10 RTM 10240, but in Windows 10 1511 and above (i.e. 1607 for now) it works properly since setflag accepts both <FileName> and 1/0 as parameters. So if you call fsutil as part of your fix, please keep in mind that it may or may not work depending on the version of Windows. Last edited by netgearjd; 09.08.2016 at 03:58. |
#35
|
||||
|
||||
Sorry for late response and thanks for the feedback. I will try to work on this this week. I can only work within a VM because I'm on ubuntu/linux. I will add both (option to enable/disable sparse) and also remove the sparse flag when file is finished.
__________________
JD-Dev & Server-Admin |
#36
|
|||
|
|||
It would be appreciated if you could get to do this.
|
#37
|
|||
|
|||
I don't know why but on my system (Win7) only JD2 produces files that are that massively fragmented even on a freshly defragmented drive (like 58 fragments on a 7.41MB file).
|
#38
|
||||
|
||||
@LazyJones. Do you download multiple files in parallel? I will work on this (option to disable sparse) as soon as I can
__________________
JD-Dev & Server-Admin |
#39
|
|||
|
|||
Yes, i usually download 5 files at the same time.
|
#40
|
||||
|
||||
Can you check if it is the same when you download 1 by 1 ?
__________________
JD-Dev & Server-Admin |
Thread Tools | |
Display Modes | |
|
|