From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <6517a907dd551e0180eb73579407f3f3@quanstro.net> From: erik quanstrom Date: Tue, 13 Nov 2007 22:05:48 -0500 To: 9fans@cse.psu.edu MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] font cache resize failed Topicbox-Message-UUID: f8ec6ba6-ead2-11e9-9d60-3106f5b1d025 i've been having on-and-off trouble with page and proof issuing this error "font cache resized failed: out of memory". it turned out that fontresize() was being called with wid=0 from loadchar. evidently this is not a problem with my font, as proof sometimes does this even when displaying no menu. i temporarly solved this problem with this hack: 9diff font.c /n/sources/plan9//sys/src/libdraw/font.c:359,368 - font.c:359,369 d = f->display; if(d == nil) goto Nodisplay; - + if(wid == 0) + wid = 1; // hack? new = allocimage(d, Rect(0, 0, ncache*wid, f->height), CHAN1(CGrey, depth), 0, 0); i'm not sure if this is a terrible hack or not. it's not if zero-width characters could sometimes be expected. - erik