Env:
Browser: Chrome 86 on Android
Version: 0b0f626.20201014-130416
Steps:
load app
set "when to upload" to NEVER
start a new observation
add a lot of large photos, at least 60mb of photos for the one observation
save the obs
go to the hidden admin section
clone the obs 3 times
view the observation list
pull to refresh a few times
Expected:
The obs list is refreshed without error.
Actual:
The Chrome tab crashes with an "Aw, snap" message. I haven't been able to get any logs, but I assume we're using too much memory. The logs in the JS console don't give any hints.
The fix might be to stop keeping all photos in memory. Instead, we only load them when we need them:
processing the record for upload
showing the obs details page
We still need a thumbnail though, so either we need to keep one photo in memory or perhaps we can try to extract the thumbnail from one of the photos. This assumes all cameras populate the thumbnail in metadata.
Env: Browser: Chrome 86 on Android Version: 0b0f626.20201014-130416
Steps:
Expected: The obs list is refreshed without error.
Actual: The Chrome tab crashes with an "Aw, snap" message. I haven't been able to get any logs, but I assume we're using too much memory. The logs in the JS console don't give any hints.
The fix might be to stop keeping all photos in memory. Instead, we only load them when we need them: