As told to Mark, I do not think so: the game is just starting, loading
the first Screen at all. Also I have never experienced such problems on
my own devices or emulators, and I have spent many time watching DDMS...
of course it cannot be discarded at 100%, though.
Regards,
On 11/21/2012 04:03 PM, bob wrote:
Maybe your heap is heavily fragmented and there is not 1.5megs of
contiguous space?
On Wednesday, November 21, 2012 8:50:41 AM UTC-6, Fran wrote:
Look at this:
0java.lang.OutOfMemoryError: (Heap Size=48547KB, Allocated=33541KB)
1at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
2at
android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:595)
3at
com.badlogic.androidgames.framework.impl.AndroidGraphics.newPixmap(AndroidGraphics.java:77)
4at
com.badlogic.androidgames.framework.impl.AndroidGraphics.newPixmap(AndroidGraphics.java:133)
5at
net.iberdroid.ruletaafortunadacore.MainMenuScreen.loadImages(MainMenuScreen.java:255)
6at
net.iberdroid.ruletaafortunadacore.MainMenuScreen.enable(MainMenuScreen.java:241)
The image that I am trying to load at MainMenuScreen.java:255
The weird thing is that there is free heap enough for loading that
image: it is a 800x480 png indexed but with transparency, so I
load it using four bytes per pixel (ARGB) and it should use about
1M5 of memory as a raw bitmap... but it crashes anyway trying to
load an image ten times smaller the available heap space (48-35 =
15Mb).
These things makes me crazy...
Bests,
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en