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 (

java.lang.reflect.Constructor.newInstance (

android.view.LayoutInflater.createView (

android.view.LayoutInflater.createViewFromTag (

android.view.LayoutInflater.createViewFromTag (

android.view.LayoutInflater.rInflate (

android.view.LayoutInflater.rInflateChildren (

android.view.LayoutInflater.inflate (

android.view.LayoutInflater.inflate (

android.view.ViewStub.inflateViewNoAdd (

android.view.ViewStub.inflate (

com.pdftron.pdf.controls.PdfViewCtrlTabBaseFragment.loadStubPDFViewCtrl (

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