DryIoc: 4.1.0 Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.

DryIoc 4.1.0 is throwing exception for load test.

See updated pull request to reproduce the problem: https://github.com/dadhi/DryIoc/pull/165

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.

DryIoc.dll!DryIoc.Interpreter.InterpretGetScopedViaFactoryDelegateNoDisposalIndex(DryIoc.IResolverContext resolver, FastExpressionCompiler.LightExpression.MethodCallExpression callExpr, object paramExprs, object paramValues, DryIoc.Interpreter.ParentLambdaArgs parentArgs, bool useFec) Line 3284
	at C:\git\DryIoc\src\DryIoc\Container.cs(3284)
DryIoc.dll!DryIoc.Interpreter.TryInterpretMethodCall(DryIoc.IResolverContext r, FastExpressionCompiler.LightExpression.Expression expr, object paramExprs, object paramValues, DryIoc.Interpreter.ParentLambdaArgs parentArgs, bool useFec, ref object result) Line 2996
	at C:\git\DryIoc\src\DryIoc\Container.cs(2996)
DryIoc.dll!DryIoc.Interpreter.TryInterpret(DryIoc.IResolverContext r, FastExpressionCompiler.LightExpression.Expression expr, object paramExprs, object paramValues, DryIoc.Interpreter.ParentLambdaArgs parentArgs, bool useFec, out object result) Line 2653
	at C:\git\DryIoc\src\DryIoc\Container.cs(2653)
DryIoc.dll!DryIoc.Interpreter.TryInterpret(DryIoc.IResolverContext r, FastExpressionCompiler.LightExpression.Expression expr, object paramExprs, object paramValues, DryIoc.Interpreter.ParentLambdaArgs parentArgs, bool useFec, out object result) Line 2658
	at C:\git\DryIoc\src\DryIoc\Container.cs(2658)
DryIoc.dll!DryIoc.Interpreter.TryInterpret(DryIoc.IResolverContext r, FastExpressionCompiler.LightExpression.Expression expr, object paramExprs, object paramValues, DryIoc.Interpreter.ParentLambdaArgs parentArgs, bool useFec, out object result) Line 2614
	at C:\git\DryIoc\src\DryIoc\Container.cs(2614)
DryIoc.dll!DryIoc.Interpreter.InterpretGetNameScopedViaFactoryDelegate(DryIoc.IResolverContext r, FastExpressionCompiler.LightExpression.MethodCallExpression callExpr, object paramExprs, object paramValues, DryIoc.Interpreter.ParentLambdaArgs parentArgs, bool useFec) Line 3447
	at C:\git\DryIoc\src\DryIoc\Container.cs(3447)
DryIoc.dll!DryIoc.Interpreter.TryInterpretMethodCall(DryIoc.IResolverContext r, FastExpressionCompiler.LightExpression.Expression expr, object paramExprs, object paramValues, DryIoc.Interpreter.ParentLambdaArgs parentArgs, bool useFec, ref object result) Line 3008
	at C:\git\DryIoc\src\DryIoc\Container.cs(3008)
DryIoc.dll!DryIoc.Interpreter.TryInterpret(DryIoc.IResolverContext r, FastExpressionCompiler.LightExpression.Expression expr, object paramExprs, object paramValues, DryIoc.Interpreter.ParentLambdaArgs parentArgs, bool useFec, out object result) Line 2653
	at C:\git\DryIoc\src\DryIoc\Container.cs(2653)
DryIoc.dll!DryIoc.Interpreter.TryInterpret(DryIoc.IResolverContext r, FastExpressionCompiler.LightExpression.Expression expr, object paramExprs, object paramValues, DryIoc.Interpreter.ParentLambdaArgs parentArgs, bool useFec, out object result) Line 2658
	at C:\git\DryIoc\src\DryIoc\Container.cs(2658)
DryIoc.dll!DryIoc.Interpreter.TryInterpret(DryIoc.IResolverContext r, FastExpressionCompiler.LightExpression.Expression expr, object paramExprs, object paramValues, DryIoc.Interpreter.ParentLambdaArgs parentArgs, bool useFec, out object result) Line 2645
	at C:\git\DryIoc\src\DryIoc\Container.cs(2645)
DryIoc.dll!DryIoc.Interpreter.TryInterpretAndUnwrapContainerException(DryIoc.IResolverContext r, FastExpressionCompiler.LightExpression.Expression expr, bool useFec, out object result) Line 2510
	at C:\git\DryIoc\src\DryIoc\Container.cs(2510)
DryIoc.dll!DryIoc.Container.ResolveAndCacheKeyed(System.Type serviceType, object serviceKey, DryIoc.IfUnresolved ifUnresolved, object scopeName, System.Type requiredServiceType, DryIoc.Request preResolveParent, object[] args) Line 433
	at C:\git\DryIoc\src\DryIoc\Container.cs(433)
DryIoc.dll!DryIoc.Container.ResolveAndCache(System.Type serviceType, DryIoc.IfUnresolved ifUnresolved) Line 284
	at C:\git\DryIoc\src\DryIoc\Container.cs(284)
DryIoc.dll!DryIoc.Container.DryIoc.IResolver.Resolve(System.Type serviceType, DryIoc.IfUnresolved ifUnresolved) Line 267
	at C:\git\DryIoc\src\DryIoc\Container.cs(267)
DryIoc.dll!DryIoc.Resolver.Resolve(DryIoc.IResolver resolver, System.Type serviceType) Line 6996
	at C:\git\DryIoc\src\DryIoc\Container.cs(6996)
LoadTest.exe!LoadTest.Program.IterateInOrder.AnonymousMethod__0() Line 142
	at C:\git\DryIoc\playground\LoadTest\Program.cs(142)
[External Code]

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 2
  • Comments: 22 (22 by maintainers)

Commits related to this issue

Most upvoted comments

Awesome, I’m waiting for next release! 😃