Skip to content

OutOfMemory error when opening/closing a PFragment with an OpenGL sketch #482

@codeanticode

Description

@codeanticode

It happens in the saveState() method:

    java.lang.OutOfMemoryError: Failed to allocate a 7387216 byte allocation with 4786600 free bytes and 4MB until OOM, max allowed footprint 201326592, growth limit 201326592
        at processing.opengl.PGraphicsOpenGL$1.run(PGraphicsOpenGL.java:5717)
        at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1500)
        at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270)

when saving the pixels. This may be pointing to some renderer's resources not properly disposed, either the pixels or something else..

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions