basler / pypylon

The official python wrapper for the pylon Camera Software Suite
http://www.baslerweb.com
BSD 3-Clause "New" or "Revised" License
574 stars 208 forks source link

BUG: Pylon 8.0 doesn't work on Ubuntu 24 #785

Open JustinMBrown opened 1 month ago

JustinMBrown commented 1 month ago

Describe the issue:

I have a fresh install of Ubuntu 24.04.1 LTS, and it won't open. I tried installing the mesa drivers but it says they don't exist.

Reproduce the code example:

It's not a code issue, but this is the only forum I can submit feedback.

Error message:

No response

Is your camera operational in Basler pylon viewer on your platform

Yes

Hardware setup & camera model(s) used

CPU architecture: X86_64 OS: Ubuntu 24.04.1 LTS Desktop RAM: 32GB

Runtime information:

Ubuntu 24.04.1 LTS
bjoernrennfanz commented 1 month ago

Hello please make sure you have installed the required packages according to the release notes

libgl1-mesa-dri, libgl1, libglx-mesa0, libxcb-xinerama0, and libxcb-xinput0

With best regards.

thiesmoeller commented 1 month ago

Is it possible that you installed pylon deb file using dpkg ?

If you install via apt-get install ./pylon_xxx.deb the dependencies should be resolved automatically

SMA2016a commented 1 month ago

you also need libxcb-cursor0 for pylon 8

nouvak commented 1 month ago

I'm getting the same Segmentation fault (core dumped) crash when trying to execute Pylons 8.0 on Ubuntu 24.04. I confirm I have all the above dependencies installed: libgl1-mesa-dri, libgl1, libglx-mesa0, libxcb-xinerama0, and libxcb-xinput0, libxcb-cursor0.

The stack trace of the segmentation fault:

Thread 1 "pylonviewer" received signal SIGSEGV, Segmentation fault.
Downloading source file /usr/src/wayland-1.22.0-2.1build1/build/../src/wayland-util.c
0x00007ffff4924098 in wl_list_insert (list=0x555555628cf0,                      
    elm=elm@entry=0x5555556a7f30) at ../src/wayland-util.c:50
warning: 50 ../src/wayland-util.c: No such file or directory
(gdb) bt
#0  0x00007ffff4924098 in wl_list_insert (list=0x555555628cf0, 
    elm=elm@entry=0x5555556a7f30) at ../src/wayland-util.c:50
#1  0x00007ffff4924118 in wl_proxy_create_wrapper (proxy=0x555555628c10)
    at ../src/wayland-client.c:2456
#2  0x00007ffff49d5091 in ?? () from /lib/x86_64-linux-gnu/libEGL_mesa.so.0
#3  0x00007ffff49ca3f8 in ?? () from /lib/x86_64-linux-gnu/libEGL_mesa.so.0
#4  0x00007ffff49b89d8 in ?? () from /lib/x86_64-linux-gnu/libEGL_mesa.so.0
#5  0x00007ffff5c9340c in QtWaylandClient::QWaylandEglClientBufferIntegration::initialize(QtWaylandClient::QWaylandDisplay*) ()
   from /opt/pylon/lib/Qt/res/archdatadir/plugins/wayland-graphics-integration-client/../../../../lib/libQt6WaylandEglClientHwIntegration.so.6
#6  0x00007ffff4cb901e in QtWaylandClient::QWaylandIntegration::initializeClientBufferIntegration() ()
   from /opt/pylon/lib/Qt/res/archdatadir/plugins/platforms/../../../../lib/libQt6WaylandClient.so.6
#7  0x00007ffff4cb96a5 in QtWaylandClient::QWaylandIntegration::clientBufferIntegration() const ()
   from /opt/pylon/lib/Qt/res/archdatadir/plugins/platforms/../../../../lib/libQt6WaylandClient.so.6
#8  0x00007ffff4cb81cf in QtWaylandClient::QWaylandIntegration::createPlatformOpenGLContext(QOpenGLContext*) const ()
   from /opt/pylon/lib/Qt/res/archdatadir/plugins/platforms/../../../../lib/libQt6WaylandClient.so.6
--Type <RET> for more, q to quit, c to continue without paging-- 
#9  0x00007ffff6337105 in QOpenGLContext::create() () from /opt/pylon/bin/../lib/Qt/lib/libQt6Gui.so.6
#10 0x00007ffff5fc5f18 in QGuiApplicationPrivate::init() () from /opt/pylon/bin/../lib/Qt/lib/libQt6Gui.so.6
#11 0x00007ffff6b93abd in QApplicationPrivate::init() () from /opt/pylon/bin/../lib/Qt/lib/libQt6Widgets.so.6
#12 0x0000555555560682 in ?? ()
#13 0x000055555555b99d in ?? ()
#14 0x00007ffff4a2a1ca in __libc_start_call_main (main=main@entry=0x55555555b7a0, argc=argc@entry=1, argv=argv@entry=0x7fffffffdd08)
    at ../sysdeps/nptl/libc_start_call_main.h:58
#15 0x00007ffff4a2a28b in __libc_start_main_impl (main=0x55555555b7a0, argc=1, argv=0x7fffffffdd08, init=<optimized out>, 
    fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdcf8) at ../csu/libc-start.c:360

The advice from the similar issue report (https://github.com/basler/pypylon/issues/760) helped, if I execute the following command, pylonviewer starts fine:

QT_QPA_PLATFORM=xcb /opt/pylon/bin/pylonviewer
thiesmoeller commented 1 month ago

Beside looking into it,.we have to add Wayland or X11 to query beside os version ...

nouvak commented 1 month ago

Ubuntu version: 24.04.1 LTS Version of mutter (Wayland display server): 46.0-1ubuntu9 X11 version: 11.0 X.Org version: 23.2.6

SMA2016a commented 6 days ago

did you also install libxcb-cursor0?