X-Authentication-Warning: delorie.com: mail set sender to geda-help-bounces using -f X-Recipient: geda-help AT delorie DOT com Subject: Re: [geda-help] PCB segfault - project too big? From: Richard Rasker To: geda-help AT delorie DOT com In-Reply-To: <201110111956.p9BJuVLm010307@envy.delorie.com> References: <1318338356 DOT 29731 DOT 2 DOT camel AT localhost> <201110111442 DOT p9BEgtk6025142 AT envy DOT delorie DOT com> <1318353062 DOT 5503 DOT 22 DOT camel AT localhost> <201110111956 DOT p9BJuVLm010307 AT envy DOT delorie DOT com> Content-Type: text/plain Organization: Linetec Date: Tue, 11 Oct 2011 23:23:55 +0200 Message-Id: <1318368235.5503.57.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1-2.2mdv2008.1 Content-Transfer-Encoding: 7bit Reply-To: geda-help AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-help AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Op dinsdag 11-10-2011 om 15:56 uur [tijdzone -0400], schreef DJ Delorie: > Try this patch: > > Author: DJ Delorie 2011-08-25 01:57:08 > Committer: DJ Delorie 2011-08-25 01:58:23 > Parent: a354691f7088c80077658c26268ccbcdfe69356f (Fix texinfo bug in report.c patch) > Child: 12771c69eee43cd5f275a64a031f3947ab172d77 (Change Gtk layer_process() to use colors from Settings, not PCB) > Branches: master, remotes/origin/master, remotes/origin/pcb-20110918 > Follows: pcb-20081128-base > Precedes: pcb-20110918-RELEASE > > Fix File->Import for elements on back side. > > Mirror pasted footprints when replacing back-side elements. Also > clear element cache when reloading the new footprint, to avoid getting a > stale pointer. > > Closes-bug: lp-699331 > > --------------------------------- src/action.c --------------------------------- > index 93c17a2..20dbb0a 100644 > @@ -7082,6 +7082,8 @@ ActionElementList (int argc, char **argv, Coord x, Coord y) > > er = ElementOrientation (e); > pe = PASTEBUFFER->Data->Element->data; > + if (!FRONT (e)) > + MirrorElementCoordinates (PASTEBUFFER->Data, pe, pe->MarkY*2 - PCB->MaxHeight); > pr = ElementOrientation (pe); > > mx = e->MarkX; > @@ -7105,6 +7107,7 @@ ActionElementList (int argc, char **argv, Coord x, Coord y) > } > > /* Now reload footprint */ > + element_cache = NULL; > e = find_element_by_refdes (refdes); > > old = ChangeElementText (PCB, PCB->Data, e, NAMEONPCB_INDEX, strdup (refdes)); When I apply this to my 20100929 version of PCB, compilation fails: ... TEXINPUTS=".:$TEXINPUTS" \ MAKEINFO='/bin/sh /home/richard/Downloads/pcb-20100929/pcb-20100929/missing --run makeinfo -I .' \ /usr/bin/texi2dvi --pdf --batch pcb.texi This is pdfTeX, Version 3.141592-1.40.5 (Web2C 7.5.5) entering extended mode (./txiversion.tex (/home/richard/Downloads/pcb-20100929/pcb-20100929/doc/texinfo.tex Loading texinfo [version 2005-01-30.17]: Basics, pdf, fonts, page headings, tables, conditionals, indexing, sectioning, toc, environments, ! Font \circle=lcircle10 not loadable: Metric (TFM) file not found. \allocationnumber \alloc@ ...ifnum \count 1#1 < #4\allocationnumber =\count 1#1 \global \advan... l.4819 \newdimen\circthick ? ! Emergency stop. \allocationnumber \alloc@ ...ifnum \count 1#1 < #4\allocationnumber =\count 1#1 \global \advan... l.4819 \newdimen\circthick No pages of output. Transcript written on txiversion.log. kpathsea: Running mktextfm lcircle10 mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input lcircle10 This is METAFONT, Version 2.71828 (Web2C 7.5.5) (/var/lib/texmf/source/jknappen/sauter/lcircle10.mf (/usr/share/texmf/fonts/source/lh/base/fikparm.mf (/usr/share/texmf/fonts/source/jknappen/ec/exbase.mf) (/usr/share/texmf/fonts/source/lh/base/lcyrbeg.mf) (/usr/share/texmf/fonts/source/lh/base/lkligtbl.mf)kpathsea: Running mktexmf ecircle10 ! I can't find file `ecircle10'. input ecircle10 ; use_driver->...#=pt#;pt#:=true_pt#;scantokens(ss); pt#:=true_pt#;font_identif... l.288 use_driver(fonteq) ; Please type another input file name ! Emergency stop. input ecircle10 ; use_driver->...#=pt#;pt#:=true_pt#;scantokens(ss); pt#:=true_pt#;font_identif... l.288 use_driver(fonteq) ; Transcript written on lcircle10.log. mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input lcircle10' failed. kpathsea: Appending font creation commands to missfont.log. /usr/bin/texi2dvi: texinfo.tex appears to be broken, quitting. This results in Error 2. But I think I worked around my original problem: I managed to load all new elements in the freshly compiled lesstif version and save it, after which I can load the file in the old PCB version and edit it without problems. As far as the latest git version is concerned: as soon as I have some time on my hands, I'll muck out the PC, create backups and install a more recent Linux version -- and then compiling and installing new stuff shouldn't be much of a problem any more. Thanks again for all your help, Best regards, Richard Rasker