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
Consistent crash.. #2469
Comments
@andrew-davie could you please provide us any gpx track which cause such crash? |
national_trails_cotswold_way_2014.gpx.zip The attached exhibits the reported behaviour/crash. |
I get the same crash with osmand 2.6.3 (f-droid build) when just launching the app. |
Today I got an app update via f-droid. Now I am on 2.7.5 and get the same crash. |
Your crash might be related with permissions, though it looks weird. Unless it is not fixed, you could create another issue. |
It crashes only, when the app wasn't running for a longer time. And it crashes only once then. Not the whole system, as I thought first, only the Android UI. After the Android UI restarted, I can run the app without problems. So I don't think, that this is related to permissions. |
Could you please create another issue and put the details there again. We will address it in 2.8 |
Did so. |
Version OsmAnd~ 2.4.0
17.04.2016 9:40:42
Apk Version : 2.4.0 231
Exception occured in thread Thread[main,5,main] :
java.lang.RuntimeException: Unable to resume activity {net.osmand/net.osmand.plus.activities.MapActivity}: java.lang.NullPointerException: Attempt to read from field 'int net.osmand.plus.GPXUtilities$GPXTrackAnalysis.wptPoints' on a null object reference
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3103)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3134)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1388)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: java.lang.NullPointerException: Attempt to read from field 'int net.osmand.plus.GPXUtilities$GPXTrackAnalysis.wptPoints' on a null object reference
at net.osmand.plus.mapcontextmenu.builders.GpxItemMenuBuilder.buildCustomAddressLine(GpxItemMenuBuilder.java:54)
at net.osmand.plus.mapcontextmenu.MenuController.buildCustomAddressLine(MenuController.java:297)
at net.osmand.plus.mapcontextmenu.MapContextMenu.buildCustomAddressLine(MapContextMenu.java:783)
at net.osmand.plus.mapcontextmenu.MapContextMenuFragment.setAddressLocation(MapContextMenuFragment.java:854)
at net.osmand.plus.mapcontextmenu.MapContextMenuFragment.buildHeader(MapContextMenuFragment.java:654)
at net.osmand.plus.mapcontextmenu.MapContextMenuFragment.onCreateView(MapContextMenuFragment.java:335)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:1962)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1248)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1613)
at android.support.v4.app.FragmentController.execPendingActions(FragmentController.java:330)
at android.support.v4.app.FragmentActivity.onPostResume(FragmentActivity.java:452)
at android.support.v7.app.AppCompatActivity.onPostResume(AppCompatActivity.java:141)
at android.app.Activity.performResume(Activity.java:6336)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3092)
... 8 more
I get this by going to my places / my tracks
select a track, click on "route points"
select "point 1" -- crash.
The text was updated successfully, but these errors were encountered: