GIMP 2.10.8: python-fu fails to find ewidth tile attribute
GIMP version: 2.10.8
Operating System: Ubuntu-Mate bionic (18.04.1 LTS)
Package: 2.10.8+om-0ubu18.04.3~ppa from http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu
Description of the bug
Giving a try to GIMP 2.10.8 in Ubuntu-Mate bionic (18.04.1 LTS), I moved a non-linear white balance python plug-in into the GIMP 2.10 plug-ins directory (/home/gilles/.config/GIMP/2.10/plug-ins/balance-des-blancs-puissance-n.py).
I developed this plug-in and used it currently (hundreds of times) with GIMP 2.6 (that I use as a professional photographer).
With GIMP 2.10.8, it shows up normally in the appropriate "Filters" menu, launches as planned, opens normally the parameters dialog (Capture_2019-02-06_10-40-16_GIMP_python_launch_OK.png herewith).
Then the script begins OK but crashes on entering image processing, which is optimized using tiles.
-
The error is caught by a "try/except" mechanism that I've included in the script. Il displays the following error message: 'NoneType' object has no attribute 'ewidth'!(Capture_2019-02-06_10-41-33_GIMP_python_error.png herewith - the "image incompatible" part of the message is MY wording in "except" handling).
-
My script allows the user to ask for a processing report. The one produced in this case confirms that the script crashes when it tries to use a tile object. More precisely, the command that fails to execute is:
for x in xrange(srcTile.ewidth): [code here]
The full script may be downloaded here :http://gja.frndz.pagesperso-orange.fr/technik/bbpnpv/balance-des-blancs-puissance-n.py (and its guide lines are here: http://gja.frndz.pagesperso-orange.fr/technik/bbpnpv/bbpn/bbpn.htm).
When launched from the terminal the only message that shows up there is : "gimp: LibGimpBase-AVERTISSEMENT: gimp: gimp_wire_read(): error". This appears right after launch command, well before script launch (and therefore does not seems connected to tile bug (?)).
Gimp version details
$ gimp --version --verbose
Éditeur d’image GIMP version 2.10.8
git-describe: 5e662c37d7cc472266989f259c4ae579d66a6617
C compiler:
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc-6
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 6.4.0-17ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --with-as=/usr/bin/x86_64-linux-gnu-as --with-ld=/usr/bin/x86_64-linux-gnu-ld --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 6.4.0 20180424 (Ubuntu 6.4.0-17ubuntu1)
utilisation de GEGL version 0.4.12 (compilé avec la version 0.4.12)
utilisation de GLib version 2.56.3 (compilé avec la version 2.56.2)
utilisation de GdkPixbuf version 2.36.11 (compilé avec la version 2.36.11)
utilisation de GTK+ version 2.24.32 (compilé avec la version 2.24.32)
utilisation de Pango version 1.40.14 (compilé avec la version 1.40.14)
utilisation de Fontconfig version 2.12.6 (compilé avec la version 2.12.6)
utilisation de Cairo version 1.15.10 (compilé avec la version 1.15.10)
Reproduction
Is the bug reproducible? => Always
Reproduction steps:
- Copy script into plug-ins directory
- Launch GIMP then script …
Expected result: processed image
Actual result: processing stops on error on tile object use
Thank you for reading my message.