Announcement

Collapse
No announcement yet.

YR Weather keeps restarting

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

    YR Weather keeps restarting

    Hello,

    After no problems at all for a long time, the plugin is now continually restarting. I captured the following error:-

    Connecting to server at 127.0.0.1...
    Connected, waiting to be initialized...
    Loading INI file
    Unhandled Exception: System.Xml.XmlException: Data at the root level is invalid.
    Line 1, position 1.
    at System.Xml.XmlTextReaderImpl.Throw(Exception e)
    at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
    at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
    at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
    at System.Xml.XmlTextReaderImpl.Read()
    at HSPI_YR_WEATHER.plugin.getCountryCode(String lat, String lon)
    at HSPI_YR_WEATHER.plugin.GetWeatherData(Int32 modulenr, Boolean Rebuilding)
    at HSPI_YR_WEATHER.plugin.updateWeatherDevices(Boolean reBuilding)
    at HSPI_YR_WEATHER.plugin.RunInitUpdate()
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.RunInternal(ExecutionConte xt executionCo
    ntext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, C
    ontextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, C
    ontextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()

    I've attached my .ini file (renamed as .txt) in case that helps diagnose...

    Thanks,

    Jon.
    Attached Files

    #2
    This applies to both v1.1.1.2 and v1.1.2.1.

    I have tried a complete uninstall and reinstall, but the same results - the plugin keeps restarting.

    If I try and configure the plugin, I get the following line every time I click a box: Posting back to plugin web page Weather Config: Data at the root level is invalid. Line 1, position 1.

    I also get 2 errors in the Windows Events Application log (nothing in the system log):-

    1) .NET Runtime (Event ID 1026):-
    Application: HSPI_YR_WEATHER.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.Xml.XmlException
    Stack:
    at System.Xml.XmlTextReaderImpl.Throw(System.Exception)
    at System.Xml.XmlTextReaderImpl.Throw(System.String, System.String)
    at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
    at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
    at System.Xml.XmlTextReaderImpl.Read()
    at HSPI_YR_WEATHER.plugin.getCountryCode(System.String, System.String)
    at HSPI_YR_WEATHER.plugin.GetWeatherData(Int32, Boolean)
    at HSPI_YR_WEATHER.plugin.updateWeatherDevices(Boolean)
    at HSPI_YR_WEATHER.plugin.RunInitUpdate()
    at System.Threading.ThreadHelper.ThreadStart_Context(System.Obj ect)
    at System.Threading.ExecutionContext.RunInternal(System.Threadi ng.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.ExecutionContext.Run(System.Threading.Execu tionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.ExecutionContext.Run(System.Threading.Execu tionContext, System.Threading.ContextCallback, System.Object)
    at System.Threading.ThreadHelper.ThreadStart()

    2) Application Error (Event ID 1000):-

    Faulting application name: HSPI_YR_WEATHER.exe, version: 1.1.2.1, time stamp: 0x5398af30
    Faulting module name: KERNELBASE.dll, version: 6.2.9200.16864, time stamp: 0x531d2be6
    Exception code: 0xe0434352
    Fault offset: 0x00010f22
    Faulting process ID: 0x1d3c
    Faulting application start time: 0x01cf8d22b3b190bb
    Faulting application path: C:\Program Files (x86)\HomeSeer HS3\HSPI_YR_WEATHER.exe
    Faulting module path: C:\Windows\SYSTEM32\KERNELBASE.dll
    Report ID: f3172d56-f915-11e3-be90-00155d985701
    Faulting package full name:
    Faulting package-relative application ID:

    Hoping that this might give you enough information to identify the problem....

    Jon.

    Comment


      #3
      please try to delete the ini-file and install the new version 1.1.2.2.
      some changes in the API was made on the server side that made the plugin crash.

      this is now corrected and an exception handling is added for this part.

      Comment


        #4
        I see there is still one bug left that was caused by the API change.
        Although it works now for fresh installs, but not when updating previous version. I will correct this in the next release.

        Comment

        Working...
        X