Pustalorc / PlayerInfoLib

Adds a more advanced/detailed investigate command and provides an api for other plugin to get players
1 stars 6 forks source link

Player Connected - System.ObjectDisposedException: Instances cannot be resolved and nested lifetimes cannot be created from this LifetimeScope as it (or one of its parent scopes) has already been disposed. #6

Closed Kamycz3q closed 2 years ago

Kamycz3q commented 2 years ago

[19:18:18 INF][SDG.Unturned] Connecting: PlayerID: 76561198288846719 Name: Actiz77 Character: skrrrrrrrrrrrr [19:18:18 ERR][] Exception occured in task "PlayerInfoLib_PlayerConnected" System.ObjectDisposedException: Instances cannot be resolved and nested lifetimes cannot be created from this LifetimeScope as it (or one of its parent scopes) has already been disposed. at Autofac.Core.Lifetime.LifetimeScope.CheckNotDisposed () [0x00013] in :0 at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent (Autofac.ResolveRequest request) [0x0000e] in :0 at Autofac.ResolutionExtensions.TryResolveService (Autofac.IComponentContext context, Autofac.Core.Service service, System.Collections.Generic.IEnumerable1[T] parameters, System.Object& instance) [0x0002e] in <f5dc2e4fd74b4e81b9ed3a744f93b033>:0 at Autofac.ResolutionExtensions.ResolveService (Autofac.IComponentContext context, Autofac.Core.Service service, System.Collections.Generic.IEnumerable1[T] parameters) [0x00030] in :0 at Autofac.ResolutionExtensions.Resolve (Autofac.IComponentContext context, System.Type serviceType, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00007] in :0 at Autofac.ResolutionExtensions.Resolve (Autofac.IComponentContext context, System.Type serviceType) [0x00000] in :0 at Autofac.Extensions.DependencyInjection.AutofacServiceProvider.GetRequiredService (System.Type serviceType) [0x00000] in :0 at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService (System.IServiceProvider provider, System.Type serviceType) [0x0002c] in :0 at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T] (System.IServiceProvider provider) [0x0000e] in :0 at Pustalorc.PlayerInfoLib.Unturned.UserEventsListener+<>cDisplayClass3_0+<b0>d.MoveNext () [0x001f1] in <79057f0510d3484bbe5ffab3aaa10475>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in :0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in :0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in :0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in :0 at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in :0 at OpenMod.Core.Helpers.AsyncHelper+<>cDisplayClass5_0+<b0>d.MoveNext () [0x0006a] in <17e340bc5aa34a3c9a8ddfc2726e36a1>:0

The database and plugin is loaded correctly [19:18:00 INF][Pustalorc.PlayerInfoLib.Unturned.PlayerInfoLibrary] [loading] Player Info Library Unturned v3.3.0 [19:18:02 INF][Microsoft.EntityFrameworkCore.Migrations] No migrations were applied. The database is already up to date. [19:18:02 INF][Pustalorc.PlayerInfoLib.Unturned.PlayerInfoLibrary] Player Info Library for Unturned by Pustalorc was loaded correctly.

Any fix or help?

Kamycz3q commented 2 years ago

nice help :D

Pustalorc commented 2 years ago

All of this was handled on discord for the most part, not to mention github refused to send me notifications about the created issues on this project.

Try the latest build of the plugin, it should solve this. v3.6.1