Project

General

Profile

Bug #12071

coroutine.yield with "WAIT_MS" doesn't work as expected

Added by Philippe Weyland over 1 year ago. Updated over 1 year ago.

Status:
Triaged
Priority:
Low
Category:
Lua
Target version:
-
Start date:
03/09/2018
Due date:
% Done:

20%

Affected Version:
2.4.1
System:
all
bitness:
64-bit
hardware architecture:
amd64/x86

Description

same as Bug #10246
I get the message: LUA ERROR : attempt to yield across a C-call boundary
whenever I run:

while true do
coroutine.yield("WAIT_MS", 1)
print "-- run" 
end

or the example given in darktable-lua-api.pdf:
local tested_module="global_toolbox" 
dt.gui.libs[tested_module].visible=false
coroutine.yield("WAIT_MS",2000)
while true do
dt.gui.libs[tested_module].visible = not dt.gui.libs[tested_module].visible
coroutine.yield("WAIT_MS",2000)
end

History

#1 Updated by Tobias Ellinghaus over 1 year ago

  • Category changed from General to Lua

#2 Updated by Tobias Ellinghaus over 1 year ago

  • System changed from Windows to all
  • % Done changed from 0 to 20
  • Assignee set to Jérémy Rosen
  • Status changed from New to Triaged

Also available in: Atom PDF