PCB from git head dies on optimize rats
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pcb |
Fix Released
|
Undecided
|
Andrew Poelstra |
Bug Description
The optimize rats action of PCB seems to have suffered from changes since version 20100929. With a fairly large layout (1700 components) the application dies repeatedly after two to three optimize actions. There is an error message on the command line:
***MEMORY-ERROR***: pcb-PC[19621]: GSlice: failed to allocate 248 bytes (alignment: 256): Cannot allocate memory
During optimize system load goes way up and memory usage goes beyond 2GB and into swap. The memory does not seem to be freed when optimize is done. After the second ooptimize memory usage rises even more until the application dies. See the attached screenshot of the system monitor.
The same layout does not crash with PCB v20100929. With this version optimize rats takes just two seconds and is not visible in memory usage. Peter Cliftons current pcb+gl crashes like git head.
---<)kaimartin(>---
Changed in pcb: | |
status: | Confirmed → In Progress |
Changed in pcb: | |
status: | Fix Committed → Fix Released |
There is definitely a memory problem here. With my system (2Gb RAM, no swap) I can crash pcb with a single optimize.
The memory spike also occurs when compiling with --disable-gl, so it seems that Peter C.'s GL changes are not to blame.