NativeBitmapFactory:handle error