daniele-salvagni / color-goggles

🌈 Saturation manager utility (with bypassed limits) for Intel™ and dual-graphics laptops.
https://dan.salvagni.io/s/color-goggles/
110 stars 12 forks source link

Microsoft .NET Framework Error #28

Closed vidhanio closed 4 years ago

vidhanio commented 4 years ago

First of all, I would like to extend my thanks for making this project. It is extremely useful, and is a great alternative to vibranceGUI for my laptop! 😄

When I use it in CS:GO, it works perfectly fine, until I exit CS:GO and it and it gives me this error:

Microsoft .NET Framework Error

If I click continue, it goes back to normal and works, until I close CS:GO again. It doesn't really cause any issues, but I'm just wondering if something could be fixed. Again, thanks for this program! 😄

Here is the error:

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

************** Exception Text **************
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
   at igfxDHLib.IDataHandler.get_CurrentConfig(CUI_GET_CURRCONFIG_ARGS& pCurrentConfig)
   at color_goggles.Model.Display.GetColorInfo()
   at color_goggles.Model.Display.SetSaturation(Int32 satValue)
   at color_goggles.Presenter.GogglesPresenter.ExecuteDaemon()
   at System.Windows.Forms.Timer.OnTick(EventArgs e)
   at System.Windows.Forms.Timer.TimerNativeWindow.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.4121.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
Color-Goggles
    Assembly Version: 1.0.1.0
    Win32 Version: 1.0.1.0
    CodeBase: file:///C:/Users/vidhb/Documents/Apps/Color%20Goggles/Color-Goggles.exe
----------------------------------------
igfxDHLib
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/vidhb/Documents/Apps/Color%20Goggles/igfxDHLib.DLL
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4001.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.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4121.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4121.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.3752.0 built by: NET48REL1
    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.3752.0 built by: NET48REL1
    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.3752.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
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Win32 Version: 4.8.3752.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:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

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.
daniele-salvagni commented 4 years ago

Hi, a couple things you could try:

vidhanio commented 4 years ago

Hi Daniele, thanks for the fast reply! I just installed this tool this morning, and there have been no updates I have installed since then. The test button also does not cause the same error.

daniele-salvagni commented 4 years ago

Are you able, with CS:GO already closed, to move the Windows Saturation slider past the 100% mark without getting the same error?

vidhanio commented 4 years ago

Yep, closed CS:GO, removed limits, moved Windows Saturation to maximum, and it didn't have the error.

daniele-salvagni commented 4 years ago

Color Goggles isn't doing anything different when you change it manually or by closing CS:GO, so it is very strange. Could it be that your monitor is changing resolution or whatever when you close the game? Sometimes when a monitor changes resolution it does briefly "disconnect" and could be unavailable but I'm not sure if that's what's happening.

The error happens when CG it's trying to gather some data about the current monitor parameters before changing them, but it does the same even when you move the slider manually. The Intel library is spitting out an error for some reason.

vidhanio commented 4 years ago

Ah, that might be it! I play CS:GO at 4:3 stretched, using Intel Command Center to stretch the game, but reset the normal resolution when tabbing out. If this is the case, however, this error only occurs when I close CS:GO, not when I tab out.

daniele-salvagni commented 4 years ago

I guess it could be something about timing, if you could try CS:GO in native resolution just once it would rule out other issues.