tealeg / xlsx

Go library for reading and writing XLSX files.
Other
5.85k stars 819 forks source link

Memory leak #802

Closed alex-entro closed 2 months ago

alex-entro commented 5 months ago

Hi,

My app kept crashing, and after running pprof it's directing toward this library. I am working with files of maximum 8MB, and here is what returned by pprof:

709.69MB 37.93% 37.93%   709.69MB 37.93%  github.com/tealeg/xlsx/v3.newCell (inline)
569.68MB 30.45% 68.39%   569.68MB 30.45%  github.com/tealeg/xlsx/v3.(*MemoryRow).growCellsSlice (inline)
401.53MB 21.46% 89.85%   401.53MB 21.46%  github.com/tealeg/xlsx/v3.parseNumberFormatSection
149.51MB  7.99% 97.84%   551.04MB 29.45%  github.com/tealeg/xlsx/v3.parseFullNumberFormatString
tealeg commented 5 months ago

@alex-entro it's a long standing issue I'm afraid. I don't really have the time to debug it so I'd be happy for anyone to have a crack.

defined-user commented 4 months ago

Could anyone provide an example I could use for debugging? I started looking for XLSX support for go and came across this repo, and I might spend some time investigating this issue.

github-actions[bot] commented 2 months ago

Stale issue message