Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BeatTogether server crash #7

Open
Goobwabber opened this issue Aug 18, 2022 · 2 comments
Open

BeatTogether server crash #7

Goobwabber opened this issue Aug 18, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Goobwabber
Copy link
Owner

Unhandled exception. Unhandled exception. System.InvalidOperationException: Unable to resolve service for type 'BeatTogether.LiteNetLib.Sources.UnconnectedMessageSource' while attempting to activate 'BeatTogether.LiteNetLib.Handlers.BroadcastPacketHandler'.
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateArgumentCallSites(Type serviceType, Type implementationType, CallSiteChain callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite(ResultCache lifetime, Type serviceType, Type implementationType, CallSiteChain callSiteChain)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(ServiceDescriptor descriptor, Type serviceType, CallSiteChain callSiteChain, Int32 slot)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(Type serviceType, CallSiteChain callSiteChain)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateCallSite(Type serviceType, CallSiteChain callSiteChain)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.CreateServiceAccessor(Type serviceType)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
   at BeatTogether.LiteNetLib.LiteNetServer.HandlePacket(EndPoint endPoint, ReadOnlySpan`1 buffer)
   at BeatTogether.LiteNetLib.LiteNetServer.OnReceived(EndPoint endPoint, Memory`1 buffer)
   at AsyncUdp.AsyncUdpServer.ProcessReceiveFrom(SocketAsyncEventArgs e)
   at AsyncUdp.AsyncUdpServer.TryReceive()
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__140_1(Object state)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
System.InvalidOperationException: Unable to resolve service for type 'BeatTogether.LiteNetLib.Sources.UnconnectedMessageSource' while attempting to activate 'BeatTogether.LiteNetLib.Handlers.BroadcastPacketHandler'.
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateArgumentCallSites(Type serviceType, Type implementationType, CallSiteChain callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateConstructorCallSite(ResultCache lifetime, Type serviceType, Type implementationType, CallSiteChain callSiteChain)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(ServiceDescriptor descriptor, Type serviceType, CallSiteChain callSiteChain, Int32 slot)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateExact(Type serviceType, CallSiteChain callSiteChain)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.CreateCallSite(Type serviceType, CallSiteChain callSiteChain)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.CreateServiceAccessor(Type serviceType)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
   at BeatTogether.LiteNetLib.LiteNetServer.HandlePacket(EndPoint endPoint, ReadOnlySpan`1 buffer)
   at BeatTogether.LiteNetLib.LiteNetServer.OnReceived(EndPoint endPoint, Memory`1 buffer)
   at AsyncUdp.AsyncUdpServer.ProcessReceiveFrom(SocketAsyncEventArgs e)
   at AsyncUdp.AsyncUdpServer.TryReceive()
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__140_1(Object state)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
[02:42:40 INF] Dedicated node version: 1.1.1 starting: 199.195.251.114
[02:42:40 INF] Application started. Press Ctrl+C to shut down.
[02:42:40 INF] Hosting environment: Production
[02:42:40 INF] Content root path: /app
@Goobwabber Goobwabber moved this to 📋 Backlog in BeatTogether To-Do Aug 18, 2022
@Goobwabber Goobwabber self-assigned this Aug 18, 2022
@cubicgraphics cubicgraphics moved this from 📋 Backlog to 👀 In review in BeatTogether To-Do Apr 13, 2023
@cubicgraphics
Copy link
Contributor

Unconnected messages should now be handled correctly

@cubicgraphics
Copy link
Contributor

No longer a concern as lnl is no longer used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants