I am trying to save an array of bitmaps as webp image in android, but while processing more than one, the application getting terminated.
for(int i=0;i<bitmapArr.length;i++){
try{
FileOutputStream fileOutputStream = new FileOutputStream(file);
bitmapArr[i].compress(Bitmap.CompressFormat.WEBP,100,fileOutputStream);
fileOutputStream.close();
}catch (Exception e) {
e.printStackTrace();
}
}
Exception:
A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x6e800000 in tid 19366