-
Notifications
You must be signed in to change notification settings - Fork 562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not create default EGL display: EGL_BAD_PARAMETER. Aborting... #5282
Comments
if you need to download the old one to get your system working again
|
Thanks a lot for reporting! The compatibility story for the Linux distribution, particularly related to AppImage, isn't great, and sometimes there is no good solution, from my experience. But also, I am fortunately not the right one to talk to about this, but @ndom91 is and knows all about it. |
Hey thanks for reporting this. So EGL is referring to OpenGL. I ran into this yesterday as well and spent a bunch of time going back and forth between different opengl / mesa versions trying to pin this down, I'm on NixOS. Downgrading to the version on the What I've found so far:
I'll keep this issue updated once I find something 👍 |
So I was able to build There were two commits in that diff, I tried reverting them both individually and built nightlies on GHA off of the branches:
Unfortunately, neither GHA built build worked on my machine :( |
Okay interestingly, taking the latest AppImage and extracting it and trying to run the |
So it seems that the GHA Ubuntu 22.04 instance started installing First thing I can recommend is try to upgrade |
So I think I figured it out. Can you give the latest nightly a shot? I've pinned the libwebkit2gtk to the previous version.
I put up a PR for this: #5301 |
Had the same issue on ArchLinux yesterday and the latest nightly does work on my machine! |
I can confirm that nightly_0.5.835 AppImage works as expected for me. Thanks. |
We're in the process of upgrading to Tauri 2, which requires Unfortunately the latest versions of | Sidenote, libwebkit2gtk 4.0 and 4.1 are API versions, not versions of the package, for anyone not familiar with them |
Came across this issue on the webkit bug tracker: https://www2.webkit.org/show_bug.cgi?id=280239 Looks like they acknowledged that something is wrong on their side there, but then there's been no movement since end of Sept :/ |
We've just merged the update to Tauri v2, which also comes with a bump in You can try it already by downloading the nightly The AppImage is conitnuing to work well for me. Additionally two little bugs were fixed via this upgrade in the AppImage - dropzones not being rendered correctly (black hole), and contenteditable divs not being editable 🥳 |
I apologize for bumping this. We are having the same issues and haven't been able to find a fix yet. We are running Tauri V2. Do you have any pointers for us? This is our release build workflow. |
@binarybaron no problem, basically doing what they did here at zmkfirmware should do the trick. It seems that the latest version of libwebkit2gtk-4.1 in the Ubuntu 22 and 24 repositories doesn't play well with Tauri. Be aware though that using the solution we did and zmk seems to have, by bumping to building with Ubuntu 24, will use Ubuntu 24s version of glibc and therefore block folks running earlier versions of Ubuntu from using your app. Alternatively, you could build with Ubuntu 22 and use the previously available version of libwebkit2gtk-4.1 in the Ubuntu 22 repos, however that's like ~2.5 years old and lead to a few CSS bugs in GitButler. |
Thanks! For us backwards compatability is quite important. Do you know what the most recent working webkit version on ubuntu 22.04 is that works? |
I wonder if maybe the Linux Tauri build ought to statically link/bundle a known-good libwebkit2gtk? |
@binarybaron looks like it's 2.36.0. (https://packages.ubuntu.com/jammy/libwebkit2gtk-4.1-0). Latest version is ~2.46.3 I think |
…ort old systems This is an attempt to fix this issue: gitbutlerapp/gitbutler#5282 (comment)
We ran into this issue here: VHSgunzo/sharun#2 Any suggestion besides downgrading? Note that the way we build appimages we bundle all the libs with the dynamic linker so to avoid glibc versioning issues. |
I'm trying to make the AppImage build correctly on the Ubuntu CI. I found this here: gitbutlerapp/gitbutler#5282
@ndom91 I ran in a similar issue when bundling my Tauri 2.0 app as an AppImage on Linux Mint 22 Cinnamon with Nvidia and then trying to test it in a Fedora VM. |
Hmm odd that it worked for you in a VM as well. EGL is referring to opengl (often provided by the mesa pkg of your distro) afaik, I bet the qemu video adapter driver is just older / better compatible than the amdgpu/i915/xe/nvidia or whatever we're using on our native installations. I don't have the time to do a deep dive here, but I'm keeping my eyes on the libwebkit2gtk-4.1 releases hoping they'll work without issue on native installations soon again 🤞 |
I believe there is some issue when it comes to Fedora as per this issue here |
Do you have the issue with this AppImage that bundles webkitgtk? https://github.com/probonopd/PrusaSlicer/releases/tag/continuous |
No, so for me the latest PrusaSlicer AppImage release ( |
Just for myself to try the app. More info about the open GL issue here: gitbutlerapp/gitbutler#5282
Hey everyone, so it looks like Ubuntu's released an update to I gave it a shot with our application here and it seems to have fixed the dreaded "white screen" issue on render. With Wondering if anyone else has luck with |
@ndom91 Logs are mostly the same:
Maybe I'm doing something different, but overall this workflow should work the same as yours. |
@olekolek1000 that error you have is because you are missing The only way we managed to get this all to work was to bundle all the libs, including the opengl ones, this also means copying |
@Samueru-sama Thanks for the clarification. I’ve just made a quick-and-dirty way to copy all required libraries directly into tauri.conf.json, without using "bundle": {
"linux": {
"appimage": {
"files": {
"/usr/lib/x86_64-linux-gnu/libGLX_indirect.so.0": "/lib/x86_64-linux-gnu/libGLX_indirect.so.0",
"/usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0": "/lib/x86_64-linux-gnu/libGLX_mesa.so.0",
(... many other libs ...)
"/usr/lib/x86_64-linux-gnu/webkit2gtk-4.1/injected-bundle/libwebkit2gtkinjectedbundle.so":"/lib/x86_64-linux-gnu/webkit2gtk-4.1/injected-bundle/libwebkit2gtkinjectedbundle.so",
"/usr/lib/x86_64-linux-gnu/libLLVM-15.so.1":"/lib/x86_64-linux-gnu/libLLVM-15.so.1",
"/usr/lib/x86_64-linux-gnu/libEGL_mesa.so.0":"/lib/x86_64-linux-gnu/libEGL_mesa.so.0",
}
}
},
"active": true,
"targets": ["appimage"],
"icon": ["icons/icon.png"]
} That definitely fixed these two errors, but another one is showing up: |
The DRI error is likely because you also need to bundle the Newer mesa does not need that variable to be set anymore, those libs are loaded like any other shared library, however the mesa version that's on ubuntu 24.04 doesn't have that change yet. If I'm not mistaken tauri will also run linuxdeploy-gtk on the produced AppImage, which just complicates things.
tauri already does something similar to "fix" that issue by running sed on the libwebkit libs patching
Oh this is needed 😅 this is why I mentioned that using linuxdeploygtk complicates things. Ideally the CI has to be configured to build the binaries without building the appimage and then a shell script is written to deploy the dependencies, should be about ~60 lines of shell, not much but those are one of the most painful lines of shell you will see in your life lol. This weekend I'm going to try help a different tauri project bundle webkitgtk, if everything goes right then it should be much easier for other projects to port the changes. |
Related Tauri issue: By the way, what's the progress? No pressure, of course. @Samueru-sama |
Tormak9970/Steam-Art-Manager#240 Got stuck because it also turns out Tauri uses a different method to update appimages outside the official one 😫 In any case the script I wrote is all that should take to fix the issue, it is what we did with Prusaslicer to fix the libwebkitgtk issue as well. |
extract the appimage and run the It likely is missing some ssl libraries or similar. |
These SSL files were attempted to load (ENOENT):
These libs were successfully opened by webkit:
Trying to find more clues, this log is quite large obviously :] |
mmm I'm not sure what would be missing, no idea how tauri handles https connections either. Before I've had that problem of libssl missing. I've also have had to add stuff like libnss and pkcs11 to fix other networking issues. Note that |
It works! Thanks for the hint!
|
Good to know. I'm trying to PR a webkitgtk hook to |
@olekolek1000 The PR has been merged and now Use this as reference to know what needs to be removed. |
@Samueru-sama Works flawlessly 👍 |
Version
0.13.6
Operating System
Linux
Distribution Method
AppImage (Linux)
Describe the issue
Upon launch, I just get an empty window.
I'm using Fedora 40 (KDE Plasma) with Wayland.
Relevant log output
The text was updated successfully, but these errors were encountered: