New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash #961
Comments
@Jeffin21 可否告知下版本号? |
latest version |
v1.7.1 |
@Jeffin21 可否告知下具体哪个版本的Android系统,我查下 |
Samsung Galaxy J2 (2018) (j2y18lte), 1536MB RAM, Android 7.1 |
i added codes for this #949 issue by @rantianhua |
it happens on 7.0 and above |
this crash happens in so many above 7.0 devices , i only gave one device sample to you |
@Jeffin21 Okay, thanks, I test FileDownloader sample project on devices 8.0.0 can't reproduce such crash, and check the source code(only match 4.2.2 source code, 7.1.0 or 7.0 didn't provide |
I'll check and let you know about this later. Thank You |
@Jeffin21 so, could you please provide the real code on |
FileDownloadDatabase database = CustomComponentHolder.getImpl().getDatabaseInstance(); @Jacksgong this code in that place |
so... you change the code? I don't think the following logic is the origin /* throw new SocketException(FileDownloadUtils.
formatString(
"Connection failed with request[%s] response[%s] "
+ "http-state[%d] on task[%d-%d], which is changed"
+ " after verify connection, so please try again.",
connectTask.getRequestHeader(),
connection.getResponseHeaderFields(),
code, downloadId, connectionIndex));*/
//FileDownloader.getImpl().pause(downloadId);
TasksManagerDBController task = new TasksManagerDBController();
TasksManagerModel model = task.getItemByID(String.valueOf(downloadId));
String path = model.getPath();
if(PreferenceHelper.getToastMsgService(GDMApplication._appContext,downloadId)==0) {
System.out.println("download runnable:");
PreferenceHelper.setToastMsgService(GDMApplication._appContext, 1, downloadId);
}
FileDownloadDatabase database = CustomComponentHolder.getImpl().getDatabaseInstance();
database.updateConnectionCount(downloadId, 1);
new File(path).delete(); |
Yes , i changed the code. i told you before need a feature. Some URLs like dailymotion video they dont support multidownload the only way to download that files is to 1st check multi threading is supported if not it go to give upretry expection and we again try to download with single thread and it workds we made some changes for our need |
|
we did with ConnectionCountAdapter and that wont work in our case |
@Jeffin21 If the second time it doesn't invoke |
Let me try it . Thanks |
java.lang.NullPointerException:
at java.io.File.fixSlashes (File.java:185)
at java.io.File. (File.java:134)
at com.liulishuo.filedownloader.download.DownloadRunnable.run (DownloadRunnable.java:121)
at com.liulishuo.filedownloader.download.DownloadLaunchRunnable.realDownloadWithSingleConnection (DownloadLaunchRunnable.java:593)
at com.liulishuo.filedownloader.download.DownloadLaunchRunnable.run (DownloadLaunchRunnable.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:587)
at java.lang.Thread.run (Thread.java:818)
The text was updated successfully, but these errors were encountered: