question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Python freeze on camera = pylon.InstantCamera(pylon.TlFactory.GetInstance().CreateFirstDevice())

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:16 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
SMA2016acommented, May 7, 2021

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
1reaction
SMA2016acommented, May 5, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found