Downloading and then opening projects causes app to freeze on Samsung A53 devices
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:
- Open the project menu
- Go to the search for projects tab
- Download a new project
- Click on project when it finishes downloading
- App crashes
- Close app
- Open app
- Go to project menu
- 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.
The app freezes when opening or downloading a project when the keyboard of the mobile is still open. This seems to be constant.
- Open the project menu
- Go to the search for projects tab (with the searchbar)
- Download a new project (leaving the keyboard open)
- open project (leaving the keyboard open)
- App crashes
- Close app
- Open app
- Go to project menu
- search for the project with the searchbar
- open project (leaving the keyboard open)
- App crashes
- close app
- open app
- Go to project menu
- scroll to the project
- 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.
Thanks @raherin and @rvanmaaren for reporting this issue. We will have a look
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:
- ​Open Google Play
- Search for Gboard (the default keyboard for Google Android) and install it
- Open your device settings and go to 'General management' > 'Keyboard list and default'
- Enable 'Gboard'
- Click 'Default keyboard' and set it to 'Gboard'
I have also seen this on my A53. Thanks for posting the tip about hiding the keyboard.
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:
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:
This might be highly related to https://bugreports.qt.io/browse/QTBUG-123876
I can't simulate the freeze or crash with 2024.2.0 RC. @raherin, please verify it also. Thanks