Announcement

Collapse
No announcement yet.

Root is not set: at PluginLib.DeviceBase.CreateDevice(String name, String addr)

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

    Root is not set: at PluginLib.DeviceBase.CreateDevice(String name, String addr)

    alexbk66 I got this massive error last night but have not seen it today.

    Code:
    [0] : Root is not set:
    at PluginLib.DeviceBase.CreateDevice(String name, String addr)
    at PluginLib.DeviceBase.Create(String addr, String full_type, Int32 Device_Type, Int32 Device_SubType, String Device_SubType_Description, String dev_name)
    at PluginLib.DeviceBase.CreateBase(String id, String stype, Int32 Device_Type, Int32 Device_SubType, String Device_SubType_Description)
    at HSPI_AKWeather.DeviceWeatherBase.Create()
    at HSPI_AKWeather.ChildDeviceDetail.Create()
    at HSPI_AKWeather.ChildDeviceDetail.d__6`1.MoveNext()
    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
    at HSPI_AKWeather.ChildDeviceDetail.Update[T](T v, String add)
    at HSPI_AKWeather.ChildDeviceDescription.<>n__1[T](T v, String add)
    at HSPI_AKWeather.ChildDeviceDescription.d__2.MoveNext()
    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
    at HSPI_AKWeather.ChildDeviceDescription.Update(Alert alert)
    at HSPI_AKWeather.DeviceParentAlert.d__10.MoveNext()
    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveN extRunner.InvokeMoveNext(Object stateMachine)
    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.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveN extRunner.Run()
    at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAc tion(Action action, Boolean allowInlining, Task& currentTask)
    at System.Threading.Tasks.Task.FinishContinuations()
    at System.Threading.Tasks.Task.FinishStageThree()
    at System.Threading.Tasks.Task`1.TrySetResult(TResult result)
    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Set Result(TResult result)
    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetRe sult()
    at HSPI_AKWeather.ChildDeviceInfo.d__2.MoveNext()
    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveN extRunner.InvokeMoveNext(Object stateMachine)
    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.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveN extRunner.Run()
    at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAc tion(Action action, Boolean allowInlining, Task& currentTask)
    at System.Threading.Tasks.Task.FinishContinuations()
    at System.Threading.Tasks.Task.FinishStageThree()
    at System.Threading.Tasks.Task`1.TrySetResult(TResult result)
    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Set Result(TResult result)
    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetRe sult()
    at HSPI_AKWeather.ChildDeviceDetail.d__6`1.MoveNext()
    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveN extRunner.InvokeMoveNext(Object stateMachine)
    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.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveN extRunner.Run()
    at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAc tion(Action action, Boolean allowInlining, Task& currentTask)
    at System.Threading.Tasks.Task.FinishContinuations()
    at System.Threading.Tasks.Task.FinishStageThree()
    at System.Threading.Tasks.Task`1.TrySetResult(TResult result)
    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Set Result(TResult result)
    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetRe sult()
    at HSPI_AKWeather.ChildDeviceDetail.d__10`1.MoveNext()
    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveN extRunner.InvokeMoveNext(Object stateMachine)
    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.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveN extRunner.Run()
    at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAc tion(Action action, Boolean allowInlining, Task& currentTask)
    at System.Threading.Tasks.Task.FinishContinuations()
    at System.Threading.Tasks.Task.FinishStageThree()
    at System.Threading.Tasks.Task.FinishStageTwo()
    at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
    at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
    at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
    at System.Threading.Tasks.Task.System.Threading.IThreadPoolWork Item.ExecuteWorkItem()
    at System.Threading.ThreadPoolWorkQueue.Dispatch()
    at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback ()

    #2
    alexbk66 Also, I have been seeing the device Precipitation in this state for days. Others went this way today. Not sure why.

    Click image for larger version  Name:	pic2.png Views:	0 Size:	151.9 KB ID:	1479109

    Comment


      #3
      The error is "massive" only because I log whole call stack so I know where it comes from, and the stack is so long - because that's the way Asynchronous communication is implemented, so it doesn't block the app. Most useful are just first few lines.

      It looks like you had an alert and it was trying to dynamically create a new Alert device (ChildDeviceDescription). And failed. Do you see anything strange in Alert devices?

      What's your location again?


      Comment


        #4
        Originally posted by cowinger View Post
        alexbk66 Also, I have been seeing the device Precipitation in this state for days. Others went this way today. Not sure why.

        Click image for larger version Name:	pic2.png Views:	0 Size:	151.9 KB ID:	1479109
        Some providers don't report some values (i.e. Precipitation) - instead of reporting 0. So I show "Unknown" state. I don't see a better option, I don't want to "assume" 0.

        If you think there's a problem, i.e. it's raining, but I still don't show Precipitation - please enable log and post the json reply.

        What location and what provider?

        Comment

        Working...
        X