[Insteem][v1.5.1] The app crashes after I clicked on a reply

in #utopian-io5 years ago

Project Information

Expected behavior

The users should be able to view replies fully without the app crashing.

Actual behavior

When I tried to view a reply by tapping on it, the app crashes.

How to reproduce

  1. Install the app and open it from playstore and login.
  2. Go to the menu, then click on "Comments/Replies".
  3. Click on the "REPLIES" tab.
  4. Then click on a reply.
  5. See error.
  • App version: v1.5.1
  • Operating system: Android 6.0.1

Recording Of The Bug

insteem

GitHub Account

https://github.com/sagorahmed

Logcat

04-02 12:18:23.991  5025  5025 E AndroidRuntime: FATAL EXCEPTION: main

04-02 12:18:23.991  5025  5025 E AndroidRuntime: Process: com.insteem.ipfreely.steem, PID: 5025

04-02 12:18:23.991  5025  5025 E AndroidRuntime: java.lang.OutOfMemoryError: Failed to allocate a 100425612 byte allocation with 16776704 free bytes and 94MB until OOM

04-02 12:18:23.991  5025  5025 E AndroidRuntime:    at dalvik.system.VMRuntime.newNonMovableArray(Native Method)

04-02 12:18:23.991  5025  5025 E AndroidRuntime:    at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)

04-02 12:18:23.991  5025  5025 E AndroidRuntime:    at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:856)

04-02 12:18:23.991  5025  5025 E AndroidRuntime:    at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:675)

04-02 12:18:23.991  5025  5025 E AndroidRuntime:    at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:2230)

04-02 12:18:23.991  5025  5025 E AndroidRuntime:    at android.content.res.Resources.loadDrawableForCookie(Resources.java:4284)

04-02 12:18:23.991  5025  5025 E AndroidRuntime:    at android.content.res.Resources.loadDrawable(Resources.java:4158)

04-02 12:18:23.991  5025  5025 E AndroidRuntime:    at android.content.res.Resources.getDrawable(Resources.java:2043)

04-02 12:18:23.991  5025  5025 E AndroidRuntime:    at android.content.res.Resources.getDrawable(Resources.java:2025)

04-02 12:18:23.991  5025  5025 E AndroidRuntime:    at android.content.Context.getDrawable(Context.java:464)

04-02 12:18:23.991  5025  5025 E AndroidRuntime:    at androidx.core.content.ContextCompat.getDrawable(ContextCompat.java:463)

04-02 12:18:23.991  5025  5025 E AndroidRuntime:    at com.insteem.ipfreely.steem.MiscConstants$Companion.getRandDrawable(MiscConstants.kt:341)

04-02 12:18:23.991  5025  5025 E AndroidRuntime:    at com.insteem.ipfreely.steem.ArticleActivity.setMainImage(ArticleActivity.kt:348)

04-02 12:18:23.991  5025  5025 E AndroidRuntime:    at com.insteem.ipfreely.steem.ArticleActivity.onStart(ArticleActivity.kt:285)

04-02 12:18:23.991  5025  5025 E AndroidRuntime:    at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1266)

04-02 12:18:23.991  5025  5025 E AndroidRuntime:    at android.app.Activity.performStart(Activity.java:6943)

04-02 12:18:23.991  5025  5025 E AndroidRuntime:    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3276)

04-02 12:18:23.991  5025  5025 E AndroidRuntime:    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3415)

04-02 12:18:23.991  5025  5025 E AndroidRuntime:    at android.app.ActivityThread.access$1100(ActivityThread.java:229)

04-02 12:18:23.991  5025  5025 E AndroidRuntime:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1821)

04-02 12:18:23.991  5025  5025 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:102)

04-02 12:18:23.991  5025  5025 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:148)

04-02 12:18:23.991  5025  5025 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:7325)

04-02 12:18:23.991  5025  5025 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)

04-02 12:18:23.991  5025  5025 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)

04-02 12:18:23.991  5025  5025 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Sort:  

Thanks for your contribution.

I was able to replicate the issue mentioned, the steps provided were good and easy to understand. Good work.

Great to see that the contribution contains a log-cat, nice work. Would have liked to have seen the project owner acknowledge the issue prior to submitting the issue, however, I realize this isn't always possible.

Once again, thanks for your contribution and I look forward to seeing more from you soon :)


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, @tobias-g! Keep up the good work!

Congratulations @sagorahmed! 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.

You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Hi @sagorahmed!

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

Hey, @sagorahmed!

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!

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 62892.68
ETH 2581.23
USDT 1.00
SBD 2.73