Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Exception with DiscoveryInterfaceEvent #177

@jmtatsch

Description

@jmtatsch

Hello,

we run 3 Mako G 319c in an industrial setting and recently noticed the following exception after running the system for 557689 frames:

Exception ignored on calling ctypes callback function: <bound method _BaseFeature.__feature_cb_wrapper of Feature(_handle=c_void_p(1),_info=VmbFeatureInfo(name=b'DiscoveryInterfaceEvent',featureDataType=<VmbFeatureData.Enum: 3>,featureFlags= <VmbFeatureFlags.Read: 1> <VmbFeatureFlags.Undocumented: 4>,category=b'/Discovery',displayName=b'Discovery Interface Event',pollingTime=0,unit=None,representation=None,visibility=<VmbFeatureVisibility.Beginner: 1>,tooltip=None,description=b'Indicates the last interface discovery event.',sfncNamespace=b'Custom',isStreamable=False,hasAffectedFeatures=False,hasSelectedFeatures=False))>
Traceback (most recent call last):
File "/home/user/.local/lib/python3.11/site-packages/vimba/feature.py", line 310, in __feature_cb_wrapper
raise e
File "/home/user/.local/lib/python3.11/site-packages/vimba/feature.py", line 302, in __feature_cb_wrapper
handler(self)
File "/home/user/.local/lib/python3.11/site-packages/vimba/vimba.py", line 573, in __inter_cb_wrapper
inter = [i for i in self.__inters if inter_id == i.get_id()].pop()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
IndexError: pop from empty list

What is the cause of this?
Should this maybe be mitigated by checking if the list is empty before popping it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions