On 2025-09-08, Johannes Thyssen Tishman <[email protected]> wrote:
> 2025-09-06T13:29:35-0000 Stuart Henderson <[email protected]>:
>> On 2025-09-05, Heppler, J. Scott <[email protected]> wrote:
>> > Hi,
>> >
>> > I've been testing the newly committed CAD/freecad port and would first
>> > like to acknowledge the amount and quality of work that went into the
>> > port.
>> >
>> > One of my models has some fine detail that was not 3D printing and
>> > attempts to increase the meshing resolution for STL export core dumped.
>> > For completeness, CAD drafting is known to be memory intense.
>> >
>> > I worked around this by joining the staff group and editing "infinity"
>> > memory limits.
>> >
>> > Technically, I only need the memory limits for CAD work and recognize
>> > that memory limits are a safety feature.
>> >
>> > I was wondering if a feature could be added at login to increase login
>> > to the same home directory with increased limits?  Login via xenodm?
>> > This would save editing /etc/login.conf and a reboot.  It would also
>> > limit the amount of time of increased memory vulnerability.
>> 
>> No need for an extra OS feature. You can raise the hard limit in
>> login.conf (-max) but not the soft limit, then use an alias or wrapper
>> script to adjust the soft limit via ulimit before starting your memory-
>> hungry process.
>
> sthen@, do you think this might be worth a pkg-readme? Scott was able to
> trace the issue back to memory limits but other users might not know how
> to deal with this.

Could be. For that, I'd probably just advise making sure that the user
is in 'staff' class and bumping datasize-cur, and not worry too much about
the fact that limits are increased for everything.

> Scott, I believe you use the .desktop file to launch FreeCAD, correct?
> If so, you will probably want to make a copy under
> ~/.local/share/applications that launches a wrapper script, as sthen@
> suggests.

There's no path to the binary in org.freecad.FreeCAD.desktop so you
don't actually need to touch that file, you can just leave it as packaged.
Instead set your own PATH (e.g. in .profile or .xsession) to include ~/bin
or similar ahead of /usr/local/bin, and add a wrapper script there.

-- 
Please keep replies on the mailing list.

Reply via email to