×

Jint.Runtime.StatementsCountOverflowException: The maximum number of statements executed have been reached.
at Jint.Runtime.ExceptionHelper.ThrowStatementsCountOverflowException()
at Jint.Engine.RunBeforeExecuteStatementChecks(Statement statement)
at Jint.Runtime.Interpreter.JintStatementList.Execute()
at Jint.Native.Function.ScriptFunctionInstance.Call(JsValue thisArg, JsValue[] arguments)
at Jint.Native.Array.ArrayInstance.FindWithCallback(JsValue[] arguments, UInt32& index, JsValue& value, Boolean visitUnassigned)
at Jint.Native.Array.ArrayPrototype.Find(JsValue thisObj, JsValue[] arguments)
at Jint.Runtime.Interop.ClrFunctionInstance.Call(JsValue thisObject, JsValue[] arguments)
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal()
at Jint.Runtime.Interpreter.Expressions.JintMemberExpression.EvaluateInternal()
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue()
at Jint.Runtime.Interpreter.Expressions.JintObjectExpression.BuildObjectFast()
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue()
at Jint.Runtime.Interpreter.Statements.JintReturnStatement.ExecuteInternal()
at Jint.Runtime.Interpreter.JintStatementList.Execute()
at Jint.Native.Function.ScriptFunctionInstance.Call(JsValue thisArg, JsValue[] arguments)
at Jint.Native.Array.ArrayInstance.Map(JsValue[] arguments)
at Jint.Native.Array.ArrayPrototype.Map(JsValue thisObj, JsValue[] arguments)
at Jint.Runtime.Interop.ClrFunctionInstance.Call(JsValue thisObject, JsValue[] arguments)
at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal()
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue()
at Jint.Runtime.Interpreter.Expressions.JintObjectExpression.BuildObjectFast()
at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue()
at Jint.Runtime.Interpreter.Statements.JintReturnStatement.ExecuteInternal()
at Jint.Runtime.Interpreter.JintStatementList.Execute()
at Jint.Native.Function.ScriptFunctionInstance.Call(JsValue thisArg, JsValue[] arguments)
at Raven.Server.Documents.Patch.ScriptRunner.SingleRun.Run(JsonOperationContext jsonCtx, DocumentsOperationContext docCtx, String method, String documentId, Object[] args) in C:\Builds\RavenDB-Stable-4.2\42040\src\Raven.Server\Documents\Patch\ScriptRunner.cs:line 1192
at Raven.Server.Documents.Queries.Results.QueryResultRetrieverBase.InvokeFunction(String methodName, Query query, String documentId, Object[] args) in C:\Builds\RavenDB-Stable-4.2\42040\src\Raven.Server\Documents\Queries\Results\QueryResultRetrieverBase.cs:line 717
at Raven.Server.Documents.Queries.Results.QueryResultRetrieverBase.GetFunctionValue(FieldToFetch fieldToFetch, String documentId, Object[] args) in C:\Builds\RavenDB-Stable-4.2\42040\src\Raven.Server\Documents\Queries\Results\QueryResultRetrieverBase.cs:line 645
at Raven.Server.Documents.Queries.Results.QueryResultRetrieverBase.TryGetValue(FieldToFetch fieldToFetch, Document document, Document luceneDoc, IState state, Dictionary`2 indexFields, Nullable`1 anyDynamicIndexFields, String& key, Object& value) in C:\Builds\RavenDB-Stable-4.2\42040\src\Raven.Server\Documents\Queries\Results\QueryResultRetrieverBase.cs:line 417
at Raven.Server.Documents.Queries.Results.QueryResultRetrieverBase.GetProjectionFromDocument(Document doc, Document luceneDoc, ScoreDoc scoreDoc, FieldsToFetch fieldsToFetch, JsonOperationContext context, IState state) in C:\Builds\RavenDB-Stable-4.2\42040\src\Raven.Server\Documents\Queries\Results\QueryResultRetrieverBase.cs:line 196
at Raven.Server.Documents.Queries.CollectionQueryEnumerable.Enumerator.MoveNext() in C:\Builds\RavenDB-Stable-4.2\42040\src\Raven.Server\Documents\Queries\CollectionQueryEnumerable.cs:line 171
at Raven.Server.Documents.Queries.Dynamic.CollectionQueryRunner.ExecuteCollectionQuery(QueryResultServerSide`1 resultToFill, IndexQueryServerSide query, String collection, DocumentsOperationContext context, Boolean pulseReadingTransaction, CancellationToken cancellationToken) in C:\Builds\RavenDB-Stable-4.2\42040\src\Raven.Server\Documents\Queries\Dynamic\CollectionQueryRunner.cs:line 180
at Raven.Server.Documents.Queries.Dynamic.CollectionQueryRunner.ExecuteQuery(IndexQueryServerSide query, DocumentsOperationContext documentsContext, Nullable`1 existingResultEtag, OperationCancelToken token) in C:\Builds\RavenDB-Stable-4.2\42040\src\Raven.Server\Documents\Queries\Dynamic\CollectionQueryRunner.cs:line 55
at Raven.Server.Documents.Queries.QueryRunner.ExecuteQuery(IndexQueryServerSide query, DocumentsOperationContext documentsContext, Nullable`1 existingResultEtag, OperationCancelToken token)
at Raven.Server.Documents.Handlers.QueriesHandler.Query(DocumentsOperationContext context, OperationCancelToken token, RequestTimeTracker tracker, HttpMethod method, Boolean diagnostics) in C:\Builds\RavenDB-Stable-4.2\42040\src\Raven.Server\Documents\Handlers\QueriesHandler.cs:line 167
at Raven.Server.Documents.Handlers.QueriesHandler.HandleQuery(HttpMethod httpMethod) in C:\Builds\RavenDB-Stable-4.2\42040\src\Raven.Server\Documents\Handlers\QueriesHandler.cs:line 87
at Raven.Server.Routing.RequestRouter.HandlePath(RequestHandlerContext reqCtx) in C:\Builds\RavenDB-Stable-4.2\42040\src\Raven.Server\Routing\RequestRouter.cs:line 196
at Raven.Server.RavenServerStartup.RequestHandler(HttpContext context) in C:\Builds\RavenDB-Stable-4.2\42040\src\Raven.Server\RavenServerStartup.cs:line 247. Response: {"Url":"/databases/ETIS4/queries?queryHash=2252820892311564804","Type":"Jint.Runtime.StatementsCountOverflowException","Message":"The maximum number of statements executed have been reached.","Error":"Jint.Runtime.StatementsCountOverflowException: The maximum number of statements executed have been reached.\r\n at Jint.Runtime.ExceptionHelper.ThrowStatementsCountOverflowException()\r\n at Jint.Engine.RunBeforeExecuteStatementChecks(Statement statement)\r\n at Jint.Runtime.Interpreter.JintStatementList.Execute()\r\n at Jint.Native.Function.ScriptFunctionInstance.Call(JsValue thisArg, JsValue[] arguments)\r\n at Jint.Native.Array.ArrayInstance.FindWithCallback(JsValue[] arguments, UInt32& index, JsValue& value, Boolean visitUnassigned)\r\n at Jint.Native.Array.ArrayPrototype.Find(JsValue thisObj, JsValue[] arguments)\r\n at Jint.Runtime.Interop.ClrFunctionInstance.Call(JsValue thisObject, JsValue[] arguments)\r\n at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal()\r\n at Jint.Runtime.Interpreter.Expressions.JintMemberExpression.EvaluateInternal()\r\n at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue()\r\n at Jint.Runtime.Interpreter.Expressions.JintObjectExpression.BuildObjectFast()\r\n at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue()\r\n at Jint.Runtime.Interpreter.Statements.JintReturnStatement.ExecuteInternal()\r\n at Jint.Runtime.Interpreter.JintStatementList.Execute()\r\n at Jint.Native.Function.ScriptFunctionInstance.Call(JsValue thisArg, JsValue[] arguments)\r\n at Jint.Native.Array.ArrayInstance.Map(JsValue[] arguments)\r\n at Jint.Native.Array.ArrayPrototype.Map(JsValue thisObj, JsValue[] arguments)\r\n at Jint.Runtime.Interop.ClrFunctionInstance.Call(JsValue thisObject, JsValue[] arguments)\r\n at Jint.Runtime.Interpreter.Expressions.JintCallExpression.EvaluateInternal()\r\n at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue()\r\n at Jint.Runtime.Interpreter.Expressions.JintObjectExpression.BuildObjectFast()\r\n at Jint.Runtime.Interpreter.Expressions.JintExpression.GetValue()\r\n at Jint.Runtime.Interpreter.Statements.JintReturnStatement.ExecuteInternal()\r\n at Jint.Runtime.Interpreter.JintStatementList.Execute()\r\n at Jint.Native.Function.ScriptFunctionInstance.Call(JsValue thisArg, JsValue[] arguments)\r\n at Raven.Server.Documents.Patch.ScriptRunner.SingleRun.Run(JsonOperationContext jsonCtx, DocumentsOperationContext docCtx, String method, String documentId, Object[] args) in C:\\Builds\\RavenDB-Stable-4.2\\42040\\src\\Raven.Server\\Documents\\Patch\\ScriptRunner.cs:line 1192\r\n at Raven.Server.Documents.Queries.Results.QueryResultRetrieverBase.InvokeFunction(String methodName, Query query, String documentId, Object[] args) in C:\\Builds\\RavenDB-Stable-4.2\\42040\\src\\Raven.Server\\Documents\\Queries\\Results\\QueryResultRetrieverBase.cs:line 717\r\n at Raven.Server.Documents.Queries.Results.QueryResultRetrieverBase.GetFunctionValue(FieldToFetch fieldToFetch, String documentId, Object[] args) in C:\\Builds\\RavenDB-Stable-4.2\\42040\\src\\Raven.Server\\Documents\\Queries\\Results\\QueryResultRetrieverBase.cs:line 645\r\n at Raven.Server.Documents.Queries.Results.QueryResultRetrieverBase.TryGetValue(FieldToFetch fieldToFetch, Document document, Document luceneDoc, IState state, Dictionary`2 indexFields, Nullable`1 anyDynamicIndexFields, String& key, Object& value) in C:\\Builds\\RavenDB-Stable-4.2\\42040\\src\\Raven.Server\\Documents\\Queries\\Results\\QueryResultRetrieverBase.cs:line 417\r\n at Raven.Server.Documents.Queries.Results.QueryResultRetrieverBase.GetProjectionFromDocument(Document doc, Document luceneDoc, ScoreDoc scoreDoc, FieldsToFetch fieldsToFetch, JsonOperationContext context, IState state) in C:\\Builds\\RavenDB-Stable-4.2\\42040\\src\\Raven.Server\\Documents\\Queries\\Results\\QueryResultRetrieverBase.cs:line 196\r\n at Raven.Server.Documents.Queries.CollectionQueryEnumerable.Enumerator.MoveNext() in C:\\Builds\\RavenDB-Stable-4.2\\42040\\src\\Raven.Server\\Documents\\Queries\\CollectionQueryEnumerable.cs:line 171\r\n at Raven.Server.Documents.Queries.Dynamic.CollectionQueryRunner.ExecuteCollectionQuery(QueryResultServerSide`1 resultToFill, IndexQueryServerSide query, String collection, DocumentsOperationContext context, Boolean pulseReadingTransaction, CancellationToken cancellationToken) in C:\\Builds\\RavenDB-Stable-4.2\\42040\\src\\Raven.Server\\Documents\\Queries\\Dynamic\\CollectionQueryRunner.cs:line 180\r\n at Raven.Server.Documents.Queries.Dynamic.CollectionQueryRunner.ExecuteQuery(IndexQueryServerSide query, DocumentsOperationContext documentsContext, Nullable`1 existingResultEtag, OperationCancelToken token) in C:\\Builds\\RavenDB-Stable-4.2\\42040\\src\\Raven.Server\\Documents\\Queries\\Dynamic\\CollectionQueryRunner.cs:line 55\r\n at Raven.Server.Documents.Queries.QueryRunner.ExecuteQuery(IndexQueryServerSide query, DocumentsOperationContext documentsContext, Nullable`1 existingResultEtag, OperationCancelToken token)\r\n at Raven.Server.Documents.Handlers.QueriesHandler.Query(DocumentsOperationContext context, OperationCancelToken token, RequestTimeTracker tracker, HttpMethod method, Boolean diagnostics) in C:\\Builds\\RavenDB-Stable-4.2\\42040\\src\\Raven.Server\\Documents\\Handlers\\QueriesHandler.cs:line 167\r\n at Raven.Server.Documents.Handlers.QueriesHandler.HandleQuery(HttpMethod httpMethod) in C:\\Builds\\RavenDB-Stable-4.2\\42040\\src\\Raven.Server\\Documents\\Handlers\\QueriesHandler.cs:line 87\r\n at Raven.Server.Routing.RequestRouter.HandlePath(RequestHandlerContext reqCtx) in C:\\Builds\\RavenDB-Stable-4.2\\42040\\src\\Raven.Server\\Routing\\RequestRouter.cs:line 196\r\n at Raven.Server.RavenServerStartup.RequestHandler(HttpContext context) in C:\\Builds\\RavenDB-Stable-4.2\\42040\\src\\Raven.Server\\RavenServerStartup.cs:line 247"}