Memory leak when scrolling a group
Posted: Mon Feb 27, 2017 5:46 pm
My project is a small stack that opens another stack from a separate stackfile. In this second stack I have a group with 20 subgroups and some datagrids inside them. When I open the 2nd stack the memory footprint goes from 50MB to more than 600MB (in IDE - in standalone 15MB to 600), but the stack alone only uses 80MB in IDE.
I deleted some controls inside the big group and readded them: the stack is lighter. I don't know why because there were no custom properties... The biggest problem I still have is when I scroll the group: memory usage keeps increasing... to crash. This occurs even with messages locked!
I tried to merge the stackfiles into one, but the problem remains.
I know it could help if you had a sample, but unfortunately, I'm unable to reproduce it in a small project that I could share.
What can cause this behavior?
I also add that as Livecode IDE for Windows crashes a lot, it sometimes generate a .livecode~ that I rename to .livecode to then use it (too many changes to redo them). Can there be trash associated with the group in the file?
I'd prefer not to have to remake the entire hierarchy in an empty project by hand.
I deleted some controls inside the big group and readded them: the stack is lighter. I don't know why because there were no custom properties... The biggest problem I still have is when I scroll the group: memory usage keeps increasing... to crash. This occurs even with messages locked!
I tried to merge the stackfiles into one, but the problem remains.
I know it could help if you had a sample, but unfortunately, I'm unable to reproduce it in a small project that I could share.
What can cause this behavior?
I also add that as Livecode IDE for Windows crashes a lot, it sometimes generate a .livecode~ that I rename to .livecode to then use it (too many changes to redo them). Can there be trash associated with the group in the file?
I'd prefer not to have to remake the entire hierarchy in an empty project by hand.