pypylon: Python freeze on camera = pylon.InstantCamera(pylon.TlFactory.GetInstance().CreateFirstDevice())
Hi 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
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 16
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
Same issue here, Basler a2A3840-13gmPRO. Connected via GigE. Latest versions (downloaded pylon today v6.2.0.21487, installed
pypylon1.7.2 viapip). MacOS 11.2.3 (Intel arch), Python 3.7. Note: can inspect and use the camera with pylon viewer.When disconnecting the cable - I get instant exception. When cable is connected - the program freezes.
Further investigation shows that that this code:
pylon.TlFactory.GetInstance().EnumerateDevices()also hangs when enumerating.