Bug 296841 - graphics/gimp3-app: lua errors when running in scripts without GUI
Summary: graphics/gimp3-app: lua errors when running in scripts without GUI
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-07-16 14:35 UTC by Thomas Dreibholz
Modified: 2026-07-16 14:35 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (gnome)


Attachments
A simple script to trigger the error message (561 bytes, application/x-shellscript)
2026-07-16 14:35 UTC, Thomas Dreibholz
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Dreibholz 2026-07-16 14:35:01 UTC
Created attachment 272908 [details]
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 '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).