You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the Bug
When running Harvesters with the environment variable HARVESTERS_LOG_BUFFER_MANIPULATION set to True, Harvesters will throw an exception.
To Reproduce
Steps to reproduce the behavior:
Set environment variable HARVESTERS_LOG_BUFFER_MANIPULATION to True
Copy the minimal example script attached at the end of this issue and adapt the path to the cti file!
Run the minimal example script
Observe log output
Expected Behavior
No errors
Actual Behavior
The following error message can be seen:
Traceback (most recent call last):
File "C:/Users/Stefan/AppData/Roaming/JetBrains/PyCharm2021.3/scratches/scratch_22.py", line 31, in <module>
main()
File "C:/Users/Stefan/AppData/Roaming/JetBrains/PyCharm2021.3/scratches/scratch_22.py", line 23, in main
pass
File "c:\users\stefan\pycharmprojects\harvesters\src\harvesters\core.py", line 1160, in __exit__
self.queue()
File "c:\users\stefan\pycharmprojects\harvesters\src\harvesters\core.py", line 1257, in queue
_family_tree(self._buffer.module.parent)
File "C:\Users\Stefan\.venvs\fipy38\lib\site-packages\genicam\gentl.py", line 4260, in <lambda>
__getattr__ = lambda self, name: _swig_getattr(self, Buffer, name)
File "C:\Users\Stefan\.venvs\fipy38\lib\site-packages\genicam\gentl.py", line 93, in _swig_getattr
raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
AttributeError: 'Buffer' object has no attribute 'module'
Configuration
OS: Windows
Python: 3.8
Harvester: from git (see below)
GenTL Producer: Matrix Vision
Camera: Xenics Bobcat
Reproducibility
I bisected through the harvesters commits, and the first commit that shows this issue is 3d579a7dc917f7bb25333997cd9ac5b8cd29d5f0
This phenomenon can be reproduced by other versions:
[x ] Yes, all commits between at least 3d579a7dc917f7bb25333997cd9ac5b8cd29d5f0 and master (as of to date) are affected
Describe the Bug
When running Harvesters with the environment variable
HARVESTERS_LOG_BUFFER_MANIPULATION
set toTrue
, Harvesters will throw an exception.To Reproduce
Steps to reproduce the behavior:
HARVESTERS_LOG_BUFFER_MANIPULATION
toTrue
Expected Behavior
No errors
Actual Behavior
The following error message can be seen:
Configuration
Reproducibility
I bisected through the harvesters commits, and the first commit that shows this issue is
3d579a7dc917f7bb25333997cd9ac5b8cd29d5f0
This phenomenon can be reproduced by other versions:
3d579a7dc917f7bb25333997cd9ac5b8cd29d5f0
and master (as of to date) are affectedActions You Have Taken
Additional context
The text was updated successfully, but these errors were encountered: