[Hive][v0.1.46]The app crashes when trying to sign in with old accounts.

in #utopian-io7 years ago

Related Information

Actual behavior


I can not sign in with my old account which was created past.

Expected behavior


Expected that i can sign in and use app without crash.

How to reproduce

  1. Install the apps and open the app
  2. click GRANT PERMISSION
  3. click sign in with email
  4. give mail and password
  5. Click sign
  6. See error

Information

  • App version:V0.1.46
  • OS:Android 9.0
  • Device:Samsung A10

Recording Of The Bug

Logcat



05-15 09:09:30.723 7578 7578 E AndroidRuntime: FATAL EXCEPTION: main 
05-15 09:09:30.723 7578 7578 E AndroidRuntime: Process: com.gpetuhov.android.hive, PID: 7578 05-15 09:09:30.723 7578 7578 E AndroidRuntime: java.lang.RuntimeException: Unable to create service com.gpetuhov.android.hive.service.LocationService: java.lang.SecurityException: Permission Denial: startForeground from pid=7578, uid=10239 requires android.permission.FOREGROUND_SERVICE 
05-15 09:09:30.723 7578 7578 E AndroidRuntime:  at android.app.ActivityThread.handleCreateService(ActivityThread.java:3769) 
05-15 09:09:30.723 7578 7578 E AndroidRuntime:  at android.app.ActivityThread.access$1400(ActivityThread.java:237) 
05-15 09:09:30.723 7578 7578 E AndroidRuntime:  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808) 
05-15 09:09:30.723 7578 7578 E AndroidRuntime:  at android.os.Handler.dispatchMessage(Handler.java:106)
 05-15 09:09:30.723 7578 7578 E AndroidRuntime:     at android.os.Looper.loop(Looper.java:214) 05-15 09:09:30.723 7578 7578 E AndroidRuntime:   at android.app.ActivityThread.main(ActivityThread.java:7073) 
05-15 09:09:30.723 7578 7578 E AndroidRuntime:  at java.lang.reflect.Method.invoke(Native Method) 05-15 09:09:30.723 7578 7578 E AndroidRuntime:    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) 
05-15 09:09:30.723 7578 7578 E AndroidRuntime:  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)
 05-15 09:09:30.723 7578 7578 E AndroidRuntime: Caused by: java.lang.SecurityException: Permission Denial: startForeground from pid=7578, uid=10239 requires android.permission.FOREGROUND_SERVICE
 05-15 09:09:30.723 7578 7578 E AndroidRuntime:     at android.os.Parcel.createException(Parcel.java:1966) 
05-15 09:09:30.723 7578 7578 E AndroidRuntime:  at android.os.Parcel.readException(Parcel.java:1934)
 05-15 09:09:30.723 7578 7578 E AndroidRuntime:     at android.os.Parcel.readException(Parcel.java:1884)
 05-15 09:09:30.723 7578 7578 E AndroidRuntime:     at android.app.IActivityManager$Stub$Proxy.setServiceForeground(IActivityManager.java:5043) 
05-15 09:09:30.723 7578 7578 E AndroidRuntime:  at android.app.Service.startForeground(Service.java:695) 
05-15 09:09:30.723 7578 7578 E AndroidRuntime:  at com.gpetuhov.android.hive.service.LocationService.startForegroundService(LocationService.kt:55) 05-15 09:09:30.723 7578 7578 E AndroidRuntime:   at com.gpetuhov.android.hive.service.LocationService.onCreate(LocationService.kt:34) 
05-15 09:09:30.723 7578 7578 E AndroidRuntime:  at android.app.ActivityThread.handleCreateService(ActivityThread.java:3757) 
05-15 09:09:30.723 7578 7578 E AndroidRuntime:  ... 8 more

My github account:https://github.com/maaudrana
Sort:  

Hi @masudrana, thanks for making this report.

The appears to be fixed in the latest release version 0.1.47. The post is well written. The actual and expected behavior could be understood at first glance. Also, the steps were easy to walk through

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, @masudrana!

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!

Hi @masudrana!

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