Discussion Forums  >  Crashes, Memory Warnings

Replies: 7    Views: 332

dudave
Android Fan
Profile
Posts: 111
Reg: Mar 23, 2011
Israel, Netanya
1,110
02/06/13 03:28 PM (11 years ago)

Crash report from google play

this is the crash message i received today on google play for my first app, if anyone has any idea what it means i'd appreciate any help: java.lang.OutOfMemoryError in android.graphics.BitmapFactory.nativeDecodeAsset java.lang.OutOfMemoryError at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method) at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:500) at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:353) at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:785) at android.content.res.Resources.loadDrawable(Resources.java:1935) at android.content.res.Resources.getDrawable(Resources.java:664) at com.auriculotherapyearacupuncture.BT_fileManager.getDrawableByName(BT_fileManager.java:263) at com.auriculotherapyearacupuncture.BT_activity_base$BackgroundImageWorkerThread.run(BT_activity_base.java:701) Thanks Dave
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
02/06/13 03:48 PM (11 years ago)
Hey @dudave, Just at first glance, it looks like you have an image/pic in your drawable folder that is taking a lot off memory. LA
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/06/13 03:48 PM (11 years ago)
Hi Dave, I believe this means that one of your graphics caused the system to run out of memory and crash. If there are graphics you have in res > drawable that you put there, try and reduce their footprint a bit and see if that helps. I suspect part of the problem depends on how much memory is available on the user's device, which you can't control (especially if they have lots of apps being used). Mark
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/06/13 03:49 PM (11 years ago)
Gotta speed up my typing...LA beat me by 35 seconds!
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
02/06/13 03:50 PM (11 years ago)
lol sorry @GoNorthWest! Your explanation is better though! LA
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/06/13 05:30 PM (11 years ago)
I'm no expert; but it looks like some of the images might be a bit big, and causing out of memory errors on a device. How big are the image filesizes? Can they be compressed or reduced in size without giving up too much resolution? Android is such a moving target that it's hard to ensure reliability on each and every device/version. And it's always possible 'that' user has all kinds of other crap on their phone. Keep an eye on it, of course. But until a similar crash report comes in, it may be an isolated incident. Cheers! -- Smug (and I forgot to hit the 'submit' button until after breakfast, lol!)
 
Arubaman
Aspiring developer
Profile
Posts: 636
Reg: Oct 20, 2011
Akron
16,910
like
02/06/13 06:53 PM (11 years ago)
Are you using menu with image? Ive started seeing this error on a new app, crashes in emulator and on device, only graphics in it are 2 files both are under 283kb, I'm starting to link back to menu with image plugin but not really sure yet.
 
dudave
Android Fan
Profile
Posts: 111
Reg: Mar 23, 2011
Israel, Netanya
1,110
like
02/07/13 02:27 AM (11 years ago)
Thanks for the response guys! my biggest image is 343 kb, unfortunately its the background image so it comes back on evey single page :) is it too big indeed? David
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.