Sonos error : Error in plugin execution runConcurrentThread:

Posted on
Wed Nov 07, 2018 10:58 am
OjisanSeiuchi offline
User avatar
Posts: 20
Joined: May 06, 2016
Location: London, ON, CANADA

Re: Sonos error : Error in plugin execution runConcurrentThr

The problem originates at line 499 in Sonos.py. I'm not the developer and I haven't delved into the code but the problem is with an unhandled exception that gets propagated back up to the host. You can suppress catch the exception and just ignore it. I haven't seen any downside (yet.)

Code: Select all
def socoSubTest(self):
      for item in self.deviceList:
         dev = indigo.devices[item]
         subStatus = True
         try:
            if self.soco_sub[dev.id]['avTransport'].is_subscribed != True:
               self.plugin.errorLog("[%s] [%s]: avTransport subscription failed.  Resubscribing..." % (time.asctime(), dev.name))
               subStatus = False
            if self.soco_sub[dev.id]['renderingControl'].is_subscribed != True:
               self.plugin.errorLog("[%s] [%s]: renderingControl subscription failed.  Resubscribing..." % (time.asctime(), dev.name))
               subStatus = False
            if self.soco_sub[dev.id]['zoneGroupTopology'].is_subscribed != True:
               self.plugin.errorLog("[%s] [%s]: zoneGroupTopology subscription failed.  Resubscribing..." % (time.asctime(), dev.name))
               subStatus = False
            if self.soco_sub[dev.id]['queue'].is_subscribed != True:
               self.plugin.errorLog("[%s] [%s]: queue subscription failed.  Resubscribing..." % (time.asctime(), dev.name))
               subStatus = False
            if self.soco_sub[dev.id]['groupRenderingControl'].is_subscribed != True:
               self.plugin.errorLog("[%s] [%s]: groupRenderingControl subscription failed.  Resubscribing..." % (time.asctime(), dev.name))
               subStatus = False
            if self.soco_sub[dev.id]['contentDirectory'].is_subscribed != True:
               self.plugin.errorLog("[%s] [%s]: contentDirectory subscription failed.  Resubscribing..." % (time.asctime(), dev.name))
               subStatus = False
            if self.soco_sub[dev.id]['groupManagement'].is_subscribed != True:
               self.plugin.errorLog("[%s] [%s]: groupManagement subscription failed.  Resubscribing..." % (time.asctime(), dev.name))
               subStatus = False
            if int(dev.pluginProps["model"]) in [SONOS_CONNECT, SONOS_CONNECTAMP, SONOS_PLAY5]:
               if self.soco_sub[dev.id]['audioIn'].is_subscribed != True:
                  self.plugin.errorLog("[%s] [%s]: audioIn subscription failed.  Resubscribing..." % (time.asctime(), dev.name))
                  subStatus = False
         except:
            #self.plugin.errorLog("Error in socoSubTest");
            pass
         if subStatus == False:
            self.socoUnsubscribe (dev)
            self.socoSubscribe (dev)

Posted on
Sat Dec 29, 2018 9:17 pm
philipbasile offline
Posts: 88
Joined: Jan 08, 2015
Location: NJ

Re: Sonos error : Error in plugin execution runConcurrentThr

Nick,

Event check interval is the default... 15

I have the same error and non of my control pages are working.

Started plugin "Sonos 1.0.12"
Sonos Your plugin version, v1.0.12, is current.
Sonos Loaded Sonos Favorites... [14]
Sonos Loaded Playlists... [2]
Sonos Loaded RadioTime Favorite Stations... [0]
Sonos Serving HTTP Streamer on 192.168.2.11 [0.0.0.0], port 8888
Sonos Error [Sat Dec 29 22:15:20 2018] SiriusXM SessionID error, check credentials
Sonos Loaded Polly Voices... [57]
Sonos [Sat Dec 29 22:15:20 2018] Processed plugin preferences.
Sonos Loaded Apple Voices.. [67]
Sonos SSDP Listener Started...
Sonos Adding ZonePlayer: 192.168.2.36, RINCON_949F3E2363E401400, Sonos
Sonos Error exception in deviceStartComm(Sonos): need more than 0 values to unpack
Sonos SoCo Reactor Ignition...

Dec 29, 2018, 10:15:36 PM
Sonos Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 47, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/Sonos-2.indigoPlugin/Contents/Server Plugin/Sonos.py", line 375, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/Sonos-2.indigoPlugin/Contents/Server Plugin/Sonos.py", line 499, in socoSubTest
KeyError: (1475651238,)

Sonos Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Who is online

Users browsing this forum: No registered users and 1 guest