Skip to content
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

Fatal Exception: java.lang.RuntimeException #344

Closed
e4basil opened this issue Oct 5, 2016 · 5 comments
Closed

Fatal Exception: java.lang.RuntimeException #344

e4basil opened this issue Oct 5, 2016 · 5 comments
Labels

Comments

@e4basil
Copy link

e4basil commented Oct 5, 2016

Fatal Exception: java.lang.RuntimeException: mStatus undefined, -2
at com.liulishuo.filedownloader.DownloadTaskHunter.setStatus(DownloadTaskHunter.java:533)
at com.liulishuo.filedownloader.DownloadTaskHunter.pause(DownloadTaskHunter.java:391)
at com.liulishuo.filedownloader.DownloadTask.pause(DownloadTask.java:338)
at com.liulishuo.filedownloader.FileDownloader.pauseAll(FileDownloader.java:283)
at com.adkaar.adkaarapp.ui.MainActivity.pause(MainActivity.java:872)
at com.adkaar.adkaarapp.ui.MainActivity.access$300(MainActivity.java:90)
at com.adkaar.adkaarapp.ui.MainActivity$6.onClick(MainActivity.java:588)
at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:167)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:5341)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:829)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:645)
at dalvik.system.NativeStart.main(NativeStart.java)

@Jacksgong
Copy link
Collaborator

I saw the code, this seems to be impossible. What the FileDownloader version are you using?

@e4basil
Copy link
Author

e4basil commented Oct 7, 2016

1.1.0

@Jacksgong
Copy link
Collaborator

Jacksgong commented Oct 7, 2016

Okey, That's confusing... I have no idea with it. In the source code, we throw this exception only if mStatus is greater than 6(FileDownloadStatus.MAX_INT) or less than -4(FileDownloadStatus.MIN_INT), but with the exception message, it indicated the mStatus is -2(FileDownloadStatus.paused).

How often did you occur such problem, Is it possible the problem in the custom JVM ?

@e4basil
Copy link
Author

e4basil commented Oct 7, 2016

it occurs just one time in my friend's Lenovo P70-A(android 4.4.4)

@Jacksgong
Copy link
Collaborator

Thanks, If you occur this problem once again, I will reopen this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants