在 Debian 上 GIMP 崩溃可以从快速恢复和排查原因两方面来处理。下面按实用顺序说明。
gimp --no-plugins
如果这样不崩溃,说明是某个插件导致的问题。
mv ~/.config/GIMP ~/.config/GIMP.bak
然后重新启动 GIMP。
(这会清空你的偏好设置,但能解决很多崩溃问题)
gimp
崩溃时终端里通常会输出关键错误(如 segmentation fault、GLib、GTK 等)。
尝试禁用 OpenGL:
~/.config/GIMP/2.10/gimprc
加入:
(use-opencl no)
(gimp-display-render-resolution 1)
或启动时使用:
GIMP_NO_OPENGL=1 gimp
如果是 Wayland 环境,可试 X11:
export GDK_BACKEND=x11
gimp
重点排查:
~/.config/GIMP/2.10/plug-ins/可临时移除:
mv ~/.config/GIMP/2.10/plug-ins ~/plug-ins.bak
rm -rf ~/.cache/gimp
重新安装 GIMP:
sudo apt update
sudo apt install --reinstall gimp
检查缺失库:
ldd $(which gimp) | grep "not found"
Debian 稳定版的 GIMP 可能较旧但有已知 bug。
可查看版本:
gimp --version
如需新版本,可选:
flatpak install flathub org.gimp.GIMP
请提供以下信息,我可以更精确判断:
cat /etc/os-release)如果你愿意,也可以把终端报错直接贴出来。