zbar icon indicating copy to clipboard operation
zbar copied to clipboard

zbarcam-qt dumps core

Open callegar opened this issue 8 months ago • 6 comments

I see it on manjaro and arch (it is ultimately the same binary on the two), with version 0.23.93.

It is sufficient to start the application to have it dump core.

> zbarcam-qt
Segmentation fault (core dumped)

The gtk client works.

callegar avatar May 04 '25 16:05 callegar

This seems to be well know. Apparently some linux distro disable building qt altogether (https://lists.nongnu.org/archive/html/guix-commits/2025-01/msg05598.html).

callegar avatar May 04 '25 16:05 callegar

Important note: when run as a wayland application. In X11 mode it works.

callegar avatar May 05 '25 06:05 callegar

I think that you need the equivalent of Commit 86e15ee for zbarcam-qt.

callegar avatar May 09 '25 07:05 callegar

QT_QPA_PLATFORM=xcb zbarcam-qt works on wayland

MorsMortium avatar Jul 24 '25 10:07 MorsMortium

QT_QPA_PLATFORM=xcb zbarcam-qt works on wayland

Indeed, as noted above the issue is when trying to run zbarcam-qt as a wayland application. But if the app cannot use wayland, it should probably default to X11, and not require an explicit env setting to be forced to run in X11 mode.

callegar avatar Jul 24 '25 12:07 callegar

True, it can also set the env var for itself, I've seen that once char env[] = "QT_QPA_PLATFORM=xcb"; putenv(env); Was just writing for those that couldn't find how to force the app, until it gets fixed.

MorsMortium avatar Jul 24 '25 13:07 MorsMortium