Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashes when screen is rotated during QR code scanning #3296

Closed
tomasMizera opened this issue Apr 10, 2024 · 1 comment · Fixed by #3311
Closed

App crashes when screen is rotated during QR code scanning #3296

tomasMizera opened this issue Apr 10, 2024 · 1 comment · Fixed by #3311
Assignees
Labels
android 🤖 Relates to Android app version bug in not released version Bug in not officially released version, found while testing RC data corruption - sync failure - crash - anr The most critical classification

Comments

@tomasMizera
Copy link
Collaborator

To reproduce:

  • open QR code scanner
  • rotate screen
    • 💥

Reproduced on Android, iOS works fine.

I managed to get the same stacktrace (crash) when doing the following:

  • Open form that has an image field and a QR code field
  • Add image
  • Immediately after the image is captured open the QR code scanner
  • 💥

A Quick Google search showed this Qt bug: https://bugreports.qt.io/browse/QTBUG-119445 <-- the same stacktrace

I tried to apply the fix mentioned in this comment https://bugreports.qt.io/browse/QTBUG-119445?focusedId=760746&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-760746 but that only led to other issues with the camera.

One possible solution could be to lock the screen orientation when opening the QR code scanner, see https://stackoverflow.com/questions/34310349/temporarily-programmatically-disable-screen-rotation-in-qt

I did not test the current 2.5.0, so not sure if it is a regression or not.

@tomasMizera tomasMizera added android 🤖 Relates to Android app version data corruption - sync failure - crash - anr The most critical classification bug in not released version Bug in not officially released version, found while testing RC labels Apr 10, 2024
@wonder-sk
Copy link
Contributor

I can get a crash in this scenario:

  • open QR scanner in form
  • close the QR scanner
  • switch to android home page (or another app)
  • switch back to MM
  • open QR scanner in form again - crash 💥

Rotating screen never crashed it for me, but if I rotate the screen from portrait to landscape, the camera preview ends up not not getting rotated correctly (and rotating back to portrait messes up the camera preview orientation there as well).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android 🤖 Relates to Android app version bug in not released version Bug in not officially released version, found while testing RC data corruption - sync failure - crash - anr The most critical classification
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants