RadaeePDF.com :: Topic: crash when resuming the app (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Here you should submit your bug reports with logcat.

TOPIC: crash when resuming the app

crash when resuming the app 4 years 8 months ago #739

the app using the library crashes when resuming.
here's the stack trace

11-13 18:36:04.771: E/AndroidRuntime(12359): java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@422ddcc8
11-13 18:36:04.771: E/AndroidRuntime(12359): at android.graphics.Canvas.throwIfRecycled(Canvas.java:1038)
11-13 18:36:04.771: E/AndroidRuntime(12359): at android.graphics.Canvas.drawBitmap(Canvas.java:1078)
11-13 18:36:04.771: E/AndroidRuntime(12359): at com.radaee.pdfex.PDFViewSingle.viewDraw(PDFViewSingle.java:630)
11-13 18:36:04.771: E/AndroidRuntime(12359): at com.radaee.reader.PDFReader.onDraw(PDFReader.java:129)
11-13 18:36:04.771: E/AndroidRuntime(12359): at android.view.View.draw(View.java:11071)
11-13 18:36:04.771: E/AndroidRuntime(12359): at android.view.ViewGroup.drawChild(ViewGroup.java:2895)
11-13 18:36:04.771: E/AndroidRuntime(12359): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2497)
11-13 18:36:04.771: E/AndroidRuntime(12359): at android.view.ViewGroup.drawChild(ViewGroup.java:2893)
11-13 18:36:04.771: E/AndroidRuntime(12359): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2497)
11-13 18:36:04.771: E/AndroidRuntime(12359): at android.view.ViewGroup.drawChild(ViewGroup.java:2893)
11-13 18:36:04.771: E/AndroidRuntime(12359): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2497)
11-13 18:36:04.771: E/AndroidRuntime(12359): at android.view.ViewGroup.drawChild(ViewGroup.java:2893)
11-13 18:36:04.771: E/AndroidRuntime(12359): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2497)
11-13 18:36:04.771: E/AndroidRuntime(12359): at android.view.ViewGroup.drawChild(ViewGroup.java:2893)
11-13 18:36:04.771: E/AndroidRuntime(12359): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2497)
11-13 18:36:04.771: E/AndroidRuntime(12359): at android.view.View.draw(View.java:11074)
11-13 18:36:04.771: E/AndroidRuntime(12359): at android.widget.FrameLayout.draw(FrameLayout.java:450)
11-13 18:36:04.771: E/AndroidRuntime(12359): at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:2196)
11-13 18:36:04.771: E/AndroidRuntime(12359): at android.view.ViewRootImpl.draw(ViewRootImpl.java:2064)
11-13 18:36:04.771: E/AndroidRuntime(12359): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1654)
11-13 18:36:04.771: E/AndroidRuntime(12359): at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2498)
11-13 18:36:04.771: E/AndroidRuntime(12359): at android.os.Handler.dispatchMessage(Handler.java:99)
11-13 18:36:04.771: E/AndroidRuntime(12359): at android.os.Looper.loop(Looper.java:154)
11-13 18:36:04.771: E/AndroidRuntime(12359): at android.app.ActivityThread.main(ActivityThread.java:4894)
11-13 18:36:04.771: E/AndroidRuntime(12359): at java.lang.reflect.Method.invokeNative(Native Method)
11-13 18:36:04.771: E/AndroidRuntime(12359): at java.lang.reflect.Method.invoke(Method.java:511)
11-13 18:36:04.771: E/AndroidRuntime(12359): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
11-13 18:36:04.771: E/AndroidRuntime(12359): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
11-13 18:36:04.771: E/AndroidRuntime(12359): at dalvik.system.NativeStart.main(Native Method)


Thanks.
The administrator has disabled public write access.

crash when resuming the app 4 years 8 months ago #740

  • radaee
  • radaee's Avatar
  • OFFLINE
  • Moderator
  • Posts: 825
  • Thank you received: 10
  • Karma: 43
i think you invoked PDFViewSingle.viewClose when onPause.
and you not invoke PDFViewSingle.viewOpen when onResume

or it may invoke PDFViewSingle.viewResize, and pass w,h as 0
Last Edit: 4 years 8 months ago by .
The administrator has disabled public write access.

crash when resuming the app 4 years 8 months ago #741

  • radaee
  • radaee's Avatar
  • OFFLINE
  • Moderator
  • Posts: 825
  • Thank you received: 10
  • Karma: 43
OK, next version fix this issue.
The administrator has disabled public write access.
Powered by Kunena Forum