Python freeze on camera = pylon.InstantCamera(pylon.TlFactory.GetInstance().CreateFirstDevice())
See original GitHub issueHi all,
I have a running software using pypylon and Basler acA USB cameras.
Every now and then Python freezes on the command:
camera = pylon.InstantCamera(pylon.TlFactory.GetInstance().CreateFirstDevice())
The annoying thing is that the command does not crash, python just freezes indefinitely. Opening the cameras in Pylon Viewer often result in that it freezes and “goes gray”
Has anybody else encountered similar issues? Is it possible to add an exception to that command, E.G. a 5-second timeout?
NVIDIA Jetson Xavier with JetPack 4.4 GNU/Linux (Ubuntu 18.04) 4.9.140-tegra aarch64
Thank you
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:16 (4 by maintainers)
Top Results From Across the Web
Can't save a picture from a Basler acA5472-17um Camera ...
1 Answer 1 · go to pylon Viewer and reset camera to default settings (User Set Control > User Set Selector: Default User...
Read more >How to use the pypylon.pylon.TlFactory function in ... - Snyk
print("Waiting for an image to be grabbed.") try: camera = pylon.InstantCamera(pylon.TlFactory.GetInstance().CreateFirstDevice()) grabResult = camera.GrabOne( ...
Read more >Getting started with Basler cameras - Python for the Lab
This tutorial will focus on learning how to get started with the cameras and how to leverage the existing Pylon Viewer to speed...
Read more >How can I capture the cameras' video at the real time?
PylonInitialize (); try { // Get the transport layer factory. CTlFactory& tlFactory = CTlFactory::GetInstance(); // Get all attached devices ...
Read more >Make Executable file of python pypylon project using ...
InstantCamera (tlfactory.CreateFirstDevice()) # Open camera self.camera.Open() # Set max number of frame buffers self.camera.MaxNumBuffer = 50 # Initialize ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Now we understood the issue better. there are 2 Workarounds:
Thank you very much for providing the strace log. I will also try to produce the issue and get back you with the result asap