NxLib UnhadledException with B57 camera in NxView

General Information

  • Product: B57-4
  • Serial Number: 245363
  • Ensenso SDK Version: 4.0.1502
  • Operating System: Windows

Problem / Question

When starting the camera in NxView we get NxLib error UnhandledException: The given handle is invalid.

Details:
An NxLib error occurred while executing the command:
Retrieve:
UnhandledException: The given handle is invalid.
Current node value:

JSON

{
“Command”: null,
“Parameters”: null,
“PersistentParameters”: false,
“Result”: {
“ErrorSymbol”: “UnhandledException”,
“ErrorText”: “The given handle is invalid.”,
“Execute”: {
“Command”: “Retrieve”,
“Parameters”: {
“Cameras”: null,
“OpenMP”: {
“Dynamic”: 1
},
“Threads”: 6
}
}
},
“Status”: {
“LatestMessage”: null,
“Messages”: [
],
“Progress”: null,
“Time”: 899.462500000000090949
}
}

Camera is selected
The projector is flashing ok

Hi Stefaan,

just to clarify, which firmware version is currently on your B-Series device? It might help narrow down the issue you’re experiencing.

In the meantime, you can check out the latest firmware updates on the official download page here: Link. Updating to the most current version could potentially resolve your problem.

Let us know how it goes!

Regards,
Peter

Hi Peter,
thanks for the quick reply.
Current firmware version is “1.3.12”

I downloaded the latest version b-c-firmware-1.3.32.guf
But I have difficulties to upload that firmware to the camera.
What I do in NxView:
edit value of node Execute/Default/Command: “UpdateFirmware”
edit value of node Execute/Default/Parameters “Path/to/b-c-firmware-1.3.32.guf”
push Refresh button

Result:
Node Execute/Default/Result/ErrorSymbol: “ParametersInvalid”
Node Execute/Default/Result/ErrorText: “ParameterCameras missing or invalid”

Here the content of the exported ensparam file:

JSON

{
“Calibration”: {
“Dynamic”: {
“CalibrationHistory”: null,
“Monocular”: {
“Left”: {
“Camera”: [
[
1416.248046875,
0,
0
],
[
0,
1415.6314697265625,
0
],
[
1233.34814453125,
1069.8514404296875,
1
]
],
“Distortion”: {
“K1”: -0.12747935950756073,
“K2”: 0.108418390154838562,
“K3”: 0.003740073647350073,
“Rx”: -0.001375238294713199,
“Ry”: 0.000534958555363119,
“T1”: 0.000216201267903671,
“T2”: 0.000024671473511262
},
“ImageOffset”: [
0,
0
]
},
“Right”: {
“Camera”: [
[
1417.5455322265625,
0,
0
],
[
0,
1417.1893310546875,
0
],
[
1226.103759765625,
1044.581298828125,
1
]
],
“Distortion”: {
“K1”: -0.124133892357349396,
“K2”: 0.09461674839258194,
“K3”: 0.014100824482738972,
“Rx”: -0.003055681474506855,
“Ry”: 0.00115360994823277,
“T1”: 0.000587666581850499,
“T2”: -0.000085675274021924
},
“ImageOffset”: [
0,
0
]
}
},
“Stereo”: {
“Angle”: {
“Epipolar”: 0,
“OpticalAxis”: 0,
“Vergence”: 0
},
“DisparityMapOffset”: 0,
“Left”: {
“Camera”: [
[
1600.120361328125,
0,
0
],
[
0,
1600.120361328125,
0
],
[
891.59442138671875,
1051.5762939453125,
1
]
],
“ForcedRawImageSize”: [
2147483647,
2147483647
],
“ForcedRectifiedImageSize”: [
2147483647,
2147483647
],
“RawAoiIncrements”: {
“Height”: 1,
“Left”: 1,
“Top”: 1,
“Width”: 1
},
“RectifiedAoiIncrements”: {
“Height”: 1,
“Left”: 1,
“Top”: 1,
“Width”: 1
},
“Rotation”: [
[
0.992654003141807184,
0.000710633439062049,
-0.120985639836554235
],
[
-0.000803175247787866,
0.999999421029650892,
-0.000716135381287635
],
[
0.120985060879707271,
0.000808047324281153,
0.992653999187760872
]
]
},
“Reprojection”: [
[
1,
0,
0,
0
],
[
0,
1,
0,
0
],
[
0,
0,
0,
0.012831442378063794
],
[
-891.59442138671875,
-1051.5762939453125,
1600.120361328125,
8.697508612323069599
]
],
“Right”: {
“Camera”: [
[
1600.120361328125,
0,
0
],
[
0,
1600.120361328125,
0
],
[
1569.4222412109375,
1051.5762939453125,
1
]
],
“ForcedRawImageSize”: [
2147483647,
2147483647
],
“ForcedRectifiedImageSize”: [
2147483647,
2147483647
],
“RawAoiIncrements”: {
“Height”: 1,
“Left”: 1,
“Top”: 1,
“Width”: 1
},
“RectifiedAoiIncrements”: {
“Height”: 1,
“Left”: 1,
“Top”: 1,
“Width”: 1
},
“Rotation”: [
[
0.992423489099970468,
0.001766194600744803,
0.122851531692824853
],
[
-0.001868324776428006,
0.999997998254321341,
0.000716135378288886
],
[
-0.122850020940863627,
-0.000940236131273219,
0.992424802345672319
]
]
}
}
},
“Monocular”: {
“Left”: {
“BinningShift”: [
0,
0
],
“Camera”: [
[
1416.248046875,
0,
0
],
[
0,
1415.6314697265625,
0
],
[
1233.34814453125,
1069.8514404296875,
1
]
],
“Distortion”: {
“K1”: -0.12747935950756073,
“K2”: 0.108418390154838562,
“K3”: 0.003740073647350073,
“Rx”: -0.001375238294713199,
“Ry”: 0.000534958555363119,
“T1”: 0.000216201267903671,
“T2”: 0.000024671473511262
},
“Resolution”: [
2472,
2064
]
},
“Right”: {
“BinningShift”: [
0,
0
],
“Camera”: [
[
1417.5455322265625,
0,
0
],
[
0,
1417.1893310546875,
0
],
[
1226.103759765625,
1044.581298828125,
1
]
],
“Distortion”: {
“K1”: -0.124133892357349396,
“K2”: 0.09461674839258194,
“K3”: 0.014100824482738972,
“Rx”: -0.003055681474506855,
“Ry”: 0.00115360994823277,
“T1”: 0.000587666581850499,
“T2”: -0.000085675274021924
},
“Resolution”: [
2472,
2064
]
}
},
“Stereo”: {
“Angle”: {
“Epipolar”: -0.001432272362874178,
“OpticalAxis”: -0.001063784214337239,
“Vergence”: 0.244445652283033499
},
“Baseline”: 77.933561211291930704,
“Left”: {
“Camera”: [
[
1600.120361328125,
0,
0
],
[
0,
1600.120361328125,
0
],
[
891.59442138671875,
1051.5762939453125,
1
]
],
“Rotation”: [
[
0.992654003141807184,
0.000710633439062049,
-0.120985639836554235
],
[
-0.000803175247787866,
0.999999421029650892,
-0.000716135381287635
],
[
0.120985060879707271,
0.000808047324281153,
0.992653999187760872
]
]
},
“Reprojection”: [
[
1,
0,
0,
0
],
[
0,
1,
0,
0
],
[
0,
0,
0,
0.012831442378063794
],
[
-891.59442138671875,
-1051.5762939453125,
1600.120361328125,
8.697508612323069599
]
],
“Right”: {
“Camera”: [
[
1600.120361328125,
0,
0
],
[
0,
1600.120361328125,
0
],
[
1569.4222412109375,
1051.5762939453125,
1
]
],
“Rotation”: [
[
0.992423489099970468,
0.001766194600744803,
0.122851531692824853
],
[
-0.001868324776428006,
0.999997998254321341,
0.000716135378288886
],
[
-0.122850020940863627,
-0.000940236131273219,
0.992424802345672319
]
]
}
}
},
“EepromFormat”: {
“Calibration”: {
“Current”: 12,
“Latest”: 12
}
},
“EepromId”: 0,
“FirmwareVersion”: {
“Application”: “1.3.12”
},
“HardwareRevision”: null,
“Images”: {
“DisparityMap”: null,
“Normals”: null,
“PointMap”: null,
“Raw”: {
“Left”: null,
“Right”: null
},
“RawTexture”: {
“Left”: null,
“Right”: null
},
“Rectified”: {
“Left”: null,
“Right”: null
},
“RectifiedTexture”: {
“Left”: null,
“Right”: null
},
“WithOverlay”: {
“Left”: null,
“Right”: null
}
},
“Link”: {
“Rotation”: {
“Angle”: 0,
“Axis”: [
1,
0,
0
]
},
“Target”: “”,
“Translation”: [
0,
0,
0
]
},
“ModelName”: “B57-4”,
“Parameters”: {
“Capture”: {
“Exposure”: {
“Automatic”: true,
“Value”: 5
},
“FlexView”: 4,
“ForceGrayscale”: false,
“FrontLight”: {
“Brightness”: 1,
“Enabled”: false
},
“Gain”: {
“Automatic”: true,
“Value”: 1
},
“HardwareGamma”: true,
“ImageBuffer”: {
“Count”: 0,
“OverflowPolicy”: “DiscardOld”,
“Size”: 1
},
“MaxAutoExposureAndGainAdjustment”: 0,
“MaxFlashTime”: 10,
“MaxGain”: 48,
“Mode”: “Raw”,
“MultiExposureFactor”: 1,
“Projector”: {
“Brightness”: 1,
“Enabled”: true
},
“ProjectorMinimumDutyCycle”: 0.100000001490116119,
“TargetBrightness”: 80,
“Texture”: {
“Enabled”: true,
“Exposure”: {
“Automatic”: true,
“Value”: 5.928130146569059455
},
“FrontLight”: true,
“Gain”: {
“Automatic”: true,
“Value”: 5.814377702151772631
},
“HardwareGamma”: true,
“TargetBrightness”: 120
},
“TriggerMode”: “Software”,
“Triggered”: false,
“UseRecalibrator”: true,
“WaitForRecalibration”: false,
“WhiteBalance”: {
“Automatic”: true,
“Blue”: 1.342133402824401855,
“Green”: 1,
“Red”: 1.307895421981811523
}
},
“DisparityMap”: {
“AreaOfInterest”: {
“FullWidth”: true,
“LeftTop”: [
0,
0
],
“Raw”: {
“Left”: {
“ImageOffset”: [
0,
0
],
“LeftTop”: [
0,
0
],
“RightBottom”: [
2471,
2063
]
},
“Right”: {
“ImageOffset”: [
0,
0
],
“LeftTop”: [
0,
0
],
“RightBottom”: [
2471,
2063
]
}
},
“RightBottom”: [
2471,
2063
]
},
“ClipToAreaOfInterest”: false,
“Downsample”: [
1,
1
],
“MeasurementVolume”: {
“Far”: {
“DisparityStep”: 0.33042797436360194,
“LeftBottom”: [
-113.10757249227367538,
128.309102669189002199,
202.991097099724413511
],
“LeftTop”: [
-113.10757249227367538,
-133.402855654461916401,
202.991097099724413511
],
“PixelSize”: 0.126859892546607317,
“RightBottom”: [
192.307618813683461667,
128.309102669189002199,
202.991097099724413511
],
“RightTop”: [
192.307618813683461667,
-133.402855654461916401,
202.991097099724413511
]
},
“Near”: {
“DisparityStep”: 0.227524953674522135,
“LeftBottom”: [
-87.277931625511982361,
106.471551109723847617,
168.443052909465336597
],
“LeftTop”: [
-87.277931625511982361,
-110.69837344757519304,
168.443052909465336597
],
“PixelSize”: 0.105268989121327691,
“RightBottom”: [
166.262428673205789664,
106.471551109723847617,
168.443052909465336597
],
“RightTop”: [
166.262428673205789664,
-110.69837344757519304,
168.443052909465336597
]
}
},
“PostProcessing”: {
“CorrespondenceThreshold”: 60,
“Filling”: {
“BorderSpread”: 3,
“RegionSize”: 0
},
“MedianFilterRadius”: 1,
“RegionFilterDownsampling”: 1,
“SpeckleRemoval”: {
“ComponentThreshold”: 3,
“RegionSize”: 500
},
“UniquenessOffset”: 16,
“UniquenessRatio”: 10
},
“ScaledAreaOfInterest”: {
“Left”: {
“LeftTop”: [
0,
0
],
“RightBottom”: [
2471,
2063
]
},
“Right”: {
“LeftTop”: [
0,
0
],
“RightBottom”: [
2471,
2063
]
}
},
“ScaledMeasurementVolume”: {
“Far”: {
“DisparityStep”: 0.33042797436360194,
“LeftBottom”: [
-113.10757249227367538,
128.309102669189002199,
202.991097099724413511
],
“LeftTop”: [
-113.10757249227367538,
-133.402855654461916401,
202.991097099724413511
],
“PixelSize”: 0.126859892546607317,
“RightBottom”: [
192.307618813683461667,
128.309102669189002199,
202.991097099724413511
],
“RightTop”: [
192.307618813683461667,
-133.402855654461916401,
202.991097099724413511
]
},
“Near”: {
“DisparityStep”: 0.227524953674522135,
“LeftBottom”: [
-87.277931625511982361,
106.471551109723847617,
168.443052909465336597
],
“LeftTop”: [
-87.277931625511982361,
-110.69837344757519304,
168.443052909465336597
],
“PixelSize”: 0.105268989121327691,
“RightBottom”: [
166.262428673205789664,
106.471551109723847617,
168.443052909465336597
],
“RightTop”: [
166.262428673205789664,
-110.69837344757519304,
168.443052909465336597
]
}
},
“Scaling”: 1,
“StereoMatching”: {
“EnforceDisparityRange”: false,
“Method”: “PatchMatch”,
“MinimumDisparity”: -64,
“NumberOfDisparities”: 128,
“Padding”: true,
“PatchMatch”: {
“Alpha”: {
“Automatic”: true,
“Value”: 0.014502309262752533
},
“Beta”: {
“Automatic”: true,
“Value”: 0.159260421991348267
},
“CoupledPropagation”: true,
“Invalidation”: true,
“Iterations”: 2,
“PropagationLimit”: -1,
“PropagationScheme”: “TB”,
“Smoothness”: {
“Automatic”: true,
“Value”: 0.887209177017211914
},
“TiltedPatches”: false,
“ValidateAgainstRightView”: false,
“WindowRadius”: {
“Automatic”: true,
“Value”: 5.100372791290283203
}
},
“ScaledMinimumDisparity”: -64,
“ScaledNumberOfDisparities”: 128,
“SemiGlobalMatching”: {
“CostScale”: -3,
“DepthChangeCost”: 5,
“DepthStepCost”: 30,
“PropagationDecay”: 3
},
“ShadowingThreshold”: 2,
“WindowRadius”: 0
},
“ValidRegion”: {
“LeftTop”: [
0,
0
],
“RightBottom”: [
2471,
2063
]
}
},
“IO”: {
“Input”: false,
“Output”: {
“Driver”: {
“Sink”: true,
“Source”: true
},
“Mode”: “Low”
}
},
“Overlay”: {
“Text”: {
“Angle”: 0,
“Color”: [
255,
0,
0
],
“Mirror”: {
“Horizontal”: false,
“Vertical”: false
}
}
},
“SurfaceConnectivity”: 3,
“TransportLayer”: {
“BandwidthLimit”: 950
}
},
“Port”: {
“DHCP”: false,
“Gateway”: null,
“IpAddress”: “10.0.0.254”,
“IpSubnetMask”: “255.255.255.0”,
“MAC”: “78:52:4a:00:1b:ac”,
“NetworkAdapter”: {
“DHCP”: false,
“Gateway”: null,
“IpAddress”: “10.0.0.2”,
“IpSubnetMask”: “255.255.255.0”,
“MAC”: “08:97:98:b2:4c:2a”,
“MaximumTransmissionUnit”: 1500,
“Name”: “Ethernet”
},
“Type”: “Ethernet”
},
“ResolvedLink”: {
“Rotation”: {
“Angle”: 0,
“Axis”: [
1,
0,
0
]
},
“Translation”: [
0,
0,
0
]
},
“Sensor”: {
“Left”: {
“FirmwareUpdateVersion”: null,
“FirmwareVersion”: “1.3.12”,
“GlobalShutter”: true,
“ModelName”: “B57-4”,
“Port”: {
“Bandwidth”: 1000,
“DHCP”: false,
“Gateway”: null,
“IpAddress”: “10.0.0.254”,
“IpSubnetMask”: “255.255.255.0”,
“MAC”: “78:52:4a:00:1b:ac”,
“MaximumTransmissionUnit”: 1500,
“NetworkAdapter”: {
“DHCP”: false,
“Gateway”: null,
“IpAddress”: “10.0.0.2”,
“IpSubnetMask”: “255.255.255.0”,
“MAC”: “08:97:98:b2:4c:2a”,
“MaximumTransmissionUnit”: 1500,
“Name”: “Ethernet”
},
“Type”: “Ethernet”
},
“SerialNumber”: “245363-Left”,
“Temperature”: 29.25
},
“Right”: {
“FirmwareUpdateVersion”: null,
“FirmwareVersion”: “1.3.12”,
“GlobalShutter”: true,
“ModelName”: “B57-4”,
“Port”: {
“Bandwidth”: 1000,
“DHCP”: false,
“Gateway”: null,
“IpAddress”: “10.0.0.254”,
“IpSubnetMask”: “255.255.255.0”,
“MAC”: “78:52:4a:00:1b:ac”,
“MaximumTransmissionUnit”: 1500,
“NetworkAdapter”: {
“DHCP”: false,
“Gateway”: null,
“IpAddress”: “10.0.0.2”,
“IpSubnetMask”: “255.255.255.0”,
“MAC”: “08:97:98:b2:4c:2a”,
“MaximumTransmissionUnit”: 1500,
“Name”: “Ethernet”
},
“Type”: “Ethernet”
},
“SerialNumber”: “245363-Right”,
“Temperature”: 28.9375
},
“Size”: [
2472,
2064
]
},
“SerialNumber”: “245363”,
“Status”: {
“Available”: false,
“Calibrated”: true,
“DynamicCalibrationLimitReached”: false,
“FirmwareSupportsModel”: true,
“IsApprovedFirmwareVersion”: true,
“IsSuppliedFirmwareVersion”: true,
“LocalEepromFile”: false,
“LowBandwidth”: false,
“MinimumVoltage”: 23.853616714477539062,
“Open”: true,
“Overtemperature”: false,
“Paired”: true,
“PowerOverEthernet”: false,
“ValidCameraFirmware”: true,
“ValidFirmware”: true,
“ValidIpAddress”: true,
“ValidProjectorFirmware”: true
},
“Temperature”: {
“Board”: 31.672832489013671875,
“CPU”: 35.049999237060546875
},
“Type”: “Stereo”,
“_NxLibVersion”: {
“CodeMeter”: {
“Build”: 5625,
“Enabled”: true,
“HasLicense”: false,
“Major”: 7,
“Minor”: 60,
“Status”: “CodeMeter API successfully loaded.”
},
“FirmwareVersion”: {
“B5x”: {
“Build”: 0,
“Major”: 1,
“Minor”: 3
},
“C5x”: {
“Build”: 0,
“Major”: 1,
“Minor”: 3
}
},
“NxLib”: {
“Build”: 1502,
“Day”: 13,
“Hash”: “751abfc4b72d9551e808ef1e63335323138bf7ac”,
“Major”: 4,
“Minor”: 0,
“Month”: 8,
“Year”: 24
},
“PartFinder”: {
“HasLicense”: false
},
“Projector”: {
“FirmwareVersion”: {
“Application”: 37,
“Bootloader”: 18
}
},
“RayTracing”: {
“HasLicense”: false
},
“SystemInfo”: {
“Architecture”: “x64”,
“CPU”: {
“Cores”: 6,
“Feature”: {
“Avx2”: true,
“PopCnt”: true
},
“Threads”: 12
},
“CUDA”: {
“Devices”: [
{
“ClockRate”: 1515,
“ComputeCapability”: “7.5”,
“Cores”: 896,
“Integrated”: false,
“Memory”: 4096,
“Name”: “NVIDIA GeForce GTX 1650”
}
],
“ErrorText”: “”,
“Version”: 12050
},
“Memory”: 16221,
“OperatingSystem”: “Windows”
},
“UEye”: {
“Status”: “No UEye driver loaded.”
}
},
“_Timestamp”: “2024-09-11T19:04:42”
}

Hope this helps
Best regards,
Stefaan

Hi Stefaan,

Thanks for sharing the details. It looks like you’re using the UpdateFirmware command incorrectly, which is likely causing the error.

Instead of manually editing the nodes, I recommend using the built-in UI tool in NxView for the firmware update. Here’s a simpler way to proceed:

  1. Open the camera selection dialog in NxView.
  2. Press the Alt key (Windows) or Ctrl key (Linux) and right-click on your camera.
  3. From the context menu that appears, select the option to update the firmware.

This should take care of the firmware update process for you without needing to manually adjust the node values.

Hope this helps! Let me know how it goes.

Best,
Peter

Hi Peter,

Thanks for the information.

We upgraded using the proposed method and the error messages are gone !
NxView shows the views we were expecting.

We’ll start exploring the camera as of next week.

Many thanks for your timely and effective support !

Cheers,
Stefaan