Testing AI Object Masks in darktable nightly builds

Same with completely fresh config with 5.5.0+1258~g377b50674e

Got it. Can you share crash report?

This is the shortened terminal output with -d common from launch to crash:

ph@asrock-24:/media/ph/ssd-120/darktable/config/darktable-dev$ /media/ph/ssd-120/darktable/bin/bin/darktable --configdir /media/ph/ssd-120/darktable/config/darktable-fresh --cachedir /media/ph/ssd-120/darktable/cache/darktable-fresh -d common
darktable 5.5.0+1258~g377b50674e
Copyright (C) 2012-2026 Johannes Hanika and other contributors.

Compile options:
  Bit depth              -> 64 bit
  Exiv2                  -> 0.27.6
  Lensfun                -> 0.3.4
  Debug                  -> DISABLED
  SSE2 optimizations     -> ENABLED
  OpenMP                 -> ENABLED
  OpenCL                 -> ENABLED
  Lua                    -> ENABLED  - API version 9.7.0
  Colord                 -> ENABLED
  gPhoto2                -> ENABLED  - Camera tethering is available
  OSMGpsMap              -> ENABLED  - Map view is available
  GMIC                   -> ENABLED  - Compressed LUTs are supported
  GraphicsMagick         -> ENABLED
  ImageMagick            -> DISABLED
  libavif                -> ENABLED
  libheif                -> ENABLED
  libjxl                 -> ENABLED
  LibRaw                 -> ENABLED  - Version 0.22.0-Release
  OpenJPEG               -> ENABLED
  OpenEXR                -> ENABLED
  WebP                   -> ENABLED
  AI                     -> ENABLED

See https://www.darktable.org/resources/ for detailed documentation.
See https://github.com/darktable-org/darktable/issues/new/choose to report bugs.

[dt starting] as : /media/ph/ssd-120/darktable/bin/bin/darktable --configdir /media/ph/ssd-120/darktable/config/darktable-fresh --cachedir /media/ph/ssd-120/darktable/cache/darktable-fresh -d common
     0.0002 application_directory: /media/ph/ssd-120/darktable/bin/bin
     0.0002 darktable.datadir: /media/ph/ssd-120/darktable/bin/share/darktable
     0.0002 darktable.plugindir: /media/ph/ssd-120/darktable/bin/lib/darktable
     0.0003 darktable.localedir: /media/ph/ssd-120/darktable/bin/share/locale
     0.0003 darktable.sharedir: /media/ph/ssd-120/darktable/bin/share
     0.0003 darktable.configdir: /media/ph/ssd-120/darktable/config/darktable-fresh
     0.0003 darktable.cachedir: /media/ph/ssd-120/darktable/cache/darktable-fresh
     0.0003 darktable.tmpdir: /tmp
     0.0003 new_xdg_data_dirs: /media/ph/ssd-120/darktable/bin/share:/usr/share/Lubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/usr/share
     0,1930 [dt_worker_threads] using 7 worker threads
     0,2314 [dt_get_sysresource_level] switched to `default'
     0,2314   total mem:       64217MB
     0,2314   available mem:   32108MB
     0,2314   singlebuff:      501MB
     0,2314   mipmap cache:    8027MB
[opencl_init] opencl library 'libOpenCL.so.1' found on your system and loaded, preference 'default path'
[opencl_init] found 1 platform
[opencl_init] found 1 device

   DEVICE:                   0: 'NVIDIA GeForce RTX 2060'
   CONF KEY:                 cldevice_v6_nvidiacudanvidiageforcertx2060
   PLATFORM, VENDOR & ID:    NVIDIA CUDA, NVIDIA Corporation, ID=4318
   CANONICAL NAME:           nvidiacudanvidiageforcertx2060
   DRIVER VERSION:           580.142
   DEVICE VERSION:           OpenCL 3.0 CUDA API=300
   DEVICE_TYPE:              GPU, dedicated mem
   GLOBAL MEM SIZE:          5730 MB
   MAX MEM ALLOC:            1433 MB
   MAX IMAGE SIZE:           32768 x 32768
   MAX CONSTANT BUFFER:      64 KB
   LOCAL MEM SIZE:           48 KB
   ADDRESS ALIGN:            512 B
   COMPUTE UNITS:            30
   MAX WORK GROUP SIZE:      1024 (32)
   MAX WORK ITEM DIMENSIONS: 3 [ 1024 1024 64 ]
   ASYNC PIXELPIPE:          NO
   PINNED MEMORY TRANSFER:   NO
   SUPPORTED ATOMICS:        INT32 
   EVENTS HANDLED:           YES
   OPENCL FAST MODE:         NO
   TILING ADVANTAGE:         0,000
   DEFAULT DEVICE:           NO
   KERNEL BUILD DIRECTORY:   /media/ph/ssd-120/darktable/bin/share/darktable/kernels
   KERNEL DIRECTORY:         /media/ph/ssd-120/darktable/cache/darktable-fresh/cached_v6_kernels_for_NVIDIACUDANVIDIAGeForceRTX2060_580142
   CL COMPILER COMMAND:      -w  -DNVIDIA_SM_20=1 -DNVIDIA=1 -I"/media/ph/ssd-120/darktable/bin/share/darktable/kernels"
   KERNEL LOADING TIME:      0,0302 sec
[opencl_init] OpenCL successfully initialized. internal numbers and names of available devices:
[opencl_init]           0       'NVIDIA CUDA NVIDIA GeForce RTX 2060'
[opencl_init] FINALLY: opencl PREFERENCE=YES is AVAILABLE and ENABLED
[opencl_init] opencl_scheduling_profile: 'default'
[opencl_init] opencl_device_priority: '*/!0,*/*/*/!0,*'
[opencl_init] opencl_mandatory_timeout: 1000
[opencl_update_priorities] these are your device priorities:
[opencl_update_priorities]              image   preview export  thumbs  preview2
[opencl_update_priorities]              0       -1      0       0       -1
[opencl_update_priorities] show if opencl use is mandatory for a given pixelpipe:
[opencl_update_priorities]              image   preview export  thumbs  preview2
[opencl_update_priorities]              NO      NO      NO      NO      NO
[opencl_synchronization_timeout] synchronization timeout set to 200
[opencl_update_priorities] these are your device priorities:
[opencl_update_priorities]              image   preview export  thumbs  preview2
[opencl_update_priorities]              0       -1      0       0       -1
[opencl_update_priorities] show if opencl use is mandatory for a given pixelpipe:
[opencl_update_priorities]              image   preview export  thumbs  preview2
[opencl_update_priorities]              NO      NO      NO      NO      NO
[opencl_synchronization_timeout] synchronization timeout set to 200
     0,4929 [dt_worker_threads] using 7 worker threads
     3,1158 [rawspeed_open] extensions list to ignore: `cr3'
     3,1802 [exiv2 read_exif_tag] Invalid key `Exif.CanonLiOp.AutoLightingOptimizer'
     3,1803 [exiv2 read_exif_tag] Invalid tag name or ifdId `AutoDynamicRange', ifdId 58
     3,2065 [dt_dev_read_history_ext] temporary history deleted
     3,2065 [dt_iop_reload_defaults] defaults reloaded for filmicrgb
     3,2065 [dt_iop_reload_defaults] defaults reloaded for agx
     3,2065 [dt_iop_reload_defaults] defaults reloaded for colorequal
     3,2065 [dt_iop_reload_defaults] defaults reloaded for colormapping
     3,2065 [dt_iop_reload_defaults] defaults reloaded for channelmixerrgb
     3,2069 [dt_iop_reload_defaults] defaults reloaded for colorin
     3,2069 [dt_iop_reload_defaults] defaults reloaded for crop
     3,2069 [dt_iop_reload_defaults] defaults reloaded for overlay
     3,2070 [dt_iop_reload_defaults] defaults reloaded for basecurve
     3,2070 [dt_iop_reload_defaults] defaults reloaded for retouch
     3,2070 [dt_iop_reload_defaults] defaults reloaded for clipping
     3,2070 [dt_iop_reload_defaults] defaults reloaded for flip
     3,2070 [dt_iop_reload_defaults] defaults reloaded for ashift
     3,2070 [dt_iop_reload_defaults] defaults reloaded for cacorrectrgb
     3,2078 [dt_iop_reload_defaults] defaults reloaded for lens
     3,2078 [dt_iop_reload_defaults] defaults reloaded for exposure
     3,2078 [dt_iop_reload_defaults] defaults reloaded for rotatepixels
     3,2078 [dt_iop_reload_defaults] defaults reloaded for denoiseprofile
     3,2079 [dt_iop_reload_defaults] defaults reloaded for demosaic
     3,2079 [dt_iop_reload_defaults] defaults reloaded for rawdenoise
     3,2079 [dt_iop_reload_defaults] defaults reloaded for hotpixels
     3,2079 [dt_iop_reload_defaults] defaults reloaded for cacorrect
     3,2079 [dt_iop_reload_defaults] defaults reloaded for highlights
     3,2079 [dt_iop_reload_defaults] defaults reloaded for rasterfile
     3,2079 [dt_iop_reload_defaults] scene=YES, modern=YES, CAT=NO. D65 2,986 1,000 1,249, AS-SHOT 2,605 1,000 1,461
     3,2079 [dt_iop_reload_defaults] defaults reloaded for temperature
     3,2079 [dt_iop_reload_defaults] defaults reloaded for invert
     3,2079 [dt_iop_reload_defaults] defaults reloaded for rawprepare
     3,2101 [dt_dev_read_history_ext] temporary history initialised with default params and presets
     3,2101 [dt_dev_read_history_ext] temporary history merged with image history
     3,2102 [history] successfully loaded module highlights from history
                        blendop v. 14:  version ok      params ok
                        params v. 4:    version ok      params ok
     3,2102 [history] successfully loaded module rawprepare from history
                        blendop v. 14:  version ok      params ok
                        params v. 2:    version ok      params ok
     3,2102 [history] successfully loaded module temperature from history
                        blendop v. 14:  version ok      params ok
                        params v. 4:    version ok      params ok
     3,2102 [history] successfully loaded module flip from history
                        blendop v. 14:  version ok      params ok
                        params v. 2:    version ok      params ok
     3,2102 [history] successfully loaded module colorin from history
                        blendop v. 14:  version ok      params ok
                        params v. 7:    version ok      params ok
     3,2102 [history] successfully loaded module colorout from history
                        blendop v. 14:  version ok      params ok
                        params v. 5:    version ok      params ok
     3,2102 [history] successfully loaded module gamma from history
                        blendop v. 14:  version ok      params ok
                        params v. 1:    version ok      params ok
     3,2102 [history] successfully loaded module demosaic from history
                        blendop v. 14:  version ok      params ok
                        params v. 6:    version ok      params ok
     3,2102 [history] successfully loaded module filmicrgb from history
                        blendop v. 14:  version ok      params ok
                        params v. 6:    version ok      params ok
     3,2102 [history] successfully loaded module spots from history
                        blendop v. 14:  version ok      params ok
                        params v. 2:    version ok      params ok
     3,2103 [history] successfully loaded module atrous from history
                        blendop v. 14:  version ok      params ok
                        params v. 2:    version ok      params ok
     3,2103 [history] successfully loaded module sharpen from history
                        blendop v. 14:  version ok      params ok
                        params v. 1:    version ok      params ok
     3,2103 [history] successfully loaded module liquify from history
                        blendop v. 14:  version ok      params ok
                        params v. 1:    version ok      params ok
     3,2103 [history] successfully loaded module hotpixels from history
                        blendop v. 14:  version ok      params ok
                        params v. 1:    version ok      params ok
     3,2103 [history] successfully loaded module retouch from history
                        blendop v. 14:  version ok      params ok
                        params v. 3:    version ok      params ok
     3,2103 [history] successfully loaded module retouch from history
                        blendop v. 14:  version ok      params ok
                        params v. 3:    version ok      params ok
     3,2103 [history] successfully loaded module retouch from history
                        blendop v. 14:  version ok      params ok
                        params v. 3:    version ok      params ok
     3,2103 [history] successfully loaded module lens from history
                        blendop v. 14:  version ok      params ok
                        params v. 10:   version ok      params ok
     3,2103 [history] successfully loaded module retouch from history
                        blendop v. 14:  version ok      params ok
                        params v. 3:    version ok      params ok
     3,2103 [history] successfully loaded module colorbalance from history
                        blendop v. 14:  version ok      params ok
                        params v. 3:    version ok      params ok
     3,2103 [history] successfully loaded module crop from history
                        blendop v. 14:  version ok      params ok
                        params v. 3:    version ok      params ok
     3,2103 [history] successfully loaded module exposure from history
                        blendop v. 14:  version ok      params ok
                        params v. 7:    version ok      params ok
     3,2180 synch all module defaults     [thumbnail]                                   
     3,2243 [crop] commit ratio_d=-1 ratio_n=-1
     3,2252 [commit color calibration]  temp=4082  xy=0,3787 0,3816 - XYZ=0,9923 1,0000 0,6281 - LMS=1,0161 0,9849 0,6455  DT_ILLUMINANT_D
     3,2632 synch all module history      [thumbnail]                                   
     3,2632 committed                     [thumbnail]      highlights              500  enabled  piece hash=5db473bb539fc3e9
     3,2633 committed                     [thumbnail]      rawprepare              100  enabled  piece hash=29e31126cc93b5f5
     3,2633 committed                     [thumbnail]      temperature             300  enabled  piece hash=1cb2c21972f556b5
     3,2633 committed                     [thumbnail]      flip                   2000  disabled piece hash=0
     3,2633 committed                     [thumbnail]      colorin                3400  enabled  piece hash=545b2d2ca590d867
     3,2687 committed                     [thumbnail]      colorout               8500  enabled  piece hash=eca793fdfab6de04
     3,2687 committed                     [thumbnail]      gamma                  9300  enabled  piece hash=538ab5cf9c1d815e
     3,2687 committed                     [thumbnail]      demosaic                900  enabled  piece hash=f02707e2002d8dd6
     3,2687 committed                     [thumbnail]      filmicrgb              6200  enabled  piece hash=3a288369fc336684
     3,2687 committed                     [thumbnail]      spots                  2300  disabled piece hash=0
     3,2688 committed                     [thumbnail]      atrous                 4400  disabled piece hash=0
     3,2688 committed                     [thumbnail]      sharpen                6900  disabled piece hash=0
     3,2696 committed                     [thumbnail]      liquify                2200  enabled  piece hash=34c281f3df43b741
     3,2696 committed                     [thumbnail]      hotpixels               700  enabled  piece hash=1f89fcb8f15122
     3,2745 [dt_dev_read_history_ext] temporary history deleted
     3,2745 [dt_iop_reload_defaults] defaults reloaded for filmicrgb
     3,2745 [dt_iop_reload_defaults] defaults reloaded for agx
     3,2745 [dt_iop_reload_defaults] defaults reloaded for colorequal
     3,2745 [dt_iop_reload_defaults] defaults reloaded for colormapping
     3,2746 [dt_iop_reload_defaults] defaults reloaded for channelmixerrgb
     3,2750 committed                     [thumbnail]      retouch                2400  enabled  piece hash=43ad4e2d99eba92a
     3,2751 committed                     [thumbnail]      retouch                2400  

...
     
     1,0000 0,6281 - LMS=1,0161 0,9849 0,6455  DT_ILLUMINANT_D
    17,9124 synch all module history      [export]                                      
    17,9125 committed                     [export]         rawprepare              100  enabled  piece hash=29e31126cc93b5f5
    17,9125 committed                     [export]         demosaic                900  enabled  piece hash=f02707e2002d8dd6
    17,9125 committed                     [export]         colorin                3300  enabled  piece hash=545b2d2ca590d867
    17,9220 committed                     [export]         colorout               8600  enabled  piece hash=eca793fdfab6de04
    17,9220 committed                     [export]         gamma                  9300  enabled  piece hash=538ab5cf9c1d815e
    17,9220 committed                     [export]         temperature             300  enabled  piece hash=1cb2c21972f556b5
    17,9220 committed                     [export]         highlights              500  enabled  piece hash=5db473bb539fc3e9
    17,9221 committed                     [export]         flip                   1800  disabled piece hash=0
    17,9231 committed                     [export]         lens                   1400  enabled  piece hash=fe177bf3d2b39d1b
    17,9231 committed                     [export]         cacorrectrgb           1500  enabled  piece hash=bd3e253b6f9e2637
    17,9231 committed                     [export]         exposure               2500  enabled  piece hash=a514b1864e250598
    17,9232 committed                     [export]         colorbalancergb        5400  enabled  piece hash=bdafeb5815a02976
    17,9232 committed                     [export]         exposure               2500  enabled  piece hash=93abfd7f9740d1ce
    17,9232 synch all modules done        [export]                                      defaults 0,0509s, history 0,0107s
    17,9232 get dimensions                [export]                                           (0/0)  6048x4024 sc=1,000; ID=2
    17,9232 modified roi OUT              [export]         rawprepare              100       (0/0)  6048x4024 sc=1,000 -->       (0/0)  6020x4024 sc=1,000; 
    17,9232 pipe starting             CL0 [export]                                           (0/0)  1535x1026 sc=0,255; 'DSC00074.ARW' ID=2, nvidiacudanvidiageforcertx2060 using 3507MB
    17,9233 modified roi IN               [export]         finalscale             8500       (0/0)  1535x1026 sc=0,255 -->       (0/0)  6017x4022 sc=1,000; ID=2
    17,9240 modified roi IN               [export]         lens                   1400       (0/0)  6017x4022 sc=1,000 -->       (4/2)  6007x4016 sc=1,000; ID=2
    17,9241 modified roi IN               [export]         highlights              500       (4/2)  6007x4016 sc=1,000 -->       (0/0)  6020x4024 sc=1,000; ID=2
    17,9241 modified roi IN               [export]         rawprepare              100       (0/0)  6020x4024 sc=1,000 -->       (0/0)  6048x4024 sc=1,000; ID=2
    17,9241 pipe data: full               [export]                                           (0/0)  6048x4024 sc=1,000; 
    17,9454 process                   CL0 [export]         rawprepare              100       (0/0)  6048x4024 sc=1,000 -->       (0/0)  6020x4024 sc=1,000; IOP_CS_RAW 194,2MB
    17,9545 process                   CL0 [export]         temperature             300       (0/0)  6020x4024 sc=1,000; IOP_CS_RAW 193,8MB
    17,9558 process                   CL0 [export]         highlights              500       (0/0)  6020x4024 sc=1,000 -->       (4/2)  6007x4016 sc=1,000; IOP_CS_RAW 242,2MB
    17,9592 opposed chroma            CL0 [export]         highlights              500       (0/0)  6020x4024 sc=1,000 -->       (4/2)  6007x4016 sc=1,000;    0,0000000 (0)  -0,0247711 (1715)  -0,0779904 (460)
    17,9605 process                   CL0 [export]         demosaic                900       (4/2)  6007x4016 sc=1,000; IOP_CS_RAW -> IOP_CS_RGB 772,0MB
    17,9866 process                   CL0 [export]         lens                   1400       (4/2)  6007x4016 sc=1,000 -->       (0/0)  6017x4022 sc=1,000; IOP_CS_RGB 1742,4MB
    18,3756 process                   CPU [export]         cacorrectrgb           1500       (0/0)  6017x4022 sc=1,000; IOP_CS_RGB 774MB
    19,6188 process                   CL0 [export]         exposure               2500       (0/0)  6017x4022 sc=1,000; IOP_CS_RGB 1355,2MB
    19,6846 blend without form        CL0 [export]         exposure               2500       (0/0)  6017x4022 sc=1,000; IOP_CS_RGB, BLEND_CS_RGB_DISPLAY
    19,7065 process                   CL0 [export]         colorin                3300       (0/0)  6017x4022 sc=1,000; IOP_CS_RGB -> IOP_CS_LAB 774,4MB
    19,7065 coeff report              CL0 [export]         colorin                3300       (0/0)  6017x4022 sc=1,000; `Standard-Farb-Matrix' 2,605(*1,000) 1,000(*1,000) 1,461(*1,000)
    19,7146 transform colorspace      CL0 [export]         colorbalancergb        5400       (0/0)  6017x4022 sc=1,000; IOP_CS_LAB -> IOP_CS_RGB `lineares Rec2020-RGB'
    19,7217 process                   CL0 [export]         colorbalancergb        5400       (0/0)  6017x4022 sc=1,000; IOP_CS_RGB 774,4MB
    19,7395 process                   CL0 [export]         finalscale             8500       (0/0)  6017x4022 sc=1,000 -->       (0/0)  1535x1026 sc=0,255; IOP_CS_RGB 606,0MB
    19,7395 clip_and_zoom_roi         CL0 [export]         finalscale             8500       (0/0)  6017x4022 sc=1,000 -->       (0/0)  1535x1026 sc=0,255; device=0
    19,7570 transform colorspace      CL0 [export]         colorout               8600       (0/0)  1535x1026 sc=0,255; IOP_CS_RGB -> IOP_CS_LAB `lineares Rec2020-RGB'
    19,7598 process                   CL0 [export]         colorout               8600       (0/0)  1535x1026 sc=0,255; IOP_CS_LAB -> IOP_CS_RGB 50,4MB
    19,7672 cache report                  [export]                                      2 lines (important=0, used=0, invalid=0). Using 743MB, limit=0MB. Hits/run=0,00. Hits/test=0,000
    19,7672 pipe finished             CL0 [export]                                           (0/0)  1535x1026 sc=0,255; 'DSC00074.ARW' ID=2
    24,8681 [masks dynbuf 'object guipoints'] with initial size 200000 (is 0x7685cc071040)
    24,8681 [masks dynbuf 'object guipoints_payload'] with initial size 100000 (is 0x7685cfed0040)
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
Abgebrochen
1 Like

I was able to localize the bug. Fix is on the way.

1 Like

Thanks for all the work you are doing! Im loving the AI stuff so far.

1 Like

Fix is already in master.

2 Likes

In macOs also, the darktablerc is found same as Linux.
At least it so, for me
M1 Pro running Tahoe

@anry … well well , you are getting forward within the possibilies of DT and precise masking !!
Working quite well for me .
Brilliant job

THX for your effort , much appreciated
Andreas

1 Like