neil-morrison44 / pocket-sync

A GUI tool (Mac, Windows, Linux) for doing stuff with the Analogue Pocket
GNU Affero General Public License v3.0
669 stars 25 forks source link

Linux AppImage: Error creating WebGL context. #339

Open pseiler opened 1 month ago

pseiler commented 1 month ago

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):

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

neil-morrison44 commented 1 month ago

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.