Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
prevent/control the "gimp not responding" window
#1
Hi,
I'm working on a script that takes some time to execute because it sends a list of online requests. It can last up to few minutes. During the process, the window "gimp is not responding" with the options "force to quit" and "wait" appear. Is there a way to prevent it ?
Reply
#2
(07-28-2023, 02:01 AM)jacques_duflos Wrote: Hi,
I'm working on a script that takes some time to execute because it sends a list of  online requests. It can last up to few minutes. During the process, the window "gimp is not responding" with the options "force to quit" and "wait" appear. Is there a way to prevent it ?

What windows? AFAIK, while a plugin runs, Gimp can still be used...

Otherwise, in general, you cannot have long-delay processing in the same execution thread that  handles your GUI. Any process that is expected to take some time (external call, or heavy processing) has to be run asynchronously. It could even be possible to run all you requests in parallel...

In Python this can be done with the threading module but OTOH this isn't really for beginners.

However, having many requests is usually a bad idea, the first thing to check is if you can make fewer requests, even if they are more complex.
Reply
#3
Quote:What windows? AFAIK, while a plugin runs, Gimp can still be used...
I just tested, while the plug-in runs i can more or less use gimp, but the window "gimp is not responding" pops anyway at fix interval.
Quote:In Python this can be done with the threading module but OTOH this isn't really for beginners.
I've read the doc you sent, indeed it is not simple. But I'll try out of mere curiosity.

Quote:However, having many requests is usually a bad idea, the first thing to check is if you can make fewer requests, even if they are more complex.
Ok, merging the requests was in my to-do list for completely different reasons, so I'll strike two birds with one rock.
Thanks
Reply


Forum Jump: