Re: [darktable-user] Long lua extension blocks darktable GUI

2017-01-30 Thread Tobias Ellinghaus
Am Montag, 30. Januar 2017, 23:53:08 CET schrieb René Seindal: > I'll try to compule master, but it won't be tomorrow. > > I don't have my computers set up for development anymore, so I need to sort > out all the dependencies. > > Maybe if I pull in the Debian source package, they're all there.

Re: [darktable-user] Long lua extension blocks darktable GUI

2017-01-30 Thread René Seindal
I'll try to compule master, but it won't be tomorrow. I don't have my computers set up for development anymore, so I need to sort out all the dependencies. Maybe if I pull in the Debian source package, they're all there. I was in IT until about 10 years ago, when I quit and went kayaking. Now I

Re: [darktable-user] Long lua extension blocks darktable GUI

2017-01-30 Thread jeremy rosen
On Mon, Jan 30, 2017 at 11:09 PM, René Seindal wrote: > On 2017-01-30 22:21, jeremy rosen wrote: > >> Ok, i'm at home with a little more time on my hand. >> >> I didn't manage to reproduce any gui blockage, though I managed to make >> it very sluggish. I don't have shotwell so I

Re: [darktable-user] Long lua extension blocks darktable GUI

2017-01-30 Thread René Seindal
On 2017-01-30 22:21, jeremy rosen wrote: Ok, i'm at home with a little more time on my hand. I didn't manage to reproduce any gui blockage, though I managed to make it very sluggish. I don't have shotwell so I did a little test script but my tests were limited so my first question is : What

Re: [darktable-user] Long lua extension blocks darktable GUI

2017-01-30 Thread jeremy rosen
Ok, i'm at home with a little more time on my hand. I didn't manage to reproduce any gui blockage, though I managed to make it very sluggish. I don't have shotwell so I did a little test script but my tests were limited so my first question is : What exactly do you see. Is it a complete gui

Re: [darktable-user] Long lua extension blocks darktable GUI

2017-01-30 Thread jeremy rosen
yeah... you can build it yourself with "make " but i don't remember what and i'm not at home right now... anyway, that explains your problems with coroutine.yield On Mon, Jan 30, 2017 at 5:25 PM, René Seindal wrote: > On 2017-01-30 17:11, jeremy rosen wrote: > >> Hey René

Re: [darktable-user] Long lua extension blocks darktable GUI

2017-01-30 Thread René Seindal
On 2017-01-30 17:11, jeremy rosen wrote: Hey René what version of DT are you using ? Darktable 2.2.1 from Debian testing. It should be Lua API 4. there has been lots of changes in the latest version I've noticed :-) > and you should not be able to block the UI thread easily anymore.

[darktable-user] Long lua extension blocks darktable GUI

2017-01-30 Thread J Albrecht
Granted, this is a rather simplistic question but I’ll ask it nonetheless: René, in your opinion, could this also be used to import tags and ratings from a digiKam database? I’m hoping that I could take advantage of your heavy lifting and just drop in the references to digikam accordingly.

Re: [darktable-user] Long lua extension blocks darktable GUI

2017-01-30 Thread jeremy rosen
Hey René what version of DT are you using ? there has been lots of changes in the latest version and you should not be able to block the UI thread easily anymore. You will, however, block all lua processing... Moreover, I just realized that the lua API on the DT webpage is completely outdated,

Re: [darktable-user] Long lua extension blocks darktable GUI

2017-01-30 Thread René Seindal
Hi I found a solution, even if its not exactly obvious. In the main loop of my script, I do progress.percent = count/total dt.gui.selection() if cancelled then break end That does it. The darktable.gui.selection function is marked as implicit_yield so it gives the

Re: [darktable-user] Long lua extension blocks darktable GUI

2017-01-30 Thread Christian Kanzian
Hi, I'm not familar with programming and it is often hard for me to distinguish between LUA core functions and darkable LUA API. You have to look at LUA docs as well [0]. Am 2017-01-30 12:34, schrieb René Seindal: On 2017-01-30 12:28, Tobias Ellinghaus wrote: Am Montag, 30. Januar 2017,

Re: [darktable-user] Long lua extension blocks darktable GUI

2017-01-30 Thread René Seindal
On 2017-01-30 13:10, Tobias Ellinghaus wrote: Am Montag, 30. Januar 2017, 12:34:19 CET schrieb René Seindal: On 2017-01-30 12:28, Tobias Ellinghaus wrote: Am Montag, 30. Januar 2017, 12:04:03 CET schrieb René Seindal: Hi Ho do I make a long running Lua extension not block the darktable GUI?

Re: [darktable-user] Long lua extension blocks darktable GUI

2017-01-30 Thread René Seindal
On 2017-01-30 12:28, Tobias Ellinghaus wrote: Am Montag, 30. Januar 2017, 12:04:03 CET schrieb René Seindal: Hi Ho do I make a long running Lua extension not block the darktable GUI? It depends on what your code does and from where it is called. Some things have to run in the gui thread and

Re: [darktable-user] Long lua extension blocks darktable GUI

2017-01-30 Thread Tobias Ellinghaus
Am Montag, 30. Januar 2017, 12:04:03 CET schrieb René Seindal: > Hi > > Ho do I make a long running Lua extension not block the darktable GUI? It depends on what your code does and from where it is called. Some things have to run in the gui thread and can't be unblocked, others can. > When you

[darktable-user] Long lua extension blocks darktable GUI

2017-01-30 Thread René Seindal
Hi Ho do I make a long running Lua extension not block the darktable GUI? When you export files the export runs in the background somehow. -- René Seindal - r...@seindal.dk darktable user mailing list to unsubscribe