seikichi/tiff.js

Memory leak issue

RamanRajpoot opened this issue · 0 comments

Hi
I am using the tiff.js library in my react application to render tiff images on the browser. It was working fine till I am using it locally on my machine but after putting it on a 2 Gb AWS server I was not able to start my application. Hitting npm start I am getting an error.
Getting an error as:
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

Later I figured out that the tiff.js dependency is taking too much memory and that leads to a heap out of memory.
So as to confirm that I removed the dependency from the package.json file, the application starts normally.

There is some serious issue with the library which is leading to a memory leak.
Does anyone know how to fix this?