Since I couldn't find anyone reporting this behaviour before I thought about posting the problem and my solution here so it could help others who are having this problem. Our app did work great on devices prior to ICS. We tested our app on the Galaxy Nexus and the ICS emulator and saw weird process crashes of the following kind:
HEAP MEMORY CORRUPTION IN dlmalloc
HEAP MEMORY CORRUPTION IN dlfree
signal 11 (SIGSEGV), fault addr deadbaad
The problem is that the crashes occured in the native space so there wasn't any self written code which affected it directly. Since we handle a lot of images in lists and the system allocates bitmaps for those the only thing which came to mind was some bad bitmap handling. We followed all best practices out in the web and we even helped the GC to collect unneeded resources by calling bitmap.recycle()
. Anyway, for some unknown reason the application crashed constantly on Android ICS 4.0.