FlyingDiver wrote:Full message:
- Code: Select all
Error process (pid XXX) failed to quit after polite request -- forcing it to quit now
I get this intermittently with the Lutron plugin, and I'm trying to figure out why. Any insight on where to start looking? Does the timer start after all the devices are shut down? My Lutron system, if fully mapped to Indigo, creates over 500 Indigo devices. That's a lot of devices to run devStopComm() on. Or does it start when the shutdown flag is set for runConcurrentThread()?
The most common cause of this is network timeouts. If your plugin is waiting for some incoming data or a reply and is down in the Python networking code, it may not come back in the right amount of time (default Python network timeouts are usually 30 seconds or more). Setting relatively short timeouts to any network calls often solves the problem.
It could also happen if you have a tight loop in the runConcurrentThread method that doesn't call the sleep() method.