nhibernate-core icon indicating copy to clipboard operation
nhibernate-core copied to clipboard

Nhibernet 4.0.8.4 crash

Open chengang-hub opened this issue 3 years ago • 1 comments

This program .net freamwork 4.5, runs normally most of the time, but occasionally the program crashes, and the reason for the crash is because of “ExpressionProcessor.FindValue” This is Nhibernet source code : image

this is my code : image image image image

image

应用程序: Mall.Host.exe Framework  : v4.0.30319 The process terminated due to an unhandled exception. Exception information: System.Reflection.TargetInvocationException :   System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean) 
在 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[]) 
在 System.Delegate.DynamicInvokeImpl(System.Object[]) 
在 NHibernate.Impl.ExpressionProcessor.FindValue(System.Linq.Expressions.Expression) 
在 NHibernate.Impl.ExpressionProcessor.ProcessSimpleExpression(System.Linq.Expressions.Expression, System.Linq.Expressions.Expression, System.Linq.Expressions.ExpressionType) 
在 NHibernate.Impl.ExpressionProcessor.ProcessSimpleExpression(System.Linq.Expressions.BinaryExpression) 
在 NHibernate.Impl.ExpressionProcessor.ProcessBinaryExpression(System.Linq.Expressions.BinaryExpression) 
在 NHibernate.Impl.ExpressionProcessor.ProcessExpression(System.Linq.Expressions.Expression) 
在 NHibernate.Impl.ExpressionProcessor.ProcessLambdaExpression(System.Linq.Expressions.LambdaExpression) 
在 NHibernate.Impl.ExpressionProcessor.ProcessExpression[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Linq.Expressions.Expression`1<System.Func`2<System.__Canon,Boolean>>) 
在 NHibernate.Criterion.QueryOver`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Add(System.Linq.Expressions.Expression`1<System.Func`2<System.__Canon,Boolean>>) 
在 NHibernate.Criterion.QueryOver`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Where(System.Linq.Expressions.Expression`1<System.Func`2<System.__Canon,Boolean>>) 
在 NHibernate.Criterion.QueryOver`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].NHibernate.IQueryOver<TRoot,TSubType>.Where(System.Linq.Expressions.Expression`1<System.Func`2<System.__Canon,Boolean>>) 
在 Mall.Core.BLLBase`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SearchBase(NHibernate.Criterion.Order[], Mall.Utility.PageInfo, System.Linq.Expressions.Expression`1<System.Func`2<System.__Canon,Boolean>>[]) 
在 Mall.Core.BLLBase`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].First(System.Linq.Expressions.Expression`1<System.Func`2<System.__Canon,NHibernate.Criterion.Order>>, System.Linq.Expressions.Expression`1<System.Func`2<System.__Canon,Boolean>>) 
在 Mall.Business.Leaguer.BLLICCard.LockCard(System.Guid) 
在 Mall.Business.Professional.Leaguer.BLLLeaguerSubCard+<>c__DisplayClass15_0.<AutoLockSubCard>b__1(Mall.Model.Mall_LeaguerSubCard) 
在 Mall.Utility.IEnumerableExtension.Foreach[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Collections.Generic.IEnumerable`1<System.__Canon>, System.Action`1<System.__Canon>) 
在 Mall.Business.Professional.Leaguer.BLLLeaguerSubCard.AutoLockSubCard() 
在 Quartz.Core.JobRunShell.Run() 
在 Quartz.Simpl.SimpleThreadPool+WorkerThread.Run() 
在 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) 
在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) 
在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) 
在 System.Threading.ThreadHelper.ThreadStart() 

chengang-hub avatar Jul 22 '22 07:07 chengang-hub

@chengang-hub this is too old, unfortunately we would not be able to fix it in 4.x branch. I would advise you to upgrade.

hazzik avatar Jul 28 '22 23:07 hazzik