Problem in android application

  • Hi,
    We embedded the plugin inside an android application. The player works at charm but after loading few times the player, the app crash.

    We have found a problem related to an out of memory on the webview.
    Below the log from android studio

    10-14 10:29:20.620 13855-13929/com.ettsolutions.krpanotest E/qdmemalloc: ion: Failed to map memory in the client: Out of memory
    10-14 10:29:20.620 13855-13929/com.ettsolutions.krpanotest E/qdgralloc: Could not mmap handle 0x555a0ab0, fd=145 (Out of memory)
    10-14 10:29:20.620 13855-13929/com.ettsolutions.krpanotest E/qdgralloc: gralloc_register_buffer: gralloc_map failed
    10-14 10:29:20.620 13855-13929/com.ettsolutions.krpanotest W/GraphicBufferMapper: registerBuffer(0x555a0ab0) failed -12 (Out of memory)
    10-14 10:29:20.620 13855-13929/com.ettsolutions.krpanotest E/GraphicBuffer: unflatten: registerBuffer failed: Out of memory (-12)
    10-14 10:29:20.620 13855-13929/com.ettsolutions.krpanotest E/Surface: dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: -12
    10-14 10:29:20.630 13855-13929/com.ettsolutions.krpanotest I/Adreno: DequeueBuffer: dequeueBuffer failed
    10-14 10:29:20.630 13855-13929/com.ettsolutions.krpanotest I/Adreno: Native window GetBuffer failed
    10-14 10:29:20.630 13855-13929/com.ettsolutions.krpanotest E/libEGL: eglMakeCurrent:889 error 300d (EGL_BAD_SURFACE)
    10-14 10:29:20.630 13855-13929/com.ettsolutions.krpanotest A/OpenGLRenderer: Failed to make current on surface 0x9bf13e40, error=EGL_BAD_SURFACE
    10-14 10:29:20.870 13855-13929/com.ettsolutions.krpanotest W/google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ###
    10-14 10:29:20.870 13855-13929/com.ettsolutions.krpanotest W/google-breakpad: Chrome build fingerprint:
    10-14 10:29:20.870 13855-13929/com.ettsolutions.krpanotest W/google-breakpad: 1.0
    10-14 10:29:20.870 13855-13929/com.ettsolutions.krpanotest W/google-breakpad: 1
    10-14 10:29:20.870 13855-13929/com.ettsolutions.krpanotest W/google-breakpad: 3287cb47-323f-452a-9071-08e954855982
    10-14 10:29:20.870 13855-13929/com.ettsolutions.krpanotest W/google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ###
    10-14 10:29:20.870 13855-13929/com.ettsolutions.krpanotest A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 13929 (RenderThread)

    Steps to reproduce the problem:

    1. create an application with two activities
    2. on the first activity put a button with an intent to the second
    3. on the second (krpano player activity) put a webview loading your player
    4. start switching activities
    5. watch your app dies painfully


    Sometimes the app doesn't crash but it stops to render and load the contents of ALL webviews in my app until I restart the whole app (kill from background and reopen)
    Here's the source code of a sample application.

    Could you help us to find a solutions to this problem?

    Thx Marco :)

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!