Hello everyone, for a couple of weeks I have noticed something strange on my Personal Environment on O11. First thing I noticed was on Service Center where I couldn't open the Factory session showing this error soon as I pressed to open that section.
"The type initializer for 'System.Collections.Generic.EqualityComparer`1' threw an exception."
But as I didn't use it for those weeks, I thought it was some OutSystems issue that was going on and later on was going to be fixed. Today I went to publish on my Personal Environment and I couldn't, I had this error. While Service Center presents the same behaviour.
Internal Error
The type initializer for 'OutSystems.Model.Implementation.ModelCurrentElementsOrder' threw an exception.
Details : System.TypeInitializationException: The type initializer for 'OutSystems.Model.Implementation.ModelCurrentElementsOrder' threw an exception. ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at OutSystems.Model.Implementation.ModelCurrentElementsOrder..ctor()
at OutSystems.Model.Implementation.ModelCurrentElementsOrder..cctor()
--- End of inner exception stack trace ---
at OutSystems.Model.Implementation.Oml.OmlHeader..ctor(String )
at OutSystems.Model.Implementation.Oml.Oml.GetOmlHeader(Stream inputStream)
at OutSystems.Model.Implementation.Oml.Oml.GetOmlHeader(Byte[] oml)
at OutSystems.HubEdition.DeploymentController.Compiler.PublishEspaceAsync(ICompilerContext context, EspaceToPublish espaceToPublish, EspacePublishOptions options, Int32 userId, String username, Boolean fromIDE, ServerAuditContext auditContext, EspacePublishAsyncResult& result)
Exception Details:
[1] Internal Error: The type initializer for 'OutSystems.Model.Implementation.ModelCurrentElementsOrder' threw an exception.
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
at System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink.SyncProcessMessage(IMessage reqMsg)
at System.Runtime.Remoting.Messaging.ServerContextTerminatorSink.SyncProcessMessage(IMessage reqMsg)
at System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessageCallback(Object[] args)
at System.Runtime.Remoting.Channels.ChannelServices.DispatchMessage(IServerChannelSinkStack sinkStack, IMessage msg, IMessage& replyMsg)
at cs#ytvjtiyh.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)
at System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)
at OutSystems.HubEdition.ServerCommon.Communication.Compatibility.ClientIPServerSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)
at OutSystems.Server.Infrastructure.Remoting.Communication.Authentication.ServerAuthenticationSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)
at System.Runtime.Remoting.Channels.Tcp.TcpServerTransportSink.ServiceRequest(Object state)
at System.Runtime.Remoting.Channels.SocketHandler.ProcessRequestNow()
at System.Runtime.Remoting.Channels.SocketHandler.BeginReadMessageCallback(IAsyncResult ar)
at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext 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.Net.ContextAwareResult.Complete(IntPtr userToken)
at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
[2] System.TypeInitializationException: The type initializer for 'OutSystems.Model.Implementation.ModelCurrentElementsOrder' threw an exception. ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at OutSystems.HubEdition.DeploymentController.Compiler.PublishEspaceAsync(ICompilerContext context, EspaceToPublish espaceToPublish, EspacePublishOptions options, Int32 userId, String username, Boolean fromIDE, ServerAuditContext auditContext, EspacePublishAsyncResult& result)[3] System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
I checked lifetime and I do have 1GB of space left, so I am really wondering what's going on and if someone had a similar issue and how to fix it. Thank you all in advance.
Hello @Diogo Ferreira,
I think you should open a Support ticket here, as I believe the issue is not on your side.
Hello @Sherif El-Habibi !!
I thought that was the case but before doing that I wanted to check here if someone had a solution that wasn't opening a Support Ticket!
Thank you for your quick answer!!