@Sebastian how did you measure the memory usage?
Via runtime etc or e.g. via android.os.Debug.getNativeHeapAllocatedSize() ? Also please can you try to double the segmentsize?
The heap size with DDMS and the overall memory usage / overall available memory:
its just a workaround i write the availableMegs to the log to see it.
I tried to double the segmentsize but the error occurs too but a little bit different:
normal:
java.lang.RuntimeException: Couldn’t map buffer 189 of 250 at position 198180964 for 262143900 bytes with offset 100, new fileLength:262144100
doubled segmentsize:
java.lang.RuntimeException: Couldn’t map buffer 95 of 125 at position 199229540 for 262143900 bytes with offset 100, new fileLength:262144100
still the same behaviour
1 Like