From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Abrahams Newsgroups: gmane.emacs.devel Subject: [ASSERTION] w32term.c/w32_per_char_metric Date: Thu, 14 Aug 2003 14:27:06 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1060885754 12498 80.91.224.253 (14 Aug 2003 18:29:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 14 Aug 2003 18:29:14 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Aug 14 20:29:13 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19nMqX-0005JC-00 for ; Thu, 14 Aug 2003 20:29:13 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19nMrC-0000UA-00 for ; Thu, 14 Aug 2003 20:29:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19nMpP-0005Rp-NJ for emacs-devel@quimby.gnus.org; Thu, 14 Aug 2003 14:28:03 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19nMpH-0005Hm-73 for emacs-devel@gnu.org; Thu, 14 Aug 2003 14:27:55 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19nMok-0004u6-QI for emacs-devel@gnu.org; Thu, 14 Aug 2003 14:27:53 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19nMoj-0004tX-VK for emacs-devel@gnu.org; Thu, 14 Aug 2003 14:27:22 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19nMpu-0002Zr-00 for ; Thu, 14 Aug 2003 20:28:34 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19nMpt-0002Zj-00 for ; Thu, 14 Aug 2003 20:28:33 +0200 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 19nMoi-0003CX-00 for ; Thu, 14 Aug 2003 20:27:20 +0200 Original-Lines: 79 Original-X-Complaints-To: usenet@sea.gmane.org User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:CxE3zxtw+/2YiTJA9xBMTFrs2G0= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15954 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15954 The title function asserts in GLYPH_DEBUG mode. At this point I am stuck and need some help figuring out what's going wrong. The assertion is: xassert (font_type != UNKNOWN_FONT); The stack trace is: ntdll.dll!77f75a58() emacs.exe!w32_abort() Line 14621 + 0x8 C > emacs.exe!w32_per_char_metric(W32FontStruct * font=0x018d3500, unsigned short * char2b=0x0082dc28, int font_type=0x00000000) Line 898 + 0xb C emacs.exe!x_get_glyph_overhangs(glyph * glyph=0x01934014, frame * f=0x01629c00, int * left=0x0082dca4, int * right=0x0082dc98) Line 16822 + 0x26 C emacs.exe!w32_get_glyph_overhangs() Line 1358 + 0x15 C emacs.exe!update_text_area(window * w=0x01629a00, int vpos=0x00000005) Line 4351 + 0x23 C emacs.exe!update_window_line(window * w=0x01629a00, int vpos=0x00000005, int * mouse_face_overwritten_p=0x0082dd48) Line 4490 + 0xd C emacs.exe!update_window(window * w=0x01629a00, int force_p=0x00000001) Line 4147 + 0x11 C emacs.exe!update_window_tree(window * w=0x01629a00, int force_p=0x00000000) Line 3881 + 0xd C emacs.exe!update_frame(frame * f=0x01629c00, int force_p=0x00000000, int inhibit_hairy_id_p=0x00000000) Line 3818 + 0xd C emacs.exe!redisplay_internal(int preserve_echo_area=0x00000001) Line 10052 + 0x10 C emacs.exe!redisplay_preserve_echo_area(int from_where=0x00000008) Line 10249 + 0x7 C emacs.exe!detect_input_pending_run_timers(int do_display=0x00000001) Line 9913 + 0x7 C emacs.exe!wait_reading_process_input(int time_limit=0x00000000, int microsecs=0x00000000, int read_kbd=0x0fffffff, int do_display=0x00000001) Line 4116 + 0x9 C emacs.exe!kbd_buffer_get_event() Line 3847 + 0xf C emacs.exe!read_char(int commandflag=0x00000001, int nmaps=0x00000002, int * maps=0x0082e6c4, int prev_event=0x11377c04, int * used_mouse_menu=0x0082e884) Line 2810 + 0x10 C emacs.exe!read_key_sequence(int * keybuf=0x0082ea18, int bufsize=0x0000001e, int prompt=0x11377c04, int dont_downcase_last=0x00000000, int can_return_switch_frame=0x00000001, int fix_current_buffer=0x00000001) Line 8827 + 0x2a C emacs.exe!command_loop_1() Line 1505 + 0x1b C emacs.exe!internal_condition_case(int (void)* bfun=0x01017690, int handlers=0x1139ce44, int (void)* hfun=0x01017160) Line 1333 + 0x5 C emacs.exe!command_loop_2() Line 1292 + 0x15 C emacs.exe!internal_catch(int tag=0x113a4d6c, int (void)* func=0x010174e0, int arg=0x11377c04) Line 1094 + 0x9 C emacs.exe!command_loop() Line 1263 + 0x17 C emacs.exe!recursive_edit_1() Line 987 + 0x5 C emacs.exe!Frecursive_edit() Line 1044 C emacs.exe!Ffuncall(int nargs=0x00000001, int * args=0x0082ec7c) Line 2721 + 0xe C emacs.exe!Fbyte_code(int bytestr=0x312f6300, int vector=0x412f6360, int maxdepth=0x00000006) Line 710 + 0x10 C emacs.exe!Feval(int form=0x512f62f0) Line 2085 + 0x22 C emacs.exe!internal_catch(int tag=0x115d065c, int (void)* func=0x0114eaa0, int arg=0x512f62f0) Line 1094 + 0x9 C emacs.exe!Fbyte_code(int bytestr=0x312f6174, int vector=0x412f61bc, int maxdepth=0x00000006) Line 873 + 0x14 C emacs.exe!funcall_lambda(int fun=0x412f6158, int nargs=0x00000000, int * arg_vector=0x0082f234) Line 2913 + 0x2b C emacs.exe!Ffuncall(int nargs=0x00000001, int * args=0x0082f230) Line 2772 + 0x14 C emacs.exe!Fbyte_code(int bytestr=0x312f7740, int vector=0x412f7764, int maxdepth=0x00000001) Line 710 + 0x10 C emacs.exe!funcall_lambda(int fun=0x412f7720, int nargs=0x00000000, int * arg_vector=0x0082f48c) Line 2913 + 0x2b C emacs.exe!Ffuncall(int nargs=0x00000001, int * args=0x0082f488) Line 2772 + 0x14 C emacs.exe!Fbyte_code(int bytestr=0x312f791c, int vector=0x412f7d58, int maxdepth=0x0000000c) Line 710 + 0x10 C emacs.exe!funcall_lambda(int fun=0x412f78fc, int nargs=0x00000001, int * arg_vector=0x0082f710) Line 2913 + 0x2b C emacs.exe!Ffuncall(int nargs=0x00000002, int * args=0x0082f70c) Line 2772 + 0x14 C emacs.exe!Fbyte_code(int bytestr=0x312f3f88, int vector=0x412f4430, int maxdepth=0x00000006) Line 710 + 0x10 C emacs.exe!funcall_lambda(int fun=0x412f3f70, int nargs=0x00000000, int * arg_vector=0x0082f97c) Line 2913 + 0x2b C emacs.exe!Ffuncall(int nargs=0x00000001, int * args=0x0082f978) Line 2772 + 0x14 C emacs.exe!Fbyte_code(int bytestr=0x312f2c68, int vector=0x412f2d00, int maxdepth=0x00000006) Line 710 + 0x10 C emacs.exe!funcall_lambda(int fun=0x412f2c50, int nargs=0x00000000, int * arg_vector=0x0082fb8c) Line 2913 + 0x2b C emacs.exe!apply_lambda(int fun=0x412f2c50, int args=0x11377c04, int eval_flag=0x00000001) Line 2833 + 0x17 C emacs.exe!Feval(int form=0x51542734) Line 2120 + 0xf C emacs.exe!top_level_2() Line 1301 + 0xb C emacs.exe!internal_condition_case(int (void)* bfun=0x01017530, int handlers=0x1139ce44, int (void)* hfun=0x01017160) Line 1333 + 0x5 C emacs.exe!top_level_1() Line 1309 + 0x16 C emacs.exe!internal_catch(int tag=0x11392404, int (void)* func=0x01017550, int arg=0x11377c04) Line 1094 + 0x9 C emacs.exe!command_loop() Line 1270 + 0x18 C emacs.exe!recursive_edit_1() Line 987 + 0x5 C emacs.exe!Frecursive_edit() Line 1044 C emacs.exe!main() Line 1668 C emacs.exe!mainCRTStartup() Line 259 + 0x12 C emacs.exe!_start() Line 131 C kernel32.dll!77e814c7() shlwapi.dll!70a71a29() and the locals are: + font 0x018d3500 {font_type=UNKNOWN_FONT tm={tmHeight=0x0000000f tmAscent=0x0000000c tmDescent=0x00000003 ...} hfont=0x0d0a0d76 {unused=??? } ...} W32FontStruct * + char2b 0x0082dc28 "m????t???????e???T?????????C???T????????5" unsigned short * font_type 0x00000000 int retval 0xcccccccc int + pcm 0xcccccccc {rbearing=??? lbearing=??? width=??? ...} _XCharStruct * -- Dave Abrahams Boost Consulting www.boost-consulting.com