Unable to run rpm or appImage on fedora 40 (Cannot create EGL context: invalid display (last error: EGL_SUCCESS))
Closed this issue · 3 comments
Hey, so my problem is, I installed the rpm and the appImage formats to my fedora and its not working rn.
Error.:
'/home/levi/AppImages/yaak.appimage'
[2024-09-11][15:20:26][INFO][yaak_models::plugin] Opening SQLite DB at "/home/levi/.local/share/app.yaak.desktop/db.sqlite"
[2024-09-11][15:20:26][INFO][yaak_models::plugin] Creating database file at "/home/levi/.local/share/app.yaak.desktop/db.sqlite"
[2024-09-11][15:20:26][INFO][yaak_models::plugin] Connecting to database at sqlite:///home/levi/.local/share/app.yaak.desktop/db.sqlite?mode=rwc
[2024-09-11][15:20:26][INFO][yaak_models::plugin] Running database migrations from: /tmp/.mount_yaak.aABwNMo/usr/lib/yaak-app/migrations
[2024-09-11][15:20:26][INFO][yaak_models::plugin] Database migrations complete
Starting plugin server with ["/tmp/.mount_yaak.aABwNMo/usr/lib/yaak-app/plugins/exporter-curl", "/tmp/.mount_yaak.aABwNMo/usr/lib/yaak-app/plugins/filter-jsonpath", "/tmp/.mount_yaak.aABwNMo/usr/lib/yaak-app/plugins/filter-xpath", "/tmp/.mount_yaak.aABwNMo/usr/lib/yaak-app/plugins/importer-curl", "/tmp/.mount_yaak.aABwNMo/usr/lib/yaak-app/plugins/importer-insomnia", "/tmp/.mount_yaak.aABwNMo/usr/lib/yaak-app/plugins/importer-openapi", "/tmp/.mount_yaak.aABwNMo/usr/lib/yaak-app/plugins/importer-postman", "/tmp/.mount_yaak.aABwNMo/usr/lib/yaak-app/plugins/importer-yaak", "/tmp/.mount_yaak.aABwNMo/usr/lib/yaak-app/plugins/template-function-response"]
Starting gRPC plugin server on [::1]:35525
[2024-09-11][15:20:26][INFO][yaak_plugin_runtime::nodejs] Starting plugin runtime main=/tmp/.mount_yaak.aABwNMo/usr/lib/yaak-app/plugin-runtime/index.cjs
Spawned plugin runtime
[2024-09-11][15:20:26][INFO][tauri_app_lib] Create new window label=main_0
Cannot get default EGL display: EGL_SUCCESS
Cannot create EGL context: invalid display (last error: EGL_SUCCESS)
Segmentation fault (core dumped)
My system is.:
OS: Fedora Linux 40 (KDE Plasma) x86_64
Vivobook_ASUSLaptop M6500QC_M6500QC 1.0
Kernel: 6.10.8-200.fc40.x86_64
Uptime: 17 mins
Packages: 2822 (rpm), 20 (flatpak)
Shell: bash 5.2.26
Resolution: 1920x1080
DE: Plasma 6.1.4
WM: kwin (wayland)
Theme: Emacs [GTK2/3]
Icons: breeze-dark [GTK2/3]
Terminal: BlackBox
CPU: AMD Ryzen 5 5600H with Radeon Graphics (12) @ 4.280GHz
GPU: AMD ATI Radeon Vega Series / Radeon Vega Mobile Series
GPU: NVIDIA GeForce RTX 3050 Mobile
Memory: 5114MiB / 15382MiB
What should i do?
And that's what happens when you're trying to run rpm (I used 2024.9.0-beta.3 version):
[2024-09-11][21:09:42][INFO][yaak_models::plugin] Opening SQLite DB at "/home/reonex/.local/share/app.yaak.desktop/db.sqlite"
[2024-09-11][21:09:42][INFO][yaak_models::plugin] Creating database file at "/home/reonex/.local/share/app.yaak.desktop/db.sqlite"
[2024-09-11][21:09:42][INFO][yaak_models::plugin] Connecting to database at sqlite:///home/reonex/.local/share/app.yaak.desktop/db.sqlite?mode=rwc
[2024-09-11][21:09:42][INFO][yaak_models::plugin] Running database migrations from: /usr/lib/yaak-app/migrations
[2024-09-11][21:09:42][INFO][yaak_models::plugin] Database migrations complete
thread 'main' panicked at /home/runner/work/app/app/src-tauri/yaak_plugin_runtime/src/plugin.rs:31:22:
Failed to read plugins dir: "/usr/lib/yaak-app/plugins": IoErr(Os { code: 2, kind: NotFound, message: "No such file or directory" })
sudo mkdir /usr/lib/yaak-app/plugins
fixing the problem with rpm
So hey guys, if anybody have the same problem with fedora 40 I got solution.
So the main problem was prop. NVIDIA driver.
I read a lot of article and messages btw people and i found you need to change back to Nouveau (i hope i spelled it right) driver, or you need to add this to your app:
this will have some visual bugs in the start, but i dont mind it :)
WEBKIT_DISABLE_COMPOSITING_MODE=1 WEBKIT_DISABLE_DMABUF_RENDERER=1 '/home/levi/AppImages/yourapp.appimage'
Or if you use Gear Lever app on linux systems you can easily add these to the runner file:
Okey guys, last update 🤣
So in your /home/your_user/ folder there is an .bashrc file.
Open it with this command:
sudo nano .bashrc
and in the last row add this:
export WEBKIT_DISABLE_COMPOSITING_MODE=1 WEBKIT_DISABLE_DMABUF_RENDERER=1
you can save with crtl+x, reboot and now everything works perfectly on every tauri application