-
Notifications
You must be signed in to change notification settings - Fork 212
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
BUG: Segmentation fault calling CreateFirstDevice() #797
Comments
Can you show the full docker run cmdline ? |
Hi, can you try to install libusb package from Ubuntu (libusb-1.0) and remove the libusb from the pypylon package. cd $(python3 -m site --user-site)/pypylon
rm -rf pylon-libusb-1.0.27.so
sudo apt-get install libusb-1.0 In this case, pylon will fallback to the libusb from the system. |
Sorry for the delayed response; I needed additional time to perform thorough tests and pinpoint the source of the issue.
For testing, I used the following command:
I tried this approach, but unfortunately, it did not resolve the issue. After thoroughly reviewing all the Docker image build steps, I identified the conflicting line that caused the issue with pypylon==4.1.0: It seems that this optimization caused the segmentation fault with pypylon==4.1.0, even though pypylon==4.0.0 worked fine with the same configuration. |
since the camera is a GigE one, it is easier to remove /usr/local/lib/python3.11/site-packages/pypylon/libpylon_TL_usb.so just for testing. Of course make a backup of the file |
Describe the issue:
After upgrading to pypylon==4.1.0 from 4.0.0 using pip, I consistently encounter a "Segmentation fault" every time I call CreateFirstDevice() within a Docker container.
Downgrading to pypylon==4.0.0 resolves the issue, and the segmentation fault does not occur in this version.
This issue is specific to Docker, as it does not reproduce on the host OS. Both the Docker environment and the host OS are running Ubuntu 22.04 with python 3.11.7, with Docker configured to run in privileged mode.
Reproduce the code example:
Error message:
Is your camera operational in Basler pylon viewer on your platform
Yes
Hardware setup & camera model(s) used
Camera used: a2A2448-23gmBAS
PC: X86_64 Ubutu 22.04 - 32GB RAM
Interfaces: Ethernet, direct connection
Runtime information:
The text was updated successfully, but these errors were encountered: