Infeasible
Status Update
Comments
si...@google.com <si...@google.com> #2
Can you provide the below requested information to better understand the issue:
Please provide sample project to reproduce the issue. Also mention the steps to be followed for reproducing the issue with the given sample project .
Frequency
How frequently does this issue occur? (e.g 100% of the time, 10% of the time)
logcat output
Seehttp://developer.android.com/tools/help/logcat.html . Copy and paste relevant sections of the logcat output into this issue.
Please provide sample project to reproduce the issue. Also mention the steps to be followed for reproducing the issue with the given sample project .
Frequency
How frequently does this issue occur? (e.g 100% of the time, 10% of the time)
logcat output
See
ch...@gmail.com <ch...@gmail.com> #3
Please provide sample project to reproduce the issue. Also mention the steps to be followed for reproducing the issue with the given sample project .
Sample project:https://github.com/checoalejandro/PdfViewPager (run sample)
Frequency
How frequently does this issue occur? (e.g 100% of the time, 10% of the time)
This occurs 100% of time, tried with multiple devices running N+
logat output (same output for first invalid and any next valid file)
W/System.err: java.io.IOException: file not in PDF format or corrupted
at android.graphics.pdf.PdfRenderer.nativeCreate(Native Method)
at android.graphics.pdf.PdfRenderer.<init>(PdfRenderer.java:166)
at com.oracle.obi.ui.detail.ReportDetailFragment.validatePdf(ReportDetailFragment.kt:1534)
at com.oracle.obi.ui.detail.ReportDetailFragment.showPdf(ReportDetailFragment.kt:1567)
Sample project:
Frequency
How frequently does this issue occur? (e.g 100% of the time, 10% of the time)
This occurs 100% of time, tried with multiple devices running N+
logat output (same output for first invalid and any next valid file)
W/System.err: java.io.IOException: file not in PDF format or corrupted
at android.graphics.pdf.PdfRenderer.nativeCreate(Native Method)
at android.graphics.pdf.PdfRenderer.<init>(PdfRenderer.java:166)
at com.oracle.obi.ui.detail.ReportDetailFragment.validatePdf(ReportDetailFragment.kt:1534)
at com.oracle.obi.ui.detail.ReportDetailFragment.showPdf(ReportDetailFragment.kt:1567)
si...@google.com <si...@google.com> #4
We were not able to reproduce the issue with the information provided here. Can you please provide the below requested information to better understand the issue:
Steps to reproduce
Please provide sample project to reproduce the issue.
Also kindly mention the steps to be followed for reproducing the issue with the given sample project or apk
Steps to reproduce
Please provide sample project to reproduce the issue.
Also kindly mention the steps to be followed for reproducing the issue with the given sample project or apk
si...@google.com <si...@google.com> #5
Can you please provide the information requested in comment #4 to investigate further.
si...@google.com <si...@google.com> #6
Hi ,
We are closing this issue as we don't have enough actionable information. If you are still facing this problem, please open new issue and add the relevant information along with reference to earlier issue.
We are closing this issue as we don't have enough actionable information. If you are still facing this problem, please open new issue and add the relevant information along with reference to earlier issue.
Description
Once render fails (as expected):
W/System.err: java.io.IOException: file not in PDF format or corrupted
at android.graphics.pdf.PdfRenderer.nativeCreate(Native Method)
at android.graphics.pdf.PdfRenderer.<init>(PdfRenderer.java:166)
When obtaining a new PDF file which is a valid one, PdfRenderer will always fail for any other valid file with similar exception even creating new objects and closing them after first attempt. I saw that nativeCreate is a CPP class but in the PdfRenderer construction, it is out of the try-catch clause but inside the synchronized section so I assume that it could cause a deadlock issue.
I attach PDF examples, ATG KW WPS Report is the corrupted file, the other isn't.
Kind regards,
Alex
checoalejandro@gmail.com