我正在 AndEngine 框架上开发 Android 动态壁纸。在我在模拟器壁纸中更改屏幕方向的那一刻,由于错误而崩溃:
09-05 14:25:32.003: E/AndroidRuntime(1310): FATAL EXCEPTION: GLThread 154
09-05 14:25:32.003: E/AndroidRuntime(1310): java.lang.OutOfMemoryError
09-05 14:25:32.003: E/AndroidRuntime(1310): at org.andengine.opengl.util.GLHelper.getPixelsARGB_8888(GLHelper.java:165)
09-05 14:25:32.003: E/AndroidRuntime(1310): at org.andengine.opengl.util.GLHelper.getPixels(GLHelper.java:41)
09-05 14:25:32.003: E/AndroidRuntime(1310): at org.andengine.opengl.util.GLState.glTexImage2D(GLState.java:637)
09-05 14:25:32.003: E/AndroidRuntime(1310): at org.andengine.opengl.texture.bitmap.BitmapTexture.writeTextureToHardware(BitmapTexture.java:120)
09-05 14:25:32.003: E/AndroidRuntime(1310): at org.andengine.opengl.texture.Texture.loadToHardware(Texture.java:137)
09-05 14:25:32.003: E/AndroidRuntime(1310): at org.andengine.opengl.texture.TextureManager.updateTextures(TextureManager.java:254)
09-05 14:25:32.003: E/AndroidRuntime(1310): at org.andengine.engine.Engine.onDrawFrame(Engine.java:613)
09-05 14:25:32.003: E/AndroidRuntime(1310): at org.andengine.opengl.view.EngineRenderer.onDrawFrame(EngineRenderer.java:105)
09-05 14:25:32.003: E/AndroidRuntime(1310): at org.andengine.extension.opengl.GLThread.guardedRun(GLThread.java:219)
09-05 14:25:32.003: E/AndroidRuntime(1310): at org.andengine.extension.opengl.GLThread.run(GLThread.java:95)
只有在壁纸中有许多动画精灵时才会出现错误。任何人都可以帮助我吗?抱歉英语不好。