maintainer-feedback requested: [Bug 296841] graphics/gimp3-app: lua errors when running in scripts without GUI

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 16 Jul 2026 14:35:01 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-gnome (Nobody)
<gnome@FreeBSD.org> for maintainer-feedback:
Bug 296841: graphics/gimp3-app: lua errors when running in scripts without GUI
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296841



--- Description ---
When running GIMP in scripts without GUI, it prints a LUA error on startup:

/usr/local/bin/lua51: /usr/local/share/lua/5.1/lgi/namespace.lua:189:
gtk_init_check() failed
stack traceback:
	[C]: in function 'error'
	/usr/local/share/lua/5.1/lgi/namespace.lua:189: in function 'require'
	/usr/local/share/lua/5.1/lgi/namespace.lua:170: in function
</usr/local/share/lua/5.1/lgi/namespace.lua:155>
	(tail call): ?
	....gimp.extension.goat-exercises/goat-exercise-lua.lua:29: in main
chunk
	[C]: ?

The error is FreeBSD-specific, i.e. with the same test script, it runs without
this error on different Linux distributions, NetBSD, OpenBSD, Solaris
(OpenIndiana), and MacOS. The error can be ignored (the output is generated
regardless of the error message), but it may be useful to take a look into the
root cause. May be GIMP tries to load broken LUA scripts.


nornetpp@lillevann:~/src/system-tools/src/GIMP-Scripts$ uname -a
FreeBSD lillevann.proxmox.crnalab.net 15.1-RELEASE FreeBSD 15.1-RELEASE
releng/15.1-n283562-96841ea08dcf GENERIC amd64

nornetpp@lillevann:~/src/system-tools/src/GIMP-Scripts$ pkg info | grep gimp
gimp3-app-3.2.0_2	       GNU Image Manipulation Program


Attached is a simple script to trigger the error. It downloads GIMP-Scripts
(https://www.nntb.no/~dreibh/system-tools/#gimp-scripts) from the System-Tools
collection (https://www.nntb.no/~dreibh/system-tools), as well as a test image,
and then runs the mosaic effect script (source:
https://github.com/dreibh/system-tools/blob/master/src/GIMP-Scripts/gs-mosaic).