Skip to content

Failure to recover from RuntimeError when grabbing multiple images #21

Open
@RichardLangFromNZ

Description

@RichardLangFromNZ

Running Pylon libraries from within linux Mint 18 VM on Windows 7 VirtualBox host.

Occasionally get

"RuntimeError: The buffer was incompletely grabbed. This can be caused by performance problems of the network hardware used, i.e. network adapter, switch, or ethernet cable. To fix this, try increasing the camera's Inter-Packet Delay in the Transport Layer category to reduce the required bandwidth, and adjust the camera's Packet Size setting to the highest supported frame size."

thrown on camera.grab_image() call (due to delays/issues with VM network adapter bridge to host physical adapter I guess) however if the exception is caught, subsequent calls to grab_image() will complete successfully.

However if I try to grab multiple images using the grab_images() method, as follows

while True:
    try:
        for image in cam.grab_images(N):
            ...    
    except RuntimeError
        ...

once the above mentioned exception has occurred, all further calls to grab_images() fail with an un-commented RuntimeError.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions