ArrayIndexOutOfBoundsException in PDFMemSream - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Here you should submit your bug reports with logcat.
  • Page:
  • 1
  • 2

TOPIC: ArrayIndexOutOfBoundsException in PDFMemSream

ArrayIndexOutOfBoundsException in PDFMemSream 1 year 9 months ago #10803

  • Ilieski
  • Ilieski's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Karma: 1
  • Thank you received: 0
There is ArrayIndexOutOfBoundsException error in PDFMemSream read function. The problem is when m_pos is < 0 and you try to call System.arraycopy(m_data, m_pos, data, 0, len ); with (m_pos < 0).

Stack Trace:
JNI DETECTED ERROR IN APPLICATION: JNI GetByteArrayRegion called with pending exception java.lang.ArrayIndexOutOfBoundsException: src.length=1164 srcPos=-884 dst.length=2000 dstPos=0 length=2000
at void java.lang.System.arraycopy!(java.lang.Object, int, java.lang.Object, int, int) (System.java:-2)
at int com.radaee.util.PDFMemStream.read(byte[]) (PDFMemStream.java:45)
at long com.radaee.pdf.Document.openStream(com.radaee.pdf.Document$PDFStream, java.lang.String) (Document.java:-2)
at int com.radaee.pdf.Document.OpenStream(com.radaee.pdf.Document$PDFStream, java.lang.String) (Document.java:739)
at void .pdf.PDFReaderFragment.onViewCreatedExceptionSafe(android.view.View, android.os.Bundle) (PDFReaderFragment.java:128)
at void .base.exception_handling.ExceptionSafeFragment.onViewCreated(android.view.View, android.os.Bundle) (ExceptionSafeFragment.java:94)
at void android.support.v4.app.FragmentManagerImpl.moveToState(android.support.v4.app.Fragment, int, int, int, boolean) (FragmentManager.java:1086)
at void android.support.v4.app.FragmentManagerImpl.moveToState(int, int, int, boolean) (FragmentManager.java:1248)
at void android.support.v4.app.BackStackRecord.run() (BackStackRecord.java:738)
at boolean android.support.v4.app.FragmentManagerImpl.execPendingActions() (FragmentManager.java:1613)
at void android.support.v4.app.FragmentManagerImpl$1.run() (FragmentManager.java:517)
at void android.os.Handler.handleCallback(android.os.Message) (Handler.java:751)
at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:95)
at void android.os.Looper.loop() (Looper.java:154)
at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:5969)
at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:801)
at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:691)

Please Log in or Create an account to join the conversation.

Last Edit: by Ilieski.

ArrayIndexOutOfBoundsException in PDFMemSream 1 year 9 months ago #10807

  • Davide
  • Davide's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 778
  • Karma: 16
  • Thank you received: 61
Hi,
our developers have fixed it, we will include it in the next beta release of the library.

If you want it now, please open a ticket here : www.radaeepdf.com/support/tickets

Please Log in or Create an account to join the conversation.

ArrayIndexOutOfBoundsException in PDFMemSream 1 year 9 months ago #10811

  • Davide
  • Davide's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 778
  • Karma: 16
  • Thank you received: 61
Hi,
we have just published a new beta version that fixes the issue.
You can download it here : www.radaeepdf.com/download/download-prev...le/59-radaeepdf-37b2

Please Log in or Create an account to join the conversation.

ArrayIndexOutOfBoundsException in PDFMemSream 1 year 9 months ago #10812

  • Ilieski
  • Ilieski's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Karma: 1
  • Thank you received: 0
Hello,
Can you please tell me when you are planing to release the final version of 3.7 ?

Regards,
Ivan

Please Log in or Create an account to join the conversation.

ArrayIndexOutOfBoundsException in PDFMemSream 1 year 9 months ago #10814

  • Davide
  • Davide's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 778
  • Karma: 16
  • Thank you received: 61
Hi,
if there won't be any particular things, usually a beta is scaled stable in 10/15 days after 2 or 3 beta.

Please Log in or Create an account to join the conversation.

ArrayIndexOutOfBoundsException in PDFMemSream 1 year 9 months ago #10820

  • Ilieski
  • Ilieski's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Karma: 1
  • Thank you received: 0
Hi,

We are in very late phase of our project, and this issue is of very big importance for us.
Can you please let us know what was the real problem, and why we were not able to reproduce this issue before?
We would like to do risk assessment and for that we need your answer on this.

Regards, Ivan

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Powered by Kunena Forum