display.save crash app

Good morning!

I have an application that lets you take pictures and then send them to a server. To resize the picture, I am conducting some calculations and to use “display.save”. Everything works perfectly on iOS, but Android does the following:

  1. I shot the photo and present on the screen;
  2. When returning to take pictures, I shot the photo and the application crashes.

I tried removing the “display.save” and the application no longer crashes more. But I need the “display.save” to resize the image.

Someone help me?

thank you