Main Thread Fatal Error
Posted: Thu 27 Feb 2014, 17:14
Hi,
I've come across an error that has happened to me a couple of times now which kills all switchking services.
It seems like it happens when changing system modes, I have posted the log, around the time of the error, below for your information
Do you have any idea what this might be?
Cheers!
I've come across an error that has happened to me a couple of times now which kills all switchking services.
It seems like it happens when changing system modes, I have posted the log, around the time of the error, below for your information

Code: Select all
{BusinessAccess - Devices} --<Warning> -- 2014-02-27 15:56:05 -- ScheduleMode with id 3 is bound to an nonexisting schedule.
{BusinessAccess - Invocation} --<Warning> -- 2014-02-27 15:56:05 -- Device with id 30, name [LIVINGROOM] Light Curtain front, native id 31 and code 4:9 is defaulting to state off due to that the device is not tied to an active schedule or that the schedule could not be used to calculate an expected state. This is a warning only, and can be discarded if this device is intended to be controlled manually.
{BusinessAccess - Invocation} --<Status> -- 2014-02-27 15:56:05 -- Device with id 16, name [HALLWAY1ST] Shutter (Door), native id 17 and code 5:3 has a nonmatching state.
{BusinessAccess - Invocation} --<Status> -- 2014-02-27 15:56:05 -- Device with id 19, name [LIVINGROOM] Shutter (Window-back), native id 20 and code 4:2 has a nonmatching state.
{BusinessAccess - Invocation} --<Status> -- 2014-02-27 15:56:05 -- Device with id 21, name [LIVINGROOM] Shutter (Backdoor), native id 22 and code 4:3 has a nonmatching state.
{BusinessAccess - Invocation} --<Status> -- 2014-02-27 15:56:06 -- Device with id 16, name [HALLWAY1ST] Shutter (Door), native id 17 and code 5:3 is being turned on. Method used is TellStickWrapper.
{BusinessAccess - Invocation} --<Status> -- 2014-02-27 15:56:06 -- Telldus API TurnOn responded with: 0
{BusinessAccess - Invocation} --<Status> -- 2014-02-27 15:56:07 -- Device with id 19, name [LIVINGROOM] Shutter (Window-back), native id 20 and code 4:2 is being turned on. Method used is TellStickWrapper.
{BusinessAccess - Invocation} --<Status> -- 2014-02-27 15:56:08 -- Telldus API TurnOn responded with: 0
{BusinessAccess - Invocation} --<Status> -- 2014-02-27 15:56:08 -- Device with id 21, name [LIVINGROOM] Shutter (Backdoor), native id 22 and code 4:3 is being turned on. Method used is TellStickWrapper.
{BusinessAccess - Invocation} --<Status> -- 2014-02-27 15:56:09 -- Telldus API TurnOn responded with: 0
{BusinessAccess - Invocation} --<Status> -- 2014-02-27 15:56:10 -- Device with id 9, name [BATHROOM] Ceiling, native id 3 and code 2:1 is being turned off. Method used is TellStickWrapper.
{BusinessAccess - Invocation} --<Status> -- 2014-02-27 15:56:11 -- Telldus API TurnOff responded with: 0
{BusinessAccess - Invocation} --<Status> -- 2014-02-27 15:56:11 -- Device with id 9, name [BATHROOM] Ceiling, native id 3 and code 2:1 is being turned off. Method used is TellStickWrapper.
{BusinessAccess - Invocation} --<Status> -- 2014-02-27 15:56:12 -- Telldus API TurnOff responded with: 0
{BusinessAccess - Invocation} --<Status> -- 2014-02-27 15:56:13 -- Device with id 9, name [BATHROOM] Ceiling, native id 3 and code 2:1 is being turned off. Method used is TellStickWrapper.
{BusinessAccess - Invocation} --<Status> -- 2014-02-27 15:56:13 -- Telldus API TurnOff responded with: 0
{BusinessAccess - Invocation} --<Status> -- 2014-02-27 15:56:14 -- Device with id 9, name [BATHROOM] Ceiling, native id 3 and code 2:1 is being turned off. Method used is TellStickWrapper.
{BusinessAccess - Invocation} --<Status> -- 2014-02-27 15:56:15 -- Telldus API TurnOff responded with: 0
{BusinessAccess - Invocation} --<Status> -- 2014-02-27 15:56:16 -- Device with id 9, name [BATHROOM] Ceiling, native id 3 and code 2:1 is being turned off. Method used is TellStickWrapper.
{BusinessAccess - Invocation} --<Status> -- 2014-02-27 15:56:17 -- Telldus API TurnOff responded with: 0
{BusinessAccess - Invocation} --<Status> -- 2014-02-27 15:56:18 -- Device with id 17, name [BEDROOM] Bedlight, native id 18 and code 1000000100 is being turned off. Method used is TellStickWrapper.
{BusinessAccess - Invocation} --<Status> -- 2014-02-27 15:56:18 -- Telldus API TurnOff responded with: 0
{BusinessAccess - Invocation} --<Status> -- 2014-02-27 15:56:19 -- Device with id 17, name [BEDROOM] Bedlight, native id 18 and code 1000000100 is being turned off. Method used is TellStickWrapper.
{BusinessAccess - Invocation} --<Status> -- 2014-02-27 15:56:19 -- Telldus API TurnOff responded with: 0
{Invocation Service - Shutdown} --<Fatal> -- 2014-02-27 15:56:21 -- Main Thread Error. Exception:
System.IndexOutOfRangeException
Level 1) Index was outside the bounds of the array.
StackTrace for Level 1:
at SwitchKing.Server.BusinessAccess.Invocation.EventQueueAccess.DeviceEventEntity.GetExpiredEvents()
at SwitchKing.Server.BusinessAccess.Invocation.EventQueueAccess.DeviceEventEntity.HandleExpiredEvents(DeviceEntity& devAccess, ExecutionQueueAccess& execAccess, ScenarioEntity& scenarioAccess, ScenariosDevicesEntity& scenariosDevicesAccess, IList`1& retryStorage, Int32& genericSendCount, TimeSpan& genericStateLockPeriod)
at SwitchKing.Server.BusinessAccess.Invocation.EventQueueAccess.DeviceEventEntity.PullAndExecuteEventStackV2(DeviceEntity& devAccess, DeviceTypeEntity& devTypeAccess, DeviceModeEntity& devModeAccess, DeviceActionEntity& devActionAccess, InvocationEngine& engine, ScenarioEntity& scenarioAccess, SystemStateEntity& stateAccess, ScenariosDevicesEntity& scenariosDevicesAccess, ScheduleEntity& calcAccess, ExecutionQueueAccess& execAccess, DataSourceEntity& dsAccess, DataSourceValueEntity& dsvAccess, RuleSetEvaluationAccess& evalAccess, EntityRuleSetEntity& ruleAccess)
at SwitchKing.Server.WinSvcServiceHost.InvocationService.ProcessDeviceEvents()
{UnhandledExceptionController_Framework} --<Critical> -- 2014-02-27 15:56:22 -- Exception:
System.IndexOutOfRangeException
Level 1) Index was outside the bounds of the array.
StackTrace for Level 1:
at SwitchKing.Server.BusinessAccess.Invocation.EventQueueAccess.DeviceEventEntity.GetExpiredEvents()
at SwitchKing.Server.BusinessAccess.Invocation.EventQueueAccess.DeviceEventEntity.HandleExpiredEvents(DeviceEntity& devAccess, ExecutionQueueAccess& execAccess, ScenarioEntity& scenarioAccess, ScenariosDevicesEntity& scenariosDevicesAccess, IList`1& retryStorage, Int32& genericSendCount, TimeSpan& genericStateLockPeriod)
at SwitchKing.Server.BusinessAccess.Invocation.EventQueueAccess.DeviceEventEntity.PullAndExecuteEventStackV2(DeviceEntity& devAccess, DeviceTypeEntity& devTypeAccess, DeviceModeEntity& devModeAccess, DeviceActionEntity& devActionAccess, InvocationEngine& engine, ScenarioEntity& scenarioAccess, SystemStateEntity& stateAccess, ScenariosDevicesEntity& scenariosDevicesAccess, ScheduleEntity& calcAccess, ExecutionQueueAccess& execAccess, DataSourceEntity& dsAccess, DataSourceValueEntity& dsvAccess, RuleSetEvaluationAccess& evalAccess, EntityRuleSetEntity& ruleAccess)
at SwitchKing.Server.WinSvcServiceHost.InvocationService.ProcessDeviceEvents()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
{UnhandledExceptionController_Framework} --<Critical> -- 2014-02-27 15:56:22 -- Exception:
System.IndexOutOfRangeException
Level 1) Index was outside the bounds of the array.
StackTrace for Level 1:
at SwitchKing.Server.BusinessAccess.Invocation.EventQueueAccess.DeviceEventEntity.GetExpiredEvents()
at SwitchKing.Server.BusinessAccess.Invocation.EventQueueAccess.DeviceEventEntity.HandleExpiredEvents(DeviceEntity& devAccess, ExecutionQueueAccess& execAccess, ScenarioEntity& scenarioAccess, ScenariosDevicesEntity& scenariosDevicesAccess, IList`1& retryStorage, Int32& genericSendCount, TimeSpan& genericStateLockPeriod)
at SwitchKing.Server.BusinessAccess.Invocation.EventQueueAccess.DeviceEventEntity.PullAndExecuteEventStackV2(DeviceEntity& devAccess, DeviceTypeEntity& devTypeAccess, DeviceModeEntity& devModeAccess, DeviceActionEntity& devActionAccess, InvocationEngine& engine, ScenarioEntity& scenarioAccess, SystemStateEntity& stateAccess, ScenariosDevicesEntity& scenariosDevicesAccess, ScheduleEntity& calcAccess, ExecutionQueueAccess& execAccess, DataSourceEntity& dsAccess, DataSourceValueEntity& dsvAccess, RuleSetEvaluationAccess& evalAccess, EntityRuleSetEntity& ruleAccess)
at SwitchKing.Server.WinSvcServiceHost.InvocationService.ProcessDeviceEvents()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Cheers!