Hello,
I have found a memory-management issue but could not get my head around debugging it completely.
Here is how to reproduce it:
$ sc-im debugsc.sc
- go to G1
- visual mark G1:G20
y
- goto H1
Pc
- Got: Large increase in memory use (from 5 MiB to ~ 2 GiB), sc-im becomes unresponsive.
Expected: Program responds immediately
Note: When saving the changes and opening the changed file, memory use is down to 5 MiB again... until one attempts to delete the newly added cells. If doing this with visual select and then x, memory use will again increase to around 2 GiB...
My local configuration (~/.config/scimrc) has this (but the problem seems to appear without any scimrc, too):

Attachments
- debugsc.sc.txt -- failing spreadsheet
- debuglo.zip -- same sheet in LibreOffice
(does not exhibit excessive memory usage, thus it should not be the computation's problem)
- massif.out.1307.txt -- memory profiler data
(obtained through valgrind --tool=massif --heap=yes --stacks=yes ./sc-im debugsc.sc)
System data:
- git commit a4abe78
- Debian 10 GNU/Linux 4.19.0-9-amd64
- gcc version 8.3.0 (Debian 8.3.0-6)
I appreciate it very much if someone more knowledgeable of the source code could check this issue?
Thanks in advance
Hello,
I have found a memory-management issue but could not get my head around debugging it completely.
Here is how to reproduce it:
$ sc-im debugsc.scyPcExpected: Program responds immediately
Note: When saving the changes and opening the changed file, memory use is down to 5 MiB again... until one attempts to delete the newly added cells. If doing this with visual select and then
x, memory use will again increase to around 2 GiB...My local configuration (
~/.config/scimrc) has this (but the problem seems to appear without anyscimrc, too):Attachments
(does not exhibit excessive memory usage, thus it should not be the computation's problem)
(obtained through
valgrind --tool=massif --heap=yes --stacks=yes ./sc-im debugsc.sc)System data:
I appreciate it very much if someone more knowledgeable of the source code could check this issue?
Thanks in advance