question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

This is a fatal error occured in decoding big image

See original GitHub issue

Error message: Uncaught TypeError: Cannot read property 'length' of undefined at TIFFDecoder.readStripData (.../node_modules/tiff/lib/tiffDecoder.js:180:42) at TIFFDecoder.decodeImageData (.../node_modules/tiff/lib/tiffDecoder.js:151:22) at TIFFDecoder.decodeIFD (.../node_modules/tiff/lib/tiffDecoder.js:100:18) at TIFFDecoder.decode (.../node_modules/tiff/lib/tiffDecoder.js:54:30) at Object.decodeTIFF [as decode] (.../node_modules/tiff/lib/index.js:10:20) This error appeared when I decode a very big image (21600 x 21600 px).

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
targoscommented, Jan 13, 2021

If you cannot share it privately with me (my email address is public on my profile if you can send me a link), I can only suggest to try and debug on your side to understand why it errors.

1reaction
targoscommented, Jan 13, 2021

I’m asking because I tried with a 25000 x 25000 px image created with Photoshop (RGB with a color gradient, compressed with LZW). The image is >300MB and did not generate an error

Read more comments on GitHub >

github_iconTop Results From Across the Web

out of memory error while decoding the image with sample ...
I am beginner in android. While decoding the images ( of size 1600x1200 ) from SD card one by one i am getting...
Read more >
jbig2dec FATAL ERROR decoding image: runlength too large ...
This problem still persists for me on a recent Ubuntu 12.04 system when using the "convert" command of the imagemagick library (which obviously ......
Read more >
Fix export issues in Premiere Pro - Adobe Support
Fix issues in Adobe Premiere Pro that cause an "Error while compiling" error message when rendering or exporting.
Read more >
Cannot Load Texture with MTKTextureLoader - Apple Developer
For some of the textures, the code works as expected. For others, I receive the "Image decoding failed" error in my log. I...
Read more >
How to Fix The Invalid JSON Error in WordPress (Beginner's ...
We'll also talk about why this error occurs and how to avoid it in the ... WordPress backup before making any big changes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found