Debug icon Debug — Central ARC debug window routing logs; shows UTC date/time, Windows/ARC/skill/hardware info, version/settings, with copy and clear. Try it →
Portugal
Asked — Edited
1 Participant

Camera Control Error: System.Nullreferenceexception:

@DJ I get this repeating error message when I use object recognition and the smart variable watcher at the same time?

Camera: Camera Control Error: System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
   at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
   at System.Windows.Forms.Control.Invoke(Delegate method)
   at SmartVariableWatcher.FormMain.updateVariable(String var, Object val, Int32 index) in C:\My Documents\SVN\Developer - Controls\In Production\Smart Variable Watcher\MY_PROJECT_NAME\FormMain.cs:line 114
   at SmartVariableWatcher.FormMain.VariableManager_OnVariableChanged(String variableName, Object value, Int32 index) in C:\My Documents\SVN\Developer - Controls\In Production\Smart Variable Watcher\MY_PROJECT_NAME\FormMain.cs:line 49
   at ARC.Scripting.VariableManager.CreateVariableArray[T](String variableName, T[] values)
   at ARC.UCForms.FormCameraDevice.e1kjzfBldLE(List`1  )
   at ARC.UCForms.FormCameraDevice.hx2jzJhVodF()


Related Hardware (view all EZB hardware)
Roomba by iRobot
Synthiam ARCx turns iRobot Roomba into a drivable robot with scripts, sensors, browser control, and AI-ready robotics skills.
Controller Dependant
Servos ✕
Camera
Audio
UART ✕
I2C
ADC ✕
Digital ✕

Related Robot Skill (view all robot skills)
Efficient ARC Variable Watcher - lower CPU for large projects; slow initial array render but faster updates; shows name, type, value, length

ARC Pro

Upgrade to ARC Pro

Unleash your creativity with the power of easy robot programming using Synthiam ARC Pro

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#1  

The smart variable watcher is the error - not the camera. The smart variable watcher intercepts variable events. While it's useful for debugging, it can cause errors and performance problems when used. I can take a look but there's probably not much I can do. Probably the best idea is to have a smart variable watcher that allows you to select what variables to watch. That way it isn't showing the entire variable stack.

Author Avatar
Portugal
#2  

It is not a major problem and it does not interfere as far as I can tell.  The interesting thing is that if I use the normal variable watcher I dont get any errors.

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#3  

Yah I was gonna say the original watcher probably Won’t give this errors. It’s cause the smart one works differently. I’ll take a look and see anyway. I’m not a fan of errors