question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GraphHopper crash on Android 4.1

See original GitHub issue

Sample crashes on Android 4.1 at application exit with the following exception:

Caused by: java.lang.IllegalArgumentException: expected receiver of type java.nio.DirectByteBuffer, but got java.nio.MappedByteBufferAdapter
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:511)
   at com.graphhopper.util.Helper$1.run(Helper.java:377)
   at java.security.AccessController.doPrivileged(AccessController.java:60)
   at com.graphhopper.util.Helper.cleanMappedByteBuffer(Helper.java:366)
   at com.graphhopper.storage.MMapDataAccess.clean(MMapDataAccess.java:356)
   at com.graphhopper.storage.MMapDataAccess.close(MMapDataAccess.java:257)
   at com.graphhopper.storage.MMapDataAccess.close(MMapDataAccess.java:249)
   at com.graphhopper.storage.StorableProperties.close(StorableProperties.java:113)
   at com.graphhopper.storage.GraphHopperStorage.close(GraphHopperStorage.java:277)
   at com.graphhopper.GraphHopper.close(GraphHopper.java:1222)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
karussellcommented, Dec 19, 2016

Merged

1reaction
devemux86commented, Dec 19, 2016

I checked android_bug_914 branch on Android (latest & older) and on desktop and buffers clean seems working fine!

Read more comments on GitHub >

github_iconTop Results From Across the Web

GraphHopper crash - Locus Map - help desk
Locus crashes, immediately. I can add that already had one routing file in previuos configuration of GraphHopper add-on (in graphHopper folder, inside Lucus ......
Read more >
Deployed Graphhopper Instance Crashes Every Few Days
So I deployed graphhopper to a Vultr.com Unbuntu 20.04 x64 server and it operates perfectly well, but seems to crash every few days....
Read more >
[GraphHopper] Graphhopper for Android 2.3 crashing - Mailing Lists
I am trying to build an application to using graphhopper (android >>>> > library). >>>> > On android v 4.1 and greater, all...
Read more >
Easily Fix Freezes / Lags / Slow / Loading in Rhino 3D and ...
... performance of Rhinoceros 3D and also Grasshopper software if it lags while starting ... performance,error grasshopper, grasshopper crash.
Read more >
Graphhopper crash in nutiteq - Google Groups
hi i am trying to use graphhopper with nutiteq sdk for offline routing but the app crashes ... 05-22 08:25:30.507: E/AndroidRuntime(1041): at android.app....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found