-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Unhandled exception #42
Comments
Hi there, thanks for reaching out. Looks like I made a mistake and caused this. You can probably work around it by renaming the Key2Joy config folder in your Windows user Documents folder to something like "Key2Joy.old". Let me know if it worked or not. Good luck. |
It worked, Thanks |
Good to hear! I'll leave this open as a bug that must be fixed. If the config fails to load it should just give a nice warning and continue to work. |
it's not related to this issue, but I have 1 question. Is there way to disable mouse input completely while key mapping is enabled? |
Not yet, but I'll make a feature request for you since I've been wanting to rework how input is disabled anyway. |
hmm yeah. I personally set my mouse movement as right stick. My game keep recognizing my mouse movement and it's not working properly. Anyways, thank you for your help. |
Hiya, we're looking to use this tool as part of our speedrunning community and members have been running into the same issue. I'm pretty fluent in winforms so I'm happy to have a look if you can point me towards the problem. If you're planning on working on it then I won't step on your toes but just thought I'd mention a fix is desired :) Thank you for the awesome tool. |
Hi @xMcacutt, how awesome to hear that a speed running community is looking to use this tool! Sadly I haven't found the time and energy to work on this and I don't expect to for another couple weeks (perhaps a month). So feel free to work on it, no risk of stepping on my toes. Any working PR's you submit with fixes or non-breaking changes I'll gladly accept! I can't point you in an exact direction, but I believe the error experienced by the original issue poster was caused by an update making a breaking change to the config schema (see Config/ConfigManager) Thanks for any help and/or contributions, I hugely appreciate it! |
* Add config manager tests * legacy config and mapping profile tests (should fix #42) * remove comment, problem was caused by transfer across appdomain (or to/fro scripting environment) * Test core functionality #48 + includes minor refactoring to be able to test + added docs * Add interop tests + implement and test async test utility (refactors away from singletons) * fix not all tests running in workflow * config and interop tests * Refactor and allow mocking global input hook class * add capture action test * Make Execute override optional for script only methods * add dependency injection + refactor and try test gamepad service * Refactor config singleton to using dependency injection * add tests for scripting * add tests for plugin set + fix plugin showing as loaded even if checksum match failed * fix tests failing because it relied on config exist (I guess the test order was accidentally correct earlier, this means we should really fix cleanup so we catch this sooner) * refactor docs code + fix wrong enum summary * refactor docs builder and start testing it a bit * fix cmd project structure * ignore designer files in tests * cleanup and refactor UI code + show latest version in help * truncate listview action column * allow user config to minimize app when pressing X (defaults to shut down app) resolves #45
Anyone know how to fix this problem? It just keeps showing up when I tried to open the app and the app stop working. It was working fine but one time it crashed and this window keeps poppoing up and never fixed. I've tried installing different version, re nstalling, reinstalling windows, but nothing works. Any help?
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Key2Joy.Config.ConfigManager.LoadOrCreate() in D:\Projects_Personal\Windows\Key2Joy\Key2Joy\Config\ConfigManager.cs:line 122
at Key2Joy.Config.ConfigManager.get_Instance() in D:\Projects_Personal\Windows\Key2Joy\Key2Joy\Config\ConfigManager.cs:line 23
at Key2Joy.Mapping.MappingProfile.RestoreLastLoaded() in D:\Projects_Personal\Windows\Key2Joy\Key2Joy\Mapping\MappingProfile.cs:line 155
at Key2Joy.Gui.MainForm.MainForm_Load(Object sender, EventArgs e) in D:\Projects_Personal\Windows\Key2Joy\Key2Joy.Gui\MainForm.cs:line 177
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9166.0 built by: NET481REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
Key2Joy
Assembly Version: 0.6.0.0
Win32 Version: 0.6.0.0
CodeBase: file:///C:/Users/kabachan/Downloads/Key2Joy-0.6.0/Key2Joy.exe
Key2Joy.Core
Assembly Version: 0.6.0.0
Win32 Version: 0.6.0.0
CodeBase: file:///C:/Users/kabachan/Downloads/Key2Joy-0.6.0/Key2Joy.Core.DLL
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9075.0 built by: NET481REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
FFMpegCore
Assembly Version: 4.0.0.0
Win32 Version: 4.0.0.0
CodeBase: file:///C:/Users/kabachan/Downloads/Key2Joy-0.6.0/FFMpegCore.DLL
netstandard
Assembly Version: 2.0.0.0
Win32 Version: 4.8.9032.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/netstandard/v4.0_2.0.0.0__cc7b13ffcd2ddd51/netstandard.dll
SimWinGamePad
Assembly Version: 1.1.1.0
Win32 Version: 1.1.1
CodeBase: file:///C:/Users/kabachan/Downloads/Key2Joy-0.6.0/SimWinGamePad.DLL
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9166.0 built by: NET481REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9166.0 built by: NET481REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
System.Text.Json
Assembly Version: 6.0.0.2
Win32 Version: 6.0.222.6406
CodeBase: file:///C:/Users/kabachan/Downloads/Key2Joy-0.6.0/System.Text.Json.DLL
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
ObjectListView
Assembly Version: 2.9.1.1072
Win32 Version: 2.9.1.0
CodeBase: file:///C:/Users/kabachan/Downloads/Key2Joy-0.6.0/ObjectListView.DLL
Newtonsoft.Json
Assembly Version: 13.0.0.0
Win32 Version: 13.0.2.27524
CodeBase: file:///C:/Users/kabachan/Downloads/Key2Joy-0.6.0/Newtonsoft.Json.DLL
System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
System.Runtime.Serialization
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9166.0 built by: NET481REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
The text was updated successfully, but these errors were encountered: