From: Daniel Mendler via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Zhengyi Fu <i@fuzy.me>
Cc: luangruo@yahoo.com, 75199@debbugs.gnu.org, Eli Zaretskii <eliz@gnu.org>
Subject: bug#75199: 30.0.93; Emacs crashes when completing with corfu
Date: Mon, 30 Dec 2024 19:00:45 +0100 [thread overview]
Message-ID: <87a5cdcape.fsf@daniel-mendler.de> (raw)
In-Reply-To: <8ac665654425902f3deb81481ac0242c@fuzy.me> (Zhengyi Fu's message of "Mon, 30 Dec 2024 23:55:12 +0800")
Zhengyi Fu <i@fuzy.me> writes:
> 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 [])
I've adjusted the second call to the following, also for compatibility
with older Emacs versions.
(define-fringe-bitmap 'corfu--nil [0] 1 1)
For the future, maybe `define-fringe-bitmap' should either check its
argument carefully and disallow empty bitmaps, or empty bitmaps should
be explicitly allowed? I've not seen reports about crashes on other
builds, e.g., X11+Cairo or the NS and Carbon builds for Mac. These
builds seem to support empty fringe bitmaps.
Daniel
next prev parent reply other threads:[~2024-12-30 18:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-30 13:02 bug#75199: 30.0.93; Emacs crashes when completing with corfu Zhengyi Fu
[not found] ` <handler.75199.B.17355638041034.ack@debbugs.gnu.org>
2024-12-30 14:25 ` bug#75199: Acknowledgement (30.0.93; Emacs crashes when completing with corfu) Zhengyi Fu
2024-12-30 14:40 ` bug#75199: 30.0.93; Emacs crashes when completing with corfu Eli Zaretskii
2024-12-30 15:04 ` Zhengyi Fu
2024-12-30 15:24 ` Eli Zaretskii
2024-12-30 15:45 ` Zhengyi Fu
2024-12-30 15:55 ` Zhengyi Fu
2024-12-30 18:00 ` Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-12-30 18:28 ` Eli Zaretskii
2024-12-30 18:43 ` Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-30 19:17 ` Eli Zaretskii
2024-12-30 19:47 ` Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a5cdcape.fsf@daniel-mendler.de \
--to=bug-gnu-emacs@gnu.org \
--cc=75199@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=i@fuzy.me \
--cc=luangruo@yahoo.com \
--cc=mail@daniel-mendler.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.