I have the exact problem in my phone after the recent software update .Tried to clear data, force stopped the app, tried restarting, tried factory reset. Nothing worked. So went to nearby Samsung authorized service center. They analysed and said like camera ic is not working and asked me to change the motherboard for the cost of 7000rs. It is not even 1 and half years I bought Samsung M30 and this is highly disappointing.
Dear Samsung Member,
Greetings from Samsung Customer Support!
We are very sorry for the inconvenience caused to you and would like to inform you that as you have tried all the steps we request you kindly visit the service center as your device needs physical inspection. To check for the nearest Samsung service center kindly click on the link : https://www.samsung.com/in/support/service-center/
Thank you for writing to Samsung.
Samsung Customer Support