koreader icon indicating copy to clipboard operation
koreader copied to clipboard

Issue decoding webp file on Kindle 3 (Keyboard)

Open naleo opened this issue 11 months ago • 9 comments

Device

Kindle

KOReader version

2025.05

Model and firmware version

Kindle Keyboard (3) (3.4.3)

Issue description

I have written a plugin that fetches an image, and renders it (book cover). When running the plugin on a Kindle Keyboard, I get an issue about an Illegal Instruction

In my plugin, I am using the RenderImage:scaleBlitBuffer(image, width, height, true) command.

Steps to reproduce

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '...'
  4. See error

Log

crash.log

Additional information

No response

naleo avatar May 06 '25 05:05 naleo

Is that with the Kindle legacy build?

Frenzie avatar May 06 '25 05:05 Frenzie

Yes, that is using the Kindle legacy build

naleo avatar May 06 '25 05:05 naleo

Does opening webp images from the file manager exhibit the same issue?

NiLuJe avatar May 06 '25 14:05 NiLuJe

The issue might be we always compile with WEBP_ENABLE_SIMD.

benoit-pierre avatar May 06 '25 14:05 benoit-pierre

Just tested it, opening a webp from file manager results in the same issue.

naleo avatar May 06 '25 14:05 naleo

The issue might be we always compile with WEBP_ENABLE_SIMD.

Oh, that would certainly explain it, lol ;D.

NiLuJe avatar May 06 '25 14:05 NiLuJe

@naleo: can you replace koreader/libs/libwebp.so.7 with libwebp_no_simd.zip and try again?

benoit-pierre avatar May 06 '25 14:05 benoit-pierre

Yes, that appears to fix the issue.

naleo avatar May 06 '25 14:05 naleo

Great! Thanks for testing.

benoit-pierre avatar May 06 '25 14:05 benoit-pierre