From: Amit D. <mec...@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" https://bugs.launchpad.net/pcb/+bug/1048256/+attachment/3466869/+files/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. https://bugs.launchpad.net/bugs/1048256 Title: pcb crashes when GUI-lessly exporting a PNG Status in PCB: Printed Circuit Board CAD package: Confirmed Bug description: When working on bug #1045907 (pcbdiff related) I found pcb crashing on this: pcb -x png --dpi 200 --only-visible --photo-mode --outfile /tmp/bla PCB.00020492.backup 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: https://bugs.launchpad.net/pcb/+bug/1048256/+subscriptions |