Open Niv-R opened 1 day ago
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.
Can you show the full docker run cmdline ?
For testing, I used the following command:
docker run -it --network host --privileged <image> bash
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.
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:
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libtcmalloc.so.4
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.
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: