Announcement

Collapse
No announcement yet.

Error on install.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Is it 3.0.0.30? I'm not a Mono expert, need to Google more.

    Comment


      #17
      Last edited by Mr.Gadget; April 7, 2020, 10:59 AM. Reason: tried to post Version image - of 3.0.0.30

      Comment


        #18
        Hmm... I see in email that you made two posts, but in the forum both are empty

        Comment


          #19
          Originally posted by Mr.Gadget View Post
          I was hoping you found the solution.... but :-(
          Code:
           
          Error Initializing plug-in(1): AK GoogleCast Instance::The type initializer for 'HSPI_AKGoogleCast.Controller' threw an exception. Time to load: 241 milliseconds
          AK GoogleCast ERROR InitIO: System.TypeInitializationException: The type initializer for 'HSPI_AKGoogleCast.Controller' threw an exception. ---> System.TypeLoadException: Could not load type of field 'SharpCaster.ChromecastSocketService:_client' (1) due to: Could not load file or assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. assembly:System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a type: member: at HSPI_AKGoogleCast.CastDevice..ctor (System.String HShost, System.Int32 HSport, Locator.Receiver receiver) [0x00043] in <7f8ae37050d14afd885953af97cc29f7>:0 at HSPI_AKGoogleCast.SpeakerBase..ctor (System.String HShost, System.Int32 HSport, Locator.Receiver receiver, System.String path, System.String lang, System.Double speed) [0x00007] in <7f8ae37050d14afd885953af97cc29f7>:0 at HSPI_AKGoogleCast.SpeakerGoogleTransl..ctor (System.String HShost, System.Int32 HSport, Locator.Receiver receiver, System.String path, System.String lang, System.Double speed) [0x00000] in <7f8ae37050d14afd885953af97cc29f7>:0 at HSPI_AKGoogleCast.SpeakerGoogleTransl..ctor () [0x00000] in <7f8ae37050d14afd885953af97cc29f7>:0 at HSPI_AKGoogleCast.Controller..cctor () [0x00000] in <7f8ae37050d14afd885953af97cc29f7>:0 --- End of inner exception stack trace --- at HSPI_AKGoogleCast.HSPI.InitIO (System.String port) [0x00019] in <7f8ae37050d14afd885953af97cc29f7>:0
          Please try ver BETA 3.0.0.31 - I included all required system DLLs, not sure if it's gonna fix the problem, but see how it goes, you never know.

          [EDIT]

          Ver 3.0.0.32 (BETA) I think I found the problem. Fingers crossed.

          PS. Ignore the log error about "google_translate_url" - it's supposed to be normal log, not error.

          Comment


            #20
            Installed Version 3.0.0.32 - Failed


            WARNING: Failed getting InterfaceStatus from AK GoogleCast - the interface was not found in the list of active interfaces, the list may need to be refreshed.

            Am I missing some other dependency/package??

            I contacted HomeSeer about Mono version (and Ubuntu) upgrades - They said they do not have any supported upgrade options. "Manually updating the operating system or Mono on our systems is not recommended"

            I purchased my system last year. I have Ubuntu version 14.04.1 LTS - This was released July/24/2014 and went out of Standard Support on April 2019, and End Of Life is April 2021. I don't know how many years behind Homeseer needs to be before they get "Current". Ubuntu 16.x or 18.x seems to be the most logical choice for new purchases. It looks like they are going to force everyone to upgrade to HS4 as the only route for existing users. Then, repurchase compatible plugins again, or they may not work at all.... :-(
            Code:
             
            Apr-08 1:04:26 PM Error Initializing plug-in(1): AK GoogleCast Instance::The type initializer for 'HSPI_AKGoogleCast.Controller' threw an exception. Time to load: 182 milliseconds
            Apr-08 1:04:26 PM AK GoogleCast ERROR InitIO: System.TypeInitializationException: The type initializer for 'HSPI_AKGoogleCast.Controller' threw an exception. ---> System.TypeLoadException: Could not load type of field 'SharpCaster.ChromecastSocketService:_client' (1) due to: Could not load file or assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. assembly:System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a type: member: at HSPI_AKGoogleCast.CastDevice..ctor (System.String HShost, System.Int32 HSport, Locator.Receiver receiver) [0x00043] in <3bcc3798021141e29a7b7e90a392bdf1>:0 at HSPI_AKGoogleCast.SpeakerBase..ctor (System.String HShost, System.Int32 HSport, Locator.Receiver receiver, System.String path, System.String lang, System.Double speed) [0x00007] in <3bcc3798021141e29a7b7e90a392bdf1>:0 at HSPI_AKGoogleCast.SpeakerGoogleTransl..ctor (System.String HShost, System.Int32 HSport, Locator.Receiver receiver, System.String path, System.String lang, System.Double speed) [0x00000] in <3bcc3798021141e29a7b7e90a392bdf1>:0 at HSPI_AKGoogleCast.SpeakerGoogleTransl..ctor () [0x00000] in <3bcc3798021141e29a7b7e90a392bdf1>:0 at HSPI_AKGoogleCast.Controller..cctor () [0x00000] in <3bcc3798021141e29a7b7e90a392bdf1>:0 --- End of inner exception stack trace --- at HSPI_AKGoogleCast.HSPI.InitIO (System.String port) [0x00019] in <3bcc3798021141e29a7b7e90a392bdf1>:0
            Apr-08 1:04:26 PM Starting Plug-In Initializing plugin AK GoogleCast ...
            Apr-08 1:04:26 PM Info Plugin AK GoogleCast has connected. IP:127.0.0.1:34962
            Apr-08 1:04:24 PM Plug-In Interface AK GoogleCast is running as a trial, 27 days remaining.

            Comment


              #21
              Hmm. I'll sort it out... Eventually

              System.Runtime is the main part of .NET - it complains about ver 4.0.0.0

              Comment


                #22
                I'm sure you will find a solution/workaround. I suspect upgrading the HomeSeer SEL HS3 software is not an option at this point in time since HS4 is on the horizon.

                Thanks

                Comment


                  #23
                  Originally posted by Mr.Gadget View Post
                  I'm sure you will find a solution/workaround. I suspect upgrading the HomeSeer SEL HS3 software is not an option at this point in time since HS4 is on the horizon.

                  Thanks
                  Yeah, I'm trying myself parameters MONO_LOG_LEVEL=debug and MONO_LOG_MASK=asm,

                  https://forums.homeseer.com/forum/me...66#post1375466

                  Comment


                    #24
                    Originally posted by Mr.Gadget View Post
                    I'm sure you will find a solution/workaround. I suspect upgrading the HomeSeer SEL HS3 software is not an option at this point in time since HS4 is on the horizon.

                    Thanks
                    According to Wikipedia Mono 5.10 should support .NET 4.7.1

                    Click image for larger version

Name:	Annotation 2020-04-11 144527.jpg
Views:	29
Size:	22.8 KB
ID:	1376745

                    Comment


                      #25
                      It was looking so promising - Went from Plugin stats "OK" to "CRITICAL: Plugin has disconnected" to "INFO: plugin is starting", back to CRITICAL, OK, INFO, CRITICAL...


                      Looks like you almost have a solution :-) It appears to see my network devices, but no HS devices created yet.

                      Code:
                       
                      Apr-11 11:06:46 AM Info Plugin AK GoogleCast with instance: has disconnected
                      Apr-11 11:06:46 AM AK GoogleCast ERROR System.TypeLoadException: Could not load type of field 'SharpCaster.ChromecastSocketService:_client' (1) due to: Could not load file or assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. assembly:System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a type: member: at: HSPI_AKGoogleCast.CastDevice..ctor (System.String HShost, System.Int32 HSport, Locator.Receiver receiver) [0x00043] in :0 at: HSPI_AKGoogleCast.SpeakerBase..ctor (System.String HShost, System.Int32 HSport, Locator.Receiver receiver, System.String path, System.String lang, System.Double speed) [0x00007] in :0 at: HSPI_AKGoogleCast.SpeakerGoogleTransl..ctor (System.String HShost, System.Int32 HSport, Locator.Receiver receiver, System.String path, System.String lang, System.Double speed) [0x00000] in :0 at: HSPI_AKGoogleCast.DeviceCastRoot.CreateSpeaker () [0x000a1] in :0 at: HSPI_AKGoogleCast.DeviceCastRoot.Create () [0x00259] in :0 at: HSPI_AKGoogleCast.DeviceCastBase.SetReceiver (Locator.Receiver receiver, System.Boolean create) [0x00022] in :0 at: HSPI_AKGoogleCast.Controller.AddReceiver (Locator.Receiver receiver, System.Boolean save, System.Boolean bQueue) [0x000c1] in :0 at: HSPI_AKGoogleCast.Controller.AddReceiver (System.Object state) [0x00028] in :0 at: System.Threading.Timer+Scheduler.TimerCB (System.Object o) [0x00007] in :0 at: System.Threading.QueueUserWorkItemCallback.System.Threading. IThreadPoolWorkItem.ExecuteWorkItem () [0x00008] in :0 at: System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in :0 at: System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in :0
                      Apr-11 11:06:46 AM AK GoogleCast ERROR Could not load type of field 'SharpCaster.ChromecastSocketService:_client' (1) due to: Could not load file or assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. assembly:System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a type: member:
                      Apr-11 11:06:46 AM AK GoogleCast ERROR UnhandledException!!!
                      Apr-11 11:06:38 AM AK GoogleCast Warning Found Receiver [Google Cast Group] ALL SPEAKERS (192.168.1.194): groups are disabled!
                      Apr-11 11:06:38 AM AK GoogleCast Warning Found Receiver [Google Cast Group] Upstairs Speakers (192.168.1.194): groups are disabled!
                      Apr-11 11:06:38 AM AK GoogleCast Warning Found Receiver [Google Cast Group] All mini Speakers (192.168.1.194): groups are disabled!
                      Apr-11 11:06:38 AM AK GoogleCast Warning Running on linux - using Locator.MonoZeroconf.DeviceLocator
                      Apr-11 11:06:38 AM Plug-In Finished initializing plug-in AK GoogleCast

                      Comment


                        #26
                        Yeah, looks better. But still same problem. Getting there

                        Could not load file or assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

                        Comment


                          #27
                          Tried to Toggle OFF/ON Plugin. - Then it said "Loaded Remotely", and these errors:
                          Code:
                           
                          Apr-11 11:27:45 AM Warning Cannot access remote plugin AK GoogleCast
                          Apr-11 11:27:28 AM Error Displaying remotely connected interfaces: Object reference not set to an instance of an object
                          Apr-11 11:27:26 AM Error Displaying remotely connected interfaces: Object reference not set to an instance of an object
                          Apr-11 11:27:17 AM Error Displaying remotely connected interfaces: Object reference not set to an instance of an object

                          Comment


                            #28
                            Originally posted by Mr.Gadget View Post
                            Tried to Toggle OFF/ON Plugin. - Then it said "Loaded Remotely", and these errors:
                            Don't waste your time - it's a .NET/Mono problem. I will look into it tomorrow. It's a bit too late here in AU

                            Comment


                              #29
                              Originally posted by Mr.Gadget View Post
                              It was looking so promising - Went from Plugin stats "OK" to "CRITICAL: Plugin has disconnected" to "INFO: plugin is starting", back to CRITICAL, OK, INFO, CRITICAL...
                              [/CODE]
                              Ok, please try ver. 3.0.0.37 (BETA), I did more references clean-up in SharpCaster.dll and added more error handling, so at least you shouldn't get UnhandledException.

                              If it still doesn't work please open another terminal window (same HS root folder) and start the plugin manually with Mono assembly load tracing:

                              Code:
                              sudo MONO_LOG_LEVEL="debug" MONO_LOG_MASK="dll" mono HSPI_AKGoogleCast.exe
                              And post the output - as attachment as it will be a lot...

                              Comment


                                #30

                                It looks really close, maybe just a little more debugging-

                                So, I Loaded new version. Unable to toggle On/off "Loaded Remotely" , then it created devices, and also a AKGoogleCast Remote Config screen
                                Still throwing some errors, but not sure if they are valid.


                                I then started your program as outlined above. I was only able to get a partial log, so I aborted and reran the command (LOG PROVIDED)
                                Also captured the various settings it created (JPG)

                                I then aborted the Command line, then I was able to go back to the Standard HomeSeer controls to Toggle ON/OFF, and access the Config page.

                                Let me know what you need me to do to validate functionality or if you need more logging. I suppose I need to go back and reread how to setup and control the devices.Then I should be able to test how and IF I can use the functionality of each device created.... (more learning on my part now) Do you have any simple tests I can perform to validate functionality?


                                Homeseer Log (First Startup of 3.0.0.37):
                                Code:
                                 
                                Apr-12 12:34:46 PM AK GoogleCast [234]: * Set Receiver [Google Home Mini] Pam's Office speaker (192.168.1.194) (HSPI_AKGoogleCast.DeviceCastRoot)
                                Apr-12 12:34:46 PM AK GoogleCast ERROR [234]: CreateSpeaker: System.TypeLoadException: Could not load type of field 'SharpCaster.ChromecastSocketService:_client' (1) due to: Could not load file or assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. assembly:System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a type: member: at HSPI_AKGoogleCast.CastDevice..ctor (System.String HShost, System.Int32 HSport, Locator.Receiver receiver) [0x00043] in <50ff6195dcaf4066ac6e5d7c1428e1ed>:0 at HSPI_AKGoogleCast.SpeakerBase..ctor (System.String HShost, System.Int32 HSport, Locator.Receiver receiver, System.String path, System.String lang, System.Double speed) [0x00007] in <50ff6195dcaf4066ac6e5d7c1428e1ed>:0 at HSPI_AKGoogleCast.SpeakerGoogleTransl..ctor (System.String HShost, System.Int32 HSport, Locator.Receiver receiver, System.String path, System.String lang, System.Double speed) [0x00000] in <50ff6195dcaf4066ac6e5d7c1428e1ed>:0 at HSPI_AKGoogleCast.DeviceCastRoot.CreateSpeaker () [0x000a1] in <50ff6195dcaf4066ac6e5d7c1428e1ed>:0
                                Apr-12 12:34:46 PM AK GoogleCast [234]: * (1) Creating speaker GoogleTranslate...
                                Apr-12 12:34:46 PM AK GoogleCast [245]: * Set Receiver [Google Home Mini] Pam's Office speaker (192.168.1.194) (HSPI_AKGoogleCast.DeviceEnableTTS)
                                Apr-12 12:34:46 PM AK GoogleCast [244]: * Set Receiver [Google Home Mini] Pam's Office speaker (192.168.1.194) (HSPI_AKGoogleCast.DeviceCastDuration)
                                Attached Files

                                Comment

                                Working...
                                X