basler / pypylon

The official python wrapper for the pylon Camera Software Suite
http://www.baslerweb.com
BSD 3-Clause "New" or "Revised" License
570 stars 207 forks source link

The camera device has been physically removed #509

Open MehdiiHs opened 2 years ago

MehdiiHs commented 2 years ago

I'm working with a jetson nano board and a Basler Ace camera, after my program worked for a while it shows an error and says "The camera device has been physically removed" and I can't get frames from the camera anymore. this error happens randomly not always. what caused this error and how can I fix this error?

Traceback (most recent call last):
  File "/home/sep/camera.py", line 556, in update
    im = cap.GrabOne(4000)
  File "/usr/local/lib/python3.6/dist-packages/pypylon/pylon.py", line 3604, in GrabOne
    return _pylon.InstantCamera_GrabOne(self, *args)
_genicam.RuntimeException: The camera device has been physically removed. : RuntimeException thrown (file 'InstantCameraImpl.h', line 2079)
SMA2016a commented 2 years ago

what interface? USB or GigE?

USB : cable quality , autosuspend mode etc.. GigE : Netqwwork overloaded?

hutomosaleh commented 2 years ago

what interface? USB or GigE?

USB : cable quality , autosuspend mode etc.. GigE : Netqwwork overloaded?

Hi, i'm experiencing this error too, I'm using GigE. Can you elaborate on the network overload problem?

thiesmoeller commented 2 years ago

Depending in your camera model, Basler GigE cameras can fully saturate the network connection. This could result in issues if your host is not fast enough to handle the amount of data received.

If you start the pylon viewer on your system you will find a menu item under Tools with a bandwidth manager which allows to find optimal settings for your system

niilona commented 2 years ago

It's a hard to get Basler camera in use after it's disconnected/connected again.

bnascimento commented 1 year ago

We face this issue as well: just open pylonviewer on a jetson orin I randomly get the following [2023-02-28 16:08:13.856][Info] Basler acA1920-40gc (24553637): "Basler acA1920-40gc (24553637)" has been removed. [2023-02-28 16:08:23.857][Info] Basler acA1920-40gc (24553637): "Basler acA1920-40gc (24553637)" has been detected. It cant be network load, as sometimes the camera itself is not being used at all. BTW we are trying to setup a stable solution for 2 GIGE cameras attached to jetson orin, without much success so far. See https://github.com/basler/pypylon/issues/589

alorcamo commented 1 year ago

Hi, I am getting this error too.

Setup: 2x Basler a2A2590-22gcBAS connected to an Intel I350-T4 ports B and C.

I get in one of them also: "Error: 3774873620 The buffer was incompletely grabbed. This can be caused by performance problems of the network hardware used, i.e. network adapter, switch, or ethernet cable. To fix this, try increasing the camera's Inter-Packet Delay in the Transport Layer category to reduce the required bandwidth, and adjust the camera's Packet Size setting to the highest supported frame size.".

I run the Bandwidth manager to optimize it. Jumbo packets are set to max of 9014 Bytes.

I interestingly enough, sometimes it works fine, sometimes not....

PaVaNTrIpAtHi commented 1 year ago

Same error here. Was anyone able to resolve this?

EvanBrownVTM commented 1 year ago

Same issue. Any updates?

maschbauerkl commented 11 months ago

I'm getting the same error. Sometimes, it's just not grabbing and after a while it's throwing this error. The strange thing is: The same setting (grabbing images as a background task inside a docker container) is working fine on my 12 year old laptop, but is 100% of the time crashing on a state of the art desktop pc with way more resources.