DT 5.4.0: crashes with EnfuseSimple script; luarc refers to 'copy_attch_detach_tags'

I’m running dt 5.4.0, installed as a Mint update immediately afer 5.4.0 was announced. dt closes when I try to focus stack images with the ‘EnfuseSimple’ script made available by Ayeda Okambawa. When running dt with the ‘-d lua’ option i see a line in the terminal output:

“3.3779 LUA ERROR : /home/tony/.config/darktable/luarc:9: module ‘copy_attch_detach_tags’ not found:”

And, indeed, there is no such module. Should I report this spelling error as a bug? If so, to whom - the creator of ‘EnfuseSimple’ script or the developers of the lua module?

The luarc file is the edited by the user, so the user needs to spell it correctly :smile:

Or, the user can just leave the luarc file set to require "tools/script_manager" and turn the scripts on and off from there.

As far as I know I am the only user of this PC (I discount the possibility that somebody with knowledge of both my PC power pass-word and my user login sneaks into my house during the night or when I am out). I can recall no point when I have had a need to, or have otherwise edited luarc - it was last changed when the newly released 5.4.0 version of dt was installed by Mint through Update Manager. I have not touched it since.

So 2 questions:

  1. who is the user who edited this file and inserted a misconfigured ‘required’ statement? (Not an easy question)
  2. in the light of Q.1, can the closure (crash ?) of dt be validly regarded as a reportable code error?

A missing script wont crash darktable (or at least it never has in my experience and I’ve been using them for a long time). The message is just telling you the script file couldn’t be found and so therefore wont be loaded.

I could see the EnfuseSimple script causing a crash, since it is possible for a lua script to crash darktable (as I have found MANY times). In my experience a working script wont crash darktable. I’ve not seen the script in question (EnfuseSimple) so I don’t know if there is a problem with the script or not. I would raise an issue with the author of the script.

I have a Linux Mint VM still running DT 5.2.1 that I use for testing. I’ve installed the script and it ran fine on 5.2.1. Then I updated to DT 5.4 and it was still working. I did see some errors in the logs that were not there before, but I didn’t get the same error as you. I’ll try to fix them later, but in any case, DT didn’t crash and I was still able to merge pictures.

As Bill mentioned, it looks like there is something with your luarc. What do you see when you type this in the terminal?

cat /home/tony/.config/darktable/luarc

The best approach is to have only require "tools/script_manager" and enable or disable the plugins from the Lua script manager.

It looks like the issue is with your luarc, but feel free to open an issue on GitHub if the problem persists.