ThisIsNotRocketScience / GerberTools

Tools to load/edit/create/panelizer sets of gerber files
MIT License
723 stars 143 forks source link

Unhandled exception when trying to import Gerbers to panelizer #110

Open milindmm97 opened 4 years ago

milindmm97 commented 4 years ago

image Kindly let me know how to solve this or what I am doing wrong. Runnging the executable available on the release (GerberTools_2019_9_20.zip) My system is running windows 10

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

Exception Text System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.ThrowHelper.ThrowKeyNotFoundException() at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at GerberCombinerBuilder.InstanceDialog.UpdateInstance() at System.Windows.Forms.NumericUpDown.OnValueChanged(EventArgs e) at System.Windows.Forms.NumericUpDown.set_Value(Decimal value) at GerberCombinerBuilder.InstanceDialog.Left_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) 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.Button.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.4150.0 built by: NET48REL1LAST_C CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

GerberPanelizer Assembly Version: 1.0.7202.38454 Win32 Version: 1.0.* CodeBase: file:///C:/Users/milin/Desktop/GerberTools_2019_9_20/Panelizer/GerberPanelizer.exe

System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.8.4150.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 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.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.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.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

GerberLibrary Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Users/milin/Desktop/GerberTools_2019_9_20/Panelizer/GerberLibrary.DLL

OpenTK.GLControl Assembly Version: 3.0.1.0 Win32 Version: 3.0.1 CodeBase: file:///C:/Users/milin/Desktop/GerberTools_2019_9_20/Panelizer/OpenTK.GLControl.DLL

OpenTK Assembly Version: 3.0.1.0 Win32 Version: 3.0.1 CodeBase: file:///C:/Users/milin/Desktop/GerberTools_2019_9_20/Panelizer/OpenTK.DLL

System.DirectoryServices 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.DirectoryServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.DirectoryServices.dll

DotNetZip Assembly Version: 1.12.0.0 Win32 Version: 1.12.0 CodeBase: file:///C:/Users/milin/Desktop/GerberTools_2019_9_20/Panelizer/DotNetZip.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.

nevetts commented 3 years ago

I also have this problem both when trying to add a gerber file and when attempting to export a merged gerber.

robstoddard commented 3 years ago

I don't know if it is THIS problem, I just know that I had a crash when I tried to export Gerbers without having saved prior to doing so. Now, I save prior to doing so (expecting it to crash) but it doesn't crash. I am wondering if this crash has to do with whether the gerberset file has been created or not. When I get more time to explore, I'll see if I can drive down this exception more, see if it's the same one.