redfish64 / TinyTravelTracker

Private Android GPS tracker
GNU General Public License v3.0
136 stars 31 forks source link

Version 1.1.5 (F-Droid) crashes on start #36

Closed Self-Perfection closed 8 years ago

Self-Perfection commented 8 years ago
08-15 12:28:42.412 28154 28345 E AndroidRuntime: FATAL EXCEPTION: main
08-15 12:28:42.412 28154 28345 E AndroidRuntime: java.lang.NullPointerException
08-15 12:28:42.412 28154 28345 E AndroidRuntime:        at com.rareventure.gps2.reviewer.map.GpsLocationOverlay.resetMapData(GpsLocationOverlay.java:133)
08-15 12:28:42.412 28154 28345 E AndroidRuntime:        at com.rareventure.gps2.reviewer.map.GpsLocationOverlay.onLocationChanged(GpsLocationOverlay.java:126)
08-15 12:28:42.412 28154 28345 E AndroidRuntime:        at android.location.LocationManager$ListenerTransport._handleMessage(LocationManager.java:263)
08-15 12:28:42.412 28154 28345 E AndroidRuntime:        at android.location.LocationManager$ListenerTransport.access$000(LocationManager.java:196)
08-15 12:28:42.412 28154 28345 E AndroidRuntime:        at android.location.LocationManager$ListenerTransport$2.handleMessage(LocationManager.java:219)
08-15 12:28:42.412 28154 28345 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:99)
08-15 12:28:42.412 28154 28345 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:137)
08-15 12:28:42.412 28154 28345 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:4781)
08-15 12:28:42.412 28154 28345 E AndroidRuntime:        at java.lang.reflect.Method.invokeNative(Native Method)
08-15 12:28:42.412 28154 28345 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Method.java:511)
08-15 12:28:42.412 28154 28345 E AndroidRuntime:        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:805)
08-15 12:28:42.412 28154 28345 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:568)
08-15 12:28:42.412 28154 28345 E AndroidRuntime:        at dalvik.system.NativeStart.main(Native Method)
redfish64 commented 8 years ago

I can't reproduce this, but it looks like events are happening in a different sequence compared to my phone, causing a variable to be read before it's initialized. I attempted to fix this and put it in version 1.1.7. It should be in f-droid in a day or two, hopefully, and in google play in a few hours.

redfish64 commented 8 years ago

1.1.7 is up on F-Droid On 15 Aug 2016 17:39, "Alexander Meshcheryakov" notifications@github.com wrote:

08-15 12:28:42.412 28154 28345 E AndroidRuntime: FATAL EXCEPTION: main 08-15 12:28:42.412 28154 28345 E AndroidRuntime: java.lang.NullPointerException 08-15 12:28:42.412 28154 28345 E AndroidRuntime: at com.rareventure.gps2.reviewer.map.GpsLocationOverlay.resetMapData(GpsLocationOverlay.java:133) 08-15 12:28:42.412 28154 28345 E AndroidRuntime: at com.rareventure.gps2.reviewer.map.GpsLocationOverlay.onLocationChanged(GpsLocationOverlay.java:126) 08-15 12:28:42.412 28154 28345 E AndroidRuntime: at android.location.LocationManager$ListenerTransport._handleMessage(LocationManager.java:263) 08-15 12:28:42.412 28154 28345 E AndroidRuntime: at android.location.LocationManager$ListenerTransport.access$000(LocationManager.java:196) 08-15 12:28:42.412 28154 28345 E AndroidRuntime: at android.location.LocationManager$ListenerTransport$2.handleMessage(LocationManager.java:219) 08-15 12:28:42.412 28154 28345 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99) 08-15 12:28:42.412 28154 28345 E AndroidRuntime: at android.os.Looper.loop(Looper.java:137) 08-15 12:28:42.412 28154 28345 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:4781) 08-15 12:28:42.412 28154 28345 E AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method) 08-15 12:28:42.412 28154 28345 E AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:511) 08-15 12:28:42.412 28154 28345 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:805) 08-15 12:28:42.412 28154 28345 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:568) 08-15 12:28:42.412 28154 28345 E AndroidRuntime: at dalvik.system.NativeStart.main(Native Method)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/redfish64/TinyTravelTracker/issues/36, or mute the thread https://github.com/notifications/unsubscribe-auth/AB1W0jvRdqPqMnFa7sQf3vXGheYLylVMks5qgDPvgaJpZM4JkPqE .

Self-Perfection commented 8 years ago

I tried 1.1.7 and it does not crash.

Does not look to me that it starts absolutely correct, seems that I need to tap app icon more than once. Does it just starts slowly? I'm not sure but, I defenitely don't see crashes in logs anymore, so I assume this is resolved.

BTW, after start I get #37