Skip to content

Gtk-ERROR: GTK 2/3 symbols detected. Using GTK 2/3 and GTK 4 in the same process is not supported #2952

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

Closed
lidel opened this issue May 22, 2025 · 0 comments · Fixed by #2953
Assignees
Labels
kind/bug A bug in existing code (including security flaws)

Comments

@lidel
Copy link
Member

lidel commented May 22, 2025

On linux, trying to run #2949 on certain linux distributions ends up with process crashing with:

(process:10592): Gtk-ERROR **: 22:01:32.671: GTK 2/3 symbols detected. Using GTK 2/3 and GTK 4 in the same process is not supported

This is a bug due to Electron updating to latest Chromium, which switched to GTK 4 by default, while many, MANY distributions are still using GTK 3.

Note: this is not the first time Electron blindly updated Chromium without having any backward-compatibility or regression testing for existing users (example: tray issues)

Workarounds

Workaround is to pass ./ipfs-desktop --gtk-version 3 or hardcode app.commandLine.appendSwitch('gtk-version', '3') in app code.

Both bad UX, brittle, and not future-proof.

Plan

We will downgrade Electron to 35 until this mess is fixed upstream (electron/electron#46538).

@lidel lidel added kind/bug A bug in existing code (including security flaws) need/triage Needs initial labeling and prioritization and removed need/triage Needs initial labeling and prioritization labels May 22, 2025
@lidel lidel self-assigned this May 22, 2025
lidel added a commit that referenced this issue May 22, 2025
downgrading electron until it is "safe" to use GTK4 as the new default.

this feels safer than hardcoding
app.commandLine.appendSwitch('gtk-version', '3')
in our code.

Closes #2952
lidel added a commit that referenced this issue May 22, 2025
downgrading electron until it is "safe" to use GTK4 as the new default.

this feels safer than hardcoding
app.commandLine.appendSwitch('gtk-version', '3')
in our code.

Closes #2952
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in existing code (including security flaws)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant