create account

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

View this thread on: hive.blogpeakd.comecency.com
· @facebok ·
$11.13
BUG found in Hive app The application crashes when I try to use ADD photo option And try to upload photos
 Project Information

* Repository:  https://github.com/gpetuhov/Hive
* Project Name:  Hive
* My Issue: https://github.com/gpetuhov/Hive/issues/2 

# 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 ](https://play.google.com/store/apps/details?id=com.gpetuhov.android.hive&ah=mg3ZMk3XOh7ku1YRv9uagzRmaMw)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](https://user-images.githubusercontent.com/50115498/57714650-cefdff80-7629-11e9-9c34-503f30324a97.gif)


# My Github Account
https://github.com/facebook-786



# Logcat

<pre><code>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.<init>(Handler.java:200)

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

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

E/AndroidRuntime(15794): 	at android.widget.Toast.<init>(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)
</code></pre>

πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 31 others
properties (23)
authorfacebok
permlinkbug-found-in-hive-app-the-application-crashes-when-i-try-to-use-add-photo-option-and-try-to-upload-photos
categoryutopian-io
json_metadata{"community":"busy","app":"busy/2.5.6","format":"markdown","tags":["utopian-io","bug-hunting"],"users":[],"links":["https://github.com/gpetuhov/Hive","https://github.com/gpetuhov/Hive/issues/2","https://play.google.com/store/apps/details?id=com.gpetuhov.android.hive&ah=mg3ZMk3XOh7ku1YRv9uagzRmaMw","https://github.com/facebook-786"],"image":["https://user-images.githubusercontent.com/50115498/57714650-cefdff80-7629-11e9-9c34-503f30324a97.gif"]}
created2019-05-15 11:51:30
last_update2019-05-15 11:51:30
depth0
children3
last_payout2019-05-22 11:51:30
cashout_time1969-12-31 23:59:59
total_payout_value8.202 HBD
curator_payout_value2.929 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,226
author_reputation5,947,126,562,823
root_title"BUG found in Hive app The application crashes when I try to use ADD photo option And try to upload photos"
beneficiaries
0.
accountbusy.org
weight1,000
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id84,891,951
net_rshares22,338,696,240,877
author_curate_reward""
vote details (95)
@fego ·
$11.99
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](https://join.utopian.io/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](https://review.utopian.io/result/5/2-1-1-2-2-3-).

---- 
Need help? Chat with us on [Discord](https://discord.gg/uTyJkNm).

[[utopian-moderator]](https://join.utopian.io/)
πŸ‘  , , , , , , , , , , , , , , , , , , ,
properties (23)
authorfego
permlinkre-facebok-bug-found-in-hive-app-the-application-crashes-when-i-try-to-use-add-photo-option-and-try-to-upload-photos-20190515t180002305z
categoryutopian-io
json_metadata{"community":"busy","app":"busy/2.5.6","format":"markdown","tags":["utopian-io"],"users":["facebok"],"links":["/@facebok","https://join.utopian.io/guidelines","https://review.utopian.io/result/5/2-1-1-2-2-3-","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"image":[]}
created2019-05-15 18:00:09
last_update2019-05-15 18:00:09
depth1
children1
last_payout2019-05-22 18:00:09
cashout_time1969-12-31 23:59:59
total_payout_value9.072 HBD
curator_payout_value2.914 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length808
author_reputation168,836,422,039,217
root_title"BUG found in Hive app The application crashes when I try to use ADD photo option And try to upload photos"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id84,911,973
net_rshares22,345,461,100,730
author_curate_reward""
vote details (20)
@utopian-io ·
Thank you for your review, @fego! Keep up the good work!
properties (22)
authorutopian-io
permlinkre-re-facebok-bug-found-in-hive-app-the-application-crashes-when-i-try-to-use-add-photo-option-and-try-to-upload-photos-20190515t180002305z-20190517t203114z
categoryutopian-io
json_metadata"{"app": "beem/0.20.17"}"
created2019-05-17 20:31:15
last_update2019-05-17 20:31:15
depth2
children0
last_payout2019-05-24 20:31:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length56
author_reputation152,955,367,999,756
root_title"BUG found in Hive app The application crashes when I try to use ADD photo option And try to upload photos"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id85,045,594
net_rshares0
@utopian-io ·
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](https://chrome.google.com/webstore/detail/steemplus/mjbkjgcplmaneajhcbegoffkedeankaj?hl=en) or [Steeditor](https://steeditor.app)).

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

<a href='https://steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
properties (22)
authorutopian-io
permlinkre-bug-found-in-hive-app-the-application-crashes-when-i-try-to-use-add-photo-option-and-try-to-upload-photos-20190515t191320z
categoryutopian-io
json_metadata"{"app": "beem/0.20.17"}"
created2019-05-15 19:13:21
last_update2019-05-15 19:13:21
depth1
children0
last_payout2019-05-22 19:13:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length589
author_reputation152,955,367,999,756
root_title"BUG found in Hive app The application crashes when I try to use ADD photo option And try to upload photos"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id84,915,548
net_rshares0