Skip to content

Unhandled exception #42

Closed
Closed

Description

@kabachankun

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.

image

Activity

  1. luttje commented on Aug 8, 2023

    @luttje
    Collaborator

    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.

  2. kabachankun commented on Aug 9, 2023

    @kabachankun
    Author

    It worked, Thanks

  3. luttje commented on Aug 9, 2023

    @luttje
    Collaborator

    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.

  4. added
    bug
    on Aug 9, 2023
  5. kabachankun commented on Aug 9, 2023

    @kabachankun
    Author

    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?

  6. luttje commented on Aug 9, 2023

    @luttje
    Collaborator

    Not yet, but I'll make a feature request for you since I've been wanting to rework how input is disabled anyway.

  7. kabachankun commented on Aug 9, 2023

    @kabachankun
    Author

    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.

  8. xMcacutt commented on Aug 26, 2023

    @xMcacutt

    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.

  9. luttje commented on Aug 27, 2023

    @luttje
    Collaborator

    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!

  10. added this to the Launch stable (1.0.0) milestone on Oct 14, 2023
  11. added a commit that references this issue on Oct 14, 2023
    8862bcc
  12. linked a pull request that will close this issueAdding more tests, fixing bugs in the process #48on Oct 15, 2023
  13. added a commit that references this issue on Oct 18, 2023
    14b7ce9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions