UCR201 unhandled exception

If you have a question about the software please ask it here.

UCR201 unhandled exception

Postby laki » Fri Jun 19, 2020 9:29 pm

Today I got a UCR201 wireless jog pendant and
i need a little help with installation.
UCCNC (ver 2113) reports an error when I enable the UCR201 plugin.
error 1.png

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

************** Exception Text **************
System.OverflowException: Arithmetic operation resulted in an overflow.
   at USBClassLibrary.USBClass.GetUSBDevice(UInt32 VID, UInt32 PID, List`1& ListOfDP, Boolean GetCOMPort, Nullable`1 MI)
   at Plugins.PluginForm..ctor(UCCNCplugin Pluginmain)
   at Plugins.UCCNCplugin.Init_event(Entry UC)

************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4180.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
UCCNC
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/UCCNC.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
----------------------------------------
OpenTK
    Assembly Version: 1.1.0.0
    Win32 Version: 1.1.1664.6217
    CodeBase: file:///C:/UCCNC/2113/UCCNC/OpenTK.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.4180.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
----------------------------------------
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
----------------------------------------
銺翖됁꼰ꏺ趥蝠⌵
    Assembly Version: 0.0.65535.65535
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/UCCNC.exe
----------------------------------------
OpenTK.GLControl
    Assembly Version: 1.1.0.0
    Win32 Version: 1.1.1664.6217
    CodeBase: file:///C:/UCCNC/2113/UCCNC/OpenTK.GLControl.DLL
----------------------------------------
OpenTK.Compatibility
    Assembly Version: 1.1.0.0
    Win32 Version: 1.1.1664.6217
    CodeBase: file:///C:/UCCNC/2113/UCCNC/OpenTK.Compatibility.DLL
----------------------------------------
ILCalc
    Assembly Version: 0.9.7.5
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/UCCNC.exe
----------------------------------------
2fdsxsm2
    Assembly Version: 0.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
----------------------------------------
AForge.Video.DirectShow
    Assembly Version: 2.2.5.0
    Win32 Version: 2.2.5.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/AForge.Video.DirectShow.DLL
----------------------------------------
Microsoft.CSharp
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3752.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.3752.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.4180.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
ecaom50w
    Assembly Version: 0.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
----------------------------------------
bjvvxtt2
    Assembly Version: 0.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
----------------------------------------
0tarfuim
    Assembly Version: 0.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
----------------------------------------
Plugininterface
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/Plugininterface.DLL
----------------------------------------
AutoBackupProfile
    Assembly Version: 1.1.0.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/Plugins/AutoBackupProfile.dll
----------------------------------------
AutoLevelerCA
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/Plugins/AutoLevelerCA.dll
----------------------------------------
C76 Fault Reporting
    Assembly Version: 1.1.0.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/Plugins/C76%20Fault%20Reporting.dll
----------------------------------------
Console
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/Plugins/Console.dll
----------------------------------------
Debugger
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/Plugins/Debugger.dll
----------------------------------------
Diagnostics
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/Plugins/Diagnostics.dll
----------------------------------------
FaultSignals
    Assembly Version: 1.2.0.0
    Win32 Version: 1.2.0.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/Plugins/FaultSignals.dll
----------------------------------------
HYPLUGIN
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/Plugins/HYPLUGIN.dll
----------------------------------------
Laserengrave
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/Plugins/Laserengrave.dll
----------------------------------------
Lubricator
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/Plugins/Lubricator.dll
----------------------------------------
Modbusmaster
    Assembly Version: 1.5.0.0
    Win32 Version: 1.5.0.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/Plugins/Modbusmaster.dll
----------------------------------------
Pinout
    Assembly Version: 2.7.1.0
    Win32 Version: 2.7.1.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/Plugins/Pinout.dll
----------------------------------------
Plugintest
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/Plugins/Plugintest.dll
----------------------------------------
Printer3D
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/Plugins/Printer3D.dll
----------------------------------------
Probing
    Assembly Version: 1.3.2.0
    Win32 Version: 1.3.2.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/Plugins/Probing.dll
----------------------------------------
Profiler
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/Plugins/Profiler.dll
----------------------------------------
Scope
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/Plugins/Scope.dll
----------------------------------------
UCCAM
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/Plugins/UCCAM.dll
----------------------------------------
UCCNC_OSK
    Assembly Version: 1.7.3.0
    Win32 Version: 1.7.3.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/Plugins/UCCNC_OSK.dll
----------------------------------------
UCR200Plugin
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/Plugins/UCR200Plugin.dll
----------------------------------------
UCR201Plugin
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/Plugins/UCR201Plugin.dll
----------------------------------------
Webcamera
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/Plugins/Webcamera.dll
----------------------------------------
Xbox360controller
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/Plugins/Xbox360controller.dll
----------------------------------------
XHC-HB04_pendant
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/UCCNC/2113/UCCNC/Plugins/XHC-HB04_pendant.dll
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 10.0.0.0
    Win32 Version: 14.8.3752.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.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.


I can't run the program after this error.
Only after editing myprofile.pro and turning off the plugin in it, I can restart the program normally.
MINI PC Intel Atom Z8350 4GB / 64GB, works on windows 10
laki
 
Posts: 111
Joined: Thu Jul 19, 2018 12:46 am
Location: Belgrade, Serbia

Re: UCR201 unhandled exception

Postby laki » Sat Jun 20, 2020 11:27 am

Update,
I managed to fix this, everything is working properly. :D
laki
 
Posts: 111
Joined: Thu Jul 19, 2018 12:46 am
Location: Belgrade, Serbia

Re: UCR201 unhandled exception

Postby cncdrive » Sat Jun 20, 2020 1:31 pm

What was the problem?
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm

Re: UCR201 unhandled exception

Postby laki » Sat Jun 20, 2020 6:08 pm

I'm honestly not sure.

I solved the problem by:
1. USB wireless transmitter, plugged directly into the pc (was plugged into a USB Hub that doesn't have its own power supply)
2. Disable all plugins that were active (Autoleveler, HY12 and probe plugin)
3. turned off a couple of macroloops that I use

After that, I normally started the UCR201 plugin and then started the other plugins and macroloop one by one.
After this, everything started to work properly.

I doubt that it is that the UCR201wireless transmitter was connected to the Usb 2.0 hub 4 port (which does not have its own power supply) to which small speakers are already connected (powered by usb) as well as the RS485 adapter. I don't think the hub had enough power to run all this.

It is also possible that there was a conflict with the HY12 plugin.
After restarting the HY12 plugin, I had to re-enter the parameters for that plugin (no parameters were saved, which is strange to me).
In any case, the problem has been solved.

Balazs, thanks for the quick response and fast delivery of the jog pendant.
I think this is a great device that will make my work much easier.
laki
 
Posts: 111
Joined: Thu Jul 19, 2018 12:46 am
Location: Belgrade, Serbia

Re: UCR201 unhandled exception

Postby laki » Sun Jun 21, 2020 8:50 pm

I have another question regarding UCR201 pendant.

I cannot attach button code 110 (Home A) to custom programmable buttons (for example F2). If I do this and press that button (F2), instead of the machine referencing the A axis, it happens that the MPG switches to OFF mode.

On my machine the A axis is rotary (I mostly use it for plasma applications) and when I tighten the workpiece into a 4-Jaw chuck, it happens that due to the tightening force I turn this axis. Because of this I have to re-reference the A axis (this axis only). It would be nice to be able to do this directly with the UCR201 pendant.

I noticed one more thing.
When you press the "M / W. Coord" button on the pendant, the LCD on the UCR201 shows MACHINE CO but on the main screen instead of WORK CO these MACHINE CO are also shown. In the new screenset2019 we already have MACHINE CO always displayed on the main screen!
laki
 
Posts: 111
Joined: Thu Jul 19, 2018 12:46 am
Location: Belgrade, Serbia


Return to Ask a question from support here

Who is online

Users browsing this forum: Google [Bot] and 40 guests