it has been discussed before, but with no clear solution:
- Code: Select all
Error (client) timeout waiting for plugin response from xxx for request UiGetValues1
Error (client) timeout waiting for plugin response from xxx for request CallPluginFunc
Error (client) runDialogForMenuAction() caught exception: NSInvalidArgumentException -- *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]
is there a way for the plugin developer to diagnose WHERE the plugin times out.. or if it is actually the plugin .
As I don't have these timeouts on my MAC, I would love to add some general debug code that captures these situations to isolate the part where kit might be waiting ..
My understanding is that the user opens config / menu and indigo server tries to contact the plugin, but it does not answer. Hence the server does not know why... just it did not respond.
import cProfile
seems to work only for specific methods you identify, but here we don't know which of the methods is waiting .. or you call the whole thing like this:
python -m cProfile -o myscript.cprof myscript.py
but who would I use that in a plugin?
Now can we add some code to the plugin that measures where it spends its time? and writes that periodically to the logfile?
Karl