2

我使用 SKMapSurfaceView.getScreenshot() 来截取渲染地图的屏幕截图,并在全高清屏幕的 4.4.2 设备上崩溃:

Android:4.4.2 制造商:三星 型号:SM-G900H

java.lang.OutOfMemoryError
    at android.graphics.Bitmap.nativeCreate(Native Method)
    at android.graphics.Bitmap.createBitmap(Bitmap.java:997)
    at android.graphics.Bitmap.createBitmap(Bitmap.java:1021)
    at com.skobbler.ngx.map.MapRenderer.a(SourceFile:1134)
    at com.skobbler.ngx.map.MapRenderer.onDrawFrame(SourceFile:391)
    at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1532)
    at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1249)
4

0 回答 0