Timeout for Misbehaving Function
Posted: Mon Aug 24, 2020 5:06 am
I have a personal plugin that is at times misbehaving and going into an undead state. When I try to load the plugin config dialog, I get a beachball and eventually a
I was looking for a way to wrap calls to this library in a
- Code: Select all
runDialogForDevice() caught exception: NSInvalidArgumentException -- *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]
I was looking for a way to wrap calls to this library in a
- Code: Select all
with timeout(seconds=5):
self.foo.do_stuff()