Skip to content
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

Linux AppImage: Error creating WebGL context. #339

Open
pseiler opened this issue Oct 21, 2024 · 6 comments
Open

Linux AppImage: Error creating WebGL context. #339

pseiler opened this issue Oct 21, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@pseiler
Copy link

pseiler commented Oct 21, 2024

Describe the bug
When I start the Linux appimage version the window wants to render but keeps gray all the time. This was introduced in version 5.x+. The last version 4.12.1 works as expected.
On the command line output I get the following errors

Cannot get default EGL display: EGL_BAD_PARAMETER
[2024-10-21][05:23:18][mC@tauri://localhost/assets/index-CktJdJtA.js:45:2624][ERROR] Error: Error creating WebGL context.

I'm using latest Archlinux at the time of writing

To Reproduce
Steps to reproduce the behaviour:

  1. Use Archlinux
  2. Download and run the AppImage
  3. Check the console output for the specific error and see that the window won't get rendered

Expected behaviour
The GUI should render as expected.

Logs

user@curie ~/Apps [0] $ ./Pocket.Sync_5.2.0_amd64.AppImage 
[2024-10-21][05:23:17][pocket_sync::install_zip][INFO] Zip Task Started
[2024-10-21][05:23:17][pocket_sync::install_zip][INFO] Zip Task listening for file drop
[2024-10-21][05:23:17][pocket_sync::install_zip][INFO] Zip Task listening for install-core
[2024-10-21][05:23:17][pocket_sync][DEBUG] Command: get_news_feed
[2024-10-21][05:23:17][pocket_sync][DEBUG] Command: get_firmware_versions_list
[2024-10-21][05:23:17][reqwest::connect][DEBUG] starting new connection: https://www.analogue.co/
[2024-10-21][05:23:17][reqwest::connect][DEBUG] starting new connection: https://openfpga-cores-inventory.github.io/
[2024-10-21][05:23:18][mC@tauri://localhost/assets/index-CktJdJtA.js:45:2624][INFO] Checking for update...
[2024-10-21][05:23:18][reqwest::connect][DEBUG] starting new connection: https://github.com/
Cannot get default EGL display: EGL_BAD_PARAMETER
[2024-10-21][05:23:18][mC@tauri://localhost/assets/index-CktJdJtA.js:45:2624][ERROR] Error: Error creating WebGL context.
[2024-10-21][05:23:18][reqwest::async_impl::client][DEBUG] redirecting 'https://github.com/neil-morrison44/pocket-sync/releases/latest/download/latest.json' to 'https://github.com/neil-morrison44/pocket-sync/releases/download/v5.2.0/latest.json'
[2024-10-21][05:23:18][reqwest::async_impl::client][DEBUG] redirecting 'https://github.com/neil-morrison44/pocket-sync/releases/download/v5.2.0/latest.json' to 'https://objects.githubusercontent.com/github-production-release-asset-2e65be/556993170/db5b090f-7428-42f8-a0f7-a7b7afdf27bc?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20241021%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20241021T052402Z&X-Amz-Expires=300&X-Amz-Signature=747ec1eb0da92ff86ecf20ce4dbb56e76f83d41443b26983417b6bb929bb2b21&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dlatest.json&response-content-type=application%2Foctet-stream'
[2024-10-21][05:23:18][reqwest::connect][DEBUG] starting new connection: https://objects.githubusercontent.com/

Desktop (please complete the following information):

  • OS: Archlinux x86_64
  • Version current rolling release
  • AMD Rembrandt Radeon 680M
  • Mesa Graphics 24.2.5

Additional context
This issue started to occur on version 5.x++

@pseiler pseiler added the bug Something isn't working label Oct 21, 2024
@neil-morrison44
Copy link
Owner

Can’t find anyone else having that issue with a Tauri 2 app & I know it works on some Linux distros, so I’m not sure what to advise.

The biggest change between v4 & v5 is the update to Tauri 2, which means webkit2gtk-4.1 - if that helps.

@auer1329
Copy link
Contributor

auer1329 commented Dec 7, 2024

I get the same error on Arch Linux with any of the 5.x versions. 4.12.1 is working fine and 5.0 and 5.1 versions seem to show the app content briefly and then continue to show only a blank window.

Seems to happen with other apps too: gitbutlerapp/gitbutler#5282

@neil-morrison44
Copy link
Owner

Sounds like it’s an issue with the version of libwebkit2gtk, unfortunately the update to that fixed a lot of issues which were in the Linux version generally so pinning it to the old version isn’t something I’m keen on

@bmeares
Copy link

bmeares commented Jan 6, 2025

One of my PCs running Fedora 41 (ASUS ROG G701 with proprietary Nvidia drivers) was able to run the latest 5.x AppImage without issue, but my other laptop also running Fedora 41 (System76 Lemur Pro lemp10 with integrated Intel graphics) fails to render:

[2025-01-06][01:28:49][pocket_sync::install_zip][INFO] Zip Task Started
[2025-01-06][01:28:49][pocket_sync::install_zip][INFO] Zip Task listening for file drop
[2025-01-06][01:28:49][pocket_sync::install_zip][INFO] Zip Task listening for install-core
Could not create default EGL display: EGL_BAD_PARAMETER. Aborting...

@pseiler
Copy link
Author

pseiler commented Jan 17, 2025

Btw. Extracting the Appimage with *.AppImage --appimage-mount or *.AppImage --appimage-extract, removing all included libraries to ensure the sytem libraries are used and running it, worked just fine.
Maybe some system libraries get loaded when using them from AppImage or vice versa. Only removing webkit2gtk-4.1 from the appimage library resulted into a symbol error.

Hope this helps somehow.

I could create an archlinux package when you help me with the building process

@pseiler
Copy link
Author

pseiler commented Jan 29, 2025

I think the issue is nothing webgl related. More The error before should be the issue:
Cannot get default EGL display: EGL_BAD_PARAMETER

But I don't know how to solve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants