Closed wpferguson closed 4 years ago
There is a way to recode the script register_lib calls to avoid this problem, by checking the view prior to calling and using the view-changed event to wait for the correct view if necessary. This is lua scripts issue 278.
The Lua API manual needs the register_lib section updated to reflect these changes.
Fixed by lua scritps PR 279.
Describe the bug Starting darktable in single image (darkroom) mode with a lua script enabled that uses the register_lib call will cause darktable to hang. With lua debugging enabled the dreaded
ERROR in lualib, couldn't find a position for <script name>, this should never happen
is displayed.To Reproduce
require "official/enfuse"
darktable -d lua <some image file>
ERROR in lualib, couldn't find a position for enfuse, this should never happen
Expected behavior The image should open in darkroom mode without hanging.
Platform (please complete the following information):
Additional context When register_lib is called it attempts to determine what position to load the module at in the current view instead of the specified view.
This is the root cause of #5840