darktable-org / lua-scripts

151 stars 110 forks source link

enfuseAdvanced crashes on Windows Version 4.4.2 #428

Open jc101 opened 11 months ago

jc101 commented 11 months ago

The enfuseAdvanced lua script causes the latest version of Darktable on my Windows 10 to hard crash, giving this error: Magick: caught exception 0xC0000005 "Access violation".....

Debugging through the code, it seems to be caused by the initialize function (named "initial" in the script) used in db.register_storage. If this function returns an empty table or the passed images, the crash occurs.

I'm new to Darktable and don't really understand how everything fits together but if the function is changed to always return nil then the script works and I get good results.