The application crashes when accessing the Rate/Vote giver list | 1Ramp

2년 전

Project Information

Repository : https://github.com/hapramp/1Rramp-Android
Title : 1ramp
Publisher : HapRamp Studios

Expected behavior

I should be able to access the Rate / Vote grantor list feature without experiencing a crash

Actual behavior

When I try to see the list of Giver Rate / Vote in one of the posts, suddenly the application crashes and exits by itself.

How to reproduce

  1. Install and open the application
  2. Login
  3. Next, go to the Feed page
  4. And click on the Giver Rate / Vote list in one of the posts.
    t3t3t.jpg

Then you will find problems like mine.

Environment

Tested on 2 devices:

DeviceAndroid Version
Xiaomi Redmi 4XMarshmallow, 6.0.1 mmb29m (CPU: Octa-core Max 1.9 GHz, RAM: 2 GB)
Xiaomi Redmi Note 4Marshmallow, 6.0 mRA58K (DECA-CORE MAX 2,11GHz, RAM: 3 gb)

Recording Of The Bug

Logcat

03-03 19:08:25.900 21983 21983 E AndroidRuntime: FATAL EXCEPTION: main
03-03 19:08:25.900 21983 21983 E AndroidRuntime: Process: com.hapramp, PID: 21983
03-03 19:08:25.900 21983 21983 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.hapramp/com.hapramp.ui.activity.VotersListActivity}: java.lang.NumberFormatException: Invalid double: "0,002"
03-03 19:08:25.900 21983 21983 E AndroidRuntime:    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2449)
03-03 19:08:25.900 21983 21983 E AndroidRuntime:    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2509)
03-03 19:08:25.900 21983 21983 E AndroidRuntime:    at android.app.ActivityThread.access$1000(ActivityThread.java:153)
03-03 19:08:25.900 21983 21983 E AndroidRuntime:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373)
03-03 19:08:25.900 21983 21983 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:102)
03-03 19:08:25.900 21983 21983 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:154)
03-03 19:08:25.900 21983 21983 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:5527)
03-03 19:08:25.900 21983 21983 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
03-03 19:08:25.900 21983 21983 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
03-03 19:08:25.900 21983 21983 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
03-03 19:08:25.900 21983 21983 E AndroidRuntime: Caused by: java.lang.NumberFormatException: Invalid double: "0,002"
03-03 19:08:25.900 21983 21983 E AndroidRuntime:    at java.lang.StringToReal.invalidReal(StringToReal.java:63)
03-03 19:08:25.900 21983 21983 E AndroidRuntime:    at java.lang.StringToReal.initialParse(StringToReal.java:164)
03-03 19:08:25.900 21983 21983 E AndroidRuntime:    at java.lang.StringToReal.parseDouble(StringToReal.java:282)
03-03 19:08:25.900 21983 21983 E AndroidRuntime:    at java.lang.Double.parseDouble(Double.java:301)
03-03 19:08:25.900 21983 21983 E AndroidRuntime:    at com.hapramp.ui.activity.VotersListActivity.a(Unknown Source)
03-03 19:08:25.900 21983 21983 E AndroidRuntime:    at com.hapramp.ui.activity.VotersListActivity.m(Unknown Source)
03-03 19:08:25.900 21983 21983 E AndroidRuntime:    at com.hapramp.ui.activity.VotersListActivity.onCreate(Unknown Source)
03-03 19:08:25.900 21983 21983 E AndroidRuntime:    at android.app.Activity.performCreate(Activity.java:6303)
03-03 19:08:25.900 21983 21983 E AndroidRuntime:    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
03-03 19:08:25.900 21983 21983 E AndroidRuntime:    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2402)
03-03 19:08:25.900 21983 21983 E AndroidRuntime:    ... 9 more

Proof of Work Done

Submitted the issue on GitHub + PO response

And Response via discord
3232323.gif

Via github:
github.gif

Github Profile

Ahyar92

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!
STEEMKR.COM IS SPONSORED BY
ADVERTISEMENT
Sort Order:  trending
  ·  2년 전

Hi @ahyar92, thanks for making this contribution.

I was able to reproduce the crash just as you have described.

I can see the PO has acknowledged the bug and also broken down the cause of the crash. It is good of you to have waited for his acknowledgement before posting.

My feedback:

  1. I like how very well you laid out the actual and expected behavior. It's in such a way that the reader is able to make out the situation at first glance.
  2. I see that you included a log cat of the crash. It's great of you to have done this, not only does this add value to the report, it also aids in determining the root cause of the crash.
  3. Although the steps were short and precise, more details could have been added to ease the process of replicating the bug.

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 review sir :) @fego

·

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

Hi @ahyar92!

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

Congratulations @ahyar92! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You received more than 3000 upvotes. Your next target is to reach 4000 upvotes.

Click here to view your Board
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @steemitboard:

Carnival Challenge - Collect badge and win 5 STEEM
Vote for @Steemitboard as a witness and get one more award and increased upvotes!

Hey, @ahyar92!

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!