seerge / g-helper

Lightweight Armoury Crate alternative for Asus laptops and ROG Ally. Control tool for ROG Zephyrus G14, G15, G16, M16, Flow X13, Flow X16, TUF, Strix, Scar and other models
https://seerge.github.io/g-helper/
GNU General Public License v3.0
7.41k stars 265 forks source link

Update error button #571

Closed aichan007x closed 1 year ago

aichan007x commented 1 year ago

image

seerge commented 1 year ago

@aichan007x do you mind posting here all text from "details" button?

aichan007x commented 1 year ago

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

** Exception Text ** System.TypeInitializationException: The type initializer for 'GHelper.Updates' threw an exception. ---> System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string. (Parameter 'startIndex') at System.String.ThrowSubstringArgumentOutOfRange(Int32 startIndex, Int32 length) at System.String.Substring(Int32 startIndex) at AppConfig.GetModelShort() in D:\a\g-helper\g-helper\app\AppConfig.cs:line 72 at GHelper.Updates..cctor() in D:\a\g-helper\g-helper\app\Updates.cs:line 23 --- End of inner exception stack trace --- at GHelper.Updates..ctor() in D:\a\g-helper\g-helper\app\Updates.cs:line 30 at GHelper.SettingsForm.ButtonUpdates_Click(Object sender, EventArgs e) in D:\a\g-helper\g-helper\app\Settings.cs:line 195 at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) 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.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Private.CoreLib.dll

GHelper Assembly Version: 0.81.0.0 Win32 Version: n/a CodeBase:

System.Runtime Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Runtime.dll

System.Windows.Forms Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17501 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.5/System.Windows.Forms.dll

System.Threading.Thread Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Threading.Thread.dll

System.ComponentModel.Primitives Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.ComponentModel.Primitives.dll

System.Windows.Forms.Primitives Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17501 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.5/System.Windows.Forms.Primitives.dll

System.Runtime.InteropServices Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Runtime.InteropServices.dll

System.Drawing.Primitives Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Drawing.Primitives.dll

System.Collections.Specialized Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Collections.Specialized.dll

Microsoft.Win32.SystemEvents Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.5/Microsoft.Win32.SystemEvents.dll

System.Diagnostics.Process Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Diagnostics.Process.dll

System.Collections Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Collections.dll

System.Text.Json Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Text.Json.dll

System.Threading Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Threading.dll

System.Collections.Concurrent Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Collections.Concurrent.dll

System.Private.Uri Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Private.Uri.dll

System.Text.Encodings.Web Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Text.Encodings.Web.dll

System.Reflection.Emit.Lightweight Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Reflection.Emit.Lightweight.dll

System.Reflection.Primitives Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Reflection.Primitives.dll

System.Reflection.Emit.ILGeneration Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Reflection.Emit.ILGeneration.dll

System.Memory Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Memory.dll

System.Text.Encoding.Extensions Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Text.Encoding.Extensions.dll

System.Numerics.Vectors Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Numerics.Vectors.dll

Microsoft.Win32.Primitives Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/Microsoft.Win32.Primitives.dll

System.Drawing.Common Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.5/System.Drawing.Common.dll

System.Diagnostics.TraceSource Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Diagnostics.TraceSource.dll

System.Resources.Extensions Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.5/System.Resources.Extensions.dll

System.Drawing Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17501 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.5/System.Drawing.dll

System.ComponentModel.TypeConverter Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.ComponentModel.TypeConverter.dll

System.ComponentModel.EventBasedAsync Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.ComponentModel.EventBasedAsync.dll

Accessibility Assembly Version: 4.0.0.0 Win32 Version: 7.0.523.17501 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.5/Accessibility.dll

System.ComponentModel Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.ComponentModel.dll

System.ObjectModel Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.ObjectModel.dll

WinForms.DataVisualization Assembly Version: 1.0.0.0 Win32 Version: n/a CodeBase:

WinForms.DataVisualization.Utilities Assembly Version: 1.0.0.0 Win32 Version: n/a CodeBase:

netstandard Assembly Version: 2.1.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/netstandard.dll

System.Management Assembly Version: 7.0.0.1 Win32 Version: n/a CodeBase:

Microsoft.Win32.Registry Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/Microsoft.Win32.Registry.dll

System.Security.Principal.Windows Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Security.Principal.Windows.dll

System.Security.Claims Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Security.Claims.dll

System.Runtime.Loader Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Runtime.Loader.dll

System.Linq Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Linq.dll

System.Diagnostics.PerformanceCounter Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.WindowsDesktop.App/7.0.5/System.Diagnostics.PerformanceCounter.dll

System.Net.Http Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Net.Http.dll

System.Net.Primitives Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Net.Primitives.dll

System.Diagnostics.Tracing Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Diagnostics.Tracing.dll

System.Diagnostics.DiagnosticSource Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Diagnostics.DiagnosticSource.dll

System.Net.Security Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Net.Security.dll

System.Security.Cryptography Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Security.Cryptography.dll

HidSharpCore Assembly Version: 2.1.0.0 Win32 Version: n/a CodeBase:

System.Threading.ThreadPool Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Threading.ThreadPool.dll

System.Net.Quic Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Net.Quic.dll

Microsoft.Win32.TaskScheduler Assembly Version: 2.10.1.0 Win32 Version: n/a CodeBase:

System.Diagnostics.FileVersionInfo Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Diagnostics.FileVersionInfo.dll

System.Text.RegularExpressions Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Text.RegularExpressions.dll

System.Xml.ReaderWriter Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Xml.ReaderWriter.dll

System.Private.Xml Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Private.Xml.dll

System.Runtime.Intrinsics Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Runtime.Intrinsics.dll

System.Net.Sockets Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Net.Sockets.dll

HidLibrary Assembly Version: 3.2.49.0 Win32 Version: n/a CodeBase:

System.Threading.Overlapped Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Threading.Overlapped.dll

System.Net.NameResolution Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Net.NameResolution.dll

System.Collections.NonGeneric Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Collections.NonGeneric.dll

System.Data.Common Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Data.Common.dll

System.Diagnostics.StackTrace Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Diagnostics.StackTrace.dll

System.Reflection.Metadata Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Reflection.Metadata.dll

System.Collections.Immutable Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.Collections.Immutable.dll

System.IO.Compression Assembly Version: 7.0.0.0 Win32 Version: 7.0.523.17405 CodeBase: file:///C:/Program%20Files/dotnet/shared/Microsoft.NETCore.App/7.0.5/System.IO.Compression.dll

** JIT Debugging **

seerge commented 1 year ago

@aichan007x thanks, can you try this build : GHelper.zip

aichan007x commented 1 year ago

image

aichan007x commented 1 year ago

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

** Exception Text ** System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string. (Parameter 'startIndex') at System.String.ThrowSubstringArgumentOutOfRange(Int32 startIndex, Int32 length) at System.String.Substring(Int32 startIndex) at GHelper.Updates.GetBiosVersion() in C:\Users\Serge\g-helper\app\Updates.cs:line 87 at GHelper.Updates..ctor() in C:\Users\Serge\g-helper\app\Updates.cs:line 30 at GHelper.SettingsForm.ButtonUpdates_Click(Object sender, EventArgs e) in C:\Users\Serge\g-helper\app\Settings.cs:line 195 at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)

seerge commented 1 year ago

@aichan007x try this one GHelper.zip

aichan007x commented 1 year ago

image

seerge commented 1 year ago

@aichan007x what's your system language (in windows) ?

aichan007x commented 1 year ago

english (US)

seerge commented 1 year ago

@aichan007x ok, strange. Can you check if this build makes any difference ? and if not post a log from %appdata%/ghelperhere ?

GHelper.zip

aichan007x commented 1 year ago

log.txt

seerge commented 1 year ago

@aichan007x try this GHelper.zip

aichan007x commented 1 year ago

log.txt

seerge commented 1 year ago

@aichan007x does it mean it doesn't work still? What doesn't work on your side, is elementary string operations (i don't know why), bugged windows? Do you have latest .NET 7 version installed ?

seerge commented 1 year ago

@aichan007x check if this one makes any difference ? GHelper.zip

aichan007x commented 1 year ago

Worked, thank you very much image

seerge commented 1 year ago

Great

seerge commented 1 year ago

@aichan007x can you check if this build fixes that huge spacings between lines ?

GHelper.zip