[Qurany App][v2.5.1] The app crashed when I opened it for the first time after installing it.

in #utopian-io5 years ago (edited)

Related Informations

Expected behavior

I expected that after installing the app from the Play Store, I could open the app for the first time without getting any problem.

Actual behavior

When I opened the app after installing it from the Play Store, then the app crashed for multiple times.
This issue is only occurring for the first time after installation.

How to reproduce

Here is every possible detail to reproduce the bug.

  1. Install the app from the Play Store.
  2. After the installation process complete, try to open the app from play store.
  3. At last, notice the multiple crashes.
  • App version: 2.5.1
  • Operating system: Android 6.0.1

Recording Of The Bug

LogCat

07-02 00:03:22.416 11908 11908 E AndroidRuntime: FATAL EXCEPTION: main

07-02 00:03:22.416 11908 11908 E AndroidRuntime: Process: education.mahmoud.quranyapp, PID: 11908

07-02 00:03:22.416 11908 11908 E AndroidRuntime: java.lang.OutOfMemoryError: Failed to allocate a 88646412 byte allocation with 16777216 free bytes and 37MB until OOM

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at dalvik.system.VMRuntime.newNonMovableArray(Native Method)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:856)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:675)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:2230)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.content.res.Resources.loadDrawableForCookie(Resources.java:4284)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.content.res.Resources.loadDrawable(Resources.java:4158)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.content.res.Resources.getDrawable(Resources.java:2043)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.content.res.Resources.getDrawable(Resources.java:2025)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.content.Context.getDrawable(Context.java:464)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at androidx.core.a.a.a(Unknown Source)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at androidx.appcompat.widget.k.a(Unknown Source)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at androidx.appcompat.widget.k.a(Unknown Source)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at androidx.appcompat.a.a.a.b(Unknown Source)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at androidx.appcompat.widget.o.a(Unknown Source)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at androidx.appcompat.widget.p.setImageResource(Unknown Source)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at com.github.paolorotolo.appintro.AppIntroBaseFragment.onCreateView(Unknown Source)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at androidx.e.a.d.performCreateView(Unknown Source)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at androidx.e.a.j.a(Unknown Source)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at androidx.e.a.j.b(Unknown Source)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at androidx.e.a.j.a(Unknown Source)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at androidx.e.a.a.e(Unknown Source)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at androidx.e.a.j.b(Unknown Source)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at androidx.e.a.j.a(Unknown Source)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at androidx.e.a.j.a(Unknown Source)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at androidx.e.a.a.d(Unknown Source)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at androidx.e.a.m.finishUpdate(Unknown Source)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at androidx.viewpager.widget.ViewPager.populate(Unknown Source)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at androidx.viewpager.widget.ViewPager.populate(Unknown Source)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at androidx.viewpager.widget.ViewPager.onMeasure(Unknown Source)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.view.View.measure(View.java:20214)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:716)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:462)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.view.View.measure(View.java:20214)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6333)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at androidx.appcompat.widget.ContentFrameLayout.onMeasure(Unknown Source)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.view.View.measure(View.java:20214)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6333)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.widget.LinearLayout.measureVertical(LinearLayout.java:747)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.widget.LinearLayout.onMeasure(LinearLayout.java:629)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.view.View.measure(View.java:20214)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6333)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.view.View.measure(View.java:20214)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6333)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.widget.LinearLayout.measureVertical(LinearLayout.java:747)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.widget.LinearLayout.onMeasure(LinearLayout.java:629)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.view.View.measure(View.java:20214)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6333)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at com.android.internal.policy.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:3137)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.view.View.measure(View.java:20214)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2687)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1640)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1932)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1528)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7524)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:911)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.view.Choreographer.doCallbacks(Choreographer.java:686)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at android.view.Choreographer.doFrame(Choreographer.java:622)

07-02 00:03:22.416 11908 11908 E AndroidRuntime:    at
Sort:  

Hi @sagorahmed, thanks for this contribution

The initial crash is strange. I see the PO has acknowledged the issue with a promise to come up with a fix. The logcat you provided was indeed helpful but a quick analysis of the error returned from the log could have have also shed more light on the issue

Thanks again fr the contribution. I look forward to reviewing 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 your review, @fego! Keep up the good work!

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!