Memory Leak in Section View

Hi everyone. I recently have started to use PrePoMax once again, and noticed it still has an issue that I found out a some time ago.

When viewing the results of an static analysis, if you activate the section view feature, RAM usage goes up indefinitely until the system runs out of resources and the program crashes. Memory usage goes up each time a new section is generated, so to trigger or notice this behavior, you have to switch the section view location many times. An really easy way to do this is to use the slider in the section view configuration pop up, and slide it a lot. If you look at task manager while constantly moving the slider, the RAM use will go up and up until you stop. This behavior is really easy to trigger if your model is large (several million elements). Disabling the section view won’t release the memory allocation.

I saw this behavior before using several 1.2.X releases, under Windows 8 in an old Intel 3rd gen Core i7 laptop, and I’m having the same issue as of today, with PrePoMax under Windows 10 with a AMD Ryzen 9 5900X CPU, so the issue doesn’t seem to be either OS, version or hardware dependent.

If I can be of any help fixing this, please let me know.

I can confirm this problem. Switching the view to another module and back again helps and frees up the memory. I will have to look into it, but it might be a vtk related issue, and I will see what I can do about it.

Edit 1: Actually, only waiting for a little time helps.

Edit 2: It was my mistake, and I have fixed the bug. It will be available in the next release version.