pypylon icon indicating copy to clipboard operation
pypylon copied to clipboard

The camera device has been physically removed

Open MehdiiHs opened this issue 2 years ago • 9 comments

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)

MehdiiHs avatar Jun 22 '22 04:06 MehdiiHs

what interface? USB or GigE?

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

SMA2016a avatar Jun 25 '22 09:06 SMA2016a

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?

hutomosaleh avatar Jul 15 '22 09:07 hutomosaleh

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

thiesmoeller avatar Jul 18 '22 12:07 thiesmoeller

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

niilona avatar Aug 30 '22 08:08 niilona

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

bnascimento avatar Feb 28 '23 17:02 bnascimento

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

alorcamo avatar Mar 29 '23 11:03 alorcamo

Same error here. Was anyone able to resolve this?

PaVaNTrIpAtHi avatar May 22 '23 09:05 PaVaNTrIpAtHi

Same issue. Any updates?

EvanBrownVTM avatar Sep 18 '23 16:09 EvanBrownVTM

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.

maschbauerkl avatar Nov 28 '23 13:11 maschbauerkl