Skip to content

smaple grabmultiplecameras gives segfault when using more than one camera #856

@tale-aasland

Description

@tale-aasland

Describe what you want to implement and what the issue & the steps to reproduce it are:

Hi,

I'm new to pypylon, and presently I'm simply testing the samples. The goal is to use multiple cameras, so I ran the sample snippet grabmultiplecameras.py. It runs nicely with only one camera. However, if I use two or more cameras, the script runs through everything as it should, gives the output and then segfaults at the end.

Final terminal output:
Camera 0 : acA800-510uc
GrabSucceeded: True
SizeX: 816
SizeY: 616
Gray value of first pixel: 19
Segmentation fault (core dumped)

Does anyone know what's happening?

Thanks!

Is your camera operational in Basler pylon viewer on your platform

Yes

Hardware setup used

System:
Kernel: 6.8.0-85-generic arch: x86_64 bits: 64 compiler: gcc v: 13.3.0
Desktop: Cinnamon v: 6.4.8 Distro: Linux Mint 22.2 Zara
base: Ubuntu 24.04 noble
Machine:
Type: Desktop System: HP product: HP EliteDesk 800 G8 Tower PC v: SBKPF
serial:
Mobo: HP model: 889C v: KBC Version 10.04.23 serial:
UEFI: HP v: T01 Ver. 02.19.00 date: 07/04/2025
CPU:
Info: 8-core model: 11th Gen Intel Core i7-11700 bits: 64 type: MT MCP
arch: Rocket Lake rev: 1 cache: L1: 640 KiB L2: 4 MiB L3: 16 MiB

RAM 32GB

Cameras are plugged directly into the usb 3 ports of my desktop PC.

Cables: Cable USB 3.0, Micro B sl/A, P, 5 m and 3m

Camera(s) used

Camera 1: acA1440-220uc, device version 107653-07, device firmware version 107653-07;U;acA1440_220uc;V1.4-4;1

Camera 2: acA800-510uc, device version 106765-04, device firmware version 106765-04;U;acA800-510u;V0.5-1;1

Runtime information:

pylon version is 8.10 (it's the newest one that I could get working on this distro).

python: 3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0]
platform: linux/x86_64/6.8.0-85-generic
pypylon: 4.2.0 / 10.2.1.471

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions