New post
0

[Bug]* App Crashes While Logging Observations In Remote Site with Limited Or No Internet (Can Anyone Else Reproduce This?)

Hello. Last night I took SSP7 into the field. It was generally stable for a while with regular creation of basic observation log entries. After a couple of hours, and maybe 15 entries, the app started crashing roughly 30% of the time that I invoked the action to create an observation for the selected item.

More specifically, I invoked that action, then the app uncharacteristically appeared to get into an endless waiting loop with the spinning circle, or whatever it is, without progressing to the observation entry screen. After a time (possibly 15 seconds?) I'd typically kill the app and restart it. This happened repeatedly after it started happening, although I could often get 1 or 2 observations logged between occurrences.

A possible clue is that, for where I was, I had no internet. I'm wondering if perhaps it was trying to synchronise something with livesky and waiting for an impossible connection.

Maybe my phone was getting confused about internet availably if, after atmospheric conditions or something else changed at some time in the night, the OS started seeing a very weak 3G or 4G data connection. If that happened then perhaps SS thought internet was available and behaved differently with trying to send a request that could only stall everything for a long time as it failed to go anywhere? That's just a guess from my side without knowledge of the app's internals, though.

I've used SSP6 for about a year, including from that site, and have never seen similar behaviour. It's always been reliably stable until switching to 7. I can't absolutely rule out some kind of coincidence with conditions but unfortunately I didn't think to re-open and try 6 last night.

8 comments

  • Avatar
    Keiron Smith Official comment
  • 0
    Avatar
    Keiron Smith

    Mike, 

    Please always include the following info:

    1. App and version
    2. Android OS
    3. Android device

    Thanks for the report!

  • 0
    Avatar
    Mike McGavin

    Oops, sorry.

    SkySafari 7 Pro 7.0.1.1

    Android 12 on a Samsung Galaxy M32.

  • 0
    Avatar
    Mike McGavin

    Correction: Google Play is telling me that it updated the app "yesterday", which is immediately after I returned from this site, so it's possible it was a version earlier than 7.0.1.1.  Annoyingly, at least as far as I can tell, Android doesn't seem to have a way of seeing an app's update history.

  • 0
    Avatar
    Keiron Smith

    Mike, 

    Can you reproduce any of these issues using the app with the device in airplane mode?

    Thanks!

  • 0
    Avatar
    Mike McGavin

    Hi Keiron.  I've just tried it and unfortunately I can't reproduce it at all whilst in flight mode.  I'm guessing that's because Android is unambiguously acting as if there's no internet connection available.

    I did manage to get something similar (but it still ultimately worked) if I let my phone have a Wifi connection, but disabled the internet connection for the router.  The first time I did this I saw the spinning circle for about 10 seconds, but then it eventually succeeded and opened the create-observation screen.  I think that's because Android eventually realised it had no internet from the wifi and so switched over to mobile data, and in line with that I could see it having reactivated its mobile data in the Android status bar.  If I disabled data after that then it also opened after a few seconds, possibly because it'd decided there was definitely no internet.

    10 seconds is about the longest delay I've been able to reproduce in that scenario.

    To me, at least, it seems consistent with the app getting stuck at the moment of opening the create-observation screen if the OS thinks it has internet, but really doesn't.  It's possible if I'd waited for whatever SS's request timeout limit is (assuming that's what it's doing), then I'd have seen some kind of error, or maybe the screen would have simply opened, but after the first couple of times I got into the habit of just killing the app a few seconds after the circle popped up.

    I won't be able to get back to that relatively remote site for some time, so can't easily go back there to test it, and I'm not sure how to simulate a data connection that's present whilst also being really really bad.

    For a workaround to try in future I might try manually disabling the phone's data connection, or putting it into flight mode, just so Android and SS know on clear terms that there's no internet.... assuming it's all a correct understanding of what's happening.  If there's no better fix, and it's an easy change, then I think it'd be helpful if SS can explain what it's doing and give the user an option to cancel the request.

    Thanks for the responses.

  • 0
    Avatar
    Keiron Smith

    Thank you, Mike, for the excellent troubleshooting!

  • 0
    Avatar
    Ros Hartigan

    Thanks Mike, your analysis of the situation is probably correct. We will work on a suitable solution.

    Until we have one in place, if you find yourself in this situation again, you can temporarily disable backing up to LiveSky by going to Settings - User Data - Storage and turn off Backup My Data to Cloud Storage. This will prevent SS from aggressively trying to synchronize with LiveSky.  When you are able to turn it back on the new data you have added or edited will be synchronized with LiveSky.

Please sign in to leave a comment.