SOLVED - darktable - LUA script - import_filters.lua, crashes darktable?

Ubuntu 20.04 / Mint 20.2 Cinnamon

I’m running 3.7.0+511~gf91a837ec
compiled with: option(DONT_USE_INTERNAL_LUA “Never fall back to the intree copy of lua” OFF)
as liblua5.4-0 is not available for Ubuntu 20.04 at present.

When I attempt to use the ‘prefer raw over jpeg’ option at import, darktable crashes instantly - IF the folder contains jpeg images.

Error message is PANIC: unprotected error in call to Lua API (bad argument #-1 (string expected, got nil))

Does anyone else see this issue?

  1. I hope @wpferguson can help here.
  2. Do you have liblua5.4 installed on your system?

I’ll test and see if I can recreate

@wpferguson
Many thanks.

That was quick and decisive. Yes, I can reproduce. i’ll look at it and see what’s going on

@Luke_Carville it’s a bug in the way the table returned from the filter is handled. I have a fix and I’ll submit a PR in a little bit.

1 Like

PR 9650 submitted.

2 Likes

Wow, that was fast.

@wpferguson
Many thanks.
I’ll await the fix coming through.

1 Like

@wpferguson
3.7.0+534~g327ac1a00
All working fine now.
Thank you.

1 Like

Last week I had worked on that piece of code after it took a team of us a week to find where the bug was. As soon as i saw the back trace and the file it was in, I had a real good idea where to look. :slight_smile:

2 Likes