Orbmu2k / nvidiaProfileInspector

MIT License
3.48k stars 253 forks source link

Unhandles exception has occured in your application - Cannot open the profile inspector. #128

Closed Damthe closed 1 year ago

Damthe commented 1 year ago

I would just kindly like to request for a little help over here.

I am having a bit of trouble while trying to open u p the profile inspector. Only thing i have done on my RTX 3090 is i updated the bios to a Re-Bar version through some sofware available on manufacturer's website(PALIT). I think it has something to do with the NetFramework requirements but i have all of the version installed anyway couldn't really figure out what's wrong here.

Thank you in advance.

image

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

** Exception Text ** System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: BINARY at nspector.Common.Meta.CustomSettingMetaService.MapType(String type) at nspector.Common.Meta.CustomSettingMetaService.GetSettingValueType(UInt32 settingId) at nspector.Common.DrsSettingsMetaService.GetSettingValueType(UInt32 settingId) at nspector.Common.DrsSettingsMetaService.CreateSettingMeta(UInt32 settingId) at nspector.Common.DrsSettingsMetaService.GetSettingMeta(UInt32 settingId, SettingViewMode viewMode) at nspector.Common.DrsSettingsService.CreateSettingItem(NVDRS_SETTING setting, Boolean useDefault) at nspector.Common.DrsSettingsService.<>c__DisplayClass18_0.b__0(IntPtr hSession) at nspector.Common.DrsSessionScope.DrsSession[T](Func2 action, Boolean forceNonGlobalSession, Boolean preventLoadSettings) at nspector.Common.DrsSettingsServiceBase.DrsSession[T](Func2 action, Boolean forceDedicatedScope) at nspector.Common.DrsSettingsService.GetSettingsForProfile(String profileName, SettingViewMode viewMode, Dictionary`2& applications) at nspector.frmDrvSettings.RefreshCurrentProfile() at nspector.frmDrvSettings.ChangeCurrentProfile(String profileName) at nspector.frmDrvSettings.cbProfiles_SelectedIndexChanged(Object sender, EventArgs e) at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e) at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e) at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value) at System.Windows.Forms.ComboBox.set_Text(String value) at nspector.frmDrvSettings.frmDrvSettings_Load(Object sender, EventArgs e) 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 nspector.frmDrvSettings.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.4515.0 built by: NET48REL1LAST_C CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

nvidiaProfileInspector Assembly Version: 2.4.0.3 Win32 Version: 2.4.0.3 CodeBase: file:///C:/Users/%USERNAME%/Downloads/nvidiaProfileInspector/nvidiaProfileInspector.exe

System Assembly Version: 4.0.0.0 Win32 Version: 4.8.4536.0 built by: NET48REL1LAST_C CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.8.4550.0 built by: NET48REL1LAST_C CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System.Drawing Assembly Version: 4.0.0.0 Win32 Version: 4.8.4390.0 built by: NET48REL1LAST_C CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Xml Assembly Version: 4.0.0.0 Win32 Version: 4.8.4084.0 built by: NET48REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

System.Configuration Assembly Version: 4.0.0.0 Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

Microsoft.GeneratedCode Assembly Version: 1.0.0.0 Win32 Version: 4.8.4084.0 built by: NET48REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

System.Core Assembly Version: 4.0.0.0 Win32 Version: 4.8.4590.0 built by: NET48REL1LAST_B CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

Accessibility Assembly Version: 4.0.0.0 Win32 Version: 4.8.4084.0 built by: NET48REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

Microsoft.GeneratedCode Assembly Version: 1.0.0.0 Win32 Version: 4.8.4084.0 built by: NET48REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.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.

rtzon59 commented 1 year ago

same issue here on latest drivers of 1060 6gb and latest win10pro

Orbmu2k commented 1 year ago

i really have no idea whats going on there, i can not reproduce it for me and the relevant code part looks just fine 🤔

you can see the mapper there has a valid case for "BINARY" https://github.com/Orbmu2k/nvidiaProfileInspector/blob/4c28abefa3794784e02ab458bace395382ac721e/nspector/Common/Meta/CustomSettingMetaService.cs#L29

Tmp341 commented 1 year ago

Same here. It was working before (i reformatted my pc around February). But i think either after a Windows update or Nvidia update (suspecting Windows update) this issue started. Inspector doesn't even load list. GIF shows error in Turkish, but error still same as i listed below: 2

Parameter name: BINARY
at nspector.Common.Meta.CustomSettingMetaService.MapType(String type)
at nspector.Common.Meta.CustomSettingMetaService.GetSettingValueType(UInt32 settingId)
at nspector.Common.DrsSettingsMetaService.GetSettingValueType(UInt32 settingId)
at nspector.Common.DrsSettingsMetaService.CreateSettingMeta(UInt32 settingId)
at nspector.Common.DrsSettingsMetaService.GetSettingMeta(UInt32 settingId, SettingViewMode viewMode)
at nspector.Common.DrsSettingsService.CreateSettingItem(NVDRS_SETTING setting, Boolean useDefault)
at nspector.Common.DrsSettingsService.<>c__DisplayClass18_0.<GetSettingsForProfile>b__0(IntPtr hSession)
at nspector.Common.DrsSessionScope.DrsSession[T](Func`2 action, Boolean forceNonGlobalSession, Boolean preventLoadSettings)
at nspector.Common.DrsSettingsServiceBase.DrsSession[T](Func`2 action, Boolean forceDedicatedScope)
at nspector.Common.DrsSettingsService.GetSettingsForProfile(String profileName, SettingViewMode viewMode, Dictionary`2& applications)
at nspector.frmDrvSettings.RefreshCurrentProfile()
at nspector.frmDrvSettings.ChangeCurrentProfile(String profileName)
at nspector.frmDrvSettings.cbProfiles_SelectedIndexChanged(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
at System.Windows.Forms.ComboBox.set_Text(String value)
at nspector.frmDrvSettings.frmDrvSettings_Load(Object sender, EventArgs e)
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.Form.WmShowWindow(Message& m)
at nspector.frmDrvSettings.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.9037.0 built by: NET481REL1
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
nvidiaProfileInspector
    Assembly Version: 2.4.0.3
    Win32 Version: 2.4.0.3
    CodeBase: file:///D:/Program Files/Portable/NVidia/NVIDIA Inspector/nvidiaProfileInspector.exe
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.9037.0 built by: NET481REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.9037.0 built by: NET481REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.9037.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.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.9037.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
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.9037.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.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.9037.0 built by: NET481REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Win32 Version: 4.8.9037.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
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Win32 Version: 4.8.9037.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.9037.0 built by: NET481REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
mscorlib.resources
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_tr_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
System.Windows.Forms.resources
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_tr_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
Orbmu2k commented 1 year ago

Can you please attach your complete Inspector Folder as ZIP here?

Driver Version?

Geforce Experience installed?

Tmp341 commented 1 year ago

Can you please attach your complete Inspector Folder as ZIP here?

NVIDIA Inspector.zip

Driver Version?

531.29

Geforce Experience installed?

No. Only Driver.

Orbmu2k commented 1 year ago

Can you please attach your complete Inspector Folder as ZIP here?

NVIDIA Inspector.zip

Driver Version?

531.29

Geforce Experience installed?

No. Only Driver.

Still not happen to me with your exact same config.

Can you pls attach output file of "Export all driver profiles (NVIDIA Text Format)" grafik

Tmp341 commented 1 year ago

Can you pls attach output file of "Export all driver profiles (NVIDIA Text Format)"

Profiles.txt

Orbmu2k commented 1 year ago

Can you pls attach output file of "Export all driver profiles (NVIDIA Text Format)"

Profiles.txt

Thanks, but sorry no luck again :(

This will stay mystery until some other dev having this exact problem on his own machine and is able to debug this by himself.

One thing to try might be to switch your locales to en-US, but no idea.

Tmp341 commented 1 year ago

Thanks, but sorry no luck again :(

This will stay mystery until some other dev having this exact problem on his own machine and is able to debug this by himself.

One thing to try might be to switch your locales to en-US, but no idea.

It was working normal before. I wasn't using it frequently, so can't pinpoint exact time. But, i suspect some update (My PC got 22H2 around November or December for example) broke it. Especially after formatting my PC, i started getting this. I might try to change language, but it is single language license.

Bavarello commented 1 year ago

As far as I'm concerned no problem here with: Edizione Windows 10 Pro Versione 22H2 Data installazione: ‎18/‎06/‎2020 Build sistema operativo 19045.2728 Esperienza Windows Feature Experience Pack 120.2212.4190.0

image

Tmp341 commented 1 year ago

Here are mine:

Edition : Windows 10 Home Single Language Version : 22H2 Installation Date : 31.‎01.‎2023 OS Build : 19045.2728 Windows Feature Experience Pack : 120.2212.4190.0

CanerKaraca23 commented 1 year ago

Thanks, but sorry no luck again :( This will stay mystery until some other dev having this exact problem on his own machine and is able to debug this by himself. One thing to try might be to switch your locales to en-US, but no idea.

It was working normal before. I wasn't using it frequently, so can't pinpoint exact time. But, i suspect some update (My PC got 22H2 around November or December for example) broke it. Especially after formatting my PC, i started getting this. I might try to change language, but it is single language license.

I'm also having this issue. Can you try v2.4.0.1? This version works fine for me. Something happened after v2.4.0.3 (v2.4.0.2 not exist).

Orbmu2k commented 1 year ago

I'm also having this issue. Can you try v2.4.0.1? This version works fine for me. Something happened after v2.4.0.3 (v2.4.0.2 not exist).

its known what change in 2.4.0.3 is causing this. the problem is related to the BINARY format, what was added to support "Resizeable BAR - Size Limit" setting

the mystery is why does reading the format works on most machines and on some not :)

CanerKaraca23 commented 1 year ago

I'm also having this issue. Can you try v2.4.0.1? This version works fine for me. Something happened after v2.4.0.3 (v2.4.0.2 not exist).

its known what change in 2.4.0.3 is causing this. the problem is related to the BINARY format, what was added to support "Resizeable BAR - Size Limit" setting

the mystery is why does reading the format works on most machines and on some not :)

I don't know the mystery but 2.4.0.1 works fine for me. I recommend to use this version until it get fixed. Maybe it's related to Windows version (mine is 11) or .Net Framework (latest 4.8.1 and also enabled 3.5 on Windows Features). I also have the latest version of GeForce Experience, Nvidia Drivers and latest C++ Redistributables.

I can also help to revert changes then test step by step for all changes until see what affected this issue.

Orbmu2k commented 1 year ago

try newest version please

https://github.com/Orbmu2k/nvidiaProfileInspector/releases/tag/2.4.0.4

Tmp341 commented 1 year ago

try newest version please

https://github.com/Orbmu2k/nvidiaProfileInspector/releases/tag/2.4.0.4

This one loaded profiles, without error for me.

Orbmu2k commented 1 year ago

This one loaded profiles, without error for me.

nice! thanks for the feedback!

as already guessed, the problem was related to your windows localization settings.

Yuuiyfn commented 6 months ago

Hello. I have this issue. Can you help please? Képernyőfelvétel (18)