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

Clicking on download without network connection crashes the app #31

Open
organik1 opened this issue May 11, 2018 · 2 comments
Open

Clicking on download without network connection crashes the app #31

organik1 opened this issue May 11, 2018 · 2 comments
Labels

Comments

@organik1
Copy link

Expected behavior

I expected a prompt of failed download, describing that the download had failed due to lack of usable network connection.

Actual behavior

Clicking the download button on IPFSDroid when network connection is put off, leads to a crash.

How to reproduce

  • Download and Install IPFSDroid from Fdroid.org

  • Put off data connection on your device and launch IPFSdroid

  • On the homepage, locate a button that reads "DOWNLOAD + INIT FULL NODE"

  • Click on the button and notice the out come

App version: V0.10

Operating system: Android v4.2.2 jellybean

I was also able to replicate this issue on Android v6.0

Proof of work

05-11 20:14:20.780 19952-19952/org.ligi.ipfsdroid E/WindowManager: android.view.WindowLeaked: Activity org.ligi.ipfsdroid.MainActivity has leaked window DecorView@5af496f[] that was originally added here at android.view.ViewRootImpl.(ViewRootImpl.java:417) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:331) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:93) at android.app.Dialog.show(Dialog.java:316) at org.ligi.ipfsdroid.IPFSDaemon.download(IPFSDaemon.kt:31) at org.ligi.ipfsdroid.MainActivity$onCreate$1.onClick(MainActivity.kt:31) at android.view.View.performClick(View.java:5610) at android.view.View$PerformClick.run(View.java:22265) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6077) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)

@ligi ligi added the bug label May 26, 2018
@ligi
Copy link
Owner

ligi commented May 26, 2018

Thanks for the detailed report!

@organik1
Copy link
Author

You're most welcome

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