gpt4 book ai didi

android - Galaxy nexus 4.0.2 在 WebView.onTouchEvent 上获得异常

转载 作者:行者123 更新时间:2023-11-29 00:39:12 25 4
gpt4 key购买 nike

我的 ACRA 粉碎报告告诉我 Galaxy nexus 4.0.2 在我的应用程序中至少有 4 次异常显示如下所示。我怀疑用户在横向 WebView 上做了一些多点触控操作(从 ACRA 的报告中得知),但我不知道为什么会导致这种情况。

java.lang.IllegalArgumentException: pointerIndex out of range   
at android.view.MotionEvent.nativeGetPointerId(Native Method)
at android.view.MotionEvent.getPointerId(MotionEvent.java:1927)
at android.view.ScaleGestureDetector.onTouchEvent(ScaleGestureDetector.java:224)
at android.webkit.WebView.handleMultiTouchInWebView(WebView.java:6530)
at android.webkit.WebView$TouchEventQueue.handleQueuedMotionEvent(WebView.java:8088)
at android.webkit.WebView$TouchEventQueue.enqueueTouchEvent(WebView.java:7986)
at android.webkit.WebView.onTouchEvent(WebView.java:5963)
at android.view.View.dispatchTouchEvent(View.java:5486)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1953)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1714)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1959)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1728)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1959)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1728)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1959)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1728)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1959)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1728)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1959)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1728)
at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1892)
at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1371)
at android.app.Activity.dispatchTouchEvent(Activity.java:2364)
at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1840)
at android.view.View.dispatchPointerEvent(View.java:5662)
at android.view.ViewRootImpl.deliverPointerEvent(ViewRootImpl.java:2863)
at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2442)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4340)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)

我无法从 crush 报告中看到与我的代码相关的任何内容。我在我的应用中的很多地方都使用了 WebView,但不确定哪里出了问题。

我相信用户对此并不满意,他/她可能认为我的应用设计不佳。有什么我可以做的吗?有人有这个问题吗?任何信息将不胜感激。

最佳答案

Android 的 ITS 报告了同样的问题。 WebView 相关的修复将在未来的版本中推出。截至目前,我们没有解决方法。

WebView related issues are fixed. Don't know about MapView. Also note that this problem may occur if an application has a touch listener that passes some but not all events down to the ScaleGestureDetector. It's important that ScaleGestureDetector sees the entire stream of events.

Issue 18990 - android - unexpected exception: java.lang.IllegalArgumentException: pointerIndex out of range - Android - An Open Handset Alliance Project - Google Project Hosting

关于android - Galaxy nexus 4.0.2 在 WebView.onTouchEvent 上获得异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10570861/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com