HandheldCompanion icon indicating copy to clipboard operation
HandheldCompanion copied to clipboard

Controller Service crashes when Ayaneo controller is disabled from Ayaspace

Open CasperH2O opened this issue 3 years ago • 2 comments
trafficstars

To reproduce, disable controller from Ayaspace, start Controller Service either from Visual Studio or GUI.

GUI shows a loading circle and then no started Controller Service, starting from Visual Studio the following stack trace is shown:

[14:46:48 INF] ControllerService, Version=0.9.2.0, Culture=neutral, PublicKeyToken=null (0.9.2.0) [14:46:49 INF] HideDevice hiding USB\VID_045E&PID_02EA&IG_00\00&00&00000E45848BED7E [14:46:49 INF] HideDevice hiding HID\VID_045E&PID_02EA&IG_00\8&6D38B9C&0&0000 [14:46:50 INF] XInputGirometer initialised. Report interval set to 10ms [14:46:50 INF] XInputAccelerometer initialised. Report interval set to 10ms [14:46:50 INF] XInputInclinometer initialised. Report interval set to 10ms Unhandled exception. System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index') at System.Collections.Generic.List1.get_Item(Int32 index) at ControllerService.ControllerService..ctor(ILogger1 logger, IHostApplicationLifetime lifetime) in C:\Users\caspe\Source\Repos\ControllerService\ControllerService\ControllerService.cs:line 119 at System.RuntimeMethodHandle.InvokeMethod(Object target, Span1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitIEnumerable(IEnumerableCallSite enumerableCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType) at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory) at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope) at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType) at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider) at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host) at ControllerService.Program.Main(String[] args) in C:\Users\caspe\Source\Repos\ControllerService\ControllerService\Program.cs:line 38 C:\Users\caspe\Source\Repos\ControllerService\bin\ControllerService.exe (process 4956) exited with code -532462766. Press any key to close this window . . . `

CasperH2O avatar Mar 19 '22 13:03 CasperH2O

@CasperH2O can you test this?

Valkirie avatar Jun 22 '22 10:06 Valkirie

@Valkirie

The service exits more or less gracefully:

image

The GUI crashes, nothing in the log, no crashdump (even with Debug running)

CasperH2O avatar Jun 22 '22 10:06 CasperH2O

Tried to reproduce this, but the latest Ayaspace does not allow me to disconnect the hardware controller anymore. The button is there, it just doesn't do much...

CasperH2O avatar May 31 '23 06:05 CasperH2O

Closing this one, had no users report this issue, can't reproduce myself, as in unable to recreate the original circumstances.

CasperH2O avatar Jul 03 '23 12:07 CasperH2O