image-js / tiff

TIFF image decoder written entirely in JavaScript
MIT License
195 stars 17 forks source link

'offset is out of bounds' error when I use the tiff.js demo to open a .tif picture of 164MB #42

Closed huangxc0930 closed 2 years ago

huangxc0930 commented 2 years ago

--For some reason, the picture cannot be offered...

RangeError: offset is out of bounds at Uint8Array.set () at Object.mmap (tiff.min.js:950) at Object.mmap (tiff.min.js:999) at _syscall192 (tiff.min.js:1065) at Li (tiff.min.js:1575) at Array.Aa (tiff.min.js:1981) at rd (tiff.min.js:1146) at TIFFOpen (tiff.min.js:3166) at Object.Yh [as ccall] (tiff.min.js:112) at new Lb (tiff.min.js:3183) tiff.min.js:105 RangeError: offset is out of bounds at Uint8Array.set () at Object.mmap (tiff.min.js:950) at Object.mmap (tiff.min.js:999) at syscall192 (tiff.min.js:1065) at Li (tiff.min.js:1575) at Array.Aa (tiff.min.js:1981) at rd (tiff.min.js:1146) at _TIFFOpen (tiff.min.js:3166) at Object.Yh [as ccall] (tiff.min.js:112) at new Lb (tiff.min.js:3183) tiff.min.js:102 Uncaught abort({}) at Error at wf (http://seikichi.github.io/tiff.js/tiff.min.js:89:367) at Vc (http://seikichi.github.io/tiff.js/tiff.min.js:101:412) at ___syscall192 (http://seikichi.github.io/tiff.js/tiff.min.js:1066:155) at Li (http://seikichi.github.io/tiff.js/tiff.min.js:1575:41) at Array.Aa (http://seikichi.github.io/tiff.js/tiff.min.js:1981:431) at rd (http://seikichi.github.io/tiff.js/tiff.min.js:1146:252) at _TIFFOpen (http://seikichi.github.io/tiff.js/tiff.min.js:3166:490) at Object.Yh [as ccall] (http://seikichi.github.io/tiff.js/tiff.min.js:112:19) at new Lb (http://seikichi.github.io/tiff.js/tiff.min.js:3183:87) at FileReader. (http://seikichi.github.io/tiff.js/upload.html:47:20) If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.

targos commented 2 years ago

This repository is not the one of tiff.js. It's another project.