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

Crash in getHistoricalRawPointerCoords: Invalid historical index for MotionEvent #359

Open
abogarsukov-braingames opened this issue Apr 16, 2024 · 6 comments
Labels
bug Something isn't working stale This isue has been inactive

Comments

@abogarsukov-braingames
Copy link

MAX Plugin Version

6.4.3

Unity Version

2021.3.28

Device/Platform Info

Android

Current Behavior

We observe significant amount of crashes on the app version with latest AppLovin plugin.

Expected Behavior

The app doesn't crash.

How to Reproduce

Stack trace from the google console, there are many variations like this:

getHistoricalRawPointerCoords: Invalid historical index 18446744073709551615 for MotionEvent { action=MOVE, id[0]=0, x[0]=789, y[0]=2509, classification=AMBIGUOUS_GESTURE, historySize=5, eventTime=766161184076265, downTime=766161163331000, deviceId=4, source=TOUCHSCREEN, displayId=0, eventId=1062951218}

`*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 8093 >>> com.wordfarm.scapes <<<

backtrace:
#00 pc 0x000000000005ee74 /apex/com.android.runtime/lib64/bionic/libc.so (abort+164)
#1 pc 0x0000000000771c60 /apex/com.android.art/lib64/libart.so (art::Runtime::Abort(char const*)+904)
#2 pc 0x00000000000357d0 /apex/com.android.art/lib64/libbase.so (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_0::__invoke(char const*)+80)
#3 pc 0x0000000000063be8 /system/lib64/libbinder.so (android::base::LogMessage::~LogMessage()+376)
#4 pc 0x000000000008e958 /system/lib64/libinput.so (android::MotionEvent::getHistoricalRawPointerCoords(unsigned long, unsigned long) const+584)
#5 pc 0x000000000008e68c /system/lib64/libinput.so (android::MotionEvent::getAxisValue(int, unsigned long) const+44)
#6 pc 0x00000000001fe854 /system/framework/arm64/boot-framework.oat (art_jni_trampoline+100)
#7 pc 0x00000000007b2a48 /system/framework/arm64/boot-framework.oat (android.view.MotionEvent.getX+56)
#8 pc 0x00000000005bbd90 /apex/com.android.art/lib64/libart.so (nterp_helper+5648)
#9 pc 0x00000000001c137e /system/framework/framework.jar (android.view.MotionEvent.toString+170)
#10 pc 0x0000000002280070 /memfd:jit-cache (com.safedk.android.analytics.brandsafety.DetectTouchUtils.b+416)
#11 pc 0x00000000005ba818 /apex/com.android.art/lib64/libart.so (nterp_helper+152)
#12 pc 0x0000000000f017ec /data/app/~~qoNCHj0zRctfwNZq4yzcWg==/com.wordfarm.scapes-Etx0VRMuyEycrExGPUPxMQ==/oat/arm64/base.vdex (com.safedk.android.analytics.brandsafety.DetectTouchUtils.a)
#13 pc 0x00000000005ba7b4 /apex/com.android.art/lib64/libart.so (nterp_helper+52)
#14 pc 0x0000000000f01510 /data/app/~~qoNCHj0zRctfwNZq4yzcWg==/com.wordfarm.scapes-Etx0VRMuyEycrExGPUPxMQ==/oat/arm64/base.vdex (com.safedk.android.analytics.brandsafety.DetectTouchUtils$1.run+8)
#15 pc 0x000000000029917c /system/framework/arm64/boot.oat (java.util.concurrent.ThreadPoolExecutor.runWorker+716)
#16 pc 0x0000000000296678 /system/framework/arm64/boot.oat (java.util.concurrent.ThreadPoolExecutor$Worker.run+56)
#17 pc 0x0000000000156c20 /system/framework/arm64/boot.oat (java.lang.Thread.run+64)
#18 pc 0x000000000033eba4 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+612)
#19 pc 0x000000000023a9ac /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+144)
#20 pc 0x000000000053b96c /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1600)
#21 pc 0x000000000053b31c /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallbackWithUffdGc(void*)+8)
#22 pc 0x00000000000ca7cc /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204)
#23 pc 0x00000000000607b0 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)`

Additional Info

No response

@abogarsukov-braingames abogarsukov-braingames added the bug Something isn't working label Apr 16, 2024
@haroel
Copy link

haroel commented Apr 18, 2024

We have also encountered a similar issue.

@VoxelBoy
Copy link

Same, looking forward to a fix.

@lishun001
Copy link

I have the same crash

@SergeyYurkevich
Copy link

same in react native

@abogarsukov-braingames
Copy link
Author

This should have been fixed in latest Ad Review version. So either rebuild (if Ad Review is enabled, latest version is picked on build) or disable Ad Review to fix the issue.

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale This isue has been inactive label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale This isue has been inactive
Projects
None yet
Development

No branches or pull requests

5 participants