BUG found in Hive app The application crashes when I try to use ADD photo option And try to upload photos

in utopian-io •  6 years ago 

Project Information

Expected behavior

When I add a photo, the application should not crash when I upload a photo, the photo should be uploaded in the application.

Actual behavior

The application crashes when I try to use ADD photo option And try to upload photos

How to reproduce

1-Download the app and open it
2- click GRANT PERMISSION
3- click on the profile
4- click click on the photo add
5- select any photo from your phone gallery
6-see the bug

  • Browser/App version: 0.1.46
  • Operating system: 6.0.1
  • Smartphone: Galaxy j7

Recording Of The Bug

20190514_211030

My Github Account

https://github.com/facebook-786

Logcat

E/AndroidRuntime(15794): FATAL EXCEPTION: DefaultDispatcher-worker-3

E/AndroidRuntime(15794): Process: com.gpetuhov.android.hive, PID: 15794

E/AndroidRuntime(15794): java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()

E/AndroidRuntime(15794): at android.os.Handler.(Handler.java:200)

E/AndroidRuntime(15794): at android.os.Handler.(Handler.java:114)

E/AndroidRuntime(15794): at android.widget.Toast$TN.(Toast.java:569)

E/AndroidRuntime(15794): at android.widget.Toast.(Toast.java:129)

E/AndroidRuntime(15794): at android.widget.Toast.makeText(Toast.java:427)

E/AndroidRuntime(15794): at com.gpetuhov.android.hive.ui.fragment.ProfileFragment.showToast(ProfileFragment.kt:584)

E/AndroidRuntime(15794): at com.gpetuhov.android.hive.presentation.view.ProfileFragmentView$$State.showToast(ProfileFragmentView$$State.java:790)

E/AndroidRuntime(15794): at com.gpetuhov.android.hive.presentation.presenter.ProfileFragmentPresenter.showToast(ProfileFragmentPresenter.kt:552)

E/AndroidRuntime(15794): at com.gpetuhov.android.hive.presentation.presenter.ProfileFragmentPresenter.access$showToast(ProfileFragmentPresenter.kt:21)

E/AndroidRuntime(15794): at com.gpetuhov.android.hive.presentation.presenter.ProfileFragmentPresenter$addPhoto$1.invoke(ProfileFragmentPresenter.kt:219)

E/AndroidRuntime(15794): at com.gpetuhov.android.hive.presentation.presenter.ProfileFragmentPresenter$addPhoto$1.invoke(ProfileFragmentPresenter.kt:21)

E/AndroidRuntime(15794): at com.gpetuhov.android.hive.repository.Repository$uploadImage$1.invokeSuspend(Repository.kt:1703)

E/AndroidRuntime(15794): at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)

E/AndroidRuntime(15794): at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:238)

E/AndroidRuntime(15794): at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:594)

E/AndroidRuntime(15794): at kotlinx.coroutines.scheduling.CoroutineScheduler.access$runSafely(CoroutineScheduler.kt:60)

E/AndroidRuntime(15794): at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:742)

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Hi @facebok, thanks for making this report.

The appears to be fixed in the latest release version 0.1.47. According to the PO, the crash was as result of the app trying to show image upload error message on background thread.

I love that you included a crash log. This helped in finding the root cause of the error.

I look forward to more of your reports.

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Chat with us on Discord.

[utopian-moderator]

Thank you for your review, @fego! Keep up the good work!

Hey, @facebok!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!