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

java.lang.UnsatisfiedLinkError: 'long com.luciad.imageio.webp.WebPDecoderOptions.createDecoderOptions() on M1 Macbook #275

Closed
joetsaitw opened this issue Mar 2, 2022 · 6 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@joetsaitw
Copy link

Hey EasyLauncher!

I faced a WebP issue on M1 Macbook:

Caused by: java.lang.UnsatisfiedLinkError: 'long com.luciad.imageio.webp.WebPDecoderOptions.createDecoderOptions()'
	at com.luciad.imageio.webp.WebPDecoderOptions.createDecoderOptions(Native Method)
	at com.luciad.imageio.webp.WebPDecoderOptions.<init>(WebPDecoderOptions.java:26)
	at com.luciad.imageio.webp.WebPReadParam.<init>(WebPReadParam.java:24)
	at com.luciad.imageio.webp.WebPReader.getDefaultReadParam(WebPReader.java:147)

I've already tried v4.1.0, v4.2.0, v5.0.0, and none of them work.
Could you please check this issue? Thanks!

@mateuszkwiecinski
Copy link
Member

Ugh :/ I'm sorry to hear that. The plugin relies on sejda-pdf/webp-imageio#6 (comment) to decode WebP images, and looking at your report it seems like M1-specific binaries are missing and according to sejda-pdf/webp-imageio#6 (comment) can't be added :/

It seems like GA runners don't support M1 (link), I don't have M1 device, so even if I wanted to fork the library and compile the missing architecture I'm unable to.
To make this work, someone would have to publish a WebP decoding library which supports all architectures, including Mac ARM64

@mateuszkwiecinski mateuszkwiecinski added bug Something isn't working help wanted Extra attention is needed labels Mar 2, 2022
@joetsaitw
Copy link
Author

@mateuszkwiecinski Is there anything I can help with?

@mateuszkwiecinski
Copy link
Member

mateuszkwiecinski commented Mar 24, 2022

If you can help then sure 😄 This plugin needs an ImageIO plugin that supports both reading and writing to WebP files. Something like sejda-pdf/webp-imageio#6 or haraldk/TwelveMonkeys#659 which supports all existing architectures + the problematic here M1.
Which means someone has to publish an open-source library with appropriate licence which can replace the currently used one

@viakunin
Copy link

I've opened the PR with the missing binary here - gotson/webp-imageio#1

@mateuszkwiecinski
Copy link
Member

Hello again 👋
I just published a new version, that should contain the binary compiled by @viakunin. I haven't found a way to include ARM macs in CI pipeline or even test it manually, so I don't even know if it works 😬
Please let me know if the most recent version does or does not work on your setup!

And just in case that's useful for anyone: the plugin will now use fork of a fork of a fork of a fork of a WebP decoding library: https://github.com/usefulness/webp-imageio - might be useful when debugging things 😉

@mateuszkwiecinski
Copy link
Member

I was told this is fixed in 5.1.1 ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Development

No branches or pull requests

3 participants