Control Page Problem

Posted on
Wed Feb 22, 2017 5:31 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Control Page Problem

Try the following:

1) Choose the Plugins->Manage Plugins... menu item.
2) Deselect (to disable) the Harmony Hub plugin checkbox. Wait a few seconds for it to (hopefully shutdown).
3) Re-enable the plugin via the same checkbox. Wait a few seconds for it to start up and connect.
4) Try to edit a plugin action (that is, bring up its action config UI) to see if it works.
5) Repeat steps 2 to 4 two additional times (three times total) to see if it consistently works (or fails).

Then try the following (same thing but via the menu):

1) Choose the Plugins->Harmony Hub->Disable menu item.
2) Re-enable the plugin via the Plugins->Harmony Hub->Enable menu item. Wait a few seconds for it to start up and connect.
3) Try to edit the same plugin action as you did in step #4 above.
4) Repeat steps 1 to 3 two additional times (three times total) to see if it consistently works (or fails).

Copy/paste the Event Log results of all 6 attempts into a post for me and we'll see if we can better determine what is going wrong.

Image

Posted on
Wed Feb 22, 2017 6:13 pm
wormhole offline
Posts: 125
Joined: Feb 21, 2017

Re: Control Page Problem

That sequence of events i posted in the prior posts. Toggling checkbox in Manage Plugins works every time, disable/reenable via the Plugin itself yields the error below and going back to the check box in manage plugins is fine, pasted below again.

Error process (pid 95627) failed to quit after polite request -- forcing it to quit now
Stopped plugin "Harmony Hub 7.1.0"
Starting plugin "Harmony Hub 7.1.0" (pid 95686)
Harmony Hub Debug logLevel = 10
Started plugin "Harmony Hub 7.1.0"
------below is toggling on checkbox ------------
Harmony Hub Starting Harmony Hub
Harmony Hub Debug updateFrequency = 86400.0
Harmony Hub Debug Called deviceStartComm(self, device): Harmony Hub - Family Room (1101033443)
Harmony Hub Debug Harmony Hub - Family Room: Device Current Version = 0
Harmony Hub Debug Harmony Hub - Family Room: Device Version is up to date
Harmony Hub Debug Harmony Hub - Family Room: Starting harmonyHub device (1101033443)
Harmony Hub Debug Harmony Hub - Family Room: Waiting for client.sessionstarted
Harmony Hub Debug Harmony Hub - Family Room: Activity: iTunes Everywhere (6172551)
Harmony Hub Debug Harmony Hub - Family Room: Activity: Main iTunes (6172547)
Harmony Hub Debug Harmony Hub - Family Room: Activity: Main Radio (6172548)
Harmony Hub Debug Harmony Hub - Family Room: Activity: PowerOff (-1) - Current Activity
Harmony Hub Debug Harmony Hub - Family Room: Activity: Zone2 iTunes (6172549)
Harmony Hub Debug Harmony Hub - Family Room: Activity: Media Center (6172546)
Harmony Hub Debug Harmony Hub - Family Room: Activity: Zone2 Radio (6172550)
Harmony Hub Debug Harmony Hub - Family Room: Activity: Radio Everywhere (6172552)
Harmony Hub Debug Harmony Hub - Family Room: Activity: Watch TV (6172545)
Harmony Hub Debug Called deviceStartComm(self, device): Harmony Hub - Theater Room (731260220)
Harmony Hub Debug Harmony Hub - Theater Room: Device Current Version = 0
Harmony Hub Debug Harmony Hub - Theater Room: Device Version is up to date
Harmony Hub Debug Harmony Hub - Theater Room: Starting harmonyHub device (731260220)

If i do this set of actions again, it will require me to again re-create the control panels I just re created.

Posted on
Wed Feb 22, 2017 6:15 pm
wormhole offline
Posts: 125
Joined: Feb 21, 2017

Re: Control Page Problem

Here are the logs from just now unchecking, then checking the plugin from the Manage Plugins

Feb 22, 2017, 7:14:07 PM
Disabling plugin "Harmony Hub 7.1.0"
Stopping plugin "Harmony Hub 7.1.0" (pid 97347)
Harmony Hub Debug Called deviceStopComm(self, device): Hub - Family Room (134537159)
Harmony Hub Shutting down Harmony Hub
Stopped plugin "Harmony Hub 7.1.0"
Enabling plugin "Harmony Hub 7.1.0"
Starting plugin "Harmony Hub 7.1.0" (pid 98009)
Harmony Hub Debug logLevel = 10
Started plugin "Harmony Hub 7.1.0"
Harmony Hub Starting Harmony Hub
Harmony Hub Debug updateFrequency = 86400.0
Harmony Hub Debug Called deviceStartComm(self, device): Hub - Family Room (134537159)
Harmony Hub Debug Hub - Family Room: Device Current Version = 0
Harmony Hub Debug Hub - Family Room: Device Version is up to date
Harmony Hub Debug Hub - Family Room: Starting harmonyHub device (134537159)
Harmony Hub Debug Hub - Family Room: Waiting for client.sessionstarted
Harmony Hub Debug Hub - Family Room: Activity: iTunes Everywhere (6172551)
Harmony Hub Debug Hub - Family Room: Activity: Main iTunes (6172547)
Harmony Hub Debug Hub - Family Room: Activity: Main Radio (6172548)
Harmony Hub Debug Hub - Family Room: Activity: PowerOff (-1)
Harmony Hub Debug Hub - Family Room: Activity: Zone2 iTunes (6172549)
Harmony Hub Debug Hub - Family Room: Activity: Media Center (6172546) - Current Activity
Harmony Hub Debug Hub - Family Room: Activity: Zone2 Radio (6172550)
Harmony Hub Debug Hub - Family Room: Activity: Radio Everywhere (6172552)
Harmony Hub Debug Hub - Family Room: Activity: Watch TV (6172545)
Harmony Hub Checking for updates...
Harmony Hub Debug Plugin version detected: 7.1.0
Harmony Hub Debug Current version is: 7.1.0
Harmony Hub Debug Getting latest release from FlyingDiver/Indigo-Harmony...
Harmony Hub Debug GET /repos/FlyingDiver/Indigo-Harmony/releases/latest
Harmony Hub Debug HTTP 200 OK
Harmony Hub Debug Latest release is: 7.1.0
Harmony Hub No updates are available
Disabling plugin "Harmony Hub 7.1.0"
Stopping plugin "Harmony Hub 7.1.0" (pid 98009)
Harmony Hub Debug Called deviceStopComm(self, device): Hub - Family Room (134537159)
Harmony Hub Shutting down Harmony Hub
Stopped plugin "Harmony Hub 7.1.0"
Enabling plugin "Harmony Hub 7.1.0"
Starting plugin "Harmony Hub 7.1.0" (pid 98010)
Harmony Hub Debug logLevel = 10
Started plugin "Harmony Hub 7.1.0"
Harmony Hub Starting Harmony Hub
Harmony Hub Debug updateFrequency = 86400.0
Harmony Hub Debug Called deviceStartComm(self, device): Hub - Family Room (134537159)
Harmony Hub Debug Hub - Family Room: Device Current Version = 0
Harmony Hub Debug Hub - Family Room: Device Version is up to date
Harmony Hub Debug Hub - Family Room: Starting harmonyHub device (134537159)
Disabling plugin "Harmony Hub 7.1.0"
Stopping plugin "Harmony Hub 7.1.0" (pid 98010)
Harmony Hub Debug Hub - Family Room: Waiting for client.sessionstarted
Harmony Hub Debug Hub - Family Room: Activity: iTunes Everywhere (6172551)
Harmony Hub Debug Hub - Family Room: Activity: Main iTunes (6172547)
Harmony Hub Debug Hub - Family Room: Activity: Main Radio (6172548)
Harmony Hub Debug Hub - Family Room: Activity: PowerOff (-1)
Harmony Hub Debug Hub - Family Room: Activity: Zone2 iTunes (6172549)
Harmony Hub Debug Hub - Family Room: Activity: Media Center (6172546) - Current Activity
Harmony Hub Debug Hub - Family Room: Activity: Zone2 Radio (6172550)
Harmony Hub Debug Hub - Family Room: Activity: Radio Everywhere (6172552)
Harmony Hub Debug Hub - Family Room: Activity: Watch TV (6172545)
Harmony Hub Checking for updates...
Harmony Hub Debug Plugin version detected: 7.1.0
Harmony Hub Debug Current version is: 7.1.0
Harmony Hub Debug Getting latest release from FlyingDiver/Indigo-Harmony...
Harmony Hub Debug GET /repos/FlyingDiver/Indigo-Harmony/releases/latest
Harmony Hub Debug HTTP 200 OK
Harmony Hub Debug Latest release is: 7.1.0
Harmony Hub No updates are available
Harmony Hub Debug Called deviceStopComm(self, device): Hub - Family Room (134537159)
Harmony Hub Shutting down Harmony Hub
Stopped plugin "Harmony Hub 7.1.0"
Enabling plugin "Harmony Hub 7.1.0"
Starting plugin "Harmony Hub 7.1.0" (pid 98011)
Harmony Hub Debug logLevel = 10
Started plugin "Harmony Hub 7.1.0"
Harmony Hub Starting Harmony Hub
Harmony Hub Debug updateFrequency = 86400.0
Harmony Hub Debug Called deviceStartComm(self, device): Hub - Family Room (134537159)
Harmony Hub Debug Hub - Family Room: Device Current Version = 0
Harmony Hub Debug Hub - Family Room: Device Version is up to date
Harmony Hub Debug Hub - Family Room: Starting harmonyHub device (134537159)
Harmony Hub Debug Hub - Family Room: Waiting for client.sessionstarted
Harmony Hub Debug Hub - Family Room: Waiting for client.sessionstarted
Harmony Hub Debug Hub - Family Room: Activity: iTunes Everywhere (6172551)
Harmony Hub Debug Hub - Family Room: Activity: Main iTunes (6172547)
Harmony Hub Debug Hub - Family Room: Activity: Main Radio (6172548)
Harmony Hub Debug Hub - Family Room: Activity: PowerOff (-1)
Harmony Hub Debug Hub - Family Room: Activity: Zone2 iTunes (6172549)
Harmony Hub Debug Hub - Family Room: Activity: Media Center (6172546) - Current Activity
Harmony Hub Debug Hub - Family Room: Activity: Zone2 Radio (6172550)
Harmony Hub Debug Hub - Family Room: Activity: Radio Everywhere (6172552)
Harmony Hub Debug Hub - Family Room: Activity: Watch TV (6172545)
Harmony Hub Checking for updates...
Harmony Hub Debug Plugin version detected: 7.1.0
Harmony Hub Debug Current version is: 7.1.0
Harmony Hub Debug Getting latest release from FlyingDiver/Indigo-Harmony...
Harmony Hub Debug GET /repos/FlyingDiver/Indigo-Harmony/releases/latest
Harmony Hub Debug HTTP 200 OK
Harmony Hub Debug Latest release is: 7.1.0
Harmony Hub No updates are available

Posted on
Wed Feb 22, 2017 6:22 pm
wormhole offline
Posts: 125
Joined: Feb 21, 2017

Re: Control Page Problem

and the logs from re-enabling from the menu item itelf...

Disabling plugin "Harmony Hub 7.1.0"
Stopping plugin "Harmony Hub 7.1.0" (pid 91796)
Error process (pid 91796) failed to quit after polite request -- forcing it to quit now
Stopped plugin "Harmony Hub 7.1.0"
Starting plugin "Harmony Hub 7.1.0" (pid 95198)
Received INSTEON "Karens Closet" on
Trigger Auto Off - Karens Closet
Started plugin "Harmony Hub 7.1.0"
Harmony Hub Starting Harmony Hub
Harmony Hub Checking for updates...
Harmony Hub No updates are available
Disabling plugin "Harmony Hub 7.1.0"
Stopping plugin "Harmony Hub 7.1.0" (pid 95198)
Error process (pid 95198) failed to quit after polite request -- forcing it to quit now
Stopped plugin "Harmony Hub 7.1.0"
Enabling plugin "Harmony Hub 7.1.0"
Starting plugin "Harmony Hub 7.1.0" (pid 95627)
Harmony Hub Debug logLevel = 10
Started plugin "Harmony Hub 7.1.0"
Disabling plugin "Harmony Hub 7.1.0"
Stopping plugin "Harmony Hub 7.1.0" (pid 95627)
Error process (pid 95627) failed to quit after polite request -- forcing it to quit now
Stopped plugin "Harmony Hub 7.1.0"
Enabling plugin "Harmony Hub 7.1.0"
Starting plugin "Harmony Hub 7.1.0" (pid 97347)
Harmony Hub Debug logLevel = 10
Started plugin "Harmony Hub 7.1.0"

Off to rebuild control panels....hope this helps.

Posted on
Wed Feb 22, 2017 6:38 pm
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Control Page Problem

Wait - there are no errors in any of the logs you just posted (except for the occasional "failed to quit after polite request -- forcing it to quit now" which is just because the plugin is likely waiting for network communication).

So why do you have to recreate anything?

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Feb 22, 2017 6:45 pm
wormhole offline
Posts: 125
Joined: Feb 21, 2017

Re: Control Page Problem

BC after disabling/reenabling via the menu item, buttons in control panel no longer work, and editing them yields the following errors (which I posted above at the beginning of the thread)

Error (client) timeout waiting for plugin response from com.flyingdiver.indigoplugin.harmonyhub for request UiGetValues2
Error (client) timeout waiting for plugin response from com.flyingdiver.indigoplugin.harmonyhub for request CallPluginFunc
Error (client) dialogForActionId() caught exception: NSInvalidArgumentException -- *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]

and the only way to get a non error on the buttons is to delete the hubs and start over...enabling the plugin from the Manage Plugins check box.

Posted on
Wed Feb 22, 2017 8:38 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Control Page Problem

To troubleshoot this we need you to perform the steps sequentially (all 3 attempts back-to-back):

1) Choose the Plugins->Harmony Hub->Disable menu item.
2) Re-enable the plugin via the Plugins->Harmony Hub->Enable menu item. Wait a few seconds for it to start up and connect.
3) Try to edit the same plugin action as you did in step #4 above.
4) Repeat steps 1 to 3 two additional times (three times total) to see if it consistently works (or fails).

Image

Posted on
Wed Feb 22, 2017 8:50 pm
wormhole offline
Posts: 125
Joined: Feb 21, 2017

Re: Control Page Problem

Matt,
I posted those in the other thread

viewtopic.php?f=212&t=18056

1. upon re enabling the from the plugin itself the 5 event log lines with the "Error process (pid xxxxxx) failed to quit after polite request -- forcing it to quit now"
2. Trying to edit a control panel button yields, consistently, the three lines of error, below everytime.

Error (client) timeout waiting for plugin response from com.flyingdiver.indigoplugin.harmonyhub for request UiGetValues2
Error (client) timeout waiting for plugin response from com.flyingdiver.indigoplugin.harmonyhub for request CallPluginFunc
Error (client) dialogForActionId() caught exception: NSInvalidArgumentException -- *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]

the behavior is consistent. I just spent the past hour or so re-creating the control pages. They work so long as I activate the plugin from the Manage Plugins dialogue box, not directly from the menu item. Thanks.

Posted on
Wed Feb 22, 2017 9:00 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Control Page Problem

The problem is the API call used to enable/disable the plugin is identical in both cases. I thought it was, and I just spent quite a bit of time tonight verifying that it is in the code. I thought maybe there could be a subtle difference in the order the plugin callbacks were made, but it doesn't appear that is possible based on the code.

None of this is to dismiss the problem you are seeing, which is definitely an issue, but changing the menu UI actions to work like the checkboxes isn't possible, since it appears to already be working exactly the same way under-the-hood. I'm baffled.

Image

Posted on
Wed Feb 22, 2017 9:02 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Control Page Problem

And this is specific to the OP's install. I don't get errors using the Menu to enable/disable.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Who is online

Users browsing this forum: No registered users and 2 guests