Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Driver keeps crashing with GigE Camera #120

Open
devraise opened this issue Aug 2, 2023 · 16 comments
Open

Driver keeps crashing with GigE Camera #120

devraise opened this issue Aug 2, 2023 · 16 comments

Comments

@devraise
Copy link

devraise commented Aug 2, 2023

I'm trying to use the driver with a Blackfly S (BFS-PGE-04S2C-CS). After a few seconds of running it keeps giving me the following error and stops sending any images. Any help would be much appreciated. I'm using Spinnaker version 3.1.0.79

[ERROR] [1690942495.116732889]: [SpinnakerCamera::grabImage] Failed to retrieve buffer with error: Spinnaker: Failed waiting for EventData on NEW_BUFFER_DATA event. [-1011]
[ERROR] [1690942495.116979827]: Failed to disconnect with error: [SpinnakerCamera::disconnect] Failed to disconnect camera with error: Spinnaker: Can't de-initialize camera. Camera is still streaming. [-1004]
@KDeng98
Copy link

KDeng98 commented Apr 10, 2024

Hi there,
I also have the same problem. Any idea of how to fix it? Thanks.

EDITED
For those who encountered the same issues, you may be interested in using the other camera. Only my GigE camera keeps failing while my USB3 camera is always alive.

@jtaveau
Copy link

jtaveau commented May 6, 2024

Got the same issue with this camera (Blackfly S BFS-PGE-63S4C), anyone got results on that?

@w577658669
Copy link

Got the same issue with this camera (A70), anyone got results on that?

@jtaveau
Copy link

jtaveau commented Aug 30, 2024

Hey, have you tried increasing your socket buffer size ?
Are Jumbo packages enabled on your NIC?

@w577658669
Copy link

I didn't increase the socket buffer size.I just used the ROS driver according to https://www.flir.cn/support-center/iis/machine-vision/application-note/using-ros-with-spinnaker/ I don't knowJumbo packages

@jtaveau
Copy link

jtaveau commented Aug 30, 2024

Then try those 2 things, and that should solve your issue, that's how I solved it on my side.

@w577658669
Copy link

Thanks I'll try it

@w577658669
Copy link

I use the commands,but it doesn't work.
sudo sysctl –w net.core.rmem_max=2147483647
sudo sysctl –w net.core.wmem_max=2147483647
sudo sysctl –w net.core.rmem_default=2147483647
sudo sysctl –w net.core.wmem_default=2147483647

@jtaveau
Copy link

jtaveau commented Aug 30, 2024

What does not work?

@w577658669
Copy link

The terminal also displays:
[ERROR] [1725006449.112335831]: [SpinnakerCamera::grabImage] Failed to retrieve buffer with error: Spinnaker: LogicalErrorException NULL pointer dereferenced [-2005]
[ERROR] [1725006449.112987800]: Failed to disconnect with error: [SpinnakerCamera::disconnect] Failed to disconnect camera with error: Spinnaker: Can't de-initialize camera. Camera is still streaming. [-1004]

@jtaveau
Copy link

jtaveau commented Aug 30, 2024

Can you double check if the values defined are you taken into account?

cat /proc/sys/net/core/rmem_default

Otherwise, are you using jumbo packages or not?

@w577658669
Copy link

image

I don't know if I use jumbo packages or not.

@jtaveau
Copy link

jtaveau commented Aug 30, 2024

Perfect, sent the output of

ip a

The MTU size on your ethernet network interface should be set to 9000

@w577658669
Copy link

image
I set the MTU size to 9000,but also display:
image

@jtaveau
Copy link

jtaveau commented Aug 30, 2024

Then I don't know, good luck in finding where it's coming from!

@w577658669
Copy link

OK,Thanks a lot even if the problem hasn't been solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants