QR scanner suddenly stopped working on stock camera app on my OP12

Out of nowhere I am no longer able to scan codes. The setting is turned on in the settings tab but no success. I have tried turning it off and on again.

Anyone got same issue and a fix?