Skip to content

Could not create default EGL display: EGL_BAD_PARAMETER on Linux Wayland #955

@PACHAKUTlQ

Description

@PACHAKUTlQ

Arch Linux, Wayland. thunderbolt desktop appimage version v0.1.101

The downloaded AppImage fails to run: Could not create default EGL display: EGL_BAD_PARAMETER. Aborting.... same for extracting appimage and running the AppRun.

This seems to be a common issue with tauri AppImage:

gitbutlerapp/gitbutler#5282
jely2002/youtube-dl-gui#603

There is a workaround:

export LD_PRELOAD=/usr/lib/libwayland-client.so
./Thunderbolt_0.1.101_amd64.AppImage
# or with this env, extract appimage, cd squashfs-root and run ./AppRun
# WEBKIT_DISABLE_DMABUF_RENDERER=1 WEBKIT_DISABLE_COMPOSITING_MODE=1 does not work

Possible fixes

  1. maybe somehow exclude libwayland-client.so from the appimage so the appimage can fallback to the system one?
  2. tauri upstream has a fix: feat(bundler): Truly portable appimage (experimental) tauri-apps/tauri#12491, but not yet merged. use that experimental branch. e.g. jely2002/youtube-dl-gui@870b91b
  3. using a wrapper in appimage to enforce the env mentioned above
  4. enforce these in the code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions