SolveSpace Logo SOLVESPACE -- parametric 2d/3d CAD
Examples
Tutorials
Features
Download
Reference
Technology
Library
Forum
Contact
USER FORUM

(you are viewing a thread; or go back to list of threads)

Out of memory (by Paul)
Hello,

First, let me say I am loving Solvespace. You have to think a little differently about how you put your model together but the simplicity of the program is great.

Now my problem ...

I have been trying to model a long complex thread (~300 mm x 4 threads). I have been successful in modeling small sections on the thread (25mm) but when I extend it to a point where the memory usage gets near 1.5 GB solvespace throws an out of memory exception. I have tried to increase the chord tolerance but this has not worked to reduce the memory usage. I have also tried a couple of different approaches to model the thread but all have the same problem.

My question is, is there a way to increase the max memory usage? Is it possible for me to change it in the source and recompile it?

Thanks
Tue Aug 3 2021, 21:21:55, download attachment thread.slvs
(no subject) (by Paul)
Which version of SolveSpace? Which OS? IIRC the Windows version is 32 bit. I've never seen anywhere near that much memory usage.
Wed Aug 4 2021, 09:29:14
OS Version (by Paul)
I have attached a screenshot showing the part and the memory size.

I am currently running the MP version 3.0 on Windows 10 64-bit.

I am going to assume my problem is that the 32-bit version is limited in the amount of memory that it can access (2 gb).

I used this program to patch SolveSpace:

(https://ntcore.com/?page_id=371)

It allowed Solvespace to model the thread but my system ran out of memory when it went to export the SLT file. (3.5 gb memory usage).

I did find a workaround where I modeled a small section and then treated it like an assembly and mated 5 sections together in another file. I am not sure why the memory usage is different (220 MB max) but it is.

Would it help if I recompiled it as 64-bit our would I have to change variable definitions?
Wed Aug 4 2021, 18:34:44, download attachment Screenshot 2021-08-04 181655.png
Compiled from Source (by Paul)
So, I compiled SolveSpace from the source and was able to model and export the thread. The memory usage peaked at around 5Gb but it was able to manage.

Thanks for the help.
Wed Aug 4 2021, 22:38:46
(no subject) (by Paul)
Glad it worked. This sounds like a bug eating a bunch of memory for no good reason. The fact that duplicating a smaller part uses much less RAM is very interesting.
Thu Aug 5 2021, 09:46:12
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):
© 2008-2022 SolveSpace contributors. Most recent update June 2 2022.