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 what you want to implement and what the issue & the steps to reproduce it are:
import warnings
from pypylon import pylon
def main():
print("Hello from basler-camera-problems!")
tlf = pylon.TlFactory.GetInstance()
devices = tlf.EnumerateDevices()
n_cameras = len(devices)
camera_array = pylon.InstantCameraArray(n_cameras)
camera_indices = [0, 1]
for idx, (camera_idx, camera) in enumerate(zip(camera_indices, camera_array)):
camera.Attach(tlf.CreateDevice(devices[idx]))
camera.SetCameraContext(camera_idx)
camera_array.Open()
for cam in camera_array:
cam.AcquisitionFrameRateEnable.SetValue(True)
cam.AcquisitionFrameRate.SetValue(20)
cam.TriggerSelector.SetValue("FrameStart")
cam.TriggerMode.SetValue("Off")
cam.AcquisitionMode.SetValue("Continuous")
cam.Width.SetValue(cam.SensorWidth.GetValue())
cam.Height.SetValue(cam.SensorHeight.GetValue())
cam.OffsetX.SetValue(0)
cam.OffsetY.SetValue(0)
cam.ReverseX.SetValue(False)
cam.ReverseY.SetValue(False)
camera_array.StartGrabbing(
pylon.GrabStrategy_OneByOne, pylon.GrabLoop_ProvidedByUser
)
while True:
with camera_array.RetrieveResult(
5000, pylon.TimeoutHandling_ThrowException
) as grab_result:
if grab_result.GrabSucceeded():
if pylon.PayloadType_Image != grab_result.PayloadType:
warnings.warn("Unexpected payload type received")
continue
camera_idx = grab_result.GetCameraContext()
frame_counter = grab_result.ImageNumber
grab_result.Release()
else:
msg = f" Grab failed. Code: {grab_result.GetErrorCode()}"
msg += f" Description: {grab_result.GetErrorDescription()}"
print(msg)
if __name__ == "__main__":
main()
After a while, the code above results in the following:
Grab failed. Code: 3791651074 Description: The buffer was cancelled.
(A while being around 30min)
Is your camera operational in Basler pylon viewer on your platform
Describe what you want to implement and what the issue & the steps to reproduce it are:
After a while, the code above results in the following:
Grab failed. Code: 3791651074 Description: The buffer was cancelled.
(A while being around 30min)
Is your camera operational in Basler pylon viewer on your platform
No
Hardware setup used
X86_64
Ubuntu 24.04.1 LTS
32.0 GiB RAM
Camera(s) used
Two a2A4200 - 40umBAS
Runtime information:
The text was updated successfully, but these errors were encountered: