Tasks

Sunrise Mobile 2.0T-004

Crash on Android 12 when the camera opens twice

Wednesday, Nov 25, 17:00

Description

Description

1.8% of Android beta sessions crash when the receipt camera is opened a second time. It is our only open crash above the 0.5% bar for release.

Steps to reproduce

  1. Pixel 5 or Galaxy A52, Android 12
  2. New invoice → attach receipt → take a photo → back
  3. Attach another receipt within about two seconds

Expected: the camera opens again. Actual: the app closes.

What we know

DeviceSessionsCrash rate
Galaxy A521,2043.1%
Pixel 56881.9%
Others, Android 13+5,3100.0%

The camera session is not released before the next one starts. Fix: wait for the close callback, disable the button meanwhile.

Done when

  • Cause confirmed from the crash log
  • Fix in a beta build
  • Under 0.1% for 48 hours

Subtasks

Comments, History and Related

  1. Reproduced 5 of 5 times on the office A52.
  2. Cause found: we start a session before the old one reports closed. Fix is in review, beta build tonight.
  3. 📍 Progress 60% On track.