Alacritty panics on startup when used on Wayland

Bug #2061269 reported by bLaind
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
rust-alacritty (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Impact
-------
After upgrading to ubuntu 24.04 beta, alacritty fails with the following message on startup:

thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /usr/share/cargo/registry/glutin-0.30.9/src/api/egl/surface.rs:246:44
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Test Case
---------
Install alacritty on Ubuntu Desktop
Run alacritty
Run
echo $XDG_SESSION_TYPE
to verify you are using a Wayland session. The bug reported here does not affect Xorg sessions.

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: alacritty 0.12.2-2
ProcVersionSignature: Ubuntu 6.8.0-22.22-generic 6.8.1
Uname: Linux 6.8.0-22-generic x86_64
ApportVersion: 2.28.0-0ubuntu1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sun Apr 14 09:46:38 2024
InstallationDate: Installed on 2023-08-06 (252 days ago)
InstallationMedia: Ubuntu 23.04 "Lunar Lobster" - Release amd64 (20230418)
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: rust-alacritty
UpgradeStatus: Upgraded to noble on 2024-04-13 (0 days ago)

Revision history for this message
bLaind (blaind) wrote :
description: updated
Revision history for this message
bLaind (blaind) wrote :

The bug seems to manifest only on wayland, with xorg it works.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in rust-alacritty (Ubuntu):
status: New → Confirmed
Jeremy Bícha (jbicha)
Changed in rust-alacritty (Ubuntu):
status: Confirmed → In Progress
importance: Undecided → High
Jeremy Bícha (jbicha)
Changed in rust-alacritty (Ubuntu):
status: In Progress → Fix Committed
Jeremy Bícha (jbicha)
description: updated
Revision history for this message
flip101 (flip101) wrote :

I also have this problem after updating to 24.04. Would it be possible to update to alacritty to version 0.13.2 as part of a fix?

tags: added: verification-needed
tags: added: verification-needed-noble
Revision history for this message
Jeremy Bícha (jbicha) wrote :

I successfully completed the test case with alacritty 0.13.2-1ubuntu1 on Ubuntu 24.04 LTS.

tags: added: verification-done verification-done-noble
removed: verification-needed verification-needed-noble
summary: - Alacritty panics on startup
+ Alacritty panics on startup when used on Wayland
Revision history for this message
Eustaquio Rangel (eustaquiorangel) wrote :

Just updated and got the same error.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package rust-alacritty - 0.13.2-1ubuntu1

---------------
rust-alacritty (0.13.2-1ubuntu1) noble; urgency=medium

  * Package alacritty 0.13.2 from crates.io using debcargo 2.6.1
  * Add patch to lower dependencies on rust-notify & rust-serde-yaml
    to fix the build and fix Alacritty not working in noble release
    (LP: #2061269)

 -- Jeremy Bícha <email address hidden> Wed, 24 Apr 2024 18:04:00 -0400

Changed in rust-alacritty (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Chris Halse Rogers (raof) wrote : Update Released

The verification of the Stable Release Update for rust-alacritty has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.