HomeSeer / Plugin-SDK

Plugin development kit for the 4th major edition of the HomeSeer platform.
https://www.nuget.org/packages/HomeSeer-PluginSDK/
GNU Affero General Public License v3.0
21 stars 4 forks source link

Speaker host attempted to connect: Object variable or With block variable not set. #309

Closed alexbk66 closed 2 years ago

alexbk66 commented 2 years ago

In AKGoogleCast plugin I'm getting the error in log for only one Chromecast, all other devices connect ok. And even the Chromecast which gives the error still connects and works fine.

Just wondering what can be causing the error and how I can troubleshoot it? Is it possible to add more info to the error?

image image

rjhelmke commented 2 years ago

Does this happen all the time or is it random? It looks like a bunch of speaker clients were connecting. There is an array that stores the list of hosts, maybe there is an issue accessing that from multiple threads. I will add a lock to see if that helps. If you just have that one client connect, does it then connect ok? Is it always that client that gets the error?

rjhelmke commented 2 years ago

Logged as HS-1702

alexbk66 commented 2 years ago

It always happens to the same device on start-up. I disabled all other devices - still happens. BTW, I do have lock in my plugin when adding speakers. So must be some different issue. Interesting that it's still connecting ok.

image

rjhelmke commented 2 years ago

Can you try HS4 build 4.2.14.4 and post any new error messages you see. https://homeseer.com/updates4/SetupHS4_4_2_14_4.msi

alexbk66 commented 2 years ago

Thank you Rich, 4.2.14.4 seems to fix the issue.

Just in case I verified before installing the update, the exception was there. Now there's no errors:

image

rjhelmke commented 2 years ago

Ok, good. I will close this issue for now.