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

Bug for incompatible with libSkiaSharp library. #107

Open
Latisha19 opened this issue Dec 10, 2024 · 4 comments
Open

Bug for incompatible with libSkiaSharp library. #107

Latisha19 opened this issue Dec 10, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@Latisha19
Copy link

PDFtoImage version

5.0.0

OS

Windows

OS version

Windows 11 23H2

Architecture

x64

Framework

.NET Framework

App framework

No response

Detailed bug report

This may be a bug, or isn't.

To solve an annoying warning in SkiaSharp, I tried to upgrade PDFtoImage from 4.1.1 to 5.0.0, but then I got an error when running Conversion.SavePng(a, b);.

The error shows that: "InnerException {"The version of the native libSkiaSharp library (88.1) is incompatible with this version of SkiaSharp. Supported versions of the native libSkiaSharp library are in the range [116.0, 117.0)."} System.Exception {System.InvalidOperationException}".

Now I will try to degrade back to 4.1.1 to run normally, but I would like to know how to solve this.

Thank you.

@Latisha19 Latisha19 added the bug Something isn't working label Dec 10, 2024
@sungaila
Copy link
Owner

sungaila commented Dec 10, 2024

Hi @Latisha19,

thanks for opening this issue! I am not sure what you are trying to do here. PDFtoImage 5.0.0 needs SkiaSharp 3.116.1 (plus their native assets). This should work as is.

If you try to mix and match other versions of SkiaSharp, you will run into issues like this. Which versions are you trying to use?

If possible, only reference PDFtoImage with <PackageReference Include="PDFtoImage" Version="5.0.0" /> and nothing else. This ensures that the correct packages are referenced.

Greetings
David

@sungaila
Copy link
Owner

@Latisha19 Does you project use a packages.config? There is an issue documented here (#108) that might explain your problem.

@Latisha19
Copy link
Author

Latisha19 commented Dec 11, 2024

@sungaila Thanks for your reply!

I want to use your PDFtoImage tool, SkiaSharp is only for dependency.
I got an annoying warning in SkiaSharp 2.88.8, so depending on the issue, I upgraded to a higher version.
I made a mistake, sadly until today I found, that I also upgraded PDFtoImage to 5.0.0, so for dependency, I made SkiaSharp upgraded to 3.116.1.
This caused the question.

So this bug may be SkiaSharp's, not in your PDFtoImage's.
Sorry for my worst investigation.

@sungaila
Copy link
Owner

@Latisha19 I think your problem is caused by this: mono/SkiaSharp#3112

Once this is fixed, I will release a new version of PDFtoImage and ask you to test it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants