RadaeePDF.com :: Topic: Library crashes with IllegalArgumentException (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Here you should submit your bug reports with logcat.

TOPIC: Library crashes with IllegalArgumentException

Library crashes with IllegalArgumentException 1 year 1 month ago #11308

  • Ilieski
  • Ilieski's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 1
Here is the stack trace of the crash:

ErrorHandlingApp: Thread: main has an uncaught exception.
ErrorHandlingApp: java.lang.IllegalArgumentException: bitmap size exceeds 32 bits
ErrorHandlingApp: at android.graphics.Bitmap.nativeCreate(Native Method)
ErrorHandlingApp: at android.graphics.Bitmap.createBitmap(Bitmap.java:942)
ErrorHandlingApp: at android.graphics.Bitmap.createBitmap(Bitmap.java:913)
ErrorHandlingApp: at android.graphics.Bitmap.createBitmap(Bitmap.java:880)
ErrorHandlingApp: at com.radaee.view.PDFLayout.vResize(PDFLayout.java:127)
ErrorHandlingApp: at com.radaee.reader.PDFLayoutView.PDFSetView(PDFLayoutView.java:1130)
ErrorHandlingApp: at com.radaee.reader.PDFLayoutView.PDFOpen(PDFLayoutView.java:1149)
ErrorHandlingApp: at example$OpenTask.onPostExecute(example.java:109)
ErrorHandlingApp: at example$OpenTask.onPostExecute(example.java:87)
ErrorHandlingApp: at android.os.AsyncTask.finish(AsyncTask.java:636)
ErrorHandlingApp: at android.os.AsyncTask.access$500(AsyncTask.java:177)
ErrorHandlingApp: at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:653)
ErrorHandlingApp: at android.os.Handler.dispatchMessage(Handler.java:102)
ErrorHandlingApp: at android.os.Looper.loop(Looper.java:145)
ErrorHandlingApp: at android.app.ActivityThread.main(ActivityThread.java:6938)
ErrorHandlingApp: at java.lang.reflect.Method.invoke(Native Method)
ErrorHandlingApp: at java.lang.reflect.Method.invoke(Method.java:372)
ErrorHandlingApp: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
ErrorHandlingApp: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
AndroidRuntime: FATAL EXCEPTION: main
AndroidRuntime: Process: example, PID: 8201
AndroidRuntime: java.lang.IllegalArgumentException: bitmap size exceeds 32 bits
AndroidRuntime: at android.graphics.Bitmap.nativeCreate(Native Method)
AndroidRuntime: at android.graphics.Bitmap.createBitmap(Bitmap.java:942)
AndroidRuntime: at android.graphics.Bitmap.createBitmap(Bitmap.java:913)
AndroidRuntime: at android.graphics.Bitmap.createBitmap(Bitmap.java:880)
AndroidRuntime: at com.radaee.view.PDFLayout.vResize(PDFLayout.java:127)
AndroidRuntime: at com.radaee.reader.PDFLayoutView.PDFSetView(PDFLayoutView.java:1130)
AndroidRuntime: at com.radaee.reader.PDFLayoutView.PDFOpen(PDFLayoutView.java:1149)
AndroidRuntime: at example$OpenTask.onPostExecute(example.java:109)
AndroidRuntime: at example.$OpenTask.onPostExecute(example.java:87)
AndroidRuntime: at android.os.AsyncTask.finish(AsyncTask.java:636)
AndroidRuntime: at android.os.AsyncTask.access$500(AsyncTask.java:177)
AndroidRuntime: at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:653)
AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
AndroidRuntime: at android.os.Looper.loop(Looper.java:145)
AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6938)
AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:372)
AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)

It's crashing in this line "m_layout.vResize(getWidth(), getHeight());" in PDFLayoutView because getHeight of the view is returning value of 16777171.
This is reproducible on Nexus 5 with Android version 4.4.2. On devices with android version > 6.0 I cannot reproduce this crash.

Regards,
Ivan
Last Edit: 1 year 1 month ago by Ilieski.
The administrator has disabled public write access.

Library crashes with IllegalArgumentException 1 year 1 month ago #11314

  • Davide
  • Davide's Avatar
  • OFFLINE
  • Moderator
  • Posts: 707
  • Thank you received: 53
  • Karma: 15
Hi,
can you reproduce the issue with the demo library?
WIth all the pdfs?

Can you please send us a pdf that causes the issue? If you want you can send us privately via ticket.
The administrator has disabled public write access.
Powered by Kunena Forum