MerginMaps / mobile

Mobile app for Mergin Maps 📲. Open QGIS projects and manage vector data on your phone, even offline 📶 (Android/iOS/Windows app)
https://merginmaps.com
GNU General Public License v2.0
293 stars 64 forks source link

App crashing after taking sequential photos #3538

Open VitorVieiraZ opened 1 month ago

VitorVieiraZ commented 1 month ago

Text field form and "Take a picture" in Relations Editors on Android causes app freeze. There are two known ways to reproduce this issue:

Example project: support/multiple_multiple_photos

Steps to reproduce issue:

First Method:

  1. In "Survey" form, add some text to "Notes" field.
  2. Add a new feature to "Other photos" field.
  3. Click on "Take a picture":
    • The camera opens to take a photo.
    • The application crashes.
    • After capturing the photo, the camera reopens immediately for another photo.
  4. Clicking the button to take this additional photo leads to the app freezing on the splash screen.

Second Method:

  1. In "Survey" form.
  2. Add a new feature to "photos" field.
  3. Go to "external-pk" field and click on Link icon.
  4. Change the link to another one.
  5. Stay in the "external-pk" field and click on it (not on the Link icon area).
  6. Add a new feature to "photos" field.
  7. Click on "Take a picture":
    • The camera opens to take a photo.
    • The application crashes.
tomasMizera commented 1 month ago

Hi @VitorVieiraZ, do we have some logs here?

jozef-budac commented 1 month ago

I can't simulate this om my device. Can you verify this @VitorVieiraZ ? thanks