1. Are you ready for the Galaxy S20? Here is everything we know so far!

【Help】 a issues about android OOM

Discussion in 'Android Development' started by shanks123, Nov 30, 2021.

  1. shanks123

    shanks123 Lurker
    Thread Starter

    I meet a OOM, in android 9,10,11, logs as follows:

    Failed to allocate a 1228810 byte allocation with 24149440 free bytes and 256MB until OOM, max allowed footprint 292719044, growth limit 536870912; failed due to fragmentation (largest possible contiguous allocation 219232 bytes)

    it happens when call "ByteBuffer.allocateDirect"

    i am wonder why art do not arrange the art memory since still have enough memory.

    Could some one enlighten me?

    1. Download the Forums for Android™ app!



Share This Page