1Rramp-Android icon indicating copy to clipboard operation
1Rramp-Android copied to clipboard

The application crashes when accessing the Rate/Vote giver list

Open ahyar92 opened this issue 6 years ago • 4 comments

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

Then you will find problems like mine.

Recording Of The Bug

https://youtu.be/634G_WfetDo

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

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)

ahyar92 avatar Mar 03 '19 12:03 ahyar92

@ahyar92 Thanks for reporting the issue. We regret the inconvenience.

FYI, let me clarify the reason. App assumes all the vote values to be in x.xxxx (Dot is used) Format. But the data received was in x,xxx (Comma is used) Format.

This issue will be with only few posts. We will resolve the issue in the very next update. 😊

bxute avatar Mar 03 '19 13:03 bxute

Nice to help you guys :)

ahyar92 avatar Mar 03 '19 14:03 ahyar92

@ahyar92 Since this is an issue due to the locale of the user, we would request you to verify whether the issue persists in the new apk with a patch or not.

Find the apk at: https://drive.google.com/file/d/11Wlzzyqd9P-p5AertNDTw6RKhG7wMFF-/view?usp=sharing

bxute avatar Mar 04 '19 07:03 bxute

@bxute Hi, the problem has been solved :) By the way, after I searched further, it turned out that the crash only happened if my smartphone was in a language other than English. When I change the settings of my smartphone into English, everything is fine.

ahyar92 avatar Mar 06 '19 21:03 ahyar92