问题描述
- unflatten: registerBuffer failed: Out of memory (-12)
-
报错代码:
0-23 14:19:33.612: E/gralloc(25532): int gralloc_map(const gralloc_module_t*, buffer_handle_t): could not mmap Out of memory
10-23 14:19:33.612: E/GraphicBuffer(25532): unflatten: registerBuffer failed: Out of memory (-12)
10-23 14:19:33.662: E/gralloc(25532): int gralloc_map(const gralloc_module_t*, buffer_handle_t): could not mmap Out of memory
10-23 14:19:33.662: E/GraphicBuffer(25532): unflatten: registerBuffer failed: Out of memory (-12)
10-23 14:19:33.807: E/CursorWindow(25532): Could not allocate CursorWindow '/storage/emulated/0/palmtrends/mySqlite/baseData.sqlite' of size 2097152 due to error -12.
10-23 14:19:34.192: E/CursorWindow(25532): Could not allocate CursorWindow '/storage/emulated/0/palmtrends/mySqlite/baseData.sqlite' of size 2097152 due to error -12.
10-23 14:19:34.972: E/CursorWindow(25532): Could not allocate CursorWindow '/storage/emulated/0/palmtrends/mySqlite/baseData.sqlite' of size 2097152 due to error -12.我使用arcgis地图,不停的在acitivty的mapview上切换切片地图数据,
每次切换数据我都mapview.removeAll();
layer.recycle();
再重新new Layer;
mapview.addLayer(Layer);
操作3 5次 不会有问题 多次操作就会崩溃,并报以上错误。
有知道原因的吧,感谢解惑!
时间: 2024-10-06 09:32:49