This module performs photo caching and occasional image processing which can use a non-trivial amount of memory. To ensure stable operation we recommend the following minimum memory configuration:
- Recommended: 4 GB or above physical memory.
- If the system has less than 4 GB of physical memory, you must provide at least 2 GB of swap space.
Insufficient RAM can cause large-image processing (e.g., high-res JPEGs) to spike memory in the Chromium renderer, which may be killed by the OS or Chromium's protections. When the renderer is terminated the module or UI can crash or become unresponsive — adding ≥ 2 GB swap on systems with <4 GB RAM reduces this risk.
- Open the config file
sudo nano /etc/dphys-swapfile
- Find the line that says
CONF_SWAPSIZE=100and change it toCONF_SWAPSIZE=2048. - Save the file and exit the editor.
- Restart the Raspberry Pi to apply the changes:
- Open the config file
sudo nano /etc/rpi/swap.conf
- Update the file content as below:
[Main] Mechanism=swapfile [File] RamMultiplier=2 - Save the file and exit the editor.
- Restart the Raspberry Pi to apply the changes: