Dario reported a memory allocation exception in SkylightOpenGL when testing
Seven Wonders:
> In addition to trying the 1.5, 1.6, 2.0.1 and 2.1 emulators (and the
> varying screen sizes: QVGA, HVGA, WVGA and WVGA864) also check out the
> available AVDs from the Motorola dev program.
>
> When I tested the Titanium (2.1 and plenty of apps for an emulator)
> I'm getting the following for 7W unfortunately:
>
> 03-17 14:25:15.086: INFO/ActivityManager(51): Low Memory: No more
> background processes.
> 03-17 14:25:15.316: ERROR/dalvikvm-heap(337): 262144-byte external
> allocation too large for this process.
> 03-17 14:25:15.316: ERROR/(337): VM won't let us allocate 262144 bytes
> 03-17 14:25:15.485: WARN/dalvikvm(337): threadid=21: thread exiting
> with uncaught exception (group=0x4001d188)
> 03-17 14:25:15.517: ERROR/AndroidRuntime(337): Uncaught handler:
> thread GLThread exiting due to uncaught exception
> 03-17 14:25:15.545: ERROR/AndroidRuntime(337):
> java.lang.OutOfMemoryError: bitmap size exceeds VM budget
> 03-17 14:25:15.545: ERROR/AndroidRuntime(337): at
> android.graphics.Bitmap.nativeCreate(Native Method)
> 03-17 14:25:15.545: ERROR/AndroidRuntime(337): at
> android.graphics.Bitmap.createBitmap(Bitmap.java:468)
> 03-17 14:25:15.545: ERROR/AndroidRuntime(337): at
> skylight1.opengl.Texture.loadBitmap(Texture.java:178)
> 03-17 14:25:15.545: ERROR/AndroidRuntime(337): at
> skylight1.opengl.Texture.loadBitmap(Texture.java:129)
> 03-17 14:25:15.545: ERROR/AndroidRuntime(337): at
> skylight1.opengl.Texture.<init>(Texture.java:71)
> 03-17 14:25:15.545: ERROR/AndroidRuntime(337): at
> skylight1.opengl.Texture.<init>(Texture.java:62)
> 03-17 14:25:15.545: ERROR/AndroidRuntime(337): at
>
skylight1.sevenwonders.view.SevenWondersGLRenderer.onSurfaceChanged(SevenWonders
GLRenderer.java:186)
> 03-17 14:25:15.545: ERROR/AndroidRuntime(337): at
> android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1050)
> 03-17 14:25:15.545: ERROR/AndroidRuntime(337): at
> android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:974)
>
It looks like the current version of Texture.java doesn't call recycle on
the scaled bitmaps that it creates. So that might be a first thing to try
re fixing it.
Original issue reported on code.google.com by lna...@gmail.com on 21 Mar 2010 at 2:53
Original issue reported on code.google.com by
lna...@gmail.com
on 21 Mar 2010 at 2:53