-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grab timed out at random #752
Comments
I don't know if you are still having this issue. But correct me if I am wrong, it sounds like from your post that the connection to the cameras isn't completely stable. If you drop connection for more than a second, |
Hi kesaroid, or letting the pylon GigE Configurator doing the work for you With this much cameras connected to one switch please use the Bandwidth Manager in the pylon Viewer to setup the right Frame Transmission delay and Inter-Packet Delay. If the issue then still persists, could you tell how the camera behaves once this timeout happens? Does the camera stop the streaming and you get the timeout all the time? Why do you need to reinitialize the cameras? |
I understand your suggestion to increase |
For the application we are developing, the framerate is required to be 24. So, 1/24s would be an ideal
We have identified the best transport layer settings to be the following
Once the packet is not retrieved, the camera basically disappears. So, there is no point in trying to get the frame again, we just directly try to reinitialize the camera and wait till it is back online again. Since the frame is retrieved using the following snippet, isGrabbing is True, whereas RetrieveResult fails
No, it happens randomly. It happens once every hour or every couple of hours. It either happens during the time of initializing the camera, in which case we keep retrying, or happens randomly after a few hours, in which case we close the camera, and reinitialize.
Otherwise the streaming won't work. Even though |
If you are using multiple cameras, definitely look into using the If you would like your program to not crash from RetrieveResult, you can change the exception type to Otherwise, this seems like a hardware/networking problem, not a pypylon problem. This is unfortunately out of my expertise. Also, the camera.AcquisitionFrameRateEnable.SetValue(true);
camera.AcquisitionFrameRate.SetValue(24.0); The camera acquisition speed is independent of the |
I think In our use case we want to retrieve frames from those two cameras continuously. If we acquire one frame from one of the two cameras, and we don't manage to retrieve a frame from the other camera within We may definitely be seeing a networking issue here, but we have already followed the docs to change the MTU and other network parameters without luck. We also tried 2 different switches. By the way... When looking at CameraQuickTester results, the streaming test passes even if the PC didn't retrieve a few frames. Does that mean that, when streaming video, it is possible that now and then we lose one frame? If that's the case, how often could this hapen? |
Because this is a network related question and you are dealing with 24 cameras, I would recommend to take this issue to one of your local Basler support teams |
Describe what you want to implement and what the issue & the steps to reproduce it are:
A setup with 24 a2A1920-51gcPRO GigE cameras has been set up. Increasing the file descriptor made pylon-viewer more stable, and the cameras don't disappear from Devices as often. All of the cameras take up less than 5GBps so that does not seem to be the issue.
But after successfully initializing and running the cameras, after a few hours the following error occurs.
Initialization:
Frame capture:
Error:
The error happens at random and everytime it does, we just reinitialize the cameras and it works fine. We want to stop the error from occuring in the first place.
Is your camera operational in Basler pylon viewer on your platform
Yes
Hardware setup & camera model(s) used
CPU architecture: X86_64
Operating System: Ubuntu 22.04 Update 3
RAM: 128gb
Interfaces used to connect the cameras:
NIC: Broadcom 57504 quad NIC 10GBE
Switch: Netgear M4300-28G-POE+
Cable types/lengths: Combination of CAT6a, fiber/25 meters
Runtime information:
The text was updated successfully, but these errors were encountered: