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

openscad memory leak #1

Open
mikdmst1 opened this issue Jan 2, 2023 · 6 comments
Open

openscad memory leak #1

mikdmst1 opened this issue Jan 2, 2023 · 6 comments

Comments

@mikdmst1
Copy link

mikdmst1 commented Jan 2, 2023

installed this AUR in archlinux, and openscad leaked my memory 16Gb at 100% and i push Reset! :(((

@mikdmst1
Copy link
Author

mikdmst1 commented Jan 2, 2023

before i opened folder with 2 stl-files with big sizes (600mb and 200mb)

@omentic
Copy link
Owner

omentic commented Jan 2, 2023

Hmm! Could I take a look at the files?

I wonder if OpenSCAD is failing to render the thumbnail or if this script is failing to save it properly and retrying...

@mikdmst1
Copy link
Author

mikdmst1 commented Jan 5, 2023

@omentic
Copy link
Owner

omentic commented Jan 10, 2023

Hmm, I can't reproduce on my end. OpenSCAD successfully generates the thumbnail, although it takes ~10 seconds and several (3? 4?) gigabytes of RAM (which looks to be freed successfully).

@mikdmst1
Copy link
Author

okay, i deleted plugin, and leaks was stopped, done.

@matlinuxer2
Copy link

I add some changes to make this program more safe and robust.
(use ulimit to limit memory usage and sub shell syntax to ensure temporary files cleanup)

More details here: #2

BTW, the thumbnail plugin save me a lot of time on searching items, thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants