[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-bug: [Bug 812407] Re: PCB shuts down after opening file with empty Connect("")



On Sun, 11 Dec 2011 08:58:40 -0000
Peter TB Brett <812407@xxxxxxxxxxxxxxxxxx> wrote:

> Hi Joe,
> 
> I'd like to try and stop gsch2pcb from emitting broken netlists. :-)
> Do you by any chance have a minimal schematic that causes the "space
> after line continuation char" problem?
> 
Sorry, I haven't been able to simplify this without breaking the
breakage, but it's not huge, and it's easy to see where the problem
is, though not what causes it.

The file LC-1-1m.sch produces a good netlist, LC-1-1n.sch produces the
problem one. Two components have been disconnected from the '+5V main'
rail and two new ones added to it, plus other parts added. I have
not been able to reproduce this behaviour by adding and removing
parts with simpler schematics, the line continuation character and
return always seem to be removed correctly. This does appear to be quite
a rare error, and sheer fluke that I hit on it.

The file test2.prj will produce a damaged netlist. Unfortunately many
custom components are used, but the netlist is exactly the same (no
output from diff) when the libraries are available, so with luck it is
of use to you. The PCB file produced is obviously missing many parts,
but the file test-no-netlist.pcb has been produced from the same sources
with the custom parts included. The faulty netlist can be imported into
it correctly but no ratlines are available, and once closed, the pcb
file can never be opened again. Removing the empty Connect fixes it
instantly and there is then no sign of any deviation from the original
schematics.

The current PCB in Debian sid is 20110918 with GTK (see screenshot.png)
which behaves almost the same as the earlier version with the empty
Connect except it now says 'segmentation fault' when started from a
console. I neglected to note the versions of gschem and PCB when the
problem occurred, and sid changes frequently, but the current versions
still behave the same (gschem 1.6.2.20110115).

Please let me know if I can be of further help. I can assemble the
custom parts and footprints into one place if required, but it would
help if it wasn't necessary.

Best regards,
Joe Rowan

** Attachment added: "bug.tar.bz2"
   https://bugs.launchpad.net/bugs/812407/+attachment/2633369/+files/bug.tar.bz2

-- 
You received this bug notification because you are a member of gEDA Bug
Team, which is subscribed to gEDA.
https://bugs.launchpad.net/bugs/812407

Title:
  PCB shuts down after opening file with empty Connect("")

Status in GPL Electronic Design Automation tools:
  Incomplete
Status in PCB: Printed Circuit Board CAD package:
  New

Bug description:
  After editing a schematic in gschem and using gsch2pcb to create a new netlist, a space was left at the end of a net after a line continuation character. This led to an empty connect statement in the net after import to the PCB file [Connect("")] and after this PCB would immediately shut down on opening the file without leaving any error record, even when started from a command line. The PCB file is OK after removing the connect statement.
  The net with the space was the last entry in the netlist file, and before the schematic was edited, that entry had run onto the next line after a continuation character but was now shorter.

To manage notifications about this bug go to:
https://bugs.launchpad.net/geda/+bug/812407/+subscriptions


_______________________________________________
geda-bug mailing list
geda-bug@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-bug