genicam / harvesters

Image Acquisition Library for GenICam-based Machine Vision System
Apache License 2.0
500 stars 86 forks source link

Chameleon 3 camera: GenTL exception: Parameter not valid or out of range. (Message from the source: Error calling GenTL function system GCRegisterEvent.) (ID: -1009) #432

Open bonnom opened 9 months ago

bonnom commented 9 months ago

Describe the Issue I try to connect my Camera with Harvester GUI and I get an Error

To Reproduce Steps to reproduce the behavior:

  1. Launch Harvester gui
  2. Click on open CTI File and load the CTI file given by Spinnaker sdk
  3. Camera correctly shows up
  4. Click on connect camera
  5. Error shows up in terminal

Sample Code I can show a piece of code that demonstrates the reported phenomenon:

** Error

  File "C:\Users\Bonno\miniconda3\lib\site-packages\harvesters_gui-0.post0.dev118-py3.10.egg\harvesters_gui\frontend\pyqt.py", line 478, in action_on_connect
    self._ia = self.harvester_core.create(
  File "C:\Users\Bonno\miniconda3\lib\site-packages\harvesters\core.py", line 3082, in create
    return self._create_acquirer(device_proxy=device_proxy, config=config)
  File "C:\Users\Bonno\miniconda3\lib\site-packages\harvesters\core.py", line 3112, in _create_acquirer
    ia = ImageAcquirer(device_proxy=device_proxy_, config=config,
  File "C:\Users\Bonno\miniconda3\lib\site-packages\harvesters\core.py", line 1665, in __init__
    manager(module.register_event(event_type))
  File "C:\Users\Bonno\miniconda3\lib\site-packages\harvesters\core.py", line 228, in m
    return getattr(self._source_object, attribute)(*args)
  File "C:\Users\Bonno\miniconda3\lib\site-packages\genicam\gentl.py", line 2303, in register_event
    return _gentl.System_register_event(self, event_id)
_gentl.InvalidParameterException: GenTL exception: Parameter not valid or out of range. (Message from the source: Error calling GenTL function system GCRegisterEvent.) (ID: -1009)

Expected Behavior Can't connect

Configuration

Please note that I ported the Harvester GUI over to PyQt6 and python 3.10. However the error occurred in the Harvesters library

Reproducibility

This phenomenon can be stably reproduced:

** Additional Information

The Camera does work with my own Python libraries that use the official Spinnaker python libraries

edit: Fixed a typo and added what goes wrong

brad-phobos commented 7 months ago

I'm also seeing this on Harvesters 1.4.2, Python 3.10, with Ubuntu 22.04 and a Blackfly S using Spinnaker

eli-wolf-sinovia commented 4 months ago

I am also experiencing this issue. Harvesters 1.4.2 Python 3.7.16 Win 10 Point Grey (acquired by FLIR) Grasshopper3 GS3-U3-50S5M Spinnaker SDK v4 Full

Edit: After some quick testing, the issue does not seem to be present when switching to... Python 3.8.18 Harvesters 1.4.0