Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plug diagram memory leak #1139

Merged
merged 1 commit into from
Dec 16, 2024
Merged

Conversation

ivandi69
Copy link
Contributor

This PR addresses a memory leak in the diagram object. With big datasets the leak can be huge.

The attached schematic can be used to reproduce the problem and test the fix. Run the simulation and monitor Qucs-s memory usage. If the diagram is deleted or the schematic tab is closed the memory is not released. If the schematic is opened again or the diagram is deleted and added again the memory consumption increases further.

Diagram_Memory_Leak.sch.txt

@ra3xdh ra3xdh added the bug label Dec 16, 2024
@ra3xdh ra3xdh added this to the 25.1.0 milestone Dec 16, 2024
@tomhajjar
Copy link

Any of this related to #1127?

I've modified the sub-circuits and schematic since and can get the circuits to simulate in a reasonable time without hogging all the resources.

@ra3xdh
Copy link
Owner

ra3xdh commented Dec 16, 2024

Thanks for finding this. Merged.

@ra3xdh ra3xdh merged commit f152ee2 into ra3xdh:current Dec 16, 2024
8 checks passed
ivandi69 pushed a commit to ivandi69/qucs_s that referenced this pull request Dec 17, 2024
Fixes a double free regression caused by ra3xdh#1139
@ivandi69 ivandi69 mentioned this pull request Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants