From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yagnesh Raghava Yakkala Newsgroups: gmane.emacs.bugs Subject: bug#14272: 24.3.50; crash on loading theme Date: Fri, 26 Apr 2013 18:24:18 +0900 Message-ID: <87mwslzltp.fsf@yagnesh.org> References: <87ehdy0yki.fsf@yagnesh.org> <83y5c5u8ux.fsf@gnu.org> <87y5c5zrne.fsf@yagnesh.org> <83vc79u3uc.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1366968306 12806 80.91.229.3 (26 Apr 2013 09:25:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Apr 2013 09:25:06 +0000 (UTC) Cc: 14272@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 26 11:25:10 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UVetx-0007p9-2q for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Apr 2013 11:25:09 +0200 Original-Received: from localhost ([::1]:44139 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVetw-0004VL-8f for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Apr 2013 05:25:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVets-0004U5-9v for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2013 05:25:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVetq-0004Jk-Nq for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2013 05:25:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40086) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVetq-0004J1-KJ for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2013 05:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UVetp-0007nV-U2 for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2013 05:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yagnesh Raghava Yakkala Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Apr 2013 09:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14272 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14272-submit@debbugs.gnu.org id=B14272.136696826329887 (code B ref 14272); Fri, 26 Apr 2013 09:25:01 +0000 Original-Received: (at 14272) by debbugs.gnu.org; 26 Apr 2013 09:24:23 +0000 Original-Received: from localhost ([127.0.0.1]:44195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UVetD-0007m0-0c for submit@debbugs.gnu.org; Fri, 26 Apr 2013 05:24:23 -0400 Original-Received: from mailgate4.sys.hokudai.ac.jp ([133.87.1.143]:52134) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UVet9-0007lo-Ao for 14272@debbugs.gnu.org; Fri, 26 Apr 2013 05:24:21 -0400 Original-Received: from mailgate4.sys.hokudai.ac.jp (localhost.localdomain [127.0.0.1]) by localhost.sys.hokudai.ac.jp (Postfix) with ESMTP id 8C33942DF34 for <14272@debbugs.gnu.org>; Fri, 26 Apr 2013 18:24:17 +0900 (JST) Original-Received: from okhotsk19 (sealion.lowtem.hokudai.ac.jp [133.87.217.30]) by mailgate4.sys.hokudai.ac.jp (Postfix) with ESMTP id 80AEC42DEFE for <14272@debbugs.gnu.org>; Fri, 26 Apr 2013 18:24:07 +0900 (JST) Original-Received: from localhost (localhost [127.0.0.1]) by okhotsk19 (Postfix) with ESMTPS id 0E4E0181413; Fri, 26 Apr 2013 18:24:19 +0900 (JST) In-Reply-To: <83vc79u3uc.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 26 Apr 2013 10:51:39 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:73718 Archived-At: Hello Eli, > most probably because font->average_width is zero, because > FRAME_COLUMN_WIDTH gets its value for font's average_width. > > Please do this, after Emacs crashes under GD: > > (gdb) frame 1 > (gdb) p *font > (gdb) pp font_object --8<---------------cut here---------------start------------->8--- (gdb) frame 1 #1 0x0000000000506e83 in x_new_font (f=3D0x11c1418, font_object=3D19333709= , fontset=3D23) at xterm.c:7913 warning: Source file is more recent than executable. 7913 compute_fringe_widths (f, 1); (gdb) p *font $1 =3D { header =3D { size =3D 4611686018679132178 },=20 props =3D {13094754, 16139730, 12959410, 12846194, 13089778, 102720, 1025= 28, 102656, 0, 12846194, 12846194, 0, 23107046, 12846194, 17130513, 1713035= 3, 16123585, 14753874},=20 min_width =3D 0,=20 max_width =3D 0,=20 pixel_size =3D 0,=20 height =3D 3,=20 space_width =3D 0,=20 average_width =3D 0,=20 ascent =3D 2,=20 descent =3D 1,=20 underline_thickness =3D 0,=20 underline_position =3D 0,=20 vertical_centering =3D false,=20 baseline_offset =3D 0,=20 relative_compose =3D 0,=20 default_ascent =3D 0,=20 font_encoder =3D 0x4000000005000000,=20 driver =3D 0xc2ffa0,=20 encoding_charset =3D -1,=20 repertory_charset =3D -1 } (gdb) pp font_object # (gdb)=20 --8<---------------cut here---------------end--------------->8--- > please try this recipe in that build.=20=20 I don't really know how to do that.=20 > I get assertion violation here: > > static int > set_lface_from_font (struct frame *f, Lisp_Object lface, > Lisp_Object font_object, int force_p) > { > Lisp_Object val; > struct font *font =3D XFONT_OBJECT (font_object); > > /* Set attributes only if unspecified, otherwise face defaults for > new frames would never take effect. If the font doesn't have a > specific property, set a normal value for that. */ > > if (force_p || UNSPECIFIEDP (LFACE_FAMILY (lface))) > { > Lisp_Object family =3D AREF (font_object, FONT_FAMILY_INDEX); > > ASET (lface, LFACE_FAMILY_INDEX, SYMBOL_NAME (family)); > } > > if (force_p || UNSPECIFIEDP (LFACE_FOUNDRY (lface))) > { > Lisp_Object foundry =3D AREF (font_object, FONT_FOUNDRY_INDEX); > > ASET (lface, LFACE_FOUNDRY_INDEX, SYMBOL_NAME (foundry)); > } > > if (force_p || UNSPECIFIEDP (LFACE_HEIGHT (lface))) > { > int pt =3D PIXEL_TO_POINT (font->pixel_size * 10, FRAME_RES_Y (f)); > > eassert (pt > 0); <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< > ASET (lface, LFACE_HEIGHT_INDEX, make_number (pt)); > } > > > because font->pixel_size is zero, something that Emacs cannot possibly > tolerate. For the record, the value of lface I get is this: > > [face "Arial" "outline" normal 1 normal normal nil nil "#e8e8d3" "#1515= 15" nil nil nil nil # nil "-outline-Arial-normal= -normal-normal-sans-13-*-*-*-p-*-fontset-auto1"] > > However, I'm not sure my font setup is similar enough to yours, so it > would be important to know if you get the same assertion violation. > > In any case, the problem seems to be with font specification, so I > hope someone who knows more than I do about that will chime in. IIRC, I installed a custom font few months ago, that may be the reason. Thanks., --=20 =E0=B0=8E=E0=B0=82=E0=B0=A6=E0=B0=B0=E0=B1=8B =E0=B0=AE=E0=B0=B9=E0=B0=BE= =E0=B0=A8=E0=B1=81=E0=B0=AD=E0=B0=BE=E0=B0=B5=E0=B1=81=E0=B0=B2=E0=B1=81 = =E0=B0=85=E0=B0=82=E0=B0=A6=E0=B0=B0=E0=B0=BF=E0=B0=95=E0=B0=BF =E0=B0=B5= =E0=B0=82=E0=B0=A6=E0=B0=A8=E0=B0=AE=E0=B1=81=E0=B0=B2=E0=B1=81. YYR