[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Font related crash?

From: Eli Zaretskii
Subject: Re: Font related crash?
Date: Thu, 05 Nov 2015 18:26:59 +0200

> Date: Thu, 5 Nov 2015 00:45:51 -0800
> From: Yuan MEI <address@hidden>
> Cc: Eli Zaretskii <address@hidden>, emacs-devel <address@hidden>
> Program received signal SIGFPE, Arithmetic exception.
> 0x0000000000413a88 in required_matrix_width (address@hidden)
> at dispnew.c:1727
> 1727 / ch_width) * w->ncols_scale_factor
> (gdb) p ch_width
> $1 = 0
> (gdb) p w->ncols_scale_factor
> $2 = 1
> (gdb) p WINDOW_PIXEL_WIDTH (w)
> $3 = 96
> (gdb) 

Martin, this probably means the code in font_open_entity, which AFAICS
is the only place where we set FRAME_SMALLEST_CHAR_WIDTH, was not yet
called for this frame, or maybe it was called, but the logic there
that assigns a value to the above is flawed.

Such a small pixel width probably means the former, in which case I
think we need some simple protection in required_matrix_width against
FRAME_SMALLEST_CHAR_WIDTH being zero (and a similar protection in
required_matrix_height, to be called next).

Or maybe when we create a frame we should simply initialize
FRAME_SMALLEST_CHAR_WIDTH to 1 (and similarly with

reply via email to

[Prev in Thread] Current Thread [Next in Thread]