Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

IllegalArgumentException occured when zoom

More
9 years 8 months ago #10854 by philipp
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.
Code:
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.
More
9 years 8 months ago #10855 by Davide
Hi,
today we have published a new stable version of the library with some fixes regarding the ViewPager.
Have you checked it? Can you reproduce the issue?
www.radaeepdf.com/download/download-andr...ile/60-radaeepdf-3-7
More
9 years 8 months ago #10863 by philipp
Hi Davide,
thanks for the fast reply.

Can you give a short overview about the changlog entry "- FIX a ViewPager issue " of the latest lib? Does it relate to the described bug?
More
9 years 8 months ago #10866 by Davide
Hi,
this thread started 7 months ago, so till now there have been a lot of changes and improvements to the ViewPager.
The latest fix was related to a strange behaviour when changing the targetSdkVersion, now we have fixed it and other minor bugs.
I suggest you to check it and let us know if it solves your problem..
Time to create page: 0.357 seconds
Powered by Kunena Forum