Skip to content

index table and data table sizes differ. post-import-image events are corrupted. #17904

Open
@Crouze

Description

@Crouze

Describe the bug

Starting a LUA script in script manager (autostyle in my case) fails with "contrib/autostyle failed to load". Starting dt with "-d lua" option shows the error message in the bug report title. If trying again for a second time it still fails to load but the rror message is different ("key 'apply your chosen style from exiftool tags' already registered for event shortcut").

Steps to reproduce

  • Start dt
  • Open script manager
  • Try to start autostyle
  • autostyle is not started and "contrib/autostyle failed to load"

Expected behavior

LUA script is started

Logfile | Screenshot | Screencast

darktable 4.8.1
Copyright (C) 2012-2024 Johannes Hanika and other contributors.

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

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

    14.3293 LUA ERROR: dtutils.lua: prequire: 223: Error loading contrib/autostyle 
    14.3294 LUA ERROR: dtutils.lua: prequire: 224: Error returned is index table and data table sizes differ.  post-import-image events are corrupted.
 
    14.3295 LUA ERROR: script_manager.lua: activate: 510: error loading contrib/autostyle 
    14.3296 LUA ERROR: script_manager.lua: activate: 511: error message: index table and data table sizes differ.  post-import-image events are corrupted.

   216.4282 LUA ERROR: dtutils.lua: prequire: 223: Error loading contrib/autostyle 
   216.4302 LUA ERROR: dtutils.lua: prequire: 224: Error returned is key 'apply your chosen style from exiftool tags' already registered for event shortcut  
   216.4304 LUA ERROR: script_manager.lua: activate: 510: error loading contrib/autostyle 
   216.4307 LUA ERROR: script_manager.lua: activate: 511: error message: key 'apply your chosen style from exiftool tags' already registered for event shortcut  

Commit

No response

Where did you obtain darktable from?

distro packaging

darktable version

4.8.1

What OS are you using?

Linux

What is the version of your OS?

Arch Linux x86_64, kernel 6.12.1-arch1-1

Describe your system?

Intel(R) Core(TM) i5-6300U (4) @ 3.00 GHz
16GB memory

Are you using OpenCL GPU in darktable?

Yes

If yes, what is the GPU card and driver?

Intel HD Graphics 520 @ 1.00 GHz [Integrated] (i915)

Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip

I have a second, completely separate, instance of dt on the same laptop which doesn't have this error.

The following lua scripts were started automatically:

  • CollectHelper
  • ext_editor
  • gimp
  • image_time
  • OpenInExplorer
  • rename_images

Metadata

Metadata

Assignees

Labels

bug: pendingsomeone needs to start working on thatluapriority: lowcore features work as expected, only secondary/optional features don't

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions