Crash with pdf.Rect.RectCreate

Product: Android sdk

Product Version:“com.pdftron:pdftron:9.4.2” “com.pdftron:tools:9.4.2”

Please give a brief summary of your issue:
Crash when creating rectangle

Please describe your issue and provide steps to reproduce it:
This is the crash we are seeing in our crash logs.
Caused by java.lang.UnsatisfiedLinkError

No implementation found for long com.pdftron.pdf.Rect.RectCreate(double, double, double, double) (tried Java_com_pdftron_pdf_Rect_RectCreate and Java_com_pdftron_pdf_Rect_RectCreate__DDDD)
this is the stack trace:

com.pdftron.pdf.Rect.RectCreate (SourceFile)

com.pdftron.pdf.Rect.<init> (SourceFile:30)

com.pdftron.pdf.PDFViewCtrl$u.<init> (SourceFile:11012)

com.pdftron.pdf.PDFViewCtrl.<init> (SourceFile:15868)

com.pdftron.pdf.PDFViewCtrl.<init> (SourceFile:1943)

java.lang.reflect.Constructor.newInstance0 (Constructor.java)

java.lang.reflect.Constructor.newInstance (Constructor.java:343)

android.view.LayoutInflater.createView (LayoutInflater.java:876)

android.view.LayoutInflater.createViewFromTag (LayoutInflater.java:1028)

android.view.LayoutInflater.createViewFromTag (LayoutInflater.java:983)

android.view.LayoutInflater.rInflate (LayoutInflater.java:1145)

android.view.LayoutInflater.rInflateChildren (LayoutInflater.java:1106)

android.view.LayoutInflater.inflate (LayoutInflater.java:692)

android.view.LayoutInflater.inflate (LayoutInflater.java:544)

android.view.ViewStub.inflateViewNoAdd (ViewStub.java:272)

android.view.ViewStub.inflate (ViewStub.java:305)

com.pdftron.pdf.controls.PdfViewCtrlTabBaseFragment.loadStubPDFViewCtrl (PdfViewCtrlTabBaseFragment.java:3691)

We have not been able to recreate this on our end. This is for an app that we do not add annotations to the pdf, so we are not sure what this error is. We began experiencing this crash when we changed our pdftron initialization to com.pdftron.pdf.utils.AppUtils.initializePDFNetApplication(context, key). I am not sure how this could be related, but we did not change anything else in this release related to pdftron.

1 Like