delorie.com/archives/browse.cgi | search |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |