mobile icon indicating copy to clipboard operation
mobile copied to clipboard

Downloading and then opening projects causes app to freeze on Samsung A53 devices

Open raherin opened this issue 1 year ago • 4 comments

At least one other user with a Samsung A53 has reported similar issues and I have been able to replicate this on my own device of the same model.

When downloading a project from the server in the Mergin Maps app, the app will frequently freeze or become unresponsive after the user clicks on the project to open it (see video). The steps to reproduce this behaviour are as follows:

  1. Open the project menu
  2. Go to the search for projects tab
  3. Download a new project
  4. Click on project when it finishes downloading
  5. App crashes
  6. Close app
  7. Open app
  8. Go to project menu
  9. Open recently downloaded project from the home tab

This behaviour is random and does not appear to be project specific. When testing this on publicly available projects from the documentation I get the following results:

  • sarah/Basic survey: crash
  • documentation/forms_one-to-many-relations: no crash
  • documentation/form_setup: crash
  • documentation/forms_multiple_photos: no crash

However, if I remove one of the projects that did not crash during the first test, sometimes it will crash on the second attempt.

Creating a new project using the mobile app does not cause the app to crash but creating a new project using the default template in QGIS and then downloading and opening it on the mobile device will sometimes cause the app to crash.

raherin avatar Jan 23 '24 12:01 raherin

The app freezes when opening or downloading a project when the keyboard of the mobile is still open. This seems to be constant.

  1. Open the project menu
  2. Go to the search for projects tab (with the searchbar)
  3. Download a new project (leaving the keyboard open)
  4. open project (leaving the keyboard open)
  5. App crashes
  6. Close app
  7. Open app
  8. Go to project menu
  9. search for the project with the searchbar
  10. open project (leaving the keyboard open)
  11. App crashes
  12. close app
  13. open app
  14. Go to project menu
  15. scroll to the project
  16. Open project

To not let the app freeze you can either scroll down to the project or close the keyboard from the phone (when using the searchbar) before clicking on download or opening the project.

rvanmaaren avatar Jan 23 '24 12:01 rvanmaaren

Thanks @raherin and @rvanmaaren for reporting this issue. We will have a look

tomasMizera avatar Jan 24 '24 08:01 tomasMizera

There appears to be an issue related to the virtual keyboard on the Samsung version of Android. Having the keyboard open on the screen, as is often the case when searching for a particular project using the filter, will cause the app to freeze if you try to open the project while the keyboard is still visible.

One solution that has worked on my Samsung device is to download the standard Google keyboard 'Gboard' and set it to default on your Samsung device:

  1. ​Open Google Play
  2. Search for Gboard (the default keyboard for Google Android) and install it
  3. Open your device settings and go to 'General management' > 'Keyboard list and default'
  4. Enable 'Gboard'
  5. Click 'Default keyboard' and set it to 'Gboard'

raherin avatar Jan 24 '24 14:01 raherin

I have also seen this on my A53. Thanks for posting the tip about hiding the keyboard.

volcan01010 avatar Mar 18 '24 10:03 volcan01010

Update

Since the update to app v2024.1.0 this issue is also affecting Google Pixel phones and the previous workaround of using a non-Samsung keyboard such as GBoard or Simple Keyboard no longer works. See the attached recording from a Google Pixel:

screen-20240509-100850

raherin avatar May 09 '24 09:05 raherin

I have tested on both my Pixel 6 and Samsung A53 and the app also freezes if the keyboard is closed. It seems that any time the search filter is used, I cannot open a project. See the below recording from my A53, but my Google Pixel 6 also has this behaviour:

Screen_Recording_20240509_103138

raherin avatar May 09 '24 09:05 raherin

This might be highly related to https://bugreports.qt.io/browse/QTBUG-123876

tomasMizera avatar May 15 '24 13:05 tomasMizera

I can't simulate the freeze or crash with 2024.2.0 RC. @raherin, please verify it also. Thanks

jozef-budac avatar May 29 '24 07:05 jozef-budac