t-oster / VisiCut

A userfriendly tool to prepare, save and send Jobs to Lasercutters
https://visicut.org
Other
229 stars 114 forks source link

Raspberry Pi, memory minimum. #511

Open tatarize opened 5 years ago

tatarize commented 5 years ago

I run VisiCut on a Raspberry Pi to control my K40 with my stock board. But, the thing annoyingly does not launch. I need to manually execute the jar file without the memory minimum requirements because it tries to demand 2 gigs up front. And can't use the inkscape driver there because it doesn't launch on the Pi. It would be nice if that integration worked out of the gate, which means not demanding two gigs of memory up front. Doesn't seem to have any memory issues and would just slow down and start paging.

mgmax commented 5 years ago

In my experience, a memory limit of 2GB is required for engraving on large-format lasercutters (e.g. 1m x 60cm). 1GB of memory is enough for engraving on normal-size lasercutters (e.g. 60cm x 30cm). Somewhat less may work in most cases.

Feel free to change the starter script to detect the available system RAM via grep MemTotal /proc/meminfo | awk '{print $2}' and reduce the memory allocation if the system has not enough RAM.

For the Windows starter, we already do that: use half of the system RAM, but limited to 4GB. https://github.com/t-oster/VisiCut/blob/master/distribute/windows/launcher.nsi#L49-L57