'error:image stack processing failed'

with the latest darktable 4.8 on Mac i’m getting ‘error:image stack processing failed’ when using Lua script image stacking.
Has anyone here has perhaps successfully create an image stack with latest build on Mac using Lua script? thanks

What messages did you get on the screen before the error message?

I get the ‘exporting 20 images…’ > ‘export 1/20’ > ‘aligning images’ > 'ERROR: image stack processing failed.

it never happened to me before updating (last time I did was 1 month ago), Lua script is updated and the executable are also there.

Did you only get export 1/20 or did you see all of the images export. If it only exported 1, then tried to align them, that would cause a crash

Nope, it run through all the images then I get the rest of the messages.

can you run darktable from a terminal with the -d lua flag and post the output?

Hey Bill here is the output:

Compile options:
Bit depth → 64 bit
Debug → DISABLED
SSE2 optimizations → DISABLED
OpenMP → ENABLED
OpenCL → ENABLED
Lua → ENABLED - API version 9.3.0
Colord → DISABLED
gPhoto2 → ENABLED
GMIC → ENABLED - Compressed LUTs are supported
GraphicsMagick → DISABLED
ImageMagick → ENABLED
libavif → ENABLED
libheif → ENABLED
libjxl → ENABLED
OpenJPEG → ENABLED
OpenEXR → ENABLED
WebP → ENABLED

See resources | darktable for detailed documentation.
See Sign in to GitHub · GitHub to report bugs.

(process:2743): GLib-GObject-CRITICAL **: 07:29:26.532: g_object_set: assertion ‘G_IS_OBJECT (object)’ failed

(darktable:2743): Gtk-CRITICAL **: 07:29:26.955: gtk_window_add_accel_group: assertion ‘GTK_IS_WINDOW (window)’ failed
2.8576 LUA [script installer] dont show not set
2.8576 LUA [script installer] checking for lua directory
2.8576 LUA [script installer] checking for scripts
2.8642 LUA [script installer] line is darktablerc
2.8642 LUA [script installer] line is data.db
2.8642 LUA [script installer] line is data.db-pre-4.2.1
2.8642 LUA [script installer] line is data.db-pre-4.4.0
2.8642 LUA [script installer] line is data.db-pre-4.4.2
2.8642 LUA [script installer] line is data.db-pre-4.6.0
2.8642 LUA [script installer] line is data.db-pre-4.6.1
2.8642 LUA [script installer] line is data.db-pre-4.7.0
2.8642 LUA [script installer] line is data.db-pre-4.8.0
2.8642 LUA [script installer] line is data.db-snp-20240305113848
2.8642 LUA [script installer] line is data.db-snp-20240313202356
2.8642 LUA [script installer] line is data.db-snp-20240323071855
2.8642 LUA [script installer] line is data.db-snp-20240402164105
2.8642 LUA [script installer] line is data.db-snp-20240418101750
2.8642 LUA [script installer] line is data.db-snp-20240430103620
2.8642 LUA [script installer] line is data.db-snp-20240509151500
2.8642 LUA [script installer] line is data.db-snp-20240517214548
2.8642 LUA [script installer] line is data.db-snp-20240525102449
2.8642 LUA [script installer] line is data.db-snp-20240607184152
2.8642 LUA [script installer] line is data.db-snp-20240619212214
2.8642 LUA [script installer] line is data.db.lock
2.8642 LUA [script installer] line is library.db
2.8642 LUA [script installer] line is library.db-pre-4.2.1
2.8642 LUA [script installer] line is library.db-pre-4.4.0
2.8642 LUA [script installer] line is library.db-pre-4.4.2
2.8642 LUA [script installer] line is library.db-pre-4.6.0
2.8642 LUA [script installer] line is library.db-pre-4.6.1
2.8642 LUA [script installer] line is library.db-pre-4.7.0
2.8642 LUA [script installer] line is library.db-pre-4.8.0
2.8642 LUA [script installer] line is library.db-snp-20240305113848
2.8642 LUA [script installer] line is library.db-snp-20240313202356
2.8642 LUA [script installer] line is library.db-snp-20240323071855
2.8642 LUA [script installer] line is library.db-snp-20240402164105
2.8642 LUA [script installer] line is library.db-snp-20240418101750
2.8642 LUA [script installer] line is library.db-snp-20240430103620
2.8642 LUA [script installer] line is library.db-snp-20240509151500
2.8642 LUA [script installer] line is library.db-snp-20240517214548
2.8642 LUA [script installer] line is library.db-snp-20240525102449
2.8642 LUA [script installer] line is library.db-snp-20240607184152
2.8642 LUA [script installer] line is library.db-snp-20240619212214
2.8642 LUA [script installer] line is library.db.lock
2.8642 LUA [script installer] line is lua
2.8642 LUA [script installer] scripts found
2.8642 LUA [script installer] line is luarc
2.8642 LUA [script installer] line is luarc.old
2.8642 LUA [script installer] line is shortcutsrc
2.8642 LUA [script installer] line is shortcutsrc.backup
2.8642 LUA [script installer] line is shortcutsrc.defaults
2.8642 LUA [script installer] line is shortcutsrc.edit
2.8643 LUA [script installer] line is user.css
3.2090 [pixelpipe_process CPU] buffer aligment problem: IN=0x30cc60040 OUT=0x32a444000

Did darktable crash?

Nope. it never crashes. it only give me the error.

okay, while you are running darktable with the -d lua flag, run image stack and let’s see what the output of that is.

first of all thank you for looking into this.

here is what I get:

(process:4228): GLib-GObject-CRITICAL **: 20:01:16.032: g_object_set: assertion ‘G_IS_OBJECT (object)’ failed

(darktable:4228): Gtk-CRITICAL **: 20:01:16.221: gtk_window_add_accel_group: assertion ‘GTK_IS_WINDOW (window)’ failed
2.2979 LUA [script installer] dont show not set
2.2980 LUA [script installer] checking for lua directory
2.2980 LUA [script installer] checking for scripts
2.3009 LUA [script installer] line is darktablerc
2.3009 LUA [script installer] line is data.db
2.3010 LUA [script installer] line is data.db-pre-4.2.1
2.3010 LUA [script installer] line is data.db-pre-4.4.0
2.3010 LUA [script installer] line is data.db-pre-4.4.2
2.3010 LUA [script installer] line is data.db-pre-4.6.0
2.3010 LUA [script installer] line is data.db-pre-4.6.1
2.3010 LUA [script installer] line is data.db-pre-4.7.0
2.3010 LUA [script installer] line is data.db-pre-4.8.0
2.3010 LUA [script installer] line is data.db-snp-20240313202356
2.3010 LUA [script installer] line is data.db-snp-20240323071855
2.3010 LUA [script installer] line is data.db-snp-20240402164105
2.3010 LUA [script installer] line is data.db-snp-20240418101750
2.3010 LUA [script installer] line is data.db-snp-20240430103620
2.3010 LUA [script installer] line is data.db-snp-20240509151500
2.3010 LUA [script installer] line is data.db-snp-20240517214548
2.3010 LUA [script installer] line is data.db-snp-20240525102449
2.3010 LUA [script installer] line is data.db-snp-20240607184152
2.3010 LUA [script installer] line is data.db-snp-20240619212214
2.3010 LUA [script installer] line is data.db-snp-20240628163305
2.3010 LUA [script installer] line is data.db.lock
2.3010 LUA [script installer] line is library.db
2.3010 LUA [script installer] line is library.db-pre-4.2.1
2.3010 LUA [script installer] line is library.db-pre-4.4.0
2.3010 LUA [script installer] line is library.db-pre-4.4.2
2.3010 LUA [script installer] line is library.db-pre-4.6.0
2.3010 LUA [script installer] line is library.db-pre-4.6.1
2.3010 LUA [script installer] line is library.db-pre-4.7.0
2.3010 LUA [script installer] line is library.db-pre-4.8.0
2.3010 LUA [script installer] line is library.db-snp-20240313202356
2.3010 LUA [script installer] line is library.db-snp-20240323071855
2.3010 LUA [script installer] line is library.db-snp-20240402164105
2.3011 LUA [script installer] line is library.db-snp-20240418101750
2.3011 LUA [script installer] line is library.db-snp-20240430103620
2.3011 LUA [script installer] line is library.db-snp-20240509151500
2.3011 LUA [script installer] line is library.db-snp-20240517214548
2.3011 LUA [script installer] line is library.db-snp-20240525102449
2.3011 LUA [script installer] line is library.db-snp-20240607184152
2.3011 LUA [script installer] line is library.db-snp-20240619212214
2.3011 LUA [script installer] line is library.db-snp-20240628163305
2.3011 LUA [script installer] line is library.db.lock
2.3011 LUA [script installer] line is lua
2.3011 LUA [script installer] scripts found
2.3011 LUA [script installer] line is luarc
2.3011 LUA [script installer] line is luarc.old
2.3011 LUA [script installer] line is shortcutsrc
2.3011 LUA [script installer] line is shortcutsrc.backup
2.3012 LUA [script installer] line is shortcutsrc.defaults
2.3012 LUA [script installer] line is shortcutsrc.edit
2.3012 LUA [script installer] line is user.css
33.3834 [pixelpipe_process CPU] buffer aligment problem: IN=0x322ebc040 OUT=0x33d34c000
38.2432 [pixelpipe_process CPU] buffer aligment problem: IN=0x320000040 OUT=0x325d78000
43.1148 [pixelpipe_process CPU] buffer aligment problem: IN=0x3a89a0040 OUT=0x33d34c000
47.8926 [pixelpipe_process CPU] buffer aligment problem: IN=0x3a5ae4040 OUT=0x325d78000
52.7967 [pixelpipe_process CPU] buffer aligment problem: IN=0x3ae718040 OUT=0x33d34c000
57.5557 LUA ‘/Applications/Hugin/Hugin.app/Contents/MacOS/align_image_stack’ -g 5 -c 8 -t 3 --corr=0.9 -a /private/var/folders/pp/ws_rlxs52cl1kvq3lw2k4_6h0000gn/T/aligned_ ‘/private/var/folders/pp/ws_rlxs52cl1kvq3lw2k4_6h0000gn/T/JZE_2297.jpg’ ‘/private/var/folders/pp/ws_rlxs52cl1kvq3lw2k4_6h0000gn/T/JZE_2298.jpg’ ‘/private/var/folders/pp/ws_rlxs52cl1kvq3lw2k4_6h0000gn/T/JZE_2299.jpg’ ‘/private/var/folders/pp/ws_rlxs52cl1kvq3lw2k4_6h0000gn/T/JZE_2300.jpg’ ‘/private/var/folders/pp/ws_rlxs52cl1kvq3lw2k4_6h0000gn/T/JZE_2301.jpg’
Written aligned images to files with prefix “/private/var/folders/pp/ws_rlxs52cl1kvq3lw2k4_6h0000gn/T/aligned_”
71.6683 LUA image list is ‘/private/var/folders/pp/ws_rlxs52cl1kvq3lw2k4_6h0000gn/T/JZE_2297.jpg’ ‘/private/var/folders/pp/ws_rlxs52cl1kvq3lw2k4_6h0000gn/T/JZE_2298.jpg’ ‘/private/var/folders/pp/ws_rlxs52cl1kvq3lw2k4_6h0000gn/T/JZE_2299.jpg’ ‘/private/var/folders/pp/ws_rlxs52cl1kvq3lw2k4_6h0000gn/T/JZE_2300.jpg’ ‘/private/var/folders/pp/ws_rlxs52cl1kvq3lw2k4_6h0000gn/T/JZE_2301.jpg’
71.6760 LUA convert command is ‘/opt/homebrew/Cellar/imagemagick/7.1.1-34/bin/magick’ -quiet -define tiff:ignore-tags=40965,42032,42033,42034,42036,18246,18249,36867,34864,34866 ‘/private/var/folders/pp/ws_rlxs52cl1kvq3lw2k4_6h0000gn/T/aligned_0000.tif’ ‘/private/var/folders/pp/ws_rlxs52cl1kvq3lw2k4_6h0000gn/T/aligned_0001.tif’ ‘/private/var/folders/pp/ws_rlxs52cl1kvq3lw2k4_6h0000gn/T/aligned_0002.tif’ ‘/private/var/folders/pp/ws_rlxs52cl1kvq3lw2k4_6h0000gn/T/aligned_0003.tif’ ‘/private/var/folders/pp/ws_rlxs52cl1kvq3lw2k4_6h0000gn/T/aligned_0004.tif’ -evaluate-sequence Mean ‘/private/var/folders/pp/ws_rlxs52cl1kvq3lw2k4_6h0000gn/T/JZE_2297-JZE_2301.tif’
magick: no decode delegate for this image format `TIFF’ @ error/constitute.c/ReadImage/746.
71.6847 LUA image list is ‘/private/var/folders/pp/ws_rlxs52cl1kvq3lw2k4_6h0000gn/T/aligned_0000.tif’ ‘/private/var/folders/pp/ws_rlxs52cl1kvq3lw2k4_6h0000gn/T/aligned_0001.tif’ ‘/private/var/folders/pp/ws_rlxs52cl1kvq3lw2k4_6h0000gn/T/aligned_0002.tif’ ‘/private/var/folders/pp/ws_rlxs52cl1kvq3lw2k4_6h0000gn/T/aligned_0003.tif’ ‘/private/var/folders/pp/ws_rlxs52cl1kvq3lw2k4_6h0000gn/T/aligned_0004.tif’

This is the error causing the problem, but I’m not sure I understand it. I’ll do some testing and see what I can come up with.

Check the above directory and see if there is a program in there called convert.

magick should be convert

You could use executable manager and select convert from the dropdown and then use the file selector to find the convert command

Hi Bill,
so I changed the executable directory but ‘convert’ in imagemagick bin is an alias so when I select it automatically turn into ‘magick’ in darktable.

I also look at the old version of imagemagick (6.9.13-12) which is in the Cellar. In there the executable ‘convert’ isn’t an alias but even if I try with that and run image stack I get an error.

At this point I would say export the images to jpg, then run the commands by hand to see if it works that way. If not, it might give more feedback about what is going wrong.

sorry for the silly question. Which command you want me to run?

export the images to jpg, then run the align_image_stack command to generate the aligned tif files. Then run the convert|magick command to see if it processes the images. You can get the command arguments from the log above

yep via Terminal it works, thanks