Skip to content
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

Closed
andrew-davie opened this issue Apr 17, 2016 · 8 comments
Closed

Consistent crash.. #2469

andrew-davie opened this issue Apr 17, 2016 · 8 comments
Assignees

Comments

@andrew-davie
Copy link
Contributor

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.

@crimean
Copy link
Contributor

crimean commented Apr 20, 2016

@andrew-davie could you please provide us any gpx track which cause such crash?

@andrew-davie
Copy link
Contributor Author

national_trails_cotswold_way_2014.gpx.zip

The attached exhibits the reported behaviour/crash.
I have just double-checked to confirm.

@mase76
Copy link

mase76 commented Aug 7, 2017

I get the same crash with osmand 2.6.3 (f-droid build) when just launching the app.
After it crashed to a reboot, I can start osmand as it should. I tseems, that when
osmand wasn't in use for a day, it crashes the whole system when launching.
Here is my log:
Version OsmAnd~ 2.6.3 31.07.2017 10:14:10 Exception occured in thread Thread[main,5,main] : java.lang.RuntimeException: Unable to resume activity {net.osmand.plus/net.osmand.plus.activities.MapActivity}: java.lang.RuntimeException: android.os.DeadSystemException at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3445) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3485) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2748) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1489) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6171) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:891) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:781) Caused by: java.lang.RuntimeException: android.os.DeadSystemException at android.net.ConnectivityManager.getActiveNetworkInfo(ConnectivityManager.java:761) at net.osmand.plus.OsmandSettings.isInternetConnected(OsmandSettings.java:265) at net.osmand.plus.OsmandSettings.isInternetConnectionAvailable(OsmandSettings.java:252) at net.osmand.plus.OsmandSettings.isInternetConnectionAvailable(OsmandSettings.java:246) at net.osmand.plus.helpers.DiscountHelper.checkAndDisplay(DiscountHelper.java:54) at net.osmand.plus.activities.MapActivity.onResume(MapActivity.java:637) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1270) at android.app.Activity.performResume(Activity.java:6786) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3422) ... 10 more Caused by: android.os.DeadSystemException ... 19 more

@mase76
Copy link

mase76 commented Aug 15, 2017

Today I got an app update via f-droid. Now I am on 2.7.5 and get the same crash.

@vshcherb
Copy link
Member

Your crash might be related with permissions, though it looks weird. Unless it is not fixed, you could create another issue.

@mase76
Copy link

mase76 commented Aug 23, 2017

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.

@vshcherb
Copy link
Member

Could you please create another issue and put the details there again. We will address it in 2.8

@mase76
Copy link

mase76 commented Aug 23, 2017

Did so.
#4332

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants