Announcement

Collapse
No announcement yet.

Plugin won't start ?

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

    Plugin won't start ?

    After restarting my HS3 instance PHLocation won't start any more.... No changes were made to this plugin or the config prior to the restart.

    PI is the latest 3.0.1.109.... My config contains 2 users, each with EgiGeoZone tracking & a number of fence devices.

    Code:
    [COLOR=#000000]Dec-26 2:45:55 PM [/COLOR]    [COLOR=#000000] Info [/COLOR]  [COLOR=#000000] Plugin PHLocation with instance:  has disconnected [/COLOR] 
    [COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (CreateDeviceLists) Message panel DvRef: 655
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (CreateDeviceLists) There are no active custom user devices. Setting monitoring to OFF.
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (http) Server thread started OK on port 8083
    [/COLOR][COLOR=#FF0000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#FF0000] PHLocation Error [/COLOR]  [COLOR=#FF0000] (CreateDeviceLists) Error with Dv: 542 - System.NullReferenceException: Object reference not set to an instance of an object.    at q.r()
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (Startup) Plug-In is licensed.
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (Startup) Database structure update not required.
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (Startup) Database version is: 9
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (Startup) Existing installation detected. Running version update check.
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (Startup) LoadWebServerSettings completed OK.
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (LoadWebServerSettings) Called.
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (Startup) LoadIniSettings completed OK.
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (LoadConfigSettings) UTC offset secs: 39600
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (LoadConfigSettings) Using stored iCloud client ID: 6357CD15-18F1-4EB8-9295-A3706C0DD8F9
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (LoadConfigSettings) iCloud retry time 5000 ms.
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (LoadConfigSettings) iCloud give up after 5 tries.
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (LoadConfigSettings) iCloud max retries set to 6
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (LoadConfigSettings) Logging of http requests to file is ON.
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (LoadConfigSettings) Message panel enabled.
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (LoadConfigSettings) Called.
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] Plug-In [/COLOR]  [COLOR=#000000] Finished initializing plug-in PHLocation
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (LoadPiSettings) BinPath = C:\Program Files (x86)\HomeSeer HS3\Data\PHLocation\
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (LoadPiSettings) DataPath = C:\Program Files (x86)\HomeSeer HS3\Data\PHLocation\PHLocation.phd
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (LoadPiSettings) MapPath = html\PHLocation\Maps\
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (LoadPiSettings) ImagePath = images\PHLocation\
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (LoadPiSettings) LogPath = html\PHLocation\Logs\
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (LoadPiSettings) ConfigPath = C:\Program Files (x86)\HomeSeer HS3\Data\PHLocation\Config.phd
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (LoadPiSettings) HSAppPath = C:\Program Files (x86)\HomeSeer HS3
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (Startup) System decimal separator used is [.]
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (Startup) Detected OS is Windows version 6.2.9200.0
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (Startup) Plug-in version is: 3.0.1.109
    [/COLOR][COLOR=#000000]Dec-26 2:45:52 PM [/COLOR]    [COLOR=#000000] PHLocation [/COLOR]  [COLOR=#000000] (Startup) Begins at 02:45:52.059
    [/COLOR][COLOR=#000000]Dec-26 2:45:51 PM [/COLOR]    [COLOR=#000000] Info [/COLOR]  [COLOR=#000000] Plugin PHLocation has connected. IP:127.0.0.1:59454 [/COLOR]
    Cheers,
    Geoff

    #2
    SO I rolled this plugin back to an older version I had here (3.0.1.84) and now it starts correctly and seems to be working. Upgrading again back to .109 re-introduces the issues I posted earlier and the plugin continually disconnects.

    Is there a possibility that something in my DB is corrupt that the newer version is borking on, and if so how do I check/fix this ??

    I'm going to need to stay on .84 for now until I can get a newer version to work :-(

    Cheers,
    Geoff

    Comment


      #3
      Seeing the same behavior. The plug-in starts, disconnects and then starts again.

      I have several devices created for backitude which used to work until recently.

      Dec-31 00:20:22 Info Plugin PHLocation with instance: has disconnected
      Dec-31 00:20:21 PHLocation (CreateDeviceLists) There are no active custom user devices. Setting monitoring to OFF.
      Dec-31 00:20:21 PHLocation (http) Server thread started OK on port 8085
      Dec-31 00:20:18 PHLocation (Startup) Plug-In is licensed.
      Dec-31 00:20:18 PHLocation (Startup) Database structure update not required.
      Dec-31 00:20:18 PHLocation (Startup) Database version is: 9
      Dec-31 00:20:18 PHLocation (Startup) Existing installation detected. Running version update check.
      Dec-31 00:20:18 PHLocation (Startup) LoadWebServerSettings completed OK.
      Dec-31 00:20:18 PHLocation (LoadWebServerSettings) Called.
      Dec-31 00:20:18 PHLocation (Startup) LoadIniSettings completed OK.
      Dec-31 00:20:18 PHLocation (LoadConfigSettings) UTC offset secs: -21600
      Dec-31 00:20:18 PHLocation (LoadConfigSettings) Using stored iCloud client ID:
      Dec-31 00:20:18 PHLocation (LoadConfigSettings) iCloud retry time 5000 ms.
      Dec-31 00:20:18 PHLocation (LoadConfigSettings) iCloud give up after 5 tries.
      Dec-31 00:20:18 PHLocation (LoadConfigSettings) iCloud max retries set to 6
      Dec-31 00:20:18 PHLocation (LoadConfigSettings) Logging of http requests to file is ON.
      Dec-31 00:20:18 PHLocation (LoadConfigSettings) Called.
      Dec-31 00:20:18 PHLocation (LoadPiSettings) BinPath = D:\Program Files (x86)\HomeSeer HS3\Data\PHLocation\
      Dec-31 00:20:18 PHLocation (LoadPiSettings) DataPath = D:\Program Files (x86)\HomeSeer HS3\Data\PHLocation\PHLocation.phd
      Dec-31 00:20:18 PHLocation (LoadPiSettings) MapPath = html\PHLocation\Maps\
      Dec-31 00:20:18 PHLocation (LoadPiSettings) ImagePath = images\PHLocation\
      Dec-31 00:20:18 PHLocation (LoadPiSettings) LogPath = html\PHLocation\Logs\
      Dec-31 00:20:18 PHLocation (LoadPiSettings) ConfigPath = D:\Program Files (x86)\HomeSeer HS3\Data\PHLocation\Config.phd
      Dec-31 00:20:18 PHLocation (LoadPiSettings) HSAppPath = D:\Program Files (x86)\HomeSeer HS3
      Dec-31 00:20:18 PHLocation (Startup) System decimal separator used is [.]
      Dec-31 00:20:18 PHLocation (Startup) Detected OS is Windows version 6.2.9200.0
      Dec-31 00:20:18 PHLocation (Startup) Plug-in version is: 3.0.1.109
      Dec-31 00:20:18 PHLocation (Startup) Begins at 12:20:18.401
      Dec-31 00:20:18 Info Plugin PHLocation has connected. IP:127.0.0.1:55555
      Dec-31 00:20:18 Warning I/O interface PHLocation is down, executable is not running, restarting ...

      Comment


        #4
        Can you guys with startup issues drop me an email.

        I really need to see the log for a startup with debug level set to 2, however if the plug-in won't start then you won't easily be able to change the debug level so I'll send you a special version of the plug-in with extra logging enabled so that we can try and see what's causing it to fail.

        Paul..

        Comment


          #5
          I have just had the plug in continually restarting and not loading. In the log file I see

          Apr-22 16:27:20 Error Calling HSEvent in plugin PHLocation, Instance :Object reference not set to an instance of an object.
          Apr-22 16:27:20 Info Plugin PHLocation with instance: has disconnected


          Steve

          Comment


            #6
            Originally posted by theendisnye View Post
            I have just had the plug in continually restarting and not loading. In the log file I see

            Apr-22 16:27:20 Error Calling HSEvent in plugin PHLocation, Instance :Object reference not set to an instance of an object.
            Apr-22 16:27:20 Info Plugin PHLocation with instance: has disconnected


            Steve
            What version of the plug-in are you running?
            Have you recently updated from an older version?
            Does this happen immediately after starting the plug-in?

            Paul..

            Comment


              #7
              Paul, I think it was the latest version, 3.0.1.109. I had done a homeseer update and it had worked ok after that.

              I added a new icloud account which went ok, I then started adding users/devices from that account. The first went ok the second did not show any location details. So I went to check the log file and found it hadn't been logging so I closed HS and restarted. It is then that PHLocation kept restarting, logging is ol.

              I managed to capture the following from the plugin window. The plugin is now disabled but says Loaded Remotely;

              Connecting to server at 127.0.0.1...
              Connected, waiting to be initialized...
              (Startup) Begins at 06:14:57.866
              (Startup) Plug-in version is: 3.0.1.109
              (Startup) Detected OS is Windows version 6.2.9200.0
              (Startup) System decimal separator used is [.]
              (LoadPiSettings) HSAppPath = C:\Program Files (x86)\HomeSeer HS3
              (LoadPiSettings) ConfigPath = C:\Program Files (x86)\HomeSeer HS3\Data\PHLocation\Config.phd
              (LoadPiSettings) LogPath = html\PHLocation\Logs\
              (LoadPiSettings) ImagePath = images\PHLocation\
              (LoadPiSettings) MapPath = html\PHLocation\Maps\
              (LoadPiSettings) DataPath = C:\Program Files (x86)\HomeSeer HS3\Data\PHLocation\PHLocation.phd
              (LoadPiSettings) BinPath = C:\Program Files (x86)\HomeSeer HS3\Data\PHLocation\
              (LoadConfigSettings) Called.
              (LoadConfigSettings) iCloud max retries set to 6
              (LoadConfigSettings) iCloud give up after 5 tries.
              (LoadConfigSettings) iCloud retry time 5000 ms.
              (LoadConfigSettings) Using stored iCloud client ID: xxxxxxxxxxxxxxxxxxxxxxxxxx0
              (LoadConfigSettings) UTC offset secs: 3600
              (Startup) LoadIniSettings completed OK.
              (LoadWebServerSettings) Called.
              (Startup) LoadWebServerSettings completed OK.
              (Startup) Existing installation detected. Running version update check.
              (Startup) Database version is: 9
              (Startup) Database structure update not required.
              (Startup) Plug-In is licensed.
              (CreateDeviceLists) iAccount type device PHLCIC[1753]R added to monitoring list.
              (CreateDeviceLists) iAccount type device PHLCIC[1891]R added to monitoring list.
              (CreateDeviceLists) There are no active custom user devices. Setting monitoring to OFF.

              Unhandled Exception: System.InvalidCastException: Conversion from string "" to type 'Single' is not valid. ---> System.FormatException: Input string was not in a correct format.
              at Microsoft.VisualBasic.CompilerServices.Conversions.ParseDoub le(String Value, NumberFormatInfo NumberFormat)
              at Microsoft.VisualBasic.CompilerServices.Conversions.ToSingle( String Value, NumberFormatInfo NumberFormat)
              --- End of inner exception stack trace ---
              at Microsoft.VisualBasic.CompilerServices.Conversions.ToSingle( String Value, NumberFormatInfo NumberFormat)
              at q.h()
              at HSPI_PHLocation.HSPI.StartPlugin()
              at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
              at System.Threading.ExecutionContext.RunInternal(ExecutionConte xt executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
              at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
              at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
              at System.Threading.ThreadHelper.ThreadStart()

              Comment


                #8
                Originally posted by theendisnye View Post
                Paul, I think it was the latest version, 3.0.1.109. I had done a homeseer update and it had worked ok after that.

                I added a new icloud account which went ok, I then started adding users/devices from that account. The first went ok the second did not show any location details. So I went to check the log file and found it hadn't been logging so I closed HS and restarted. It is then that PHLocation kept restarting, logging is ol.

                I managed to capture the following from the plugin window. The plugin is now disabled but says Loaded Remotely;

                Connecting to server at 127.0.0.1...
                Connected, waiting to be initialized...
                (Startup) Begins at 06:14:57.866
                (Startup) Plug-in version is: 3.0.1.109
                (Startup) Detected OS is Windows version 6.2.9200.0
                (Startup) System decimal separator used is [.]
                (LoadPiSettings) HSAppPath = C:\Program Files (x86)\HomeSeer HS3
                (LoadPiSettings) ConfigPath = C:\Program Files (x86)\HomeSeer HS3\Data\PHLocation\Config.phd
                (LoadPiSettings) LogPath = html\PHLocation\Logs\
                (LoadPiSettings) ImagePath = images\PHLocation\
                (LoadPiSettings) MapPath = html\PHLocation\Maps\
                (LoadPiSettings) DataPath = C:\Program Files (x86)\HomeSeer HS3\Data\PHLocation\PHLocation.phd
                (LoadPiSettings) BinPath = C:\Program Files (x86)\HomeSeer HS3\Data\PHLocation\
                (LoadConfigSettings) Called.
                (LoadConfigSettings) iCloud max retries set to 6
                (LoadConfigSettings) iCloud give up after 5 tries.
                (LoadConfigSettings) iCloud retry time 5000 ms.
                (LoadConfigSettings) Using stored iCloud client ID: xxxxxxxxxxxxxxxxxxxxxxxxxx0
                (LoadConfigSettings) UTC offset secs: 3600
                (Startup) LoadIniSettings completed OK.
                (LoadWebServerSettings) Called.
                (Startup) LoadWebServerSettings completed OK.
                (Startup) Existing installation detected. Running version update check.
                (Startup) Database version is: 9
                (Startup) Database structure update not required.
                (Startup) Plug-In is licensed.
                (CreateDeviceLists) iAccount type device PHLCIC[1753]R added to monitoring list.
                (CreateDeviceLists) iAccount type device PHLCIC[1891]R added to monitoring list.
                (CreateDeviceLists) There are no active custom user devices. Setting monitoring to OFF.

                Unhandled Exception: System.InvalidCastException: Conversion from string "" to type 'Single' is not valid. ---> System.FormatException: Input string was not in a correct format.
                at Microsoft.VisualBasic.CompilerServices.Conversions.ParseDoub le(String Value, NumberFormatInfo NumberFormat)
                at Microsoft.VisualBasic.CompilerServices.Conversions.ToSingle( String Value, NumberFormatInfo NumberFormat)
                --- End of inner exception stack trace ---
                at Microsoft.VisualBasic.CompilerServices.Conversions.ToSingle( String Value, NumberFormatInfo NumberFormat)
                at q.h()
                at HSPI_PHLocation.HSPI.StartPlugin()
                at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
                at System.Threading.ExecutionContext.RunInternal(ExecutionConte xt executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
                at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
                at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
                at System.Threading.ThreadHelper.ThreadStart()
                OK, I think I know what the issue is.

                Can you email me the following file to paul dot huddlestone at gmail dot com:
                C:\Program Files (x86)\HomeSeer HS3\Data\PHLocation\Config.phd

                I will probably need to make some changes and send you the file back.

                Paul..

                Comment


                  #9
                  What ended up being the issue here. I am experiencing now.

                  Comment

                  Working...
                  X