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

Most upvoted comments

Now we understood the issue better. there are 2 Workarounds:

  1. reboot the system.
  2. link the genicam cache directory to a directory that is not existing. e.g GENICAM_CACHE_V3_1=/tmp/tmp2

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 pypylon 1.7.2 via pip). 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.