[Bug]: Failed to launch on Debian13 (Gtk-ERROR)
What happened?
I downloaded affine-0.25.5-stable-linux-x64.deb from the 0.25.5 release to upgrade, but after installation, the app fails to start. The error log is as follows:
(process:47896): Gtk-ERROR **: 10:59:08.758: GTK 2/3 symbols detected. Using GTK 2/3 and GTK 4 in the same process is not supported
Distribution version
Linux
App Version
0.25.5
What browsers are you seeing the problem on if you're using web version?
No response
Are you self-hosting?
- [ ] Yes
Self-hosting Version
No response
Relevant log output
(process:47896): Gtk-ERROR **: 10:59:08.758: GTK 2/3 symbols detected. Using GTK 2/3 and GTK 4 in the same process is not supported
Anything else?
No response
Issue Status: 🆕 *Untriaged
*🆕 Untriaged
The team has not yet reviewed the issue. We usually do it within one business day. Docs: https://github.com/toeverything/AFFiNE/blob/canary/docs/issue-triaging.md
This is an automatic reply by the bot.
Perhaps related to the newer version of Electron used in 0.25.5?
Same thing on debian 12.
You can fix the issue by forcing Affine to use GTK 3. To do this, simply add the argument:
--gtk-version=3
Two options:
1. From the command line:
./AFFiNE.AppImage --gtk-version=3
2. In the .desktop file:
Modify the Exec= line to include the argument, for example:
Exec=affine --gtk-version=3 %U
This prevents the application from loading GTK 4 alongside GTK 3 and avoids the error.
Seems to be related to https://github.com/toeverything/AFFiNE/issues/13987, running with the --gtk-version=3 flag fixed the issue when running the AppImage directly and via the desktop file as suggested here.