www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2021/05/29/11:49:02

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.7+dev
X-Exmh-Isig-CompType: repl
X-Exmh-Isig-Folder: geda
From: "karl AT aspodata DOT se [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] errors in git gschem
In-reply-to: <alpine.DEB.2.21.2105291653400.6833@nimbus>
References: <20210527152030 DOT 03D81832CA7E AT turkos DOT aspodata DOT se> <20210528121930 DOT 617BC83B0DDA AT turkos DOT aspodata DOT se> <20210528160449 DOT 9E70083B0DDA AT turkos DOT aspodata DOT se> <alpine DOT DEB DOT 2 DOT 21 DOT 2105281922160 DOT 14690 AT nimbus> <20210528184745 DOT C32D183B0DDA AT turkos DOT aspodata DOT se> <alpine DOT DEB DOT 2 DOT 21 DOT 2105282107570 DOT 18480 AT nimbus> <alpine DOT DEB DOT 2 DOT 21 DOT 2105291653400 DOT 6833 AT nimbus>
Comments: In-reply-to Roland Lutz <rlutz AT hedmen DOT org>
message dated "Sat, 29 May 2021 17:00:08 +0200."
Mime-Version: 1.0
Message-Id: <20210529154754.6EE2283B0DDA@turkos.aspodata.se>
Date: Sat, 29 May 2021 17:47:54 +0200 (CEST)
X-Virus-Scanned: ClamAV using ClamSMTP
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Roland:
...
> I can't say for sure with the information I have, but the most probable 
> cause for this seems to be an invalid fill type field in a file.  I pushed 
> a patch which adds a check for line and fill types.  You should now see a 
> message in the status window whenever gschem occurs an invalid value.

 You mean something like this:

$ diff res_h.sym error.sym
2c2
< T 200 200 9 10 1 1 0 6 1
---
> T 200 200 9 10 1 1 0 6 -1
$ /usr/local/bin/gschem ~/error.sym
**
ERROR:o_text_basic.c:396:o_text_read: assertion failed: (num_lines && num_lines > 0)
Bail out! ERROR:o_text_basic.c:396:o_text_read: assertion failed: (num_lines && num_lines > 0)
Aborted

  Or

$ diff res_h.sym error.sym
2c2
< T 200 200 9 10 1 1 0 6 1
---
> T 200 200 -9 10 1 1 0 6 1

 Status window:

Loading schematic [/home/karl/error.sym]
Found an invalid color [ T 200 200 -9 10 1 1 0 6 1
 ]
Setting color to default color

////

$ rm -rf ~/.gEDA/ ~/.config/gEDA/
$ /usr/local/bin/gschem 

 gives this in the status window:

...
Read init scm file [/usr/local/share/gEDA/scheme/gschem.scm]
Loaded RC file [/usr/local/share/gEDA/system-gafrc]
Loaded RC file [/usr/local/share/gEDA/system-gschemrc]
New file [/Net/git/geda-gaf/untitled_1.sch]

$ /usr/local/bin/gschem ~/res_h.sym

 gives:

...
Read init scm file [/usr/local/share/gEDA/scheme/gschem.scm]
Loaded RC file [/usr/local/share/gEDA/system-gafrc]
Loaded RC file [/usr/local/share/gEDA/system-gschemrc]
Loading schematic [/home/karl/res_h.sym]

I.e. no error reported in the status window.

Regards,
/Karl Hammar

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019