-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Crash when location is set #623
Comments
Hi. Thanks for reporting this. Unfortunately I'm unable to reproduce it on any of my devices (newest running Android 10), or when running the emulator. I think there must be some other condition that I'm not testing (one occurs reliably on your devices). I doubt the bug is device specific, or even Android version specific. It might be something locale specific but I'm just guessing. A lot more detail is needed to debug it this way. The good news is there is an |
For whatever reason Suntimes is opening for me now, but if I go back to yesterday it crashes. This happens on both of my devices. I'll see about getting the entries from logcat. Hopefully the crash will still be reproducible going back to, e.g., September 20th. |
Hopefully this will help… The app opens and I can go forward a few days. Going back to yesterday yields a crash. The logcat entry is below:
|
Going 9 days ahead it crashes with the same sort of stacktrace.
|
Fixes app crash (NPE) at higher latitudes when displaying moon illumination. #623 It shouldn't be assumed that all locations experience moonrise/moonset on a given day. The lunar noon (and lunar midnight) calendars are possibly null and must be checked first. If lunar noon doesn't occur, display illumination at solar noon instead.
That was very helpful. Thank you. I'm able to reproduce it by updating the location to a high latitude. The crash happens afterward when updating the UI. The app tries to display the moon's illumination at lunar noon, but assuming moonrise/moonset occurs everywhere on a given day is a mistake. That assumption was the cause of the crash, and looking closely at the 'world map' dialog it seems obvious in hindsight. I'm feeling fortunate this bug was reported. Thank you again. Its likely it would have remained unnoticed for a long time. |
Describe the bug
The app crashes when my location is set, either manually or using GPS.
To Reproduce
Steps to reproduce the behavior:
Version Info:
Additional context
I will also see the crash if I define the location manually, without using GPS.
If I keep the location to the default (which is several hundred miles kilometers away) the app doesn't crash.
The text was updated successfully, but these errors were encountered: