brainwave9 / SiriProxy-XBMC

Siri Proxy plugin to control XBMC
28 stars 18 forks source link

Plugin Crashed: undefined method `each' for nil:NilClass #3

Open SemoTech opened 12 years ago

SemoTech commented 12 years ago

Running latest SiriProxy 0.9.9 & it works 100% for just Siri.

SiriProxy-XBMC was setup in my config.yml yesterday with a single XBOX.

Connects fine and says "Xbox Online" but errors out on any other command, like "Play"

Any suggestions?

Here is the log report:

[Info - Forwarding object to iPhone] SpeechRecognized [Info - Plugin Manager] Processing 'Play Hugo ' [Info - Plugin Manager] Processing plugin #SiriProxy::Plugin::Example:0x8c202c4 [Info - Plugin Manager] Processing plugin #SiriProxy::Plugin::XBMC:0x89622d0 [Info - Plugin Manager] Matches (?i-mx:play (.+?)(?: in the (.*))?$) [Info - Plugin Manager] Applicable states: [Info - Plugin Manager] Current state: [Info - Plugin Manager] Matches, executing block [SiriProxy-XBMC] Connecting to the XBMC interface (default) [SiriProxy-XBMC] XBMC API Version 2 - Dharma [SiriProxy-XBMC] Finding TV show (API version 2) [Info - Plugin Manager] Plugin Crashed: undefined method `each' for nil:NilClass [Info - Forwarding object to iPhone] AddViews

nameCantBeBlank commented 11 years ago

Hey SemoTech- you ever figure this out? I am getting the same thing with the Hue Plugin:

[Info - Plugin Manager] Processing 'Turn on left' [Info - Plugin Manager] Processing plugin Example [Info - Plugin Manager] Processing plugin Hue [Info - Plugin Manager] Matches (?i-mx:turn (on|off)(?: the)? ([a-z]*)) [Info - Plugin Manager] Applicable states: [Info - Plugin Manager] Current state: [Info - Plugin Manager] Matches, executing block zlib(finalizer): the stream was freed prematurely. zlib(finalizer): the stream was freed prematurely. [Info - Plugin Manager] Plugin Crashed: undefined local variable or method `entity' for #SiriProxy::Plugin::Hue:0x000000011b3838 [Info - iPhone] Received Object: ClearContext [Info - iPhone] Received Object: CancelRequest

It turns on the light fine but still reports an error in the log and via Siri

Deanmv commented 11 years ago

@SemoTech try looking at the issue #9 as that seems to be the same thing. I pushed a fix here https://github.com/brainwave9/SiriProxy-XBMC/pull/12 that should have been done with that bug? Do you have both a music and TV library scanned

If not set the log level to higher and run it again as there should be more output.