-
Notifications
You must be signed in to change notification settings - Fork 370
Closed
Labels
Description
-
We have noticed OutOfMemoryError in our crash report tool for our app versions when we were using Mixpanel A/B testing. Most of our errors are happening on 4.1.2, 4.4.2 and 5.0 devices.
-
I tried to update an image in our app with images of size 175KB and 139KB from A/B testing and I was able to reproduce the error.
-
We are on
compile 'com.mixpanel.android:mixpanel-android:4.7.0'
Stack Trace
_________________________________
0 java.lang.OutOfMemoryError
1 at android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
2 at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:619)
3 at android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:385)
4 at android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:418)
5 at com.mixpanel.android.util.ImageStore.getImage(ImageStore.java:96)
6 at com.mixpanel.android.viewcrawler.EditProtocol.readBitmapDrawable(EditProtocol.java:406)
7 at com.mixpanel.android.viewcrawler.EditProtocol.convertArgument(EditProtocol.java:366)
8 at com.mixpanel.android.viewcrawler.EditProtocol.readEdit(EditProtocol.java:143)
9 at com.mixpanel.android.viewcrawler.ViewCrawler$ViewCrawlerHandler.applyVariantsAndEventBindings(ViewCrawler.java:832)
10 at com.mixpanel.android.viewcrawler.ViewCrawler$ViewCrawlerHandler.initializeChanges(ViewCrawler.java:423)
11 at com.mixpanel.android.viewcrawler.ViewCrawler$ViewCrawlerHandler.handleVariantsReceived(ViewCrawler.java:750)
12 at com.mixpanel.android.viewcrawler.ViewCrawler$ViewCrawlerHandler.handleMessage(ViewCrawler.java:311)
13 at android.os.Handler.dispatchMessage(Handler.java:99)
14 at android.os.Looper.loop(Looper.java:137)
15 at android.os.HandlerThread.run(HandlerThread.java:60)