Insteem v1.1.2; The app crashed when I checked out profile of users from the trending list.

in utopian-io •  5 years ago 

Project Information

Describe the bug.

I had a weird experience on the trending page on the app. When I access the trending page on the app, I can select different categories. That is;

  • trending
  • hot
  • new
  • promoted
  • cashout etc. (Check the app to find out the rest).

The bug was experienced in the first category. That is; "Trending".

When I accessed the page and tried to check out the profile of the first 2 authors on the trending page, the app crashed.

Steps to reproduce.

  • Access the options menu
  • Go to trending
  • Don't enter any tag
  • Click OK
  • When the trending page loads
  • Click on the username of any of the first two authors on the list to view their profile
  • See error. (The profile tries to load, the app freezes, and eventually crashes).

Expected behavior

When I tried checking out the profile of the other authors on the trending page(that is; aside from the first two), their profile page loaded successfully. I expected the same behaviour when I tried to check out the profile of the first two authors on the trending page.

Screen recording

Test environment

Device; Redmi Note 5 PRO
OS; Android 8.1
Software version; Insteem v1.1.2

Logcat

com.google.gson.JsonSyntaxException: java.lang.NumberFormatException: Expected an int but was 135315344983286 at line 1 column 2297 path $.user.proxied_vsf_votes[0]
    at com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:228)
    at com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:218)
    at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:41)
    at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:82)
    at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:61)
    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131)
    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222)
    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131)
    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222)
    at com.google.gson.Gson.fromJson(Gson.java:927)
    at com.google.gson.Gson.fromJson(Gson.java:892)
    at com.google.gson.Gson.fromJson(Gson.java:841)
    at com.google.gson.Gson.fromJson(Gson.java:813)
    at com.insteem.ipfreely.steem.OpenOtherGuyBlog$GetProfile$stringRequest$1.onResponse(OpenOtherGuyBlog.kt:507)
    at com.insteem.ipfreely.steem.OpenOtherGuyBlog$GetProfile$stringRequest$1.onResponse(OpenOtherGuyBlog.kt:38)
    at com.android.volley.toolbox.StringRequest.deliverResponse(StringRequest.java:82)
    at com.android.volley.toolbox.StringRequest.deliverResponse(StringRequest.java:29)
    at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:102)
    at android.os.Handler.handleCallback(Handler.java:794)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:176)
    at android.app.ActivityThread.main(ActivityThread.java:6635)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)
Caused by: java.lang.NumberFormatException: Expected an int but was 135315344983286 at line 1 column 2297 path $.user.proxied_vsf_votes[0]
    at com.google.gson.stream.JsonReader.nextInt(JsonReader.java:1204)
    at com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:226)
    ... 24 more

GitHub Account

https://github.com/HarryHeights

Link to Github Issue

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!
Sort Order: