Asyncore Threading Error

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
techoguy
Experienced User
Posts: 157
Joined: Mon Mar 18, 2013 1:32 am

Asyncore Threading Error

Post by techoguy » Sun Feb 22, 2015 4:55 pm

Hi all,
I'm hoping someone can help me with this threader/Asyncore error within EG.

Code: Select all

08:22:47   Exception in thread AsyncoreThread:
08:22:47   Traceback (most recent call last):
08:22:47     File "threading.pyc", line 532, in __bootstrap_inner
08:22:47     File "threading.pyc", line 484, in run
08:22:47     File "asyncore.pyc", line 202, in loop
08:22:47     File "asyncore.pyc", line 132, in poll
08:22:47   error: (10038, 'An operation was attempted on something that is not a socket')
08:22:47   
This seems to occur when there are a number of socket handlers that occur close together. In my case I use the SONOS and Insteon plugins that are receiving and sending a lot of IP commands and in general are very active throughout the day. So as I use these more and more the error occurs more often (about once a day now). When it does occur it stops all IP communication and EG has to be restarted to get everything back up and running.

Does anyone else experience this error or know what's going on?
It seems to be more of an EG issue or an issue with how the asyncore is used in plugins.

Thanks in advance!
The Latest SONOS Plugin:
Latest version can be found here: http://eventghost.org/forum/viewtopic.p ... 05f#p30309

EventGhost Lets me automate my home the way I want it, I love using it!

Post Reply