BUG found in Hive app The application crashes when I try to change the profile picture

in utopian-io •  last month 

Project Information

Expected behavior

The profile picture should change when I try to change the profile picture. And the selected new picture should appear on the profile

Actual behavior

After going to profile The application crashes when I try to change the profile picture

How to reproduce

1-Download the app and open it
2- click GRANT PERMISSION
3- click on the profile
4-Try changing the profile picture
5- see bug

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

Recording Of The Bug

20190514_215928

My Github Account

https://github.com/facebook-786

Logcat

E/AndroidRuntime(20945): FATAL EXCEPTION: DefaultDispatcher-worker-1

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

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

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

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

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

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

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

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

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

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

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

E/AndroidRuntime(20945): at com.gpetuhov.android.hive.presentation.presenter.ProfileFragmentPresenter$changeUserPic$1.invoke(ProfileFragmentPresenter.kt:209)

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

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

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

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

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

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

E/AndroidRuntime(20945): 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. You are doing a great job identifying bugs on the Hive project. Well done! That's said, the cause of this crash is very similar to the other issue you opened here. The step to reproduce the bug may vary but the cause of the crash is the same which makes this a duplicate.
I am looking forward to seeing more reports from you.


Need help? Chat with us on Discord.

[utopian-moderator]

·

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