I am getting exception and Smart client crashes after my pc Idle for a long time Pls Help

Clinet Log

2023-02-18 14:24:28.656+05:30 [     1] INFO       - User suspend (hibernated) the system!
2023-02-18 15:22:56.812+05:30 [     1] INFO       - User resume the system!
2023-02-18 15:22:56.812+05:30 [     1] DEBUG      - Login called allowing unsecure connection
2023-02-18 15:22:56.998+05:30 [     1] ERROR      - ServerCommandController.Login failed, type=VideoOS.Common.CommandApi.CommandAPIInternalException message=Internal error - Access is denied.
2023-02-18 15:22:57.420+05:30 [    25] ERROR      - ServiceChannelClient: Client error occured. Message: Access is denied.
2023-02-18 15:22:57.420+05:30 [    25] DEBUG      - ServiceChannel is switching state. OldState: Running, NewState: RunningError
2023-02-18 15:23:27.435+05:30 [    25] DEBUG      - ServiceChannelClient: Server error occured.
2023-02-18 15:23:27.436+05:30 [    25] DEBUG      - ServiceChannel is switching state. OldState: RunningError, NewState: Running
2023-02-18 15:53:23.704+05:30 [     1] INFO       - User suspend (hibernated) the system!
2023-02-18 16:09:39.794+05:30 [     1] INFO       - User resume the system!
2023-02-18 16:09:39.794+05:30 [     1] DEBUG      - Login called allowing unsecure connection

MIP Log

2023-02-18 15:22:56.991+05:30 [    49] DEBUG      - Error: ConfigurationApiItemWrapper ():ConfigAPI GetItem(): Access is denied.
2023-02-18 15:22:56.991+05:30 [    49] DEBUG      - Debug: MIPItemFolder ():Access is denied.
2023-02-18 15:22:57.106+05:30 [    49] DEBUG      - Error: GetItemConfigurations ():************** Inner exception **************
Exception source:      mscorlib
Exception type:        System.ServiceModel.Security.SecurityAccessDeniedException
Exception message:     Access is denied.
Exception target site: HandleReturnMessage
 
Server stack trace: 
   at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
 
Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at VideoOS.ConfigurationApi.ClientService.IConfigurationService.GetItem(String path)
   at VideoOS.Platform.Proxy.ConfigApi.ConfigurationClientDecorator.<>c__DisplayClass4_0.<GetItem>b__0(ConfigurationServiceClient client)
   at VideoOS.Platform.Proxy.ConfigApi.ConfigurationClientDecorator.CallWithRetry[TResult](Func`2 call)
   at VideoOS.Platform.Proxy.ConfigApi.ConfigurationClientDecorator.GetItem(String path)
   at VideoOS.Platform.Proxy.ConfigApi.ConfigurationApiItemWrapper..ctor(ServerId serverId, String path)
   at VideoOS.Platform.ConfigurationItems.IConfigurationChildItem..ctor(ServerId serverId, String path)
 
************** Outer exception **************
Exception source:      VideoOS.Platform
Exception type:        VideoOS.Platform.CommunicationMIPException
Exception message:     Access is denied. - 
Exception target site: .ctor
   at VideoOS.Platform.ConfigurationItems.IConfigurationChildItem..ctor(ServerId serverId, String path)
   at VideoOS.Platform.ConfigurationItems.MIPItemFolder..ctor(ServerId serverId, String path)
   at VideoOS.Platform.Configuration.GetItemConfigurationsBase(ServerId serverId, Item parentItem, Guid itemKind)
 
2023-02-18 15:22:59.137+05:30 [    35] DEBUG      - Debug: MessageHandler ():Inside MessageHandler

I am Using Milestone version 2022R3 and MIPSDK Version also 2022R3.

My Smart client crashed when system is idle for a long time. Pls Help

We are wondering if you call Configuration.Instance.GetItemConfigurations in your plugin code, and if so, please catch the exception in your code.

Can you reproduce the issue if using one of the samples unmodified? If yes, which sample?

If you don’t call GetItemConfigurations (in your code in the plugin), then can you please let us know how to reproduce the issue? If you debug and find what triggers the exception, please share.