Closed JodanJodan closed 11 months ago
Can you try the build from the latest commit here : BetterJoy.zip
It shouldn't crash anymore but you probably have another issue as the 0 size list happened because there was no data received during the calibration. Did you check if your buttons work ? If not, are you using an official nintendo controller ?
Hi @d3xMachina , thank you so much for updating this fork - I really appreciate it!
I tried using the latest commit referenced in the previous message, and an unhandled exception occurred in the application during the final calibration step: Calibrating Sticks min and max position
.
I followed the calibration process for my official Nintendo Joy-Cons, both left and right, by moving the sticks in a circle during the mentioned step.
Error message: Sequence contains no elements
Here are the details:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.InvalidOperationException: Sequence contains no elements
at System.Linq.ThrowHelper.ThrowNoElementsException()
at System.Linq.Enumerable.Max[TSource](IEnumerable`1 source, IComparer`1 comparer)
at System.Linq.Enumerable.Max[TSource](IEnumerable`1 source)
at BetterJoy.MainForm.CalcSticksMinMaxData(Object sender, EventArgs e)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
System.Private.CoreLib
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Private.CoreLib.dll
----------------------------------------
BetterJoy
Assembly Version: 1.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Runtime
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Runtime.dll
----------------------------------------
System.Threading
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Threading.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.52009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.14/System.Windows.Forms.dll
----------------------------------------
System.ComponentModel.Primitives
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.ComponentModel.Primitives.dll
----------------------------------------
System.Windows.Forms.Primitives
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.52009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.14/System.Windows.Forms.Primitives.dll
----------------------------------------
System.Runtime.InteropServices
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Runtime.InteropServices.dll
----------------------------------------
System.Drawing.Primitives
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Drawing.Primitives.dll
----------------------------------------
System.Collections.Specialized
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Collections.Specialized.dll
----------------------------------------
System.Net.NetworkInformation
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Net.NetworkInformation.dll
----------------------------------------
System.Configuration.ConfigurationManager
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.14/System.Configuration.ConfigurationManager.dll
----------------------------------------
System.Collections
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Collections.dll
----------------------------------------
System.Private.Uri
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Private.Uri.dll
----------------------------------------
System.Diagnostics.Process
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Diagnostics.Process.dll
----------------------------------------
Microsoft.Win32.Primitives
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/Microsoft.Win32.Primitives.dll
----------------------------------------
System.Collections.NonGeneric
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Collections.NonGeneric.dll
----------------------------------------
System.Memory
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Memory.dll
----------------------------------------
System.Xml.ReaderWriter
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Xml.ReaderWriter.dll
----------------------------------------
System.Private.Xml
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Private.Xml.dll
----------------------------------------
System.Net.WebClient
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Net.WebClient.dll
----------------------------------------
System.ComponentModel.EventBasedAsync
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.ComponentModel.EventBasedAsync.dll
----------------------------------------
System.Text.Encoding.Extensions
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Text.Encoding.Extensions.dll
----------------------------------------
System.Threading.Thread
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Threading.Thread.dll
----------------------------------------
System.ComponentModel.TypeConverter
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.ComponentModel.TypeConverter.dll
----------------------------------------
System.ObjectModel
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.ObjectModel.dll
----------------------------------------
System.Diagnostics.TraceSource
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Diagnostics.TraceSource.dll
----------------------------------------
System.Drawing.Common
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.14/System.Drawing.Common.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 7.0.1423.52009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.14/Accessibility.dll
----------------------------------------
System.Numerics.Vectors
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Numerics.Vectors.dll
----------------------------------------
System.ComponentModel
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.ComponentModel.dll
----------------------------------------
Microsoft.Win32.SystemEvents
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.14/Microsoft.Win32.SystemEvents.dll
----------------------------------------
System.Collections.Concurrent
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Collections.Concurrent.dll
----------------------------------------
System.Resources.Extensions
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.14/System.Resources.Extensions.dll
----------------------------------------
System.Drawing
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.52009
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.14/System.Drawing.dll
----------------------------------------
System.Linq
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Linq.dll
----------------------------------------
Nefarius.ViGEm.Client
Assembly Version: 1.21.256.0
Win32 Version: n/a
CodeBase:
----------------------------------------
netstandard
Assembly Version: 2.1.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/netstandard.dll
----------------------------------------
System.Security.Cryptography
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Security.Cryptography.dll
----------------------------------------
System.Net.Primitives
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Net.Primitives.dll
----------------------------------------
WindowsInput
Assembly Version: 6.4.1.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Nefarius.Drivers.HidHide
Assembly Version: 1.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
System.Threading.Overlapped
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Threading.Overlapped.dll
----------------------------------------
System.Text.RegularExpressions
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Text.RegularExpressions.dll
----------------------------------------
System.Threading.Channels
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Threading.Channels.dll
----------------------------------------
System.Threading.ThreadPool
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Threading.ThreadPool.dll
----------------------------------------
System.Net.Sockets
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Net.Sockets.dll
----------------------------------------
System.Diagnostics.Tracing
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Diagnostics.Tracing.dll
----------------------------------------
WindowsBase
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.52002
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.14/WindowsBase.dll
----------------------------------------
Microsoft.Extensions.ObjectPool
Assembly Version: 7.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Microsoft.Win32.Registry
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/Microsoft.Win32.Registry.dll
----------------------------------------
System.Console
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Console.dll
----------------------------------------
System.Runtime.Loader
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Runtime.Loader.dll
----------------------------------------
System.Diagnostics.StackTrace
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Diagnostics.StackTrace.dll
----------------------------------------
System.Reflection.Metadata
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Reflection.Metadata.dll
----------------------------------------
System.Collections.Immutable
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1423.51910
CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.14/System.Collections.Immutable.dll
----------------------------------------
************** JIT Debugging **************
Hi @Snowblind350, can you try this new build (latest commit) : BetterJoy.zip
If it still doesn't work, give me the logs before and after calibrations. You can also try to use your controller with steam (it supports joycons). If it also doesn't work then you have an external issue. (bluetooth, controller, OS, etc...)
Hi @Snowblind350, can you try this new build (latest commit) : BetterJoy.zip
If it still doesn't work, give me the logs before and after calibrations. You can also try to use your controller with steam (it supports joycons). If it also doesn't work then you have an external issue. (bluetooth, controller, OS, etc...)
The calibration process is now working perfectly, @d3xMachina . I'll need to further test the controllers in use to ensure that the calibrated ones are performing better than those with the stock calibration. Thank you very much!
Describe the bug After setting
AllowCalibration
totrue
and clickingCalibrate
in BetterJoy LTS, an unhandled exception is thrown after theCalibrating Sticks center position...
step. This occurs for both my left and right joycon. No crashdump is generated using this debug version either.Expected behavior Joycon gyro is calibrated without errors.
Controller (please complete the following information):
Connection: BT
Notes /BetterJoy/MainForm.cs#L797 List is possibly of size zero here.