Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to load files smaller than about 4k #53

Open
KennyGoers opened this issue Jun 27, 2022 · 4 comments
Open

Failure to load files smaller than about 4k #53

KennyGoers opened this issue Jun 27, 2022 · 4 comments

Comments

@KennyGoers
Copy link

I have a problem loading files smaller than 4K, always get the following exception:

 E/SubsamplingScaleImageView: Failed to load bitmap
    java.lang.RuntimeException: Skia image region decoder returned null bitmap - image format may not be supported
        at com.pdfview.subsamplincscaleimageview.decoder.SkiaImageDecoder.decode(SkiaImageDecoder.java:102)
        at com.pdfview.subsamplincscaleimageview.SubsamplingScaleImageView$BitmapLoadTask.doInBackground(SubsamplingScaleImageView.java:1748)
        at com.pdfview.subsamplincscaleimageview.SubsamplingScaleImageView$BitmapLoadTask.doInBackground(SubsamplingScaleImageView.java:1722)
        at android.os.AsyncTask$3.call(AsyncTask.java:394)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:920)

Anyone see a similar issue? Continuing to hunt down, but wondering if anyone else is seeing it

@Dmitry-Borodin
Copy link
Owner

I'm not aware of this one.

@KennyGoers
Copy link
Author

I've included a couple PDF files that cause this scenario.

I also noticed you use SubsamplingScaleImageView which is a separate project but include the files directly, did you have to modify them? Is this possible something that was a bug in SubsamplingScaleImageView but is fixed in a newer version than you used

preview4876264608160207447.pdf
preview3882795994610281957.pdf

@bhavik45
Copy link

bhavik45 commented Jan 24, 2023

Facing the same issue only on android 13, Does anyone have any idea?

Working fine for android 12 and lower.

I think it is not a file size issue. It is android 13.

@DeveloperIbv
Copy link

Hello

As bhavik45 said:
Is there a general problem running in Android-13 ?

Can someone confirm this?

Kind regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants