From: Amit Dhingra <mechanicalamit@gm...> - 2012-12-24 04:00:51
Some amateur research below:
-- Segfaults since bounding box returns null within png_do_export [line 841: bbox = GetDataBoundingBox (PCB->Data);]
-- GetDataBoundingBox returns null since layout has not Data (no Vias, no elements, etc.)
Solution might be to check if bounding box returns NULL and exit with an
error. Patch attached.
** Patch added: "0001-hid-png-Error-out-when-layout-contains-no-data.patch"
You received this bug notification because you are a member of PCB Bug
Team, which is subscribed to pcb.
pcb crashes when GUI-lessly exporting a PNG
Status in PCB: Printed Circuit Board CAD package:
When working on bug #1045907 (pcbdiff related) I found pcb crashing on
pcb -x png --dpi 200 --only-visible --photo-mode --outfile /tmp/bla
The same happens when using the pcb coming with Ubuntu 12.04 (PCB
version 20110918) as well as with a binary compiled from current git,
using src/pcbtest.sh. The layout is apparently empty.
To manage notifications about this bug go to: