Repository navigation
Open
Labels
Description
$ ./Ghostty-1.4.0-aarch64.AppImage
info: ghostty version=1.4.0
info: ghostty build optimize=fast
info: runtime=.gtk
info: font_backend=.fontconfig_freetype
info: dependency harfbuzz=11.0.0
info: dependency fontconfig=21803
info: renderer=renderer.generic.Renderer(renderer.OpenGL)
info: libxev default backend=io_uring
info(os_locale): setlocale from env result=en_US.UTF-8
info(gtk): GTK version build=4.24.1 runtime=4.24.1
info(gtk): libadwaita version build=1.10.0 runtime=1.10.0
info: reading configuration file path=/home/mike/.config/ghostty/config.ghostty
info(config): default shell src=passwd value=/usr/bin/bash
info(config): default working directory src=passwd value=/home/mike
warning(gtk_ghostty_application): setting GDK_DEBUG=
warning(gtk_ghostty_application): setting GDK_DISABLE=vulkan
info(gtk_ghostty_surface): surface content scale: x=1 y=1 dpi=96x96 font_size=12
info(opengl): EGL vendor=Mesa Project
info(opengl): EGL extensions=EGL_ANDROID_blob_cache EGL_ANDROID_native_fence_sync EGL_EXT_buffer_age EGL_EXT_config_select_group EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_EXT_present_opaque EGL_EXT_surface_compression EGL_EXT_swap_buffers_with_damage EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_context_flush_control EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image_base EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_KHR_swap_buffers_with_damage EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_gl_interop EGL_MESA_image_dma_buf_export EGL_MESA_query_driver EGL_MESA_x11_native_visual_id EGL_WL_bind_wayland_display EGL_WL_create_wayland_buffer_from_image
warning(opengl): failed to create EGL context err=error.BadMatch
warning(gtk_ghostty_surface): failed to initialize surface err=error.BadMatch
warning(gtk_ghostty_surface): surface failed to initialize err=error.SurfaceError
From looking at similar issues, everything else RE opengl / gtk4+opengl work:
kitty:
alacritty:
gtk4-demo-aarch64.appimage:
Activity
mikew commentedon Nov 11, 2026
I am able to get ghostty running by downloading a deb, installing its dependencies, and running with
LIBGL_ALWAYS_SOFTWARE=1:sudo pacman -S oniguruma gtk4-layer-shell libadwaita LIBGL_ALWAYS_SOFTWARE=1 ~/Downloads/ghostty_1.4.0-0.ppa2_arm64_26.10/usr/bin/ghosttyThe same environment variable does not work with the .appimage from this repository.
Samueru-sama commentedon Nov 11, 2026
something odd is that
libanl.so.1is missing from the appimage, even though it should have been added automatically..That alone is unlikely to be causing this issue though.
The debug log shows this:
MESA-EGL: debug: using driver virtio_gpu for 10Are we sure
virglworks here? That driver is notoriously buggy and Mesa wanted to remove it a while back.That's normal, because the appimage ships its own version of Mesa, and this version has
llvmpipedisabled.It still has
softpipefor these cases when the system gpu doesn't work, butsoftpipeonly offers OpenGL 3.3 iirc which is not enough for ghostty.Would be good to figure out why you need to set
LIBGL_ALWAYS_SOFTWARE=1in first place.mikew commentedon Nov 11, 2026
FWIW I do get the same GL errors when trying to run the .deb version without
LIBGL_ALWAYS_SOFTWARE=1.And from what I can tell, virgl works? Admittedly I don't know how to actually verify that:
UTM has a few different renderer backends I can try.
Samueru-sama commentedon Nov 11, 2026
If you have lavapipe installed you might be able to get this to run by forcing
zinkas the opengl driver.SHARUN_ALLOW_SYS_VKICD=1 MESA_LOADER_DRIVER_OVERRIDE=zinkAnyways, gonna ask a bot to debug this now
Samueru-sama commentedon Nov 11, 2026
Note
This is an automated response generated by DeepSeek V4.1 Flash (AI), at a maintainer's request. It is based on the published AppImage contents, CI logs, and the upstream source/commits linked below. Please excuse any inaccuracies.
libanl.so.1libanl.so.1was added toquick-sharuntwo days after the v1.4.0 AppImage was built, so this release simply predates it:v1.4.0was published on 2026-10-28; its assets were built by run 40748137812. That build downloadedquick-sharun(176435bytes, sha2565360ef24…), which corresponds to commit5216c9b2from 2026-10-28. Its glibc deployment list haslibpthread,libdl,librt,libm,libutilandlibresolv, but notlibanl.libanlwas added on 2026-10-30 in commitbec22efd769b("always includelibanl.sowhen deploying glibc", PR #1002), in response to issue #1001.ghostty-appimagedownloadsquick-sharunfrommainat build time, so every build after that date includes it. The current tip nightly haslibanl.so.1plus thelibanl.sosymlink.v1.4.0is immutable, so the next stable release will be the first one to carry it.This is not the cause of the failure. The debug log shows
cross-libc-dlopenfound the host copy and loaded it successfully:The EGL failure is a GL 4.3 vs 4.1 mismatch
virgl is working — it just can't provide the OpenGL version Ghostty needs.
The debug log shows
MESA-EGL: debug: using driver virtio_gpu for 10, and immediately before Ghostty's failure:The
glxinfooutput above confirms virgl exposes OpenGL 4.1 core max (Max core profile version: 4.1). That is expected on macOS: Apple's OpenGL implementation tops out at 4.1, and UTM's virglrenderer can only expose what the host driver provides.Ghostty hard-requires OpenGL 4.3 core and asks for it at context creation:
src/renderer/OpenGL.zig#L38-L40(MIN_VERSION_MAJOR = 4,MIN_VERSION_MINOR = 3) and#L65-L69(EGL_CONTEXT_MAJOR_VERSION = 4,EGL_CONTEXT_MINOR_VERSION = 3,EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT).Asking a 4.1 driver for a 4.3 core context returns
EGL_BAD_MATCHfromdri2_create_context, which is exactly what the log shows. This also explains why kitty, alacritty and gtk4-demo work: they only need OpenGL 3.3 (or lower), safely below virgl's 4.1 ceiling.softpipe vs llvmpipe
LIBGL_ALWAYS_SOFTWARE=1only says "use Mesa's software path"; it does not choose which software driver. Mesa has two CPU backends behindswrast:The host Arch Mesa used by the
.debships both, soLIBGL_ALWAYS_SOFTWARE=1selects llvmpipe (GL 4.6) and Ghostty gets its 4.3 context, so it works.The AppImage's Mesa is debloated and ships without llvmpipe (to avoid pulling in LLVM), leaving only softpipe:
libgallium-26.2.6-arch1.1.socontains the stringssoftpipe,swrastandvirgl— but notllvmpipe; the host's same-version libgallium contains all four.LIBGL_ALWAYS_SOFTWARE=1So
LIBGL_ALWAYS_SOFTWARE=1fails for the AppImage because the only software driver in the bundle tops out at 3.3, still below Ghostty's 4.3 minimum — the sameEGL_BAD_MATCH.Conclusion
This is a host/VM capability limitation, not an AppImage packaging problem: with UTM's virgl on macOS the GPU path is capped at GL 4.1, and the bundled Mesa's software fallback is softpipe (GL 3.3). Ghostty needs 4.3 either way.
Practical options:
LIBGL_ALWAYS_SOFTWARE=1(llvmpipe).USE_HOST_DRIVERS=1so runtime uses the host Mesa; thenLIBGL_ALWAYS_SOFTWARE=1would reach the host llvmpipe (with the usualUSE_HOST_DRIVERScaveats).The
libanlomission will disappear automatically in the next stable build.Samueru-sama commentedon Nov 11, 2026
That's a big no here btw, we only use this for apps that have fallback software renderers, ghostty doesn't.
andrelnfernandes commentedon Nov 21, 2026
I hit the same
failed to create EGL context err=error.BadMatchwith the x86_64 1.4.0 AppImage. My setup is different but the root cause looks the same. I found a workaround that doesn't need a rebuild, in case it helps others or is worth documenting.Setup: Debian 13 on a VM without GPU access (my user can't open
/dev/dri/renderD128), so software rendering is the only option.Cause: Ghostty 1.4 creates its own EGL context on the surfaceless platform and asks for GL 4.3 core. With no usable render node, the bundled Mesa (
libgallium-26.2.5) falls back to softpipe, because this build has no llvmpipe (stringsfinds nollvmpipein libgallium, and the bundle has no libLLVM). softpipe only goes up to GL 3.3 core (checked withGALLIUM_DRIVER=softpipe glxinfo -Bon the host Mesa), so creating the context fails withEGL_BAD_MATCH. The host's Mesa 25.0.7 does have llvmpipe (GL 4.5 core), but the AppImage never uses it.SHARUN_ALLOW_SYS_VKICD=1 MESA_LOADER_DRIVER_OVERRIDE=zinkdidn't help here. lavapipe is installed, butLD_DEBUG=filesshowed no libvulkan or lavapipe being loaded at all, and the error was still BadMatch.Workaround:
SHARUN_MESA_PATH(the bundled Anylinux-sharun 3.8.0 supports it). I pointed it at a directory of symlinks to the host Mesa, built the same way as the_use_host_mesahook inquick-sharun.sh, with one change: leave out the hostlibwayland-*. With Debian's libwayland 1.23.1 exposed, the bundled GTK 4.24.1 exits at startup:The host Mesa works fine with the bundled (newer) libwayland. Without those libs I get:
and Ghostty works normally (llvmpipe plus CPU presentation). The DMABUF warning is logged on every frame (about 1.4/s while idle), so I set
GHOSTTY_LOG=no-stderrwhen launching from the desktop.Script to build the directory (same list as
_use_host_mesa, minuslibwayland-*):Then:
SHARUN_MESA_PATH=$HOME/.local/opt/ghostty/host-mesa ./Ghostty-1.4.0-x86_64.AppImageThe symlinks point to versioned files (
libgallium-<version>.so), so the directory has to be rebuilt after a host Mesa upgrade.Two things that may be worth a look:
libwayland-*entries in_use_host_mesa(quick-sharun.sh) can break apps whose bundled libraries need newer libwayland symbols than the host has. Here GTK 4.24.1 needswl_fixes_interface, which Debian 13's 1.23.1 doesn't provide.TROUBLESHOOTING.mdfor people with no usable GPU (VMs, remote desktops), since llvmpipe isn't bundled and the fallback renderer can't run Ghostty.