snapcrafters / alacritty

A community-maintained package to easily install Alacritty on Linux
MIT License
9 stars 12 forks source link

Upgrade to core22 + new upstream version #5

Closed jssotomdz closed 1 year ago

jssotomdz commented 1 year ago

I ran the tests suggested in #2 and all of those work. I see there's a convention or rule to avoid layouts, I've always solved the dri issues with layouts, please lmk if this is wrong/there is a better way to do this.

I see there are some changes pending to be made by #2 and I tried integrating them but Alacritty won't launch:

[destroyed object]: error 7: failed to import supplied dmabufs: Arguments are inconsistent (for example, a valid context requires buffers not supplied by a 
thread 'main' panicked at 'failed to dispatch wayland event queue: Os { code: 71, kind: Uncategorized, message: "Protocol error" }', alacritty/src/event.rs:1438:30
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Segmentation fault (core dumped)
merlijn-sebrechts commented 1 year ago

@jssotomdz thanks a lot for looking into this!

When I build this PR and run it, I get the following error:

$ alacritty
cp: cannot stat '/snap/alacritty/x1/usr/share/mime': No such file or directory
Directory '/home/reservation/snap/alacritty/x1/.local/share/mime/packages' does not exist!
ERROR: update-mime-database /home/reservation/snap/alacritty/x1/.local/share/mime exited abnormally with status 1
libEGL warning: MESA-LOADER: failed to open iris: /snap/core20/current/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /lib/x86_64-linux-gnu/libedit.so.2) (search paths /snap/alacritty/x1/usr/lib/x86_64-linux-gnu/dri, suffix _dri)

libEGL warning: MESA-LOADER: failed to open swrast: /snap/core20/current/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /lib/x86_64-linux-gnu/libedit.so.2) (search paths /snap/alacritty/x1/usr/lib/x86_64-linux-gnu/dri, suffix _dri)

libEGL warning: MESA-LOADER: failed to open iris: /snap/core20/current/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /lib/x86_64-linux-gnu/libedit.so.2) (search paths /snap/alacritty/x1/usr/lib/x86_64-linux-gnu/dri, suffix _dri)

libEGL warning: MESA-LOADER: failed to open swrast: /snap/core20/current/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /lib/x86_64-linux-gnu/libedit.so.2) (search paths /snap/alacritty/x1/usr/lib/x86_64-linux-gnu/dri, suffix _dri)

Error: Error creating GL context; eglInitialize failed

This is on a laptop with 22.04 and Intel integrated graphics. What did you use to test this?