nimble00 / PTGREY-cameras-with-python

These files explain how to use 'ptgrey' cameras with python. I felt the need to make this because there is not even an introductory code (to take a picture using ptgrey cameras) available on internet. take_a_photo.py is the basic code people usually need but I have added links to a few possibly helpful websites.
61 stars 19 forks source link

segmentation fault after executing these files #2

Open showaykerker opened 5 years ago

showaykerker commented 5 years ago

I have a i7-8700 machine on Ubuntu 18.04 LTS, 16g ram python3 with BFS-U3-13Y3C-C connected with USB3 cable but when I execute these files or start to do acquisition in SpinView, it just keep crushing. I'm wondering if there is any possible reasons?

nimble00 commented 5 years ago

Could you please elaborate? It'd be helpful if you tell the name of the exception thrown or whatever happens.

showaykerker commented 5 years ago

well, it shows this line when I executing Acqusition.py from Example code :

Error: Spinnaker: Could not Start Acquisition [-1010]

and when i ran spinview, it turned out to throw an error which said 'Segmentation failed (core dumped)'

showaykerker commented 5 years ago

I realize that it is an IO problem, but it went well on win10 on the same computer, is there any chance that I install driver incorrectly? I just reinstall spinnaker 1.18 sdk released at 2018/10/25 and python3 whl 1.15. It just show the same error.

undoomed commented 5 years ago

I am having the same issues with pyspin and spinview. There is no other information about this error online apparently. @showaykerker did you manage to solve this?

showaykerker commented 5 years ago

@undoomed Sorry for not updating the solution after I got one from a ptgrey eingineer. In my case, it was an USBFS issue, Ubuntu has some sort of defaulted memory limit and needed to be modify in the configuration in order to handle large images. You can find the solution in the following link : )

https://www.ptgrey.com/tan/10685#ConfiguringUSBFS&gt

undoomed commented 5 years ago

Thank you so much for replying so swiftly, I got it working now. For me it didn't work without also modifying my grub. Just loading the module was not enough.

zendevil commented 5 years ago

I'm experiencing the same issue, however, the link above doesn't have the solution.

matthub commented 5 years ago

The web site was restructered so the link is now https://www.flir.com/support-center/iis/machine-vision/application-note/understanding-usbfs-on-linux/ basically it is saying to either set it in /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.usbfs_memory_mb=1000"

and then update grub with sudo update-grubor to use following command

$ sudo sh -c 'echo 1000 > /sys/module/usbcore/parameters/usbfs_memory_mb'

For me on 18.04.2 LTS the first way worked well.

mcarpenterjr commented 4 years ago

Anybody make ony progress on this? I have a set of USB3 cameras that connect to spinview without issue, after updating usbfs's memory limit.

Except they will not start acqusition from python, I can read and set nodes without issue, but once BeginAcquisition() is called, the script exits. This is the case with all of the cameras in my array. even when connecting them individually.

zgxsin commented 4 years ago

I have the same issue here.