aurelhubert / aurelhubert/ahbottomnavigation
Out of memory error when selecting item
- Dominant language
- Java
- Stars
- 3.8k
- Forks
- 672
- PR merge metrics
- No merged PRs in 30d
Description
A small percentage of my users are getting the following error:
```
Fatal Exception: java.lang.OutOfMemoryError
android.graphics.BitmapFactory.nativeDecodeAsset (BitmapFactory.java)
android.support.v4.content.ContextCompat.getDrawable (SourceFile:374)
com.aurelhubert.ahbottomnavigation.AHBottomNavigationItem.getDrawable (SourceFile:133)
com.aurelhubert.ahbottomnavigation.AHBottomNavigation.updateSmallItems (SourceFile:752)
com.aurelhubert.ahbottomnavigation.AHBottomNavigation.setCurrentItem (SourceFile:1149)
com.aurelhubert.ahbottomnavigation.AHBottomNavigation.setCurrentItem (SourceFile:1130)
```
I'm using SVGs for my icons. Also, I'm using the 2.0.4 version of this library.
I haven't been able to reproduce the issue so I'm wondering if anyone else has encountered this issue?
Contributor guide
No contributing guide indexed for this repository
Research direction
The report points to AHBottomNavigationItem.getDrawable, AHBottomNavigation.updateSmallItems, and AHBottomNavigation.setCurrentItem, with SVG icons and library version 2.0.4 involved. Start by reviewing those stack-trace entry points and the SVG setup; no reproduction steps, target file, test, or acceptance condition is provided.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100