Closed daffydock closed 1 year ago
Hello @daffydock , thank for your report! Can you confirm you are running version 0.3.5? Also, did you import your geofavorites from Google Maps?
Unfortunately, I need to reproduce the problem to fix it, so here are some possibilities:
If you choose to provide the logs with the second application ("Logs") do not follow the utterly complicated instrucitions in the app, but simply go to Settings -> System -> Developer options and enable "ADB through network". Let me know if you need more support.
Hi. Indeed I was running 0.3.5 I imported. I installed. Ran, and it crashes/closes. Immediately.
It may help to know that on that phone, I am using Android 7. On a phone running 10, it works. Albeit that is a different Nexcloud account with no bookmarks.
I will take a look at the app you suggested.
Hello @daffydock, I think it may depend on the dataset, not the Android version. There may be some inconsistencies in the JSON due to the import (this happened and has been fixed in the past for the Google Maps imports).
Unfortunately I need to be able to reproduce the problem to fix it. Another option for reporting is to download the app via the Google Play Store and submit a report when the app crashes. This cannot be done when the app is installed via F-Droid or downloading the APK, because uses Google's error reporting system.
I can confirm this for version 0.3.5 on Android 11 with existing favourites already stored in NextCloud.
I've had the same issue. I downloaded the app from F-Droid as I am using Graphene OS. I have favorites already stored in my nextcloud instance but, I did not import them from google maps; they were created in the Nextcloud Maps App in a web browser.
I'm not sure if the information below is the same as the crash stacktrace you mentioned.
App Version: 0.3.5 Android Version: 13 (GrapheneOS on Pixel 4a)
type: crash osVersion: google/sunfish/sunfish:13/TQ1A.230105.001/2023020200:user/release-keys package: it.danieleverducci.nextcloudmaps:7 process: it.danieleverducci.nextcloudmaps processUptime: 592 + 60 ms
java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
at java.io.StringReader.
Thank you @wftmate , that is exactly what I needed to identify the problem! Seems like the name is NULL for (at least one) of yours geofavorites. This should never happen, BTW i placed a check to display an empty string in such cases. Can you please check this edit fixes the problem for you? You can find an apk built on the fly here: https://ichibi.eu/index.php/s/RjRB8GZZASpZFe7 @daffydock @realpixelcode Can you also check this APK and see if the problem is fixed for you as well? Thank you all!
@penguin86 I can confirm that it works now, thank you! Indeed, except for 3 favourites, none have a name. (I remember that I found it too tedious entering a name for each new one so I just didn't.)
@penguin86
Checked. Apps starts and seems to work!
Thank you all! I've pushed the fix on github, hopefully F-Droid will pick it up in the next hours and build it. It should be available in a couple of days.
Downloaded lastest 2 versions of the app. Gave it required permissions. App starts and crashes aboit a second later.
I tried it on my personal ID, which already has favourites, and it fails. Tried it on a different phone with an ID that has no prexisting map favourites and it works.