Subject: bug#75199: 30.0.93; Emacs crashes when completing with corfu

From: Zhengyi Fu <[email-masked]>
Date: Mon, 30 Dec 2024 23:55:12 +0800

On 2024-12-30 23:24, Eli Zaretskii wrote:

> Earlier you wrote:
> 
>> The error is probably caused by the width value of 0 passed to
>> XCreatePixmapFromBitmapData().
>> 
>> It seems gui_intersect_rectangles() returns true even if the resulted
>> rectangle is empty.  Is that correct behavior?
> 
> Can you tell how this happens?  Is corfu doing something special with
> the fringes?

I noticed the following calls in corfu--popup-show before the error:

* define-fringe-bitmap(corfu--bar [-241] 1 8 (top periodic))
* define-fringe-bitmap(corfu--nil [])