QField icon indicating copy to clipboard operation
QField copied to clipboard

QField crashing on photo taking or app swipe

Open veezee2021 opened this issue 2 years ago • 7 comments

QField crashes (often but not always) when adding a photo to record or when leaving the app to go to another app.

Reproduction Steps (Photo crash):

  1. Add photo to record
  2. Camera opens, take photo, ask to confirm photo
  3. On confirm, comes back to viewer for taking photo
  4. On taking photo, it crashes

Reproduction Steps (leaving the app crash):

  1. Leaves the app to go to another app (any, doesn't matter)
  2. Try to come back to Qfield project
  3. Qfield crashes

Expected behavior:

Photo attached to record

Observed behavior:

Qfield crashes

**QField version:**1.10.0 Android version: 11 RP1A.200720.011 MIUI version : 12.5.1.0(RKSEUXM)

Additional information:

  • Problem started happening recently, didn't happen in an older version of QField: [Yes]
  • Problem can be reliably reproduced, doesn't happen randomly: [No]
  • Problem happens with all files and projects, not only some files or projects: cannot reproduce with Demo files. Other very simple projects with just photo taking are reproducing the same issue. The crash is not reproduced with another phone (android 5.1)

veezee2021 avatar Nov 26 '21 13:11 veezee2021

@veezee2021 , are you using the native camera or have you turned that setting off: image

Either way, try to toggle the setting to see if your crash is gone. I can't reproduce here on a Samsung device.

If you are able to give us adb logcat of your crashes, that'd be great. I assume you have a Xiaomi device, which is not something we've done loads of test with in the past.

nirvn avatar Nov 28 '21 08:11 nirvn

Possibly related to https://github.com/opengisch/QField/issues/1671

m-kuhn avatar Nov 28 '21 10:11 m-kuhn

@nirvn , yes it is correct, I am using a Xiaomi Redmi Note 10. I am suspecting, but of course have no proof, that this is the inbuilt camera software that causes the crash (although I am unsure if this could also cause the app to restart when I am switching between apps). Regarding the 'Use native camera' setting, this was the first thing I tried when it crashed. The problem is that, for a reason probably related to Xiaomi, I am unable to change the default camera software of the device to another software (I have for example Open Camera installed and working fine). The consequence is that when I toggle off the 'Use native camera' setting, I cannot take any photo anymore from QField: I only can load photos already taken. Very happy to provide you with an adb logcat but not familiar with this tool. Could you point towards what needs to be done to produce it?

veezee2021 avatar Nov 28 '21 14:11 veezee2021

@m-kuhn, yes you are totally correct. I read the whole thread and I am experiencing the same 'random' problem that is described there. Any update if there is some investigation going on with this? QField is simply non-usable in the field with this bug in my case. Will have to find other devices that do not reproduce the issue.

veezee2021 avatar Nov 28 '21 14:11 veezee2021

@veezee2021 , hopefully the non native camera should stabilize things for you. There's a known regression in 1.10.0 which prevents non native camera from being usable. Stay put for an update in the coming week-ish.

nirvn avatar Nov 28 '21 14:11 nirvn

Can you download this apk (arm64) and confirm if the crash still exists? https://github.com/opengisch/QField/pull/2486/files?w=1

m-kuhn avatar Feb 05 '22 17:02 m-kuhn

sorry, had missed this. Yes will do. Now using a samsung phone with no issue

On Sat, Feb 5, 2022 at 6:19 PM Matthias Kuhn @.***> wrote:

Can you download this apk (arm64) and confirm if the crash still exists? https://github.com/opengisch/QField/pull/2486/files?w=1

— Reply to this email directly, view it on GitHub https://github.com/opengisch/QField/issues/2315#issuecomment-1030663267, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWVOD52WEKCUFZWTDVOL4SLUZVL2LANCNFSM5I2WJCJQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

veezee2021 avatar Feb 14 '22 09:02 veezee2021

Duplicate of https://github.com/opengisch/QField/issues/1671

m-kuhn avatar May 31 '23 06:05 m-kuhn