[Insteem app V.1.5.1] App crashed when I uploaded image from the gallery while editing my post

in #utopian-io5 years ago

App info

insteem version 1.5.1
https://github.com/hispeedimagins/steem/issues/41

Actual behaviour

When I wanted to upload images to the content I was editing, the app crashed.

Expected behavior

I expected that I should be able to upload images/pictures to the contents I was editing.

Steps to reproduce

After launching and getting into the app

  • Click on my blog and select any of your blog to edit.

  • Click on the edit (pencil like) icon.

  • Click on the attach icon by the top right side to upload an image. There will be a pop up showing select images where you can choose whether to "take from camera" or "select from gallery .

  • Select any image for upload and note the crash.

How to reproduce

Device used

  • Teckno spark K7

  • Android 7.0

Logcat

05-10 22:45:28.712 28271 28271 E AndroidRuntime: Process: com.insteem.ipfreely.steem, PID: 28271
05-10 22:45:28.712 28271 28271 E AndroidRuntime: android.view.InflateException: Binary XML file line #27: Binary XML file line #27: Error inflating class TextView
05-10 22:45:28.712 28271 28271 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #27: Error inflating class TextView
05-10 22:45:28.712 28271 28271 E AndroidRuntime: Caused by: java.lang.ArrayIndexOutOfBoundsException: length=16; index=978
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at android.content.res.StringBlock.get(StringBlock.java:65)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at android.content.res.XmlBlock$Parser.getPooledString(XmlBlock.java:458)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at android.content.res.TypedArray.loadStringValueAt(TypedArray.java:1218)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at android.content.res.TypedArray.getString(TypedArray.java:205)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at androidx.appcompat.widget.TintTypedArray.getString(TintTypedArray.java:143)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at androidx.appcompat.widget.AppCompatTextHelper.updateTypefaceAndStyle(AppCompatTextHelper.java:274)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at androidx.appcompat.widget.AppCompatTextHelper.loadFromAttributes(AppCompatTextHelper.java:177)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at androidx.appcompat.widget.AppCompatTextView.<init>(AppCompatTextView.java:93)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at androidx.appcompat.widget.AppCompatTextView.<init>(AppCompatTextView.java:83)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at androidx.appcompat.app.AppCompatViewInflater.createTextView(AppCompatViewInflater.java:177)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at androidx.appcompat.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:102)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at androidx.appcompat.app.AppCompatDelegateImpl.createView(AppCompatDelegateImpl.java:1266)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at androidx.appcompat.app.AppCompatDelegateImpl.onCreateView(AppCompatDelegateImpl.java:1316)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:769)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at android.view.LayoutInflater.rInflate(LayoutInflater.java:858)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at android.view.LayoutInflater.inflate(LayoutInflater.java:518)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at android.view.LayoutInflater.inflate(LayoutInflater.java:426)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at android.view.LayoutInflater.inflate(LayoutInflater.java:377)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at android.widget.Toast.makeText(Toast.java:269)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at com.insteem.ipfreely.steem.HelperClasses.GetDynamicAndBlock$signalrstarterasync.onPostExecute(GetDynamicAndBlock.kt:503)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at com.insteem.ipfreely.steem.HelperClasses.GetDynamicAndBlock$signalrstarterasync.onPostExecute(GetDynamicAndBlock.kt:452)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at android.os.AsyncTask.finish(AsyncTask.java:683)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at android.os.AsyncTask.-wrap1(AsyncTask.java)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:700)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:110)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:203)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:6251)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)
05-10 22:45:28.712 28271 28271 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)```
Sort:  

Hi @ckole, thanks for making this report.

I was able to reproduce the same behavior following the steps you provided. The app crashed just like the report suggests. Why did you take so long to post the contribution on Utopian?

The expected and actual behavior is very well written. The steps are well written and were easy to follow.

I look forward to your future 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]

I didn't know on time that insteem was part of the whitelisted projects, so I was waiting for his approval. I will post the rest soon. Thank you for the review.

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

Thanks for using eSteem!
Your post has been voted as a part of eSteem encouragement program. Keep up the good work! Install Android, iOS Mobile app or Windows, Mac, Linux Surfer app, if you haven't already!
Learn more: https://esteem.app
Join our discord: https://discord.gg/8eHupPq

Hi @ckole!

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

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.37
TRX 0.12
JST 0.040
BTC 70162.45
ETH 3540.43
USDT 1.00
SBD 4.79