Description
Is there an existing issue for this?
- I checked and did not find my issue in the already reported ones
Describe the bug
I created a lua script to show/hide the left/bottom/top panels and enter the fullscreen mode.
I assigned F12 for triggering this event. After pressing F12 a few times, with a delay of a few seconds lets say, I got a crash sometimes, after a number of times.
`-- show all just in case
dt.gui.panel_show_all()
dt.register_event(MODULE, "shortcut",
function(event, shortcut)
-- do stuff
local panels = {"DT_UI_PANEL_CENTER_TOP", -- center top panel
"DT_UI_PANEL_CENTER_BOTTOM", -- center bottom panel
"DT_UI_PANEL_TOP", -- complete top panel
"DT_UI_PANEL_LEFT", -- left panel
"DT_UI_PANEL_BOTTOM"} -- complete bottom panel
for i = 1, #panels do
if dt.gui.panel_visible(panels[i]) then
dt.gui.panel_hide(panels[i])
else
dt.gui.panel_show(panels[i])
end
end
dt.gui.action("global/fullscreen", 1.000)
end, "toggle panels"
)`
Steps to reproduce
See above in description
Expected behavior
no crash
Logfile | Screenshot | Screencast
Commit
No response
Where did you obtain darktable from?
darktable.org / GitHub release
darktable version
darktable 5.3.0+24~gab60bc56a0
What OS are you using?
Windows
What is the version of your OS?
windows 11
Describe your system
everything in debug file
Are you using OpenCL GPU in darktable?
Yes
If yes, what is the GPU card and driver?
everything in debug file
Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip
No response