GNU bug report logs - #63514
alacritty>=0.12.0 does not work with Wayland

Previous Next

Package: guix;

Reported by: Lars-Dominik Braun <ldb <at> leibniz-psychology.org>

Date: Mon, 15 May 2023 07:19:02 UTC

Severity: normal

Done: Efraim Flashner <efraim <at> flashner.co.il>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 63514 in the body.
You can then email your comments to 63514 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to efraim <at> flashner.co.il, bug-guix <at> gnu.org:
bug#63514; Package guix. (Mon, 15 May 2023 07:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lars-Dominik Braun <ldb <at> leibniz-psychology.org>:
New bug report received and forwarded. Copy sent to efraim <at> flashner.co.il, bug-guix <at> gnu.org. (Mon, 15 May 2023 07:19:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Lars-Dominik Braun <ldb <at> leibniz-psychology.org>
To: bug-guix <at> gnu.org
Subject: alacritty>=0.12.0 does not work with Wayland
Date: Mon, 15 May 2023 09:18:01 +0200
[Message part 1 (text/plain, inline)]
Hi Efraim,

since the upgrade from alacritty 0.9 to 0.12 it does not work any more
with the DISPLAY environment variable unset (i.e. without xwayland). The
error message is:

thread 'main' panicked at 'Failed to initialize any backend! Wayland status: NoWaylandLib X11 status: XOpenDisplayFailed', /tmp/guix-build-alacritty-0.12.0.drv-0/source/guix-vendor/rust-winit-0.28.3.tar.gz/src/platform_impl/linux/mod.rs:757:9

Could you have a look?

Thanks,
Lars

[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#63514; Package guix. (Mon, 15 May 2023 09:03:02 GMT) Full text and rfc822 format available.

Message #8 received at 63514 <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Lars-Dominik Braun <ldb <at> leibniz-psychology.org>
Cc: 63514 <at> debbugs.gnu.org
Subject: Re: bug#63514: alacritty>=0.12.0 does not work with Wayland
Date: Mon, 15 May 2023 12:02:29 +0300
[Message part 1 (text/plain, inline)]
On Mon, May 15, 2023 at 09:18:01AM +0200, Lars-Dominik Braun wrote:
> Hi Efraim,
> 
> since the upgrade from alacritty 0.9 to 0.12 it does not work any more
> with the DISPLAY environment variable unset (i.e. without xwayland). The
> error message is:
> 
> thread 'main' panicked at 'Failed to initialize any backend! Wayland status: NoWaylandLib X11 status: XOpenDisplayFailed', /tmp/guix-build-alacritty-0.12.0.drv-0/source/guix-vendor/rust-winit-0.28.3.tar.gz/src/platform_impl/linux/mod.rs:757:9
> 
> Could you have a look?

That's certainly annoying. I'll take a look and see if I can find a good
way to fix that.

easy reproducer: 'DISPLAY="" alacritty' gives the same error.

Do you know if the X11 error is also a problem?

-- 
Efraim Flashner   <efraim <at> flashner.co.il>   פלשנר אפרים
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#63514; Package guix. (Mon, 15 May 2023 09:08:02 GMT) Full text and rfc822 format available.

Message #11 received at 63514 <at> debbugs.gnu.org (full text, mbox):

From: Lars-Dominik Braun <ldb <at> leibniz-psychology.org>
To: Efraim Flashner <efraim <at> flashner.co.il>, 63514 <at> debbugs.gnu.org
Subject: Re: bug#63514: alacritty>=0.12.0 does not work with Wayland
Date: Mon, 15 May 2023 11:07:50 +0200
[Message part 1 (text/plain, inline)]
Hi,

> easy reproducer: 'DISPLAY="" alacritty' gives the same error.

that’s exactly what I used under Wayland, otherwise it’ll fall back
to XWayland with ugly font rendering (because of my hidpi monitor).

> Do you know if the X11 error is also a problem?

Not sure what you mean. As I wrote it works with XWayland, so I’m
guessing X11 is not broken.

Thank you,
Lars

PS: What *is* entirely broken is swaylock, which also got updated
recently:

wl_registry <at> 2: error 0: invalid version for global wl_output (39): have 3, wanted 4

[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#63514; Package guix. (Mon, 15 May 2023 09:12:02 GMT) Full text and rfc822 format available.

Message #14 received at 63514 <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Lars-Dominik Braun <ldb <at> leibniz-psychology.org>
Cc: 63514 <at> debbugs.gnu.org
Subject: Re: bug#63514: alacritty>=0.12.0 does not work with Wayland
Date: Mon, 15 May 2023 12:11:11 +0300
[Message part 1 (text/plain, inline)]
On Mon, May 15, 2023 at 11:07:50AM +0200, Lars-Dominik Braun wrote:
> Hi,
> 
> > easy reproducer: 'DISPLAY="" alacritty' gives the same error.
> 
> that’s exactly what I used under Wayland, otherwise it’ll fall back
> to XWayland with ugly font rendering (because of my hidpi monitor).
> 
> > Do you know if the X11 error is also a problem?
> 
> Not sure what you mean. As I wrote it works with XWayland, so I’m
> guessing X11 is not broken.

I parsed the error like this:

(ins)efraim <at> 3900XT ~$ DISPLAY="" alacritty
thread 'main' panicked at 'Failed to initialize any backend! Wayland status: NoWaylandLib X11 status: XOpenDisplayFailed', /tmp/guix-build-alacritty-0.12.0.drv-0/source/guix-vendor/rust-winit-0.28.3.tar.gz/src/platform_impl/linux/mod.rs:757:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


(ins)efraim <at> 3900XT ~$ DISPLAY="" alacritty
thread 'main' panicked at 'Failed to initialize any backend! Wayland status: NoWaylandLib
(no wayland library found!)

X11 status: XOpenDisplayFailed', /tmp/guix-build-alacritty-0.12.0.drv-0/source/guix-vendor/rust-winit-0.28.3.tar.gz/src/platform_impl/linux/mod.rs:757:9
(something something XOpenDislay failed! with that source location)

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

> Thank you,
> Lars
> 

One bug per bug report :)

> PS: What *is* entirely broken is swaylock, which also got updated
> recently:
> 
> wl_registry <at> 2: error 0: invalid version for global wl_output (39): have 3, wanted 4
> 



-- 
Efraim Flashner   <efraim <at> flashner.co.il>   פלשנר אפרים
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]

Reply sent to Efraim Flashner <efraim <at> flashner.co.il>:
You have taken responsibility. (Mon, 15 May 2023 10:10:02 GMT) Full text and rfc822 format available.

Notification sent to Lars-Dominik Braun <ldb <at> leibniz-psychology.org>:
bug acknowledged by developer. (Mon, 15 May 2023 10:10:02 GMT) Full text and rfc822 format available.

Message #19 received at 63514-done <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Lars-Dominik Braun <ldb <at> leibniz-psychology.org>
Cc: 63514-done <at> debbugs.gnu.org
Subject: Re: bug#63514: alacritty>=0.12.0 does not work with Wayland
Date: Mon, 15 May 2023 13:09:01 +0300
[Message part 1 (text/plain, inline)]
On Mon, May 15, 2023 at 09:18:01AM +0200, Lars-Dominik Braun wrote:
> Hi Efraim,
> 
> since the upgrade from alacritty 0.9 to 0.12 it does not work any more
> with the DISPLAY environment variable unset (i.e. without xwayland). The
> error message is:
> 
> thread 'main' panicked at 'Failed to initialize any backend! Wayland status: NoWaylandLib X11 status: XOpenDisplayFailed', /tmp/guix-build-alacritty-0.12.0.drv-0/source/guix-vendor/rust-winit-0.28.3.tar.gz/src/platform_impl/linux/mod.rs:757:9
> 
> Could you have a look?

This should now be fixed, feel free to re-open if its still not working
for you.

(ins)efraim <at> 3900XT ~/workspace/guix$ ./pre-inst-env guix shell alacritty
(ins)efraim <at> 3900XT ~/workspace/guix [env]$ DISPLAY="" alacritty
warning: queue 0x7f40b0000cc0 destroyed while proxies still attached:
  zwp_primary_selection_offer_v1 <at> 4278190081 still attached
  wl_data_offer <at> 4278190080 still attached
  zwp_primary_selection_device_v1 <at> 29 still attached
  zwp_primary_selection_device_manager_v1 <at> 21 still attached
  wl_data_device <at> 28 still attached
  wl_seat <at> 27 still attached
  wl_data_device_manager <at> 25 still attached
  wl_registry <at> 20 still attached
warning: queue 0x55d2489cbe70 destroyed while proxies still attached:
  wl_shm_pool <at> 40 still attached
  xdg_wm_base <at> 32 still attached
  wl_output <at> 15 still attached
  wl_output <at> 14 still attached
  wl_seat <at> 13 still attached
  xdg_activation_v1 <at> 12 still attached
  wp_viewporter <at> 11 still attached
  zwp_text_input_manager_v3 <at> 10 still attached
  zwp_pointer_constraints_v1 <at> 9 still attached
  zwp_relative_pointer_manager_v1 <at> 8 still attached
  zxdg_decoration_manager_v1 <at> 7 still attached
  wl_subcompositor <at> 6 still attached
  wl_compositor <at> 5 still attached
  wl_shm <at> 4 still attached
  wl_registry <at> 2 still attached
warning: queue 0x55d2489fbe80 destroyed while proxies still attached:
  wl_callback <at> 45 still attached


-- 
Efraim Flashner   <efraim <at> flashner.co.il>   פלשנר אפרים
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 12 Jun 2023 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 317 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.