BUG found in Hive app The application crashes inside the offer tab when I add a picture

in #utopian-io5 years ago

Project Information

Expected behavior

When I try to add a picture to the offer tab, the picture should be added to the offer tab And the picture in the offer tab should appear above the top

Actual behavior

The application crashes inside the offer tab when I add a picture

How to reproduce

1-Download the app and open it
2- click GRANT PERMISSION
3- click on the profile
4- click on Add Offer
5- click on Add photo Try to uploading any picture
6- see bug

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

Recording Of The Bug

20190515_160226

My Github Account

https://github.com/facebook-786

Beneficiaries

Logcat

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

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

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

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

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

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

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

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

E/AndroidRuntime(14100): at com.gpetuhov.android.hive.ui.fragment.UpdateOfferFragment.showToast(UpdateOfferFragment.kt:344)

E/AndroidRuntime(14100): at com.gpetuhov.android.hive.presentation.view.UpdateOfferFragmentView$$State.showToast(UpdateOfferFragmentView$$State.java:358)

E/AndroidRuntime(14100): at com.gpetuhov.android.hive.presentation.presenter.UpdateOfferFragmentPresenter.showToast(UpdateOfferFragmentPresenter.kt:326)

E/AndroidRuntime(14100): at com.gpetuhov.android.hive.presentation.presenter.UpdateOfferFragmentPresenter.access$showToast(UpdateOfferFragmentPresenter.kt:19)

E/AndroidRuntime(14100): at com.gpetuhov.android.hive.presentation.presenter.UpdateOfferFragmentPresenter$addPhoto$2.invoke(UpdateOfferFragmentPresenter.kt:272)

E/AndroidRuntime(14100): at com.gpetuhov.android.hive.presentation.presenter.UpdateOfferFragmentPresenter$addPhoto$2.invoke(UpdateOfferFragmentPresenter.kt:19)

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

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

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

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

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

E/AndroidRuntime(14100): at kotlinx.coroutines.scheduling.CoroutineScheduler$Wor

Sort:  

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!

Hi @facebok!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

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!

Coin Marketplace

STEEM 0.29
TRX 0.12
JST 0.033
BTC 62934.09
ETH 3118.65
USDT 1.00
SBD 3.85