Github messages for voidlinux
 help / color / mirror / Atom feed
From: grtcdr <grtcdr@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [ISSUE] [CLOSED] Emacs (29.4) PGTK crashes on startup
Date: Mon, 18 Nov 2024 21:27:59 +0100	[thread overview]
Message-ID: <20241118202759.F415A21837@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-53098@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 2041 bytes --]

Closed issue by grtcdr on void-packages repository

https://github.com/void-linux/void-packages/issues/53098

Description:
### Is this a new report?

Yes

### System Info

Void 6.6.61_1 x86_64-musl GenuineIntel uptodate rrFFFF

### Package(s) Affected

emacs-pgtk-29.4_2

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

https://lists.gnu.org/archive/html/bug-gnu-emacs/2024-11/msg00817.html

### Expected behaviour

`emacs` should launch without the referenced warning and render properly without causing a segfault.

### Actual behaviour

When starting `emacs` or `emacs -Q` under a Wayland compositor, specifically Sway, Emacs displays the following warning message:

```
(emacs:8670): GdkPixbuf-WARNING **: 13:38:44.606: Error loading XPM image loader: Image type “xpm” is not supported
```

And then proceeds to segfault (see backtrace [emacs.gdb.txt](https://github.com/user-attachments/files/17788159/emacs.gdb.txt) for more information, but the culprit function should be a `cairo_surface_create_similar_image()` call, as mentioned in the upstream report) as shown by this message:

```
Fatal error 11: Segmentation fault
zsh: segmentation fault  emacs
```

I spoke with the core maintainer and they asked that I verify that the XPM library is installed at the distribution-level. I have it installed:

```
~ $ xbps-query -Rs xpm
[*] libXpm-3.5.17_1       X PixMap Library from modular Xorg X11
```

What makes that warning out of place is that invoking the following code to check if the `xpm` image loader is supported actually returns `t`; thankfully the batch processor which doesn't require opening a client window and rendering a surface works (and so does `emacs -nw` of course).

```
$ emacs -Q -batch --eval "(message \"%s\" (image-type-available-p 'xpm))"
=> t
```

Eli, the core maintainer, suggested that this problem may be due to a GTK issue. What do you think?

### Steps to reproduce

1. Install `emacs-pgtk`
2. Run `emacs` or `emacs -Q`

  reply	other threads:[~2024-11-18 20:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-16 22:43 [ISSUE] Emacs (29.4) PGTK crashes on Void Linux grtcdr
2024-11-18 20:27 ` grtcdr [this message]
2024-11-18 20:28 ` Emacs (29.4) PGTK crashes on startup grtcdr

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=20241118202759.F415A21837@inbox.vuxu.org \
    --to=grtcdr@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).