Are there any news on this topic? We're getting the same crash when the system destroys an activity that displays PDFViews. The Activity uses a ViewPager with a corresponding adapter to create views that are holding the PDFView instances. When the system calls onDestroy of the activity, we are doing something like ViewPager.setAdapter(null) for memory purposes. This causes the PDFView to receive an onTouchEvent that causes the crash.
Fatal Exception: java.lang.RuntimeException: Unable to destroy activity {ch.nzz.epaper/de.tdsoftware.applisher.reader.pdf.PDFReaderActivity}: java.lang.IllegalArgumentException: pointerIndex out of range
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3813)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3831)
at android.app.ActivityThread.access$1500(ActivityThread.java:175)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1361)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5602)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
at dalvik.system.NativeStart.main(NativeStart.java)
Caused by java.lang.IllegalArgumentException: pointerIndex out of range
at android.view.MotionEvent.nativeGetAxisValue(MotionEvent.java)
at android.view.MotionEvent.getX(MotionEvent.java:2189)
at com.radaee.view.PDFView.motionZoom(PDFView.java:592)
at com.radaee.view.PDFView.vTouchEvent(PDFView.java:722)
Are they any hints on this?
Thanks.