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

[email protected] Thu, 16 Jul 2026 14:35:01 +0000
Newsgroups gmane.os.freebsd.devel.gnome
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D296841

            Bug ID: 296841
           Summary: graphics/gimp3-app: lua errors when running in scripts
                    without GUI
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: [email protected]
          Reporter: [email protected]
          Assignee: [email protected]
             Flags: maintainer-feedback?([email protected])

Created attachment 272908
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D272908&action=
=3Dedit
A simple script to trigger the error message

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 'requir=
e'
        /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 with=
out
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-To=
ols
collection (https://www.nntb.no/~dreibh/system-tools), as well as a test im=
age,
and then runs the mosaic effect script (source:
https://github.com/dreibh/system-tools/blob/master/src/GIMP-Scripts/gs-mosa=
ic).

--=20
You are receiving this mail because:
You are the assignee for the bug.=