External allocation too large for this process in Android

后端 未结 2 539
鱼传尺愫
鱼传尺愫 2020-12-11 15:14

I\'m getting \"external allocation too large for this process\" errors in my app. Lots of these at once:

11-16 10:56:59.230: ERROR/dalvikvm-heap(287         


        
相关标签:
2条回答
  • 2020-12-11 15:35

    If you're using threads, then the debugger might be the source of the problem. If you run the app under the debugger, then any threads created will still be retained by the debugger, even when they're finished running. This leads to memory errors that won't occur when the app is running without the debugger.

    http://code.google.com/p/android/issues/detail?id=7979

    0 讨论(0)
  • 2020-12-11 15:55

    adamp's comment was the answer in my particular case:

    The framework will often capture views onscreen into temporary bitmaps for drawing performance. It looks like your app is pushing right up against its memory limit already and this bumps it over. Take a look at the other suggestions for limiting your app's memory usage.

    0 讨论(0)
提交回复
热议问题