Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Process is terminating due to StackOverflowException #6372

Closed
frankzye opened this issue Sep 25, 2018 · 7 comments
Closed

Process is terminating due to StackOverflowException #6372

frankzye opened this issue Sep 25, 2018 · 7 comments

Comments

@frankzye
Copy link

frankzye commented Sep 25, 2018

I came an error Unhandled Exception: System.InvalidOperationException: A suitable constructor for type 'Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlExecutionStrategyFactory' could not be located. Ensure the type is concrete and services are registered for all parameters of a public constructor. so
I added the following line to RD.xml,
<Assembly Name="Npgsql.EntityFrameworkCore.PostgreSQL"> <Type Name="Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlExecutionStrategyFactory" Dynamic="Required All"/> </Assembly>, but when I compile, it throw an error "Process is terminating due to StackOverflowException", microsoft.dotnet.ilcompiler\1.0.0-alpha-26919-01\build\Microsoft.NETCore.Native.targets(200,5): error MSB3073 xxx runtime.win-x64.microsoft.dotnet.ilcompiler\1.0.0-alpha-26919-01\tools\ilc" @"obj\release\netcoreapp2.1\win-x64\native\DataExplorer.ilc.rsp exit.

@MichalStrehovsky
Copy link
Member

This looks like generic recursion. It was discussed in #6052 and fixed by factoring things differently in Npgsql. @YohDeadfall do you know if latest NuGet packages of Npgsql have the fix?

@YohDeadfall
Copy link

It wasn't included to version 4.0.3 because of my mistake (just forgot about it), but it is included into the next patch. For now you can use 4.1.0-ci.1338+sha.c362e1c99 from our unstable NuGet feed.

@frankzye Could you try to use it and report the result?

@frankzye
Copy link
Author

frankzye commented Sep 26, 2018

I still got the same error after I install new packages
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.2.0-preview2-35157" /> <PackageReference Include="Npgsql" Version="4.1.0-ci.1338" /> <PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="2.2.0-ci.1046" />
and Microsoft.EntityFrameworkCore.Storage.RelationalExecutionStrategyFactory also came the same error, when using new packages. @YohDeadfall @MichalStrehovsky

@YohDeadfall
Copy link

Opened npgsql/efcore.pg#653 to track the issue.

@genifycom
Copy link

Just got this one:

Generating compatible native code. To optimize for size or speed, visit https://aka.ms/OptimizeCoreRT

Process is terminating due to StackOverflowException.
xx.nuget\packages\microsoft.dotnet.ilcompiler\1.0.0-alpha-28002-02\build\Microsoft.NETCore.Native.targets(249,5): error MSB3073: The command ""xx.nuget\packages\runtime.win-x64.microsoft.dotnet.ilcompiler\1.0.0-alpha-28002-02\tools\ilc" @"obj\Release\netcoreapp2.1\win-x64\native\BVTagging.ilc.rsp"" exited with code -1073741571. [xx\BVTagging.csproj]

@frankzye frankzye closed this as completed Aug 3, 2019
@TechnikEmpire
Copy link

Any reason why this was closed? I've just encountered this.

@OrbintSoft
Copy link

Same issue, just happened with latest version of CoreRT.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants