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

Exception at Java_net_osmand_core_jni_OsmAndCoreJNI_PointI_1x_1get #15746

Closed
scaidermern opened this issue Nov 16, 2022 · 12 comments · Fixed by osmandapp/OsmAnd-core#450, osmandapp/OsmAnd-iOS#2442, #16283, osmandapp/OsmAnd-core#484 or #16529
Assignees
Labels
Milestone

Comments

@scaidermern
Copy link
Contributor

Version  OsmAnd+ 4.3.0
16.11.2022 3:27:23
Apk Version : 4.3.0 4300
Exception occured in thread Thread[Thread-30726,5,main] : 
java.lang.NullPointerException: null upcall object in OsmAnd::interface_MapTiledCollectionProvider::getPoint31 

(yes, this is the full exception)

Occured while hiding track points from a track downloaded via Wikivoyage.

@vshcherb
Copy link
Member

Let's see once we get more stack trace this one too narrow. Anyway exception will be combined likely into 1 task

@scaidermern
Copy link
Contributor Author

Got the same short exception another two times (still with OsmAnd+ 4.3.0). Let's wait for OsmAnd 4.3.1.

@gpesquero
Copy link
Contributor

Hello!! Reading the comments above, I don't know if this issue was already solved, but I'm getting this same exception with OsmAnd+ 4.3.4. This is the exception log...

Version OsmAnd+ 4.3.4
28.12.2022 11:39:58
Apk Version : 4.3.4 4304
Exception occured in thread Thread[Thread-220240,5,main] :
java.lang.NullPointerException: null upcall object in OsmAnd::interface_MapTiledCollectionProvider::getPoint31

I have already sent this log to the OsmAnd crash email. If you need further information regardinf this crash, please let me know, but it happens very frequently and in many different situations. It looks like it's not linked to any particular app functionality.

@vshcherb
Copy link
Member

backtrace:
  #00  pc 0x000000000043aee8  /data/app/~~zvyKOiqt2_YU4olQ2kJTqg==/net.osmand-FISPQlAItZ6msiqmEl8DCA==/split_config.armeabi_v7a.apk!libOsmAndCoreWithJNI.so (Java_net_osmand_core_jni_OsmAndCoreJNI_PointI_1x_1get)
  #01  pc 0x00000000000670f3  /data/app/~~zvyKOiqt2_YU4olQ2kJTqg==/net.osmand-FISPQlAItZ6msiqmEl8DCA==/oat/arm/base.odex (art_jni_trampoline+130)
  #02  pc 0x00000000020996c9  /memfd:jit-cache (net.osmand.plus.views.AnimateDraggingMapThread.animatingMapAnimator+1360)
  #03  pc 0x00000000000d39d5  /apex/com.android.art/lib/libart.so (art_quick_invoke_stub_internal+68)
  #04  pc 0x00000000004eb243  /apex/com.android.art/lib/libart.so (art_quick_invoke_stub+282)
  #05  pc 0x000000000012bd2d  /apex/com.android.art/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+148)
  #06  pc 0x000000000023f1ff  /apex/com.android.art/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+254)
  #07  pc 0x0000000000236ebf  /apex/com.android.art/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+738)
  #08  pc 0x00000000004de9c3  /apex/com.android.art/lib/libart.so (MterpInvokeDirect+514)
  #09  pc 0x00000000000ce514  /apex/com.android.art/lib/libart.so (mterp_op_invoke_direct+20)

@gpesquero
Copy link
Contributor

Thanks @vshcherb for re-opening this issue...

If I change the "Map Rendering Engine" settings to Version 1, I get no crashes. But if I switch it back to Version 2 (OpenGL), the rendering is slow and the app soon crashes, usually in navigation mode, but it also crashes just while browsing the map.

I'm going to try to get a working Android development environment, and see if I can debug the app and catch the exception.

@Zirochkabila
Copy link
Contributor

OsmAnd~ 4.4.0#14086mqta, released: 2023-01-11
There is no crash closure when hiding track points (V2 and V1 rendering)

@vshcherb vshcherb reopened this Jan 15, 2023
@vshcherb vshcherb changed the title Exception at OsmAnd::interface_MapTiledCollectionProvider::getPoint Exception at Java_net_osmand_core_jni_OsmAndCoreJNI_PointI_1x_1get Jan 17, 2023
@Andrewschenko Andrewschenko linked a pull request Jan 19, 2023 that will close this issue
@vshcherb vshcherb reopened this Feb 20, 2023
@vshcherb
Copy link
Member

Extra crashes probably related but also probably wrongly grouped into 1 bucket - 66% (Weather widget)

backtrace:
  #00  pc 0x000000000043b418  /data/app/~~82de-qcXyopw3j3Jt85DcA==/net.osmand-GXd2mj3_ycoejKcbbwICQg==/split_config.armeabi_v7a.apk!libOsmAndCoreWithJNI.so (Java_net_osmand_core_jni_OsmAndCoreJNI_PointI_1x_1get)
  #01  pc 0x00000000000b315d  /data/app/~~82de-qcXyopw3j3Jt85DcA==/net.osmand-GXd2mj3_ycoejKcbbwICQg==/oat/arm/base.odex (art_jni_trampoline+84)
  #02  pc 0x00000000001a8111  /data/app/~~82de-qcXyopw3j3Jt85DcA==/net.osmand-GXd2mj3_ycoejKcbbwICQg==/oat/arm/base.odex (net.osmand.core.jni.PointI.getX+48)
  #03  pc 0x00000000002cd2cf  /data/app/~~82de-qcXyopw3j3Jt85DcA==/net.osmand-GXd2mj3_ycoejKcbbwICQg==/oat/arm/base.odex (net.osmand.plus.plugins.weather.widgets.WeatherWidget.shouldObtainValue+158)
  #04  pc 0x00000000002cd7e7  /data/app/~~82de-qcXyopw3j3Jt85DcA==/net.osmand-GXd2mj3_ycoejKcbbwICQg==/oat/arm/base.odex (net.osmand.plus.plugins.weather.widgets.WeatherWidget.updateInfo+158)
  #05  pc 0x0000000000264f6b  /data/app/~~82de-qcXyopw3j3Jt85DcA==/net.osmand-GXd2mj3_ycoejKcbbwICQg==/oat/arm/base.odex (net.osmand.plus.views.mapwidgets.MapWidgetRegistry.updateWidgetsInfo+338)
  #06  pc 0x00000000002e3ba1  /data/app/~~82de-qcXyopw3j3Jt85DcA==/net.osmand-GXd2mj3_ycoejKcbbwICQg==/oat/arm/base.odex (net.osmand.plus.views.layers.MapInfoLayer.onDraw+144)
  #07  pc 0x00000000002b0f9f  /data/app/~~82de-qcXyopw3j3Jt85DcA==/net.osmand-GXd2mj3_ycoejKcbbwICQg==/oat/arm/base.odex (net.osmand.plus.views.OsmandMapTileView.drawOverMap+910)
  #08  pc 0x000000000025972f  /data/app/~~82de-qcXyopw3j3Jt85DcA==/net.osmand-GXd2mj3_ycoejKcbbwICQg==/oat/arm/base.odex (net.osmand.plus.views.OsmAndMapLayersView.onDraw+222)
  #09  pc 0x00000000007693c5  /system/framework/arm/boot-framework.oat (android.view.View.draw+124)
  #00  pc 0x000000000043b418  /data/app/~~82de-qcXyopw3j3Jt85DcA==/net.osmand-GXd2mj3_ycoejKcbbwICQg==/split_config.armeabi_v7a.apk!libOsmAndCoreWithJNI.so (Java_net_osmand_core_jni_OsmAndCoreJNI_PointI_1x_1get)
  #01  pc 0x00000000000b315d  /data/app/~~82de-qcXyopw3j3Jt85DcA==/net.osmand-GXd2mj3_ycoejKcbbwICQg==/oat/arm/base.odex (art_jni_trampoline+84)
  #02  pc 0x00000000001a8111  /data/app/~~82de-qcXyopw3j3Jt85DcA==/net.osmand-GXd2mj3_ycoejKcbbwICQg==/oat/arm/base.odex (net.osmand.core.jni.PointI.getX+48)
  #03  pc 0x00000000002e5dd3  /data/app/~~82de-qcXyopw3j3Jt85DcA==/net.osmand-GXd2mj3_ycoejKcbbwICQg==/oat/arm/base.odex (net.osmand.plus.views.layers.MapMarkersLayer.drawLineAndText+2554)
  #04  pc 0x00000000002e8787  /data/app/~~82de-qcXyopw3j3Jt85DcA==/net.osmand-GXd2mj3_ycoejKcbbwICQg==/oat/arm/base.odex (net.osmand.plus.views.layers.MapMarkersLayer.onDraw+1398)
  #05  pc 0x00000000002b0f9f  /data/app/~~82de-qcXyopw3j3Jt85DcA==/net.osmand-GXd2mj3_ycoejKcbbwICQg==/oat/arm/base.odex (net.osmand.plus.views.OsmandMapTileView.drawOverMap+910)
  #06  pc 0x000000000025972f  /data/app/~~82de-qcXyopw3j3Jt85DcA==/net.osmand-GXd2mj3_ycoejKcbbwICQg==/oat/arm/base.odex (net.osmand.plus.views.OsmAndMapLayersView.onDraw+222)

@vshcherb
Copy link
Member

e70a307c-7515-4fbc-9108-8e26c3f743c8.logcat.zip

eb1f29f1-feb0-446e-9ceb-df330fde6c56.mp4

@vshcherb vshcherb modified the milestones: 4.3-backend, 4.9-backend, 4.9-map Nov 21, 2024
@vshcherb vshcherb added the ! label Nov 27, 2024
@vshcherb vshcherb assigned Chumva and unassigned Andrewschenko Dec 3, 2024
@vshcherb vshcherb modified the milestones: 4.9-map, 4.9-android Dec 3, 2024
@vshcherb
Copy link
Member

vshcherb commented Dec 3, 2024

We decided to disable v2 rendering engine and leave only v1 for 32bit.

Android: System.getProperty("os.arch").contains("64");

@scaidermern
Copy link
Contributor Author

Just for reference, the exception in the original post occurred on a device with a 64 bit chip.

@Chumva Chumva linked a pull request Dec 5, 2024 that will close this issue
Chumva added a commit that referenced this issue Dec 5, 2024
vshcherb pushed a commit that referenced this issue Dec 5, 2024
@Chumva Chumva closed this as completed Dec 5, 2024
@vshcherb vshcherb removed the ! label Dec 6, 2024
@Zirochkabila
Copy link
Contributor

OsmAnd Nightly 5.0.0#3914m, released: 2024-12-09

On the Nexus 5 smartphone, the default setting is V2

The Nexus 5 smartphone uses a 32-bit architecture (ARMv7, ARM32). Here are the details:

  • Processor: Qualcomm Snapdragon 800 (MSM8974).
  • Architecture: ARM Cortex-A15 (32-bit).
  • Graphics: Adreno 330.

What does this mean?

  • Nexus 5 supports only 32-bit applications, and 64-bit applications will not work on it.
Screenshot 2024-12-09 at 17 04 10

@Zirochkabila Zirochkabila reopened this Dec 9, 2024
@vshcherb
Copy link
Member

@Zirochkabila this is screenshot from emulator which is not clear if it's running x86 at all or arm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment