Index was out of range

Report any bugs or errors you find here.
Post Reply
phirephoto
Posts: 6
Joined: Sat Apr 01, 2023 7:13 pm
Callsign: KG6ESP

Index was out of range

Post by phirephoto »

Hi,

Attempting to read my GD-88:
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index

Latest firmware (released a few days ago).

Any suggestions?

Thanks.
phirephoto
Posts: 6
Joined: Sat Apr 01, 2023 7:13 pm
Callsign: KG6ESP

Re: Index was out of range

Post by phirephoto »

Anything? Any ideas?
User avatar
MM7DBT
Site Admin
200posts
Posts: 209
Joined: Wed Jun 02, 2021 6:59 pm
Location: Scotland
Callsign: MM7DBT

Re: Index was out of range

Post by MM7DBT »

Can you PM me your JSON ?
I can't seem to replicate the error.
-73 de MM7DBT
phirephoto
Posts: 6
Joined: Sat Apr 01, 2023 7:13 pm
Callsign: KG6ESP

Re: Index was out of range

Post by phirephoto »

It won't let me save it. When I go to save it, I get an unhandled exception error:

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 CPEditor.MainForm.GenerateCodeplug()
at CPEditor.MainForm.MainForm_FormClosing(Object sender, FormClosingEventArgs e)
at System.Windows.Forms.Form.OnFormClosing(FormClosingEventArgs e)
at System.Windows.Forms.Form.WmClose(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.9139.0 built by: NET481REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
CPEditor
Assembly Version: 0.3.314.1
Win32 Version: 0.3.0314.1
CodeBase: file:///D:/Program%20Files%20(x86)/CPEditor/CPEditor.exe
----------------------------------------
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
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9139.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.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.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9139.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.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
----------------------------------------
Newtonsoft.Json
Assembly Version: 13.0.0.0
Win32 Version: 0.3.0314.1
CodeBase: file:///D:/Program%20Files%20(x86)/CPEditor/CPEditor.exe
----------------------------------------
Newtonsoft.Json
Assembly Version: 13.0.0.0
Win32 Version: 0.3.0314.1
CodeBase: file:///D:/Program%20Files%20(x86)/CPEditor/CPEditor.exe
----------------------------------------
Newtonsoft.Json
Assembly Version: 13.0.0.0
Win32 Version: 0.3.0314.1
CodeBase: file:///D:/Program%20Files%20(x86)/CPEditor/CPEditor.exe
----------------------------------------
Newtonsoft.Json
Assembly Version: 13.0.0.0
Win32 Version: 0.3.0314.1
CodeBase: file:///D:/Program%20Files%20(x86)/CPEditor/CPEditor.exe
----------------------------------------
System.Management
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.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
Newtonsoft.Json
Assembly Version: 13.0.0.0
Win32 Version: 0.3.0314.1
CodeBase: file:///D:/Program%20Files%20(x86)/CPEditor/CPEditor.exe
----------------------------------------
Microsoft.CSharp
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.CSharp/v4.0_4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll
----------------------------------------
System.Dynamic
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Dynamic/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Dynamic.dll
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
Assembly Version: 0.0.0.0
Win32 Version: 4.8.9139.0 built by: NET481REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.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.
phirephoto
Posts: 6
Joined: Sat Apr 01, 2023 7:13 pm
Callsign: KG6ESP

Re: Index was out of range

Post by phirephoto »

This started after the 3/30 firmware - have you updated the firmware on your radio? My guess is they changed something :(
Thanks :)
User avatar
MM7DBT
Site Admin
200posts
Posts: 209
Joined: Wed Jun 02, 2021 6:59 pm
Location: Scotland
Callsign: MM7DBT

Re: Index was out of range

Post by MM7DBT »

Ah okay, I can see which function it's failing at but not exactly which part.
Can you download the binary from the radio and send me the saved .bin file?
Right click the Read button and you should see the option. This will download the codeplug from the radio but won't attempt to parse it, so it will be raw hex binary.
bin.PNG
I have the latest firmware and have had no issues with it, although I'm still using my original codeplug so maybe something has changed somewhere.
You do not have the required permissions to view the files attached to this post.
-73 de MM7DBT
phirephoto
Posts: 6
Joined: Sat Apr 01, 2023 7:13 pm
Callsign: KG6ESP

Re: Index was out of range

Post by phirephoto »

Just sent via DM. Thanks!
User avatar
MM7DBT
Site Admin
200posts
Posts: 209
Joined: Wed Jun 02, 2021 6:59 pm
Location: Scotland
Callsign: MM7DBT

Re: Index was out of range

Post by MM7DBT »

Received, Issue found and fixed, well I had already fixed it but wanted to make sure.

Update released ;)
-73 de MM7DBT
phirephoto
Posts: 6
Joined: Sat Apr 01, 2023 7:13 pm
Callsign: KG6ESP

Re: Index was out of range

Post by phirephoto »

Awesome, thank you!
Post Reply