Announcement

Collapse
No announcement yet.

PHLocation crashing on start

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

    PHLocation crashing on start

    Hi.

    The plugin stops responding within seconds everytime I enable it in the interfaces page.

    I'm using:
    Windows 7 32 bit
    HS PRO 3.0.0.297
    PHLocation plugin 3.0.1.109

    I already tried deleting PHLocation.ini and PHLocation.phd without results.



    This is what I can see in the HS log:



    Any clue?

    Thank you.

    Mario

    #2
    Originally posted by Mario from Spain View Post
    Hi.

    The plugin stops responding within seconds everytime I enable it in the interfaces page.

    I'm using:
    Windows 7 32 bit
    HS PRO 3.0.0.297
    PHLocation plugin 3.0.1.109

    I already tried deleting PHLocation.ini and PHLocation.phd without results.



    This is what I can see in the HS log:



    Any clue?

    Thank you.

    Mario
    Is this a new installation?
    If so, then is there a copy of Newtonsoft.Json.dll in the HS3 root folder?

    Paul..

    Comment


      #3
      Originally posted by sooty View Post
      Is this a new installation?
      If so, then is there a copy of Newtonsoft.Json.dll in the HS3 root folder?

      Paul..
      Hi Paul.

      It's and old installation but disabled for a long time (I think the last version installed was 3.0.1.83).

      There was no Newtonsoft.Json.dll in the HS3 root folder so I copied one from the Nsoft.zip, included with your plugin, to the HS3 root folder but the problem still exists.

      Anyway I think I remember issues with some others plugins with different versions of the Newtonsoft.Json.dll in different directories and they had to install the dll in their own directory to make sure they load the right one. May be PHLocation is loading an incorrect one from some where else?

      Comment


        #4
        I just found the information regarding different versions of the Newtonsoft.Json.dll file

        https://forums.homeseer.com/showthread.php?t=189876

        Comment


          #5
          There should not be a copy of the Newtonsoft dll in the HS3 root folder.

          On the HS3 manage plug-ins page, can you enable developer mode and then try re-starting the plug-in.

          You will get a console window on the HS3 machine which may give a clue as to the problem.

          Paul..

          Comment


            #6
            Thank you for the quick answer.

            This is what I get in the console window:



            The error means:

            System.IO.FileLoadException: 'Could not load file or assembly 'Microsoft.Data.Sqlite, ... The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'

            With the problem with the Newtonsoft.Json.dll present, I looked at the root HS3 directory and there where two old files, probably from some old plugin installation:



            I renamed them and now it looks like everything is working fine.

            Thank you!! :-)

            Mario

            Comment


              #7
              Super

              By default, the .net framework will look for dependent files in the same folder that the executable is run from. It will only look in another location (specified in the executable's config file) if it does not find the file in the root folder.

              As plug-in executables are generally in the HS3 root folder, it will look there first. If it finds the file (e.g. system.data.sqlite.dll) in the root folder then it will attempt to use that file. If that file is not the same version as the plug-in executable is expecting then the plug-in won't run.

              It appears that in the past some plug-in installers were putting dependant files in the HS3 root folder instead of \HS3\Bin\PlugInName which causes the problems.

              So, in summary:
              There should be no copies of System.Data.SQLite.dll or Newtonsoft.Json.dll in the HS3 root folder.
              Check that the sqlite version located at \HS3\Bin\PHLocation is version 1.0.95.0.

              Paul..

              Comment


                #8
                PHLocation Linux Crashing Constantly

                Just upgraded my SEL to HS3 3.0.0.423, and now PHLocation crashes constantly. It will load and disconnect over and over again. Everything seemed to be fine under 3.0.0.409.



                Current Date/Time: 3/10/2018 10:23:01 PM
                HomeSeer Version: HS3 Standard Edition 3.0.0.423
                Linux version: Linux hometrollerSEL 3.16.0-031600-generic #201408031935 SMP Sun Aug 3 23:56:17 UTC 2014 i686 i686 i686 GNU/Linux System Uptime: 0 Days 0 Hours 44 Minutes 24 Seconds
                IP Address:
                Number of Devices: 1296
                Number of Events: 831
                Available Threads: 198
                HSTouch Enabled: True
                Event Threads: 4
                Event Trigger Eval Queue: 0
                Event Trigger Priority Eval Queue: 0
                Device Exec Queue: 0
                HSTouch Event Queue: 0
                Email Send Queue: 0
                Anti Virus Installed:

                Enabled Plug-Ins
                2.0.54.0: BLBackup
                3.0.11.0: BLLock
                3.0.0.44: EasyTrigger
                3.6.203.3: HSBuddy
                0.0.0.38: Pushover 3P
                3.0.5.7: SDJ-Health
                3.1.0.22: Sonos
                3.0.6413.20219: UltraNetCam3
                3.0.0.83: weatherXML
                3.0.1.206: Z-Wave

                Comment


                  #9
                  Just rolled the HS3 installation back to 3.0.0.409, and PHLocation is still disconnecting and reconnecting. Apparently, whatever 423 does breaks PHL, and it doesn't work afterward.

                  Comment


                    #10
                    Reinstalled the PHLocation plug-in, version 3.0.1.109. No change. Plug-in still loads and immediately disconnects, and loops over and over again. Definitely need a fix for this as soon as possible.

                    Mar-10 22:57:23 Info Plugin PHLocation with instance: has disconnected
                    Mar-10 22:57:22 PHLocation (CreateDeviceLists) Message panel DvRef: 4730
                    Mar-10 22:57:22 PHLocation (CreateDeviceLists) There are no active custom user devices. Setting monitoring to OFF.
                    Mar-10 22:57:19 PHLocation (Startup) Plug-In is licensed.
                    Mar-10 22:57:19 PHLocation (Startup) Database structure update not required.
                    Mar-10 22:57:19 PHLocation (Startup) Database version is: 9
                    Mar-10 22:57:19 PHLocation (Startup) Existing installation detected. Running version update check.
                    Mar-10 22:57:19 PHLocation (Startup) LoadWebServerSettings completed OK.
                    Mar-10 22:57:19 PHLocation (LoadWebServerSettings) Called.
                    Mar-10 22:57:19 PHLocation (Startup) LoadIniSettings completed OK.
                    Mar-10 22:57:19 PHLocation (LoadConfigSettings) Suppression of Google Distance Matrix errors is ON.
                    Mar-10 22:57:19 PHLocation (LoadConfigSettings) UTC offset secs: -21600
                    Mar-10 22:57:19 PHLocation Warning (LoadConfigSettings) iCloud Ignore Unknown devices is ON!
                    Mar-10 22:57:19 PHLocation (LoadConfigSettings) Using stored iCloud client ID: 1D0882D6-E3D0-4276-B5F2-4E1D35DA383D
                    Mar-10 22:57:19 PHLocation (LoadConfigSettings) iCloud retry time 5000 ms.
                    Mar-10 22:57:19 PHLocation (LoadConfigSettings) iCloud give up after 5 tries.
                    Mar-10 22:57:19 PHLocation (LoadConfigSettings) iCloud max retries set to 6
                    Mar-10 22:57:19 PHLocation (LoadConfigSettings) Logging of http requests to file is ON.
                    Mar-10 22:57:19 PHLocation (LoadConfigSettings) Fence status change messages enabled by default.
                    Mar-10 22:57:19 PHLocation (LoadConfigSettings) New fence messages enabled.
                    Mar-10 22:57:19 PHLocation (LoadConfigSettings) Message panel enabled.
                    Mar-10 22:57:19 PHLocation (LoadConfigSettings) Called.
                    Mar-10 22:57:18 PHLocation (LoadPiSettings) BinPath = /usr/local/HomeSeer/Data/PHLocation/
                    Mar-10 22:57:18 PHLocation (LoadPiSettings) DataPath = /usr/local/HomeSeer/Data/PHLocation/PHLocation.phd
                    Mar-10 22:57:18 PHLocation (LoadPiSettings) MapPath = html/PHLocation/Maps/
                    Mar-10 22:57:18 PHLocation (LoadPiSettings) ImagePath = images/PHLocation/
                    Mar-10 22:57:18 PHLocation (LoadPiSettings) LogPath = html/PHLocation/Logs/
                    Mar-10 22:57:18 PHLocation (LoadPiSettings) ConfigPath = /usr/local/HomeSeer/Data/PHLocation/Config.phd
                    Mar-10 22:57:18 PHLocation (LoadPiSettings) HSAppPath = /usr/local/HomeSeer
                    Mar-10 22:57:18 PHLocation (Startup) System decimal separator used is [.]
                    Mar-10 22:57:18 PHLocation (Startup) Detected OS is Linux version 3.16.0.31600
                    Mar-10 22:57:18 PHLocation (Startup) Plug-in version is: 3.0.1.109
                    Mar-10 22:57:18 PHLocation (Startup) Begins at 10:57:18.877
                    Mar-10 22:57:18 Starting Plug-In Plugin PHLocation started successfully in 15 milliseconds
                    Mar-10 22:57:18 Starting Plug-In Initializing plugin PHLocation ...
                    Mar-10 22:57:18 Info Plugin PHLocation has connected. IP:127.0.0.1:52271

                    Comment


                      #11
                      Originally posted by bebaldin View Post
                      Reinstalled the PHLocation plug-in, version 3.0.1.109. No change. Plug-in still loads and immediately disconnects, and loops over and over again. Definitely need a fix for this as soon as possible.

                      Mar-10 22:57:23 Info Plugin PHLocation with instance: has disconnected
                      Mar-10 22:57:22 PHLocation (CreateDeviceLists) Message panel DvRef: 4730
                      Mar-10 22:57:22 PHLocation (CreateDeviceLists) There are no active custom user devices. Setting monitoring to OFF.
                      Mar-10 22:57:19 PHLocation (Startup) Plug-In is licensed.
                      Mar-10 22:57:19 PHLocation (Startup) Database structure update not required.
                      Mar-10 22:57:19 PHLocation (Startup) Database version is: 9
                      Mar-10 22:57:19 PHLocation (Startup) Existing installation detected. Running version update check.
                      Mar-10 22:57:19 PHLocation (Startup) LoadWebServerSettings completed OK.
                      Mar-10 22:57:19 PHLocation (LoadWebServerSettings) Called.
                      Mar-10 22:57:19 PHLocation (Startup) LoadIniSettings completed OK.
                      Mar-10 22:57:19 PHLocation (LoadConfigSettings) Suppression of Google Distance Matrix errors is ON.
                      Mar-10 22:57:19 PHLocation (LoadConfigSettings) UTC offset secs: -21600
                      Mar-10 22:57:19 PHLocation Warning (LoadConfigSettings) iCloud Ignore Unknown devices is ON!
                      Mar-10 22:57:19 PHLocation (LoadConfigSettings) Using stored iCloud client ID: 1D0882D6-E3D0-4276-B5F2-4E1D35DA383D
                      Mar-10 22:57:19 PHLocation (LoadConfigSettings) iCloud retry time 5000 ms.
                      Mar-10 22:57:19 PHLocation (LoadConfigSettings) iCloud give up after 5 tries.
                      Mar-10 22:57:19 PHLocation (LoadConfigSettings) iCloud max retries set to 6
                      Mar-10 22:57:19 PHLocation (LoadConfigSettings) Logging of http requests to file is ON.
                      Mar-10 22:57:19 PHLocation (LoadConfigSettings) Fence status change messages enabled by default.
                      Mar-10 22:57:19 PHLocation (LoadConfigSettings) New fence messages enabled.
                      Mar-10 22:57:19 PHLocation (LoadConfigSettings) Message panel enabled.
                      Mar-10 22:57:19 PHLocation (LoadConfigSettings) Called.
                      Mar-10 22:57:18 PHLocation (LoadPiSettings) BinPath = /usr/local/HomeSeer/Data/PHLocation/
                      Mar-10 22:57:18 PHLocation (LoadPiSettings) DataPath = /usr/local/HomeSeer/Data/PHLocation/PHLocation.phd
                      Mar-10 22:57:18 PHLocation (LoadPiSettings) MapPath = html/PHLocation/Maps/
                      Mar-10 22:57:18 PHLocation (LoadPiSettings) ImagePath = images/PHLocation/
                      Mar-10 22:57:18 PHLocation (LoadPiSettings) LogPath = html/PHLocation/Logs/
                      Mar-10 22:57:18 PHLocation (LoadPiSettings) ConfigPath = /usr/local/HomeSeer/Data/PHLocation/Config.phd
                      Mar-10 22:57:18 PHLocation (LoadPiSettings) HSAppPath = /usr/local/HomeSeer
                      Mar-10 22:57:18 PHLocation (Startup) System decimal separator used is [.]
                      Mar-10 22:57:18 PHLocation (Startup) Detected OS is Linux version 3.16.0.31600
                      Mar-10 22:57:18 PHLocation (Startup) Plug-in version is: 3.0.1.109
                      Mar-10 22:57:18 PHLocation (Startup) Begins at 10:57:18.877
                      Mar-10 22:57:18 Starting Plug-In Plugin PHLocation started successfully in 15 milliseconds
                      Mar-10 22:57:18 Starting Plug-In Initializing plugin PHLocation ...
                      Mar-10 22:57:18 Info Plugin PHLocation has connected. IP:127.0.0.1:52271
                      I have an idea what the cause of this problem is.

                      Can you email me the file:
                      \HS3\Data\PHLocation\Config.phd
                      from your system.

                      Paul..

                      Comment


                        #12
                        Additional information:

                        It would appear that the cause of the problem is the CONFIG.PHD file. If I remove this file and start up PHL, a new file is created and there is no disconnect and looping. As soon as I restore the old file with the data in it and start up PHL, the disconnects and constant looping begins again.

                        I suspect that there is something incompatible between the .423 beta and the config.phd file, or that it was altered in some way. I tried to reactivate the new file, but this also failed.

                        Comment


                          #13
                          Originally posted by sooty View Post
                          I have an idea what the cause of this problem is.

                          Can you email me the file:
                          \HS3\Data\PHLocation\Config.phd
                          from your system.

                          Paul..
                          Just saw this as I was typing my next input. I will e-mail you the file I had before the upgrade. Should be there in a few minutes.

                          Comment


                            #14
                            Originally posted by sooty View Post
                            I have an idea what the cause of this problem is.

                            Can you email me the file:
                            \HS3\Data\PHLocation\Config.phd
                            from your system.

                            Paul..
                            File is on the way via e-mail. Thanks!

                            Comment

                            Working...
                            X