Galapagos memory problem

I am trying to optimize shells using Karamba and Galapagos. However, Rhino is always running into memory issues and giving the following error:

A memory allocation failed and Rhino will close.
Rhino attempted to save the current model on your Desktop in
RHINO_EMERGENCY_SAVE.3dm
This file may be damaged and should be used as a last resort.
Restart your computer.

This happens after a few hours of running the optimization. When the error message appears, I can only press OK and then Rhino shuts down and all optimization steps are lost.

Is the memory overflow (in my case, 64GB of RAM) a known issue, or is this a bug? Also, I am wondering why the memory is getting so full, when only parameters and results - in both cases only numbers - have to be saved.

It might help to reduce the number of saved iterations or limit the complexity of the optimization process in Galapagos. Also, check if your Rhino and Karamba versions are up to date, as newer updates often fix bugs.

I am experiencing the same issue and searching for a solution.

I am running the newest RH8 and newest Karamba 3.1.41125

It could be a memory leak in Karamba3d. I will take a look and try to fix it a.s.a.p.
– Clemens

1 Like

Thank you, Clemens! Let me know if there is anything I can help with.

Dear all,
there has been a memory leak in Karamba3D.
It is fixed in Karamba3D 3.1.50121.
Thanks for your bug report!
– Clemens

thank you for the quick fix. I am testing it now and will let you know if it worked.

Dear @cp1, I tested the newest Karamba version 3.1.5 - however the memory leak is still happening.
Optimization started with 9.6 GB RAM used, after about 4h is up to 27.4GB. Delta is 17.8GB and rising…
I am running 1 iteration per second

Rhino 8 SR15 2025-1-7 (Rhino 8, 8.15.25007.13001, Git hash:master @ 5eab31224f22c4e8793154a2c34faf8db6ab1d53)
License type: Educational Lab License, build 2025-01-07
License details: LAN Zoo Network Node

Windows 11 (10.0.26100 SR0.0) or greater (Physical RAM: 64GB)
.NET 7.0.0

Computer platform: DESKTOP 

Standard graphics configuration.
  Primary display and OpenGL: NVIDIA RTX A4000 (NVidia) Memory: 16GB, Driver date: 9-10-2024 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 556.39
    > Accelerated graphics device with 4 adapter port(s)
        - Secondary monitor attached to adapter port #0
        - Windows Main Display attached to adapter port #1

Secondary graphics devices.
  Intel(R) UHD Graphics 770 (Intel) Memory: 2GB, Driver date: 9-13-2024 (M-D-Y).
    > Integrated graphics device with 4 adapter port(s)
        - There are no monitors attached to this device!

OpenGL Settings
  Safe mode: Off
  Use accelerated hardware modes: On
  GPU Tessellation is: On
  Redraw scene when viewports are exposed: On
  Graphics level being used: OpenGL 4.6 (primary GPU's maximum)
  
  Anti-alias mode: 4x
  Mip Map Filtering: Linear
  Anisotropic Filtering Mode: High
  
  Vendor Name: NVIDIA Corporation
  Render version: 4.6
  Shading Language: 4.60 NVIDIA
  Driver Date: 9-10-2024
  Driver Version: 32.0.15.5639
  Maximum Texture size: 32768 x 32768
  Z-Buffer depth: 24 bits
  Maximum Viewport size: 32768 x 32768
  Total Video Memory: 16376 MB

Rhino plugins that do not ship with Rhino
  C:\Users\r.neumerkel\AppData\Roaming\McNeel\Rhinoceros\packages\8.0\Karamba3D\3.1.50121\net7.0-windows\Karamba3D_LicensePlugin_Rhino8.rhp	"Karamba3DLicense"	

Rhino plugins that ship with Rhino
  C:\Program Files\Rhino 8\Plug-ins\Commands.rhp	"Commands"	8.15.25007.13001
  C:\Program Files\Rhino 8\Plug-ins\rdk.rhp	"Renderer Development Kit"	
  C:\Program Files\Rhino 8\Plug-ins\RhinoRenderCycles.rhp	"Rhino Render"	8.15.25007.13001
  C:\Program Files\Rhino 8\Plug-ins\rdk_etoui.rhp	"RDK_EtoUI"	8.15.25007.13001
  C:\Program Files\Rhino 8\Plug-ins\NamedSnapshots.rhp	"Snapshots"	
  C:\Program Files\Rhino 8\Plug-ins\MeshCommands.rhp	"MeshCommands"	8.15.25007.13001
  C:\Program Files\Rhino 8\Plug-ins\RhinoCycles.rhp	"RhinoCycles"	8.15.25007.13001
  C:\Program Files\Rhino 8\Plug-ins\Grasshopper\GrasshopperPlugin.rhp	"Grasshopper"	8.15.25007.13001
  C:\Program Files\Rhino 8\Plug-ins\Toolbars\Toolbars.rhp	"Toolbars"	8.15.25007.13001
  C:\Program Files\Rhino 8\Plug-ins\3dxrhino.rhp	"3Dconnexion 3D Mouse"	
  C:\Program Files\Rhino 8\Plug-ins\Displacement.rhp	"Displacement"	
  C:\Program Files\Rhino 8\Plug-ins\SectionTools.rhp	"SectionTools"	


Dear @rudolf.neumerkel,
thanks again for the bug report! I will do further testing.
– Clemens

Thank you, please let me know if I can help

Additionally, I get very low CPU utilization when running the optimization… only 1-2 cores are working. Total CPU load when optimizing is at about 10%