question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

java.io.IOException: The file is too large to store, the downloaded size: 0, requirements: 4449023, but the available space size: -568107008

See original GitHub issue

更新到0.2.1后点击下载就报如下错误,存储空间是够的。。

java.io.IOException: The file is too large to store, the downloaded size:  0, requirements: 4449023, but the available space size: -568107008
  at com.liulishuo.filedownloader.services.FileDownloadRunnable.getRandomAccessFile(FileDownloadRunnable.java:541)
  at com.liulishuo.filedownloader.services.FileDownloadRunnable.fetch(FileDownloadRunnable.java:285)
  at com.liulishuo.filedownloader.services.FileDownloadRunnable.loop(FileDownloadRunnable.java:249)
  at com.liulishuo.filedownloader.services.FileDownloadRunnable.run(FileDownloadRunnable.java:138)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
  at java.lang.Thread.run(Thread.java:856)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
nukccommented, Apr 6, 2016

Genymotion 2.3.7 报错。 看了下源码,不知道是不是在at com.liulishuo.filedownloader.services.FileDownloadRunnable.getRandomAccessFile

            long availableBytes;
            final StatFs statFs = new StatFs(path);
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) {
                availableBytes = statFs.getAvailableBytes();
            } else {
                // API < Android 4.3的都会?
                availableBytes = statFs.getAvailableBlocks() * statFs.getBlockSize();  
            }
0reactions
Jacksgongcommented, Apr 6, 2016

Fixed in v0.2.2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Marklogic MLCP EXPORT - java.io.IOException: File too large ...
I export data use latest MLCP version 8.0.8. What is limitation file size to export? I have a lot of files can't save...
Read more >
Solved: File too large Exception - Cloudera Community - 106140
I was able to resolve the issue,the disk utilization in local directory (where logs and out files are created) in one of the...
Read more >
All of a sudden I am blocked from downloading. Error ...
Downloads blocked, error message indicaes file size is too large, exceeds file limits. I have changed nothing, cannot download updates or reinstall itunes....
Read more >
Getting Started | Uploading Files - Spring
Create a File Upload Controller. The initial application already contains a few classes to deal with storing and loading the uploaded files on...
Read more >
How to get file size in Java - Mkyong.com
In Java, we can use `Files.size` to get the size of a file in bytes. ... size in bytes long bytes = Files.size(path); ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found