QGIS does not work correctly.

Dear openSUSE users,

I have to use QGIS; however, application does not work correctly. I tried every methods exist in the web. Only flatpak runns without problem, but I don’t want to use flatpak because it uses to much place in disk.
At he start, QGIS gives error about QT-Widgets, when I move mouse cursor to tabs, info boxes are just blank rectangle, rather than information texts.

How can I solve this issue?
Does anyone use QGIS without any problem?
Thank you.

Can we assume you try to run qgis as installed from the standard OSS repo? And that you installed it with either YaST > Software > Software Management or zypper in qgis without any troubles?

Please tell us which Desktop Environment you use (KDE, Gnome. …).

Please start it from a terminal emulator and then show what the messages are.

BTW, I see you are new here. Welcome. And please note the following:

There is an important, but not easy to find feature on the forums.

Please in the future use CODE tags around copied/pasted computer text in a post. It is the # button in the tool bar of the post editor. When applicable copy/paste complete, that is including the prompt, the command, the output and the next prompt.

An example is here: Using CODE tags Around your paste.

Regards,

I have QGIS installed on my Tumbleweed install (20221117) and I did start QGIS desktop via the start menu, no problem.

> sudo zypper info qgis

Information for package qgis:

Repository : repo-oss
Name : qgis
Version : 3.24.1-5.3
Arch : x86_64
Vendor : openSUSE
Installed Size : 309.1 MiB
Installed : Yes
Status : up-to-date
Source package : qgis-3.24.1-5.3.src
Upstream URL : https://qgis.org/
Summary : A Geographic Information System (GIS)

I did disable https://download.opensuse.org/repositories/Application:Geo/openSUSE_Tumbleweed/ about 3 weeks ago as that was giving problems when running “zypper dup”.

Please start qgis from Console:

qgis

I work with QGIS daily on Tumbleweed (XFCE) without problems. Mat be you are having problems with some dependencies?

You can also consider building it from source yourself. I have done that for years and seldom had any problem … that is apart from the rough beginnings. You will learn a lot about dependencies!:wink:

I am getting this error: Qt: QLayout::removeWidget: Cannot remove a null widget.

NAME=“openSUSE Tumbleweed”

VERSION=“20221117”

ID=“opensuse-tumbleweed”
ID_LIKE=“opensuse suse”
VERSION_ID=“20221117”
PRETTY_NAME=“openSUSE Tumbleweed”
ANSI_COLOR=“0;32”
CPE_NAME=“cpe:/o:opensuse:tumbleweed:20221117”
BUG_REPORT_URL=“https://bugs.opensuse.org
HOME_URL=“https://www.opensuse.org/
DOCUMENTATION_URL=“https://en.opensuse.org/Portal:Tumbleweed
LOGO=“distributor-logo-Tumbleweed”

My desktop is GNOME 43.1

*@:~> qgis
src/app/main.cpp:513 : (main) [0ms] RLIMIT_NOFILE Soft NEW: 4096 / 524288
src/app/main.cpp:518 : (main) [0ms] RLIMIT_NOFILE Soft/Hard ORIG: 1024 / 524288
src/app/main.cpp:523 : (main) [0ms] Starting qgis main
Info: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
src/core/qgsmessagelog.cpp:29 : (logMessage) [886ms] 2022-11-19T21:48:40 [1] Successfully loaded globalsettingsfile path: /usr/share/qgis/resources/qgis_global_settings.ini
src/core/symbology/qgssymbollayerutils.cpp:1270 : (loadSymbol) [212ms] no layers for symbol
src/core/symbology/qgssymbollayerutils.cpp:1270 : (loadSymbol) [1ms] no layers for symbol
src/core/providers/qgsproviderregistry.cpp:329 : (init) [253ms] Loaded 24 providers (DB2;OAPIF;WFS;arcgisfeatureserver;arcgismapserver;delimitedtext;ept;gdal;geonode;gpx;mdal;memory;mesh_memory;mssql;ogr;pdal;postgres;postgresraster;spatialite;vectortile;virtual;virtualraster;wcs;wms)
Warning: QLayout::removeWidget: Cannot remove a null widget.
Stacktrace (c++filt NOT FOUND):

***I tried to add screenshot but I got error like “The text that you have entered is too long (457913 characters). Please shorten it to 15000 characters long.”

For repo, I fresh installed this one from main repository. However, I also tried from evey kind of repositories that I can. None of them worked properly. Only solution is flatpak (which is too heavy) or maybe I will try to install building by source, but I don’t know how to build it by source. There are information for qgis building by debian based distros but I couldn’t find for openSUSE.

Thank you all, thanks a lot.
Best regards,
greenvy

Please use Code-Tags, make many things easier…
https://forums.opensuse.org/showthread.php/536143-Using-Code-Tags-Around-Your-Paste

user@host:~> cat /etc/os-release
NAME=“openSUSE Tumbleweed”

VERSION=“20190520”

ID=“opensuse-tumbleweed”
ID_LIKE=“opensuse suse”
VERSION_ID=“20190520”
PRETTY_NAME=“openSUSE Tumbleweed”
ANSI_COLOR=“0;32”
CPE_NAME=“cpe:/o:opensuse:tumbleweed:20190520”
BUG_REPORT_URL=“https://bugs.opensuse.org
HOME_URL=“https://www.opensuse.org/
LOGO=“distributor-logo”
usr@host:~>

user@host:~> cat /etc/os-release
NAME="openSUSE Tumbleweed"
# VERSION="20221117"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20221117"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/ohttps://forums.opensuse.org/images/smilies/redface.pngpensuse:tumbleweed:20221117"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo-Tumbleweed"
usr@host:~>

You can call this an error but i see it as a warning and i see exactly the same message:

I can just click it away and things work as expected.

Which version are you running? It is the same as I listed earlier in the thread?

I also read in you log:

[FONT=courier new]Info: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.[/FONT]

That looks like a good advise to me.

Information for package qgis:
-----------------------------
Repository     : Main Repository (OSS)
Name           : qgis
Version        : 3.24.1-5.3
Arch           : x86_64
Vendor         : openSUSE
Installed Size : 309.1 MiB
Installed      : Yes
Status         : up-to-date
Source package : qgis-3.24.1-5.3.src


When you move mouse cursor to any of tab or icon, do you see info box or just blank rectangle?
I installed opensuse again and again, tried all other repos but I couldn’t get rid of these blank rectangles. In fedora or debian I did not see them :frowning:

Thank you

Can you try as User:

QT_QPA_PLATFORM=wayland qgis

It you look for this error in QGIS GitHub repository you see that this issue was fixed last August:

https://github.com/qgis/QGIS/pull/

So, try a newer version.

The QGIS project moves fast and code changes almost daily. Releases are made approximately once a month. This is one of the reasons I compile from source.

For building instructions you can have a look here, scroll down to QGIS:
https://scientiaplusconscientia.wordpress.com/software-and-install-notes/

The build process uses CMAKE so it is very simple really. You can fine tune the build to adapt to your needs and particular system. Beware that building from source can be a source of frustration at the beginning until you understand what is going on. The benefits are worth it IMO, you control what you put in your system, get the code with the latest bug fixes and features (… and may be new bugs too :slight_smile: ) without having to wait for someone to build a rpm for you.

I also believe that for very particular problems like this one it can be beneficial to look for them in the QGIS GitHub repository or ask in the QGIS mailing list. The community is very helpful.

Good luck

Okay we are running the same version.

When you move mouse cursor to any of tab or icon, do you see info box or just blank rectangle?

Everything works fine, menu’s open as expected and things like the Style Manager come up as expected

I see two differences, you are running gnome with wayland, I am running KDE with X11.

First thing to try is the suggestion I did earlier which was detailed by @Sauerland.

user@host: QT_QPA_PLATFORM=wayland qgis
src/app/main.cpp:513 : (main) [0ms] RLIMIT_NOFILE Soft NEW: 4096 / 524288
src/app/main.cpp:518 : (main) [2ms] RLIMIT_NOFILE Soft/Hard ORIG: 1024 / 524288
src/app/main.cpp:523 : (main) [0ms] Starting qgis main
Info: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Warning: Could not find the Qt platform plugin "wayland" in ""
Stacktrace (c++filt NOT FOUND):
qgis(+0x10d11)[0x5587b1cc1d11]
qgis(+0x1157f)[0x5587b1cc257f]
/lib64/libQt5Core.so.5(+0xedb50)[0x7f031a8edb50]
/lib64/libQt5Core.so.5(_Z17qt_message_output9QtMsgTypeRK18QMessageLogContextRK7QString+0xd)[0x7f031a8ef10d]
/lib64/libQt5Core.so.5(_ZN6QDebugD1Ev+0x68)[0x7f031a9f0a08]
/lib64/libQt5Gui.so.5(_ZN22QGuiApplicationPrivate25createPlatformIntegrationEv+0x1cb5)[0x7f031af72e95]
/lib64/libQt5Gui.so.5(_ZN22QGuiApplicationPrivate21createEventDispatcherEv+0x30)[0x7f031af73090]
/lib64/libQt5Core.so.5(_ZN23QCoreApplicationPrivate4initEv+0x8e5)[0x7f031aae2945]
/lib64/libQt5Gui.so.5(_ZN22QGuiApplicationPrivate4initEv+0x2c)[0x7f031af75efc]
/lib64/libQt5Widgets.so.5(_ZN19QApplicationPrivate4initEv+0x9)[0x7f031b7aa959]
/lib64/libqgis_core.so.3.24.1(_ZN14QgsApplicationC1ERiPPcbRK7QStringS5_+0x38)[0x7f031932d4f8]
qgis(+0xb0fc)[0x5587b1cbc0fc]
/lib64/libc.so.6(+0x275b0)[0x7f031822c5b0]
/lib64/libc.so.6(__libc_start_main+0x8b)[0x7f031822c679]
qgis(+0x10145)[0x5587b1cc1145]
src/core/qgsmessagelog.cpp:29 : (logMessage) [8ms] 2022-11-20T19:05:44 Qt[1] Could not find the Qt platform plugin "wayland" in ""
Critical: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Stacktrace (c++filt NOT FOUND):
qgis(+0x10d11)[0x5587b1cc1d11]
/lib64/libQt5Core.so.5(+0xedb50)[0x7f031a8edb50]
/lib64/libQt5Core.so.5(+0xedc68)[0x7f031a8edc68]
/lib64/libQt5Core.so.5(_ZNK14QMessageLogger8criticalEPKcz+0xaf)[0x7f031a8bad31]
/lib64/libQt5Gui.so.5(_ZN22QGuiApplicationPrivate25createPlatformIntegrationEv+0x190e)[0x7f031af72aee]
/lib64/libQt5Gui.so.5(_ZN22QGuiApplicationPrivate21createEventDispatcherEv+0x30)[0x7f031af73090]
/lib64/libQt5Core.so.5(_ZN23QCoreApplicationPrivate4initEv+0x8e5)[0x7f031aae2945]
/lib64/libQt5Gui.so.5(_ZN22QGuiApplicationPrivate4initEv+0x2c)[0x7f031af75efc]
/lib64/libQt5Widgets.so.5(_ZN19QApplicationPrivate4initEv+0x9)[0x7f031b7aa959]
/lib64/libqgis_core.so.3.24.1(_ZN14QgsApplicationC1ERiPPcbRK7QStringS5_+0x38)[0x7f031932d4f8]
qgis(+0xb0fc)[0x5587b1cbc0fc]
/lib64/libc.so.6(+0x275b0)[0x7f031822c5b0]
/lib64/libc.so.6(__libc_start_main+0x8b)[0x7f031822c679]
qgis(+0x10145)[0x5587b1cc1145]


I tried “QT_QPA_PLATFORM=wayland qgis” and I got like this. However, it did not solve yet.
I will try to build by code too. Thank you all for these all help, forum is really active :cool:

qgis is a qt application, you have installed gnome (gtk).
Maybe some qt is missing.
Can you install plasma besides?

Hi
It’s not an error, just a warning…

Do you actually get the application running in wayland?

Maybe you have some old data down in $HOME/.local/share/QGIS move the directory(or rename to say OLD_QGIS) and start qgis again and see if that helps

A qgis on Wayland issue from last year https://github.com/qgis/QGIS/issues/46031

If you have to install plasma to get it running, then there is something wrong with the packaging of qgis… I would not recommend, if you do then create a new user and log into plasma with that new user.

Not just a warning, info boxes of evey tabs and icons are blank and annoying. In fedora and debian, qgis with gnome-wayland working without any problem. Using it on plasma may solve, but still the question is while the same desktop other distros running without this unique problem but openSUSE has. I want to continue with gnome-wayland and openSUSE. I will try to build from source code when I have a time, or maybe next version will solve the issue I hope. Thank you all.

Warning: Could not find the Qt platform plugin "wayland" in ""

I think this is the root cause of the problem.

Here I read the solution to that problem was to install qt5-wayland or qt6-wayland

I could not find qt5-wayland package, but qt6-wayland is already installed. However, qt version of qgis is 5.15, so the problem is about there. Then, I installed libqt5-qtwayland[size=2], [/size][size=2]libQt5WaylandClient5[/size], libQt5WaylandCompositor5 **and kwayland. **However, still problem is not solved :frowning: