OutOfMemoryException in dotConnect for PostgreSQL Professional 7.16.1514

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
yunzhoucui
Posts: 1
Joined: Thu 21 May 2020 03:34

OutOfMemoryException in dotConnect for PostgreSQL Professional 7.16.1514

Post by yunzhoucui » Thu 21 May 2020 03:45

Hello,

We use PostgreSQL 12.1 and dotConnect for PostgreSQL Professional 7.16.1514.

Our program sometime report following exception and we have to restart when it happen:


Exception occured in Devart.Data.PostgreSql in Void a(Devart.Data.PostgreSql.PgSqlConnection): Exception of type 'System.OutOfMemoryException' was thrown. (stack trace: at Devart.Data.PostgreSql.j.a(PgSqlConnection A_0)
at Devart.Data.PostgreSql.j..ctor(PgSqlConnectionOptions A_0, PgSqlConnection A_1)
at Devart.Data.PostgreSql.ai.a(a4 A_0, Object A_1, DbConnectionBase A_2)
at Devart.Common.DbConnectionFactory.a(DbConnectionPool A_0, a4 A_1, DbConnectionBase A_2)
at Devart.Common.DbConnectionPool.a(DbConnectionBase A_0)
at Devart.Common.DbConnectionPool.GetObject(DbConnectionBase owningConnection)
at Devart.Common.DbConnectionFactory.b(DbConnectionBase A_0)
at Devart.Common.DbConnectionClosed.Open(DbConnectionBase outerConnection)
at Devart.Common.DbConnectionBase.Open()
at Devart.Data.PostgreSql.PgSqlConnection.Open()
at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.<>c.<Open>b__13_0(DbConnection t, DbConnectionInterceptionContext c)
at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext](TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed)
at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.Open(DbConnection connection, DbInterceptionContext interceptionContext)
at System.Data.Entity.Core.EntityClient.EntityConnection.<Open>b__55_0()
at System.Data.Entity.Infrastructure.DefaultExecutionStrategy.Execute(Action operation)
at System.Data.Entity.Core.EntityClient.EntityConnection.Open()
at System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection(Boolean shouldMonitorTransactions)
at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess)
at System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass41_0.<GetResults>b__0()
at System.Data.Entity.Infrastructure.DefaultExecutionStrategy.Execute[TResult](Func`1 operation)
at System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)
at System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__31_0()
at System.Data.Entity.Internal.LazyEnumerator`1.MoveNext()
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
at System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.<>c__14`1.<GetElementFunction>b__14_1(IEnumerable`1 sequence)
at System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.ExecuteSingle[TResult](IEnumerable`1 query, Expression queryRoot)
at System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.System.Linq.IQueryProvider.Execute[TResult](Expression expression)
at System.Data.Entity.Internal.Linq.DbQueryProvider.Execute[TResult](Expression expression)
at System.Linq.Queryable.FirstOrDefault[TSource](IQueryable`1 source)

If anybody meet simular issues? Any suggestions for find the reason? Thanks in advance!

Shalex
Site Admin
Posts: 9164
Joined: Thu 14 Aug 2008 12:44

Re: OutOfMemoryException in dotConnect for PostgreSQL Professional 7.16.1514

Post by Shalex » Wed 27 May 2020 18:53

Please use some .NET memory profiler to look for a memory leak in your application. Tell us your findings.

Post Reply