Posted 28 January 2021, 12:19 pm EST
We have an application that is leveraging SpreadJS to provide spreadsheet-like functionality. We store the content in JSON, and load as our users navigate between transactional data. The user’s file vary in size between 2mb and 50mb.
We noticed that SpreadJS has a memory leak issue that is especially noticable when dealing with larger JSON files.
I was able to replicate the problem in the Designer demo application on your site. In the (sped up) video I am loading between 2 different 60mb JSON spreadsheets (one contains pure text and the other contains only formulas).
In our application, these JSON files containing Formulas causes a memory leak that reaches 4GB’s after 8 loads, causing the browser to crash. The memory leak is about 400-500mb in size, varying between Text and Formula files.
The video shows the same behavior in the Design demo application. I am including the 2 JSON files I used to replicate the issue in Designer.


