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

JNA uniffi interop issue #1411

Open
IndigoCurnick opened this issue Nov 23, 2022 · 2 comments
Open

JNA uniffi interop issue #1411

IndigoCurnick opened this issue Nov 23, 2022 · 2 comments

Comments

@IndigoCurnick
Copy link

IndigoCurnick commented Nov 23, 2022

Hi,
We are using this crate with JNA for Kotlin Android development.
We are experiencing an issue with Android 11 specifically.

The full stack trace of the crash is here

      #00 pc 000000000004e0f4  /apex/com.android.runtime/lib64/bionic/libc.so (abort+180) (BuildId: c78cdff5b820a550771130d6bde95081)
      #01 pc 00000000000d173c  /data/app/~~d-sjenxAAnd_2KAT4Ytz6w==/com.redacted.adma-7hLm46_MRtKgFICwX_gKog==/lib/arm64/libuniffi_android_sdk.so (panic_abort::__rust_start_panic::abort::h8efa18cd85cfb191+4)
      #02 pc 00000000000d1648  /data/app/~~d-sjenxAAnd_2KAT4Ytz6w==/com.redacted.adma-7hLm46_MRtKgFICwX_gKog==/lib/arm64/libuniffi_android_sdk.so (__rust_start_panic+8)
      #03 pc 000000000011da74  /data/app/~~d-sjenxAAnd_2KAT4Ytz6w==/com.redacted.adma-7hLm46_MRtKgFICwX_gKog==/lib/arm64/libuniffi_android_sdk.so (rust_panic+16)
      #04 pc 000000000011f324  /data/app/~~d-sjenxAAnd_2KAT4Ytz6w==/com.redacted.adma-7hLm46_MRtKgFICwX_gKog==/lib/arm64/libuniffi_android_sdk.so (std::panicking::rust_panic_with_hook::hec212630c2edd6b9+968)
      #05 pc 000000000011ef3c  /data/app/~~d-sjenxAAnd_2KAT4Ytz6w==/com.redacted.adma-7hLm46_MRtKgFICwX_gKog==/lib/arm64/libuniffi_android_sdk.so (std::panicking::begin_panic_handler::_$u7b$$u7b$closure$u7d$$u7d$::hc0189a584a9843c8+124)
      #06 pc 000000000011eeb8  /data/app/~~d-sjenxAAnd_2KAT4Ytz6w==/com.redacted.adma-7hLm46_MRtKgFICwX_gKog==/lib/arm64/libuniffi_android_sdk.so (std::sys_common::backtrace::__rust_end_short_backtrace::h516f1501e2e042f1+4)
      #07 pc 000000000011ee84  /data/app/~~d-sjenxAAnd_2KAT4Ytz6w==/com.redacted.adma-7hLm46_MRtKgFICwX_gKog==/lib/arm64/libuniffi_android_sdk.so (rust_begin_unwind+28)
      #08 pc 00000000000b04bc  /data/app/~~d-sjenxAAnd_2KAT4Ytz6w==/com.redacted.adma-7hLm46_MRtKgFICwX_gKog==/lib/arm64/libuniffi_android_sdk.so (core::panicking::panic_fmt::h6de09e9943ebdcbb+44)
      #09 pc 00000000000b4860  /data/app/~~d-sjenxAAnd_2KAT4Ytz6w==/com.redacted.adma-7hLm46_MRtKgFICwX_gKog==/lib/arm64/libuniffi_android_sdk.so (core::result::unwrap_failed::h1f91138f820d593c+84)
      #10 pc 0000000000122334  /data/app/~~d-sjenxAAnd_2KAT4Ytz6w==/com.redacted.adma-7hLm46_MRtKgFICwX_gKog==/lib/arm64/libuniffi_android_sdk.so (core::result::Result$LT$T$C$E$GT$::expect::h3d864df2fced7dad+12)
      #11 pc 0000000000122378  /data/app/~~d-sjenxAAnd_2KAT4Ytz6w==/com.redacted.adma-7hLm46_MRtKgFICwX_gKog==/lib/arm64/libuniffi_android_sdk.so (uniffi::ffi::rustbuffer::RustBuffer::destroy_into_vec::hc78b53aeb6fd3f62+60)
      #12 pc 000000000009cbe4  /data/app/~~d-sjenxAAnd_2KAT4Ytz6w==/com.redacted.adma-7hLm46_MRtKgFICwX_gKog==/lib/arm64/libuniffi_android_sdk.so (_$LT$T$u20$as$u20$uniffi..FfiConverter$GT$::try_lift::he9e36cfd696215bc+12)
      #13 pc 00000000000aacc4  /data/app/~~d-sjenxAAnd_2KAT4Ytz6w==/com.redacted.adma-7hLm46_MRtKgFICwX_gKog==/lib/arm64/libuniffi_android_sdk.so (android_sdk_f917_new_gnss_measurements_reading+212)
      #14 pc 000000000000fe70  /data/app/~~d-sjenxAAnd_2KAT4Ytz6w==/com.redacted.adma-7hLm46_MRtKgFICwX_gKog==/lib/arm64/libjnidispatch.so (ffi_call_SYSV+96)
      #15 pc 000000000000f660  /data/app/~~d-sjenxAAnd_2KAT4Ytz6w==/com.redacted.adma-7hLm46_MRtKgFICwX_gKog==/lib/arm64/libjnidispatch.so (ffi_call+292)
      #16 pc 0000000000005b80  /data/app/~~d-sjenxAAnd_2KAT4Ytz6w==/com.redacted.adma-7hLm46_MRtKgFICwX_gKog==/lib/arm64/libjnidispatch.so
      #17 pc 000000000013ced4  /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: d0f321775158ed00df284edfabf672b6)
      #18 pc 000000000226e504  /memfd:jit-cache (deleted) (offset 0x2000000) (com.sun.jna.Native.invokeStructure+148)
      #19 pc 0000000002251584  /memfd:jit-cache (deleted) (offset 0x2000000) (com.sun.jna.Function.invoke+2244)
      #20 pc 0000000002241ab8  /memfd:jit-cache (deleted) (offset 0x2000000) (com.sun.jna.Function.invoke+1208)
      #21 pc 0000000002242cec  /memfd:jit-cache (deleted) (offset 0x2000000) (com.sun.jna.Library$Handler.invoke+1324)
      #22 pc 0000000002024e6c  /memfd:jit-cache (deleted) (offset 0x2000000) (java.lang.reflect.Proxy.invoke+92)
      #23 pc 00000000001337e8  /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: d0f321775158ed00df284edfabf672b6)
      #24 pc 00000000001a9804  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+228) (BuildId: d0f321775158ed00df284edfabf672b6)
      #25 pc 000000000055bed8  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithJValues<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, jvalue const*)+440) (BuildId: d0f321775158ed00df284edfabf672b6)
      #26 pc 0000000000433060  /apex/com.android.art/lib64/libart.so (art::JNI<true>::CallStaticObjectMethodA(_JNIEnv*, _jclass*, _jmethodID*, jvalue const*)+640) (BuildId: d0f321775158ed00df284edfabf672b6)
      #27 pc 000000000037f5b0  /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::CheckJNI::CallMethodA(char const*, _JNIEnv*, _jobject*, _jclass*, _jmethodID*, jvalue const*, art::Primitive::Type, art::InvokeType)+1384) (BuildId: d0f321775158ed00df284edfabf672b6)
      #28 pc 0000000000635e20  /apex/com.android.art/lib64/libart.so (art::InvokeProxyInvocationHandler(art::ScopedObjectAccessAlreadyRunnable&, char const*, _jobject*, _jobject*, std::__1::vector<jvalue, std::__1::allocator<jvalue> >&)+656) (BuildId: d0f321775158ed00df284edfabf672b6)
      #29 pc 00000000006751d4  /apex/com.android.art/lib64/libart.so (artQuickProxyInvokeHandler+1204) (BuildId: d0f321775158ed00df284edfabf672b6)
      #30 pc 000000000013ca5c  /apex/com.android.art/lib64/libart.so (art_quick_proxy_invoke_handler+76) (BuildId: d0f321775158ed00df284edfabf672b6)
      #31 pc 0000000000133564  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: d0f321775158ed00df284edfabf672b6)
      #32 pc 00000000001a97e8  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200) (BuildId: d0f321775158ed00df284edfabf672b6)
      #33 pc 000000000031c040  /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+376) (BuildId: d0f321775158ed00df284edfabf672b6)
      #34 pc 0000000000313288  /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<true, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+696) (BuildId: d0f321775158ed00df284edfabf672b6)
      #35 pc 000000000068a55c  /apex/com.android.art/lib64/libart.so (MterpInvokeInterfaceRange+652) (BuildId: d0f321775158ed00df284edfabf672b6)
      #36 pc 000000000012dd14  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_interface_range+20) (BuildId: d0f321775158ed00df284edfabf672b6)
      #37 pc 000000000024c218  [anon:dalvik-classes27.dex extracted in memory from /data/app/~~d-sjenxAAnd_2KAT4Ytz6w==/com.redacted.adma-7hLm46_MRtKgFICwX_gKog==/base.apk!classes27.dex] (naurt.d0$a.onGnssMeasurementsReceived+1808)
      #38 pc 0000000000685960  /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+1520) (BuildId: d0f321775158ed00df284edfabf672b6)
      #39 pc 000000000012d814  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: d0f321775158ed00df284edfabf672b6)
      #40 pc 000000000020b298  /system/framework/framework.jar (offset 0x92b000) (android.location.LocationManager$GnssMeasurementsListenerManager$GnssMeasurementsListener.lambda$onGnssMeasurementsReceived$0)
      #41 pc 00000000006888c0  /apex/com.android.art/lib64/libart.so (MterpInvokeStatic+1224) (BuildId: d0f321775158ed00df284edfabf672b6)
      #42 pc 000000000012d994  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: d0f321775158ed00df284edfabf672b6)
      #43 pc 00000000001f72a0  /system/framework/framework.jar (offset 0x92b000) (android.location.-$$Lambda$LocationManager$GnssMeasurementsListenerManager$GnssMeasurementsListener$KpnZ7QK-0TdYNaRuvj6jEAwntwA.accept+8)
      #44 pc 00000000006873a4  /apex/com.android.art/lib64/libart.so (MterpInvokeInterface+1812) (BuildId: d0f321775158ed00df284edfabf672b6)
      #45 pc 000000000012da14  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: d0f321775158ed00df284edfabf672b6)
      #46 pc 00000000001f7662  /system/framework/framework.jar (offset 0x92b000) (android.location.AbstractListenerManager$Registration.accept+18)
      #47 pc 0000000000687fe8  /apex/com.android.art/lib64/libart.so (MterpInvokeDirect+1248) (BuildId: d0f321775158ed00df284edfabf672b6)
      #48 pc 000000000012d914  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_direct+20) (BuildId: d0f321775158ed00df284edfabf672b6)
      #49 pc 00000000001f76f8  /system/framework/framework.jar (offset 0x92b000) (android.location.AbstractListenerManager$Registration.lambda$XpiThbVaDDpOnFWIkrt38Bf4yx0)
      #50 pc 00000000006888c0  /apex/com.android.art/lib64/libart.so (MterpInvokeStatic+1224) (BuildId: d0f321775158ed00df284edfabf672b6)
      #51 pc 000000000012d994  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: d0f321775158ed00df284edfabf672b6)
      #52 pc 00000000001f7120  /system/framework/framework.jar (offset 0x92b000) (android.location.-$$Lambda$AbstractListenerManager$Registration$XpiThbVaDDpOnFWIkrt38Bf4yx0.accept+8)
      #53 pc 00000000006873a4  /apex/com.android.art/lib64/libart.so (MterpInvokeInterface+1812) (BuildId: d0f321775158ed00df284edfabf672b6)
      #54 pc 000000000012da14  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: d0f321775158ed00df284edfabf672b6)
      #55 pc 00000000004d121a  /system/framework/framework.jar (offset 0x125d000) (com.android.internal.util.function.pooled.PooledLambdaImpl.doInvoke+2462)
      #56 pc 000000000068b2e4  /apex/com.android.art/lib64/libart.so (MterpInvokeDirectRange+852) (BuildId: d0f321775158ed00df284edfabf672b6)
      #57 pc 000000000012dc14  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_direct_range+20) (BuildId: d0f321775158ed00df284edfabf672b6)
      #58 pc 00000000004d1510  /system/framework/framework.jar (offset 0x125d000) (com.android.internal.util.function.pooled.PooledLambdaImpl.invoke+396)
      #59 pc 00000000006891e4  /apex/com.android.art/lib64/libart.so (MterpInvokeVirtualRange+1124) (BuildId: d0f321775158ed00df284edfabf672b6)
      #60 pc 000000000012db14  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual_range+20) (BuildId: d0f321775158ed00df284edfabf672b6)
      #61 pc 00000000004cffb0  /system/framework/framework.jar (offset 0x125d000) (com.android.internal.util.function.pooled.OmniFunction.run+24)
      #62 pc 00000000006873a4  /apex/com.android.art/lib64/libart.so (MterpInvokeInterface+1812) (BuildId: d0f321775158ed00df284edfabf672b6)
      #63 pc 000000000012da14  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: d0f321775158ed00df284edfabf672b6)
      #64 pc 00000000001f75b8  /system/framework/framework.jar (offset 0x92b000) (android.location.-$$Lambda$_14QHG018Z6p13d3hzJuGTWnNeo.execute)
      #65 pc 00000000006873a4  /apex/com.android.art/lib64/libart.so (MterpInvokeInterface+1812) (BuildId: d0f321775158ed00df284edfabf672b6)
      #66 pc 000000000012da14  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: d0f321775158ed00df284edfabf672b6)
      #67 pc 00000000001f76e0  /system/framework/framework.jar (offset 0x92b000) (android.location.AbstractListenerManager$Registration.execute+24)
      #68 pc 0000000000687fe8  /apex/com.android.art/lib64/libart.so (MterpInvokeDirect+1248) (BuildId: d0f321775158ed00df284edfabf672b6)
      #69 pc 000000000012d914  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_direct+20) (BuildId: d0f321775158ed00df284edfabf672b6)
      #70 pc 00000000001f76b0  /system/framework/framework.jar (offset 0x92b000) (android.location.AbstractListenerManager$Registration.access$200)
      #71 pc 00000000006888c0  /apex/com.android.art/lib64/libart.so (MterpInvokeStatic+1224) (BuildId: d0f321775158ed00df284edfabf672b6)
      #72 pc 000000000012d994  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: d0f321775158ed00df284edfabf672b6)
      #73 pc 00000000001f7a2c  /system/framework/framework.jar (offset 0x92b000) (android.location.AbstractListenerManager.execute+44)
      #74 pc 0000000000685960  /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+1520) (BuildId: d0f321775158ed00df284edfabf672b6)
      #75 pc 000000000012d814  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: d0f321775158ed00df284edfabf672b6)
      #76 pc 000000000020b2d6  /system/framework/framework.jar (offset 0x92b000) (android.location.LocationManager$GnssMeasurementsListenerManager$GnssMeasurementsListener.onGnssMeasurementsReceived+14)
      #77 pc 0000000000685960  /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+1520) (BuildId: d0f321775158ed00df284edfabf672b6)
      #78 pc 000000000012d814  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: d0f321775158ed00df284edfabf672b6)
      #79 pc 0000000000204f70  /system/framework/framework.jar (offset 0x92b000) (android.location.IGnssMeasurementsListener$Stub.onTransact+104)
      #80 pc 0000000000685960  /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+1520) (BuildId: d0f321775158ed00df284edfabf672b6)
      #81 pc 000000000012d814  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: d0f321775158ed00df284edfabf672b6)
      #82 pc 00000000003624fe  /system/framework/framework.jar (offset 0x92b000) (android.os.Binder.execTransactInternal+206)
      #83 pc 000000000068b2e4  /apex/com.android.art/lib64/libart.so (MterpInvokeDirectRange+852) (BuildId: d0f321775158ed00df284edfabf672b6)
      #84 pc 000000000012dc14  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_direct_range+20) (BuildId: d0f321775158ed00df284edfabf672b6)
      #85 pc 00000000003623f8  /system/framework/framework.jar (offset 0x92b000) (android.os.Binder.execTransact+32)
      #86 pc 00000000003094d0  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.7618685802058321727)+264) (BuildId: d0f321775158ed00df284edfabf672b6)
      #87 pc 00000000006740c0  /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+776) (BuildId: d0f321775158ed00df284edfabf672b6)
      #88 pc 000000000013cff8  /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: d0f321775158ed00df284edfabf672b6)
      #89 pc 0000000000133564  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: d0f321775158ed00df284edfabf672b6)
      #90 pc 00000000001a97e8  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200) (BuildId: d0f321775158ed00df284edfabf672b6)
      #91 pc 000000000055c6f4  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithVarArgs<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, std::__va_list)+468) (BuildId: d0f321775158ed00df284edfabf672b6)
      #92 pc 000000000055c894  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+92) (BuildId: d0f321775158ed00df284edfabf672b6)
      #93 pc 000000000040e800  /apex/com.android.art/lib64/libart.so (art::JNI<true>::CallBooleanMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+656) (BuildId: d0f321775158ed00df284edfabf672b6)
      #94 pc 000000000037db48  /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::CheckJNI::CallMethodV(char const*, _JNIEnv*, _jobject*, _jclass*, _jmethodID*, std::__va_list, art::Primitive::Type, art::InvokeType)+1664) (BuildId: d0f321775158ed00df284edfabf672b6)
      #95 pc 000000000036b0e8  /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::CheckJNI::CallBooleanMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+72) (BuildId: d0f321775158ed00df284edfabf672b6)
      #96 pc 000000000009b73c  /system/lib64/libandroid_runtime.so (_JNIEnv::CallBooleanMethod(_jobject*, _jmethodID*, ...)+124) (BuildId: 30f3430e4d2a28be49d3c60d623f0a29)
      #97 pc 000000000012396c  /system/lib64/libandroid_runtime.so (JavaBBinder::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+156) (BuildId: 30f3430e4d2a28be49d3c60d623f0a29)
      #98 pc 0000000000048860  /system/lib64/libbinder.so (android::BBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+232) (BuildId: 8cdbd23e11ca5b97a753e98b476d7957)
      #99 pc 00000000000513a0  /system/lib64/libbinder.so (android::IPCThreadState::executeCommand(int)+1032) (BuildId: 8cdbd23e11ca5b97a753e98b476d7957)
      #100 pc 0000000000050ee4  /system/lib64/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+156) (BuildId: 8cdbd23e11ca5b97a753e98b476d7957)
      #101 pc 0000000000051724  /system/lib64/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+60) (BuildId: 8cdbd23e11ca5b97a753e98b476d7957)
      #102 pc 0000000000077b60  /system/lib64/libbinder.so (android::PoolThread::threadLoop()+24) (BuildId: 8cdbd23e11ca5b97a753e98b476d7957)
      #103 pc 000000000001567c  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+260) (BuildId: b81fad2b6b7b7f85c6217d2cb80c9e61)
      #104 pc 00000000000a0d3c  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+140) (BuildId: 30f3430e4d2a28be49d3c60d623f0a29)
      #105 pc 0000000000014f14  /system/lib64/libutils.so (thread_data_t::trampoline(thread_data_t const*)+412) (BuildId: b81fad2b6b7b7f85c6217d2cb80c9e61)
      #106 pc 00000000000b0758  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64) (BuildId: c78cdff5b820a550771130d6bde95081)
      #107 pc 0000000000050150  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: c78cdff5b820a550771130d6bde95081)

Line 13 is an issue in the following function

fun `newGnssMeasurementsReading`(`a`: List<UByte>, `b`: String, `c`: List<String>, `d`: List<Double>, `e`: List<Double>, `f`: List<String>): List<UByte> {
    return FfiConverterSequenceUByte.lift(
    rustCall() { _status ->
    _UniFFILib.INSTANCE.android_sdk_f917_new_gnss_measurements_reading(FfiConverterSequenceUByte.lower(`a`), FfiConverterString.lower(`b`), FfiConverterSequenceString.lower(`c`), FfiConverterSequenceDouble.lower(`d`), FfiConverterSequenceDouble.lower(`e`), FfiConverterSequenceString.lower(`f`), _status)
})
}

Line 11 is referring to the fllowing function in this repo destroy_into_vec

After some searching, I think this is related to this bug report inside the JNA itself. There's also a potential solution posted in the comments of that bug report.

┆Issue is synchronized with this Jira Task
┆Issue Number: UNIFFI-211

@mhammond
Copy link
Member

Thanks for the report and the analysis. Are you able to make a repro inside one of our fixtures?

@IndigoCurnick
Copy link
Author

Hi @mhammond
I'm not sure if we can make something helpful here. The problem is that we haven't been able to reproduce this error in our development environments, only our client has been able to provide this stack trace

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

2 participants