AFFiNE icon indicating copy to clipboard operation
AFFiNE copied to clipboard

[Bug]: Failed to launch on Debian13 (Gtk-ERROR)

Open jjl9807 opened this issue 1 month ago • 4 comments

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

jjl9807 avatar Nov 17 '25 03:11 jjl9807

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.

affine-issue-bot[bot] avatar Nov 17 '25 03:11 affine-issue-bot[bot]

Perhaps related to the newer version of Electron used in 0.25.5?

ddybing avatar Nov 18 '25 22:11 ddybing

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.

blasseye avatar Nov 19 '25 15:11 blasseye

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.

Atmois avatar Nov 21 '25 12:11 Atmois