Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.18.0 causes Stack overflow #5369

Closed
mbursill opened this issue Sep 9, 2024 · 1 comment · Fixed by #5370
Closed

Version 1.18.0 causes Stack overflow #5369

mbursill opened this issue Sep 9, 2024 · 1 comment · Fixed by #5370
Assignees
Labels
generator Issues or improvements relater to generation capabilities. priority:p0 Blocking issue. Loss of critical functions eg security/privacy violation. Bug SLA<=48hrs type:bug A broken experience type:regression A bug from previous release
Milestone

Comments

@mbursill
Copy link

mbursill commented Sep 9, 2024

Using a command like this:

kiota generate --co -l typescript -c MyClientV1 -o ./src/myApiSdk -d c:/projects/myApi/myApi.v1.swagger.json

This is new to 1.18.0. It generated successfully with 1.17.0.

Warning: the TypeScript language is in preview (Preview) some features are not fully supported and source breaking changes will happen with future updates.
Stack overflow.
Repeat 1057 times:
--------------------------------
   at System.Linq.Enumerable.SequenceEqual[[System.Collections.Generic.KeyValuePair`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.__Canon,System.__Canon>>, System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.__Canon,System.__Canon>>, System.Collections.Generic.IEqualityComparer`1<System.Collections.Generic.KeyValuePair`2<System.__Canon,System.__Canon>>)
   at Kiota.Builder.Validation.OpenApiSchemaComparer.EqualsInternal(Microsoft.OpenApi.Models.OpenApiSchema, Microsoft.OpenApi.Models.OpenApiSchema)
   at Kiota.Builder.Validation.OpenApiSchemaComparer.Equals(Microsoft.OpenApi.Models.OpenApiSchema, Microsoft.OpenApi.Models.OpenApiSchema)
   at Kiota.Builder.Validation.KeyValueComparer`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Equals(System.Collections.Generic.KeyValuePair`2<System.__Canon,System.__Canon>, System.Collections.Generic.KeyValuePair`2<System.__Canon,System.__Canon>)
--------------------------------
   at System.Linq.Enumerable.SequenceEqual[[System.Collections.Generic.KeyValuePair`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.__Canon,System.__Canon>>, System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.__Canon,System.__Canon>>, System.Collections.Generic.IEqualityComparer`1<System.Collections.Generic.KeyValuePair`2<System.__Canon,System.__Canon>>)
   at Kiota.Builder.Validation.OpenApiSchemaComparer.EqualsInternal(Microsoft.OpenApi.Models.OpenApiSchema, Microsoft.OpenApi.Models.OpenApiSchema)
   at Kiota.Builder.Validation.OpenApiSchemaComparer.EqualsInternal(Microsoft.OpenApi.Models.OpenApiSchema, Microsoft.OpenApi.Models.OpenApiSchema)
   at Kiota.Builder.Validation.OpenApiSchemaComparer.Equals(Microsoft.OpenApi.Models.OpenApiSchema, Microsoft.OpenApi.Models.OpenApiSchema)
   at Kiota.Builder.Validation.KeyValueComparer`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Equals(System.Collections.Generic.KeyValuePair`2<System.__Canon,System.__Canon>, System.Collections.Generic.KeyValuePair`2<System.__Canon,System.__Canon>)
   at System.Linq.Enumerable.SequenceEqual[[System.Collections.Generic.KeyValuePair`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.__Canon,System.__Canon>>, System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.__Canon,System.__Canon>>, System.Collections.Generic.IEqualityComparer`1<System.Collections.Generic.KeyValuePair`2<System.__Canon,System.__Canon>>)
   at Kiota.Builder.Validation.OpenApiSchemaComparer.EqualsInternal(Microsoft.OpenApi.Models.OpenApiSchema, Microsoft.OpenApi.Models.OpenApiSchema)
   at Kiota.Builder.Validation.OpenApiSchemaComparer.Equals(Microsoft.OpenApi.Models.OpenApiSchema, Microsoft.OpenApi.Models.OpenApiSchema)
   at System.Linq.Lookup`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].GetGrouping(System.__Canon, Boolean)
   at System.Linq.Lookup`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Create(System.Collections.Generic.IEnumerable`1<System.__Canon>, System.Func`2<System.__Canon,System.__Canon>, System.Collections.Generic.IEqualityComparer`1<System.__Canon>)
   at System.Linq.GroupedEnumerable`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].GetCount(Boolean)
   at Kiota.Builder.Validation.DivergentResponseSchema+<>c__DisplayClass2_0.<.ctor>b__0(Microsoft.OpenApi.Validations.IValidationContext, Microsoft.OpenApi.Models.OpenApiOperation)
   at Microsoft.OpenApi.Validations.ValidationRule`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Evaluate(Microsoft.OpenApi.Validations.IValidationContext, System.Object)
   at Microsoft.OpenApi.Validations.OpenApiValidator.Validate(System.Object, System.Type)
   at Microsoft.OpenApi.Validations.OpenApiValidator.Validate[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.__Canon)
   at Microsoft.OpenApi.Validations.OpenApiValidator.Visit(Microsoft.OpenApi.Models.OpenApiOperation)
   at Microsoft.OpenApi.Services.OpenApiWalker.Walk(Microsoft.OpenApi.Models.OpenApiOperation)
   at Microsoft.OpenApi.Services.OpenApiWalker+<>c__DisplayClass21_0.<Walk>b__0()
   at Microsoft.OpenApi.Services.OpenApiWalker.Walk(System.String, System.Action)
   at Microsoft.OpenApi.Services.OpenApiWalker.Walk(System.Collections.Generic.IDictionary`2<Microsoft.OpenApi.Models.OperationType,Microsoft.OpenApi.Models.OpenApiOperation>)
   at Microsoft.OpenApi.Services.OpenApiWalker.Walk(Microsoft.OpenApi.Models.OpenApiPathItem)
   at Microsoft.OpenApi.Services.OpenApiWalker+<>c__DisplayClass8_0.<Walk>b__0()
   at Microsoft.OpenApi.Services.OpenApiWalker.Walk(System.String, System.Action)
   at Microsoft.OpenApi.Services.OpenApiWalker.Walk(Microsoft.OpenApi.Models.OpenApiPaths)
   at Microsoft.OpenApi.Services.OpenApiWalker+<>c__DisplayClass4_0.<Walk>b__2()
   at Microsoft.OpenApi.Services.OpenApiWalker.Walk(System.String, System.Action)
   at Microsoft.OpenApi.Services.OpenApiWalker.Walk(Microsoft.OpenApi.Models.OpenApiDocument)
   at Microsoft.OpenApi.Services.OpenApiWalker.Walk(Microsoft.OpenApi.Interfaces.IOpenApiElement)
   at Microsoft.OpenApi.Extensions.OpenApiElementExtensions.Validate(Microsoft.OpenApi.Interfaces.IOpenApiElement, Microsoft.OpenApi.Validations.ValidationRuleSet)
   at Microsoft.OpenApi.Readers.OpenApiYamlDocumentReader+<ReadAsync>d__3.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.OpenApi.Readers.OpenApiYamlDocumentReader+<ReadAsync>d__3, Microsoft.OpenApi.Readers, Version=1.6.19.0, Culture=neutral, PublicKeyToken=3f5743946376f042]](<ReadAsync>d__3 ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Microsoft.OpenApi.Readers.OpenApiYamlDocumentReader+<ReadAsync>d__3, Microsoft.OpenApi.Readers, Version=1.6.19.0, Culture=neutral, PublicKeyToken=3f5743946376f042]](<ReadAsync>d__3 ByRef)
   at Microsoft.OpenApi.Readers.OpenApiYamlDocumentReader.ReadAsync(SharpYaml.Serialization.YamlDocument, System.Threading.CancellationToken)
   at Microsoft.OpenApi.Readers.OpenApiTextReaderReader+<ReadAsync>d__3.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.OpenApi.Readers.OpenApiTextReaderReader+<ReadAsync>d__3, Microsoft.OpenApi.Readers, Version=1.6.19.0, Culture=neutral, PublicKeyToken=3f5743946376f042]](<ReadAsync>d__3 ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Microsoft.OpenApi.Readers.OpenApiTextReaderReader+<ReadAsync>d__3, Microsoft.OpenApi.Readers, Version=1.6.19.0, Culture=neutral, PublicKeyToken=3f5743946376f042]](<ReadAsync>d__3 ByRef)
   at Microsoft.OpenApi.Readers.OpenApiTextReaderReader.ReadAsync(System.IO.TextReader, System.Threading.CancellationToken)
   at Microsoft.OpenApi.Readers.OpenApiStreamReader+<ReadAsync>d__3.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.OpenApi.Readers.OpenApiStreamReader+<ReadAsync>d__3, Microsoft.OpenApi.Readers, Version=1.6.19.0, Culture=neutral, PublicKeyToken=3f5743946376f042]](<ReadAsync>d__3 ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Microsoft.OpenApi.Readers.OpenApiStreamReader+<ReadAsync>d__3, Microsoft.OpenApi.Readers, Version=1.6.19.0, Culture=neutral, PublicKeyToken=3f5743946376f042]](<ReadAsync>d__3 ByRef)
   at Microsoft.OpenApi.Readers.OpenApiStreamReader.ReadAsync(System.IO.Stream, System.Threading.CancellationToken)
   at Kiota.Builder.OpenApiDocumentDownloadService+<GetDocumentFromStreamAsync>d__5.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Kiota.Builder.OpenApiDocumentDownloadService+<GetDocumentFromStreamAsync>d__5, Kiota.Builder, Version=1.18.0.0, Culture=neutral, PublicKeyToken=3f5743946376f042]](<GetDocumentFromStreamAsync>d__5 ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Kiota.Builder.OpenApiDocumentDownloadService+<GetDocumentFromStreamAsync>d__5, Kiota.Builder, Version=1.18.0.0, Culture=neutral, PublicKeyToken=3f5743946376f042]](<GetDocumentFromStreamAsync>d__5 ByRef)
   at Kiota.Builder.OpenApiDocumentDownloadService.GetDocumentFromStreamAsync(System.IO.Stream, Kiota.Builder.Configuration.GenerationConfiguration, Boolean, System.Threading.CancellationToken)
   at Kiota.Builder.KiotaBuilder.CreateOpenApiDocumentAsync(System.IO.Stream, Boolean, System.Threading.CancellationToken)
   at Kiota.Builder.KiotaBuilder+<GetTreeNodeInternalAsync>d__15.MoveNext()
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.ValueTuple`3[[System.Int32, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Kiota.Builder.KiotaBuilder+<GetTreeNodeInternalAsync>d__15, Kiota.Builder, Version=1.18.0.0, Culture=neutral, PublicKeyToken=3f5743946376f042]].ExecutionContextCallback(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.ValueTuple`3[[System.Int32, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Kiota.Builder.KiotaBuilder+<GetTreeNodeInternalAsync>d__15, Kiota.Builder, Version=1.18.0.0, Culture=neutral, PublicKeyToken=3f5743946376f042]].MoveNext(System.Threading.Thread)     
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.ValueTuple`3[[System.Int32, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Kiota.Builder.KiotaBuilder+<GetTreeNodeInternalAsync>d__15, Kiota.Builder, Version=1.18.0.0, Culture=neutral, PublicKeyToken=3f5743946376f042]].MoveNext()
   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean)
   at System.Threading.Tasks.Task.RunContinuations(System.Object)
   at System.Threading.Tasks.Task`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].TrySetResult(System.__Canon)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].SetExistingTaskResult(System.Threading.Tasks.Task`1<System.__Canon>, System.__Canon)
   at Kiota.Builder.KiotaBuilder+<LoadStreamAsync>d__34.MoveNext()
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Kiota.Builder.KiotaBuilder+<LoadStreamAsync>d__34, Kiota.Builder, Version=1.18.0.0, Culture=neutral, PublicKeyToken=3f5743946376f042]].ExecutionContextCallback(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Kiota.Builder.KiotaBuilder+<LoadStreamAsync>d__34, Kiota.Builder, Version=1.18.0.0, Culture=neutral, PublicKeyToken=3f5743946376f042]].MoveNext(System.Threading.Thread)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Kiota.Builder.KiotaBuilder+<LoadStreamAsync>d__34, Kiota.Builder, Version=1.18.0.0, Culture=neutral, PublicKeyToken=3f5743946376f042]].MoveNext()
   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean)
   at System.Threading.Tasks.Task.RunContinuations(System.Object)
   at System.Threading.Tasks.Task`1[[System.ValueTuple`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].TrySetResult(System.ValueTuple`2<System.__Canon,Boolean>)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.ValueTuple`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].SetExistingTaskResult(System.Threading.Tasks.Task`1<System.ValueTuple`2<System.__Canon,Boolean>>, System.ValueTuple`2<System.__Canon,Boolean>)
   at Kiota.Builder.OpenApiDocumentDownloadService+<LoadStreamAsync>d__4.MoveNext()
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.ValueTuple`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Kiota.Builder.OpenApiDocumentDownloadService+<LoadStreamAsync>d__4, Kiota.Builder, Version=1.18.0.0, Culture=neutral, PublicKeyToken=3f5743946376f042]].ExecutionContextCallback(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.ValueTuple`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Kiota.Builder.OpenApiDocumentDownloadService+<LoadStreamAsync>d__4, Kiota.Builder, Version=1.18.0.0, Culture=neutral, PublicKeyToken=3f5743946376f042]].MoveNext(System.Threading.Thread)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.ValueTuple`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Kiota.Builder.OpenApiDocumentDownloadService+<LoadStreamAsync>d__4, Kiota.Builder, Version=1.18.0.0, Culture=neutral, PublicKeyToken=3f5743946376f042]].MoveNext()
   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean)
   at System.Threading.Tasks.Task.RunContinuations(System.Object)
   at System.Threading.Tasks.Task`1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].TrySetResult(System.Threading.Tasks.VoidTaskResult)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].SetExistingTaskResult(System.Threading.Tasks.Task`1<System.Threading.Tasks.VoidTaskResult>, System.Threading.Tasks.VoidTaskResult)
   at System.IO.Strategies.BufferedFileStreamStrategy+<CopyToAsyncCore>d__57.MoveNext()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.IO.Strategies.BufferedFileStreamStrategy+<CopyToAsyncCore>d__57, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyTok   at System.IO.Strategies.BufferedFileStreamStrategy+<CopyToAsyncCore>d__57.MoveNext()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.IO.Strategies.BufferedFileStreamStrategy+<CopyToAsyncCore>d__57, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext(System.Threading.Thread)
   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean)
   at System.Threading.Tasks.Task.RunContinuations(System.Object)
   at System.Threading.Tasks.Task`1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].TrySetResult(System.Threading.Tasks.VoidTaskResult)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].SetExistingTaskResult(System.Threading.Tasks.Task`1<System.Threading.Tasks.VoidTaskResult>, System.Threading.Tasks.VoidTaskResult)
   at System.IO.Stream+<<CopyToAsync>g__Core|27_0>d.MoveNext()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.IO.Stream+<<CopyToAsync>g__Core|27_0>d, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext(System.Threading.Thread)
   at System.Threading.AsyncOverSyncWithIoCancellation+<InvokeAsync>d__8`2[[System.ValueTuple`4[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Memory`1[[System.Byte, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int32, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart()
@mbursill mbursill changed the title Version 1.8.0 causes Stack overflow Version 1.18.0 causes Stack overflow Sep 9, 2024
@baywet baywet transferred this issue from microsoft/kiota-typescript Sep 9, 2024
@baywet baywet added type:bug A broken experience generator Issues or improvements relater to generation capabilities. type:regression A bug from previous release priority:p0 Blocking issue. Loss of critical functions eg security/privacy violation. Bug SLA<=48hrs labels Sep 9, 2024
@baywet baywet moved this from Needs Triage 🔍 to In Review 💭 in Kiota Sep 9, 2024
@baywet baywet added this to the Kiota v1.18.1 milestone Sep 9, 2024
@baywet
Copy link
Member

baywet commented Sep 9, 2024

Hi @mbursill
Thank you for using kiota and for reaching out.

I've authored #5370 to address this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
generator Issues or improvements relater to generation capabilities. priority:p0 Blocking issue. Loss of critical functions eg security/privacy violation. Bug SLA<=48hrs type:bug A broken experience type:regression A bug from previous release
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants