nextfoam / baram

CFD for Everyone
https://baramcfd.org/
GNU General Public License v3.0
92 stars 18 forks source link

Rocky 9.1 | Creation of new case fails #26

Closed Ricky-Tigg closed 1 year ago

Ricky-Tigg commented 1 year ago

kernel v.: 5.14.0 | distribution: Rocky Linux 9.1 x86_64 | baram v.: 22.0.4 | window system: Wayland (served by Mutter in my user session)

$ dnf -q rq --installed --archlist noarch,x86_64 --qf '%{name} %{version} | %{summary}' gcc python3 vte291 glibc openmpi git-core
gcc 11.3.1 | Various compilers (C, C++, Objective-C, ...)
git-core 2.31.1 | Core package of git with minimal functionality
glibc 2.34 | The GNU libc libraries
openmpi 4.1.1 | Open Message Passing Interface
python3 3.9.14 | Python 3.9 interpreter
vte291 0.64.2 | Terminal emulator library
$ python3 -m pip show pip | grep ^Version
Version: 22.3.1

Hello. Running BARAM.

[(...)]$ python3.9 -m venv venv && source ./venv/bin/activate
(venv) [(...)]$ python main.py
Warning: Ignoring WAYLAND_DISPLAY on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.

The GUI wizard opens. It processes successfully the selection of New case, till the end with default selections, which is where Finnish is presented. Output resulting from clicking Finnish.

X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  12 (X_ConfigureWindow)
  Resource id in failed request:  0x4
  Serial number of failed request:  7
  Current serial number in output stream:  8
jiban commented 1 year ago

Hello, Ricky. I've tried running BARAM on Rocky Linux 9.1 Rocky Linux seem to adopt wayland display server rather than X11 by default. However, QT has a problem in embedding OpenGL widget on wayland as you can see here, and the problem is not solved yet.

So, for now, we have to run BARAM only on X11 display server. But, as you may know, you can run X11 client applications on wayland because "Xwayland" is running for this purpose. To run BARAM as X11 client, following can be typed on a shell command line. (venv) [(...)]$ QT_QPA_PLATFORM=xcb python main.py

By the way, I found that following packages are required to install to run QT program as X11 client.

Ricky-Tigg commented 1 year ago

So those components too from the xcb-util family were relevant in regard to an investigation. In that family xcb-util alone was pre-installed. At last, while none of QT components are installed, checked with dnf --installed list qt*, the application is displayed thanks to your suggestion.

jiban commented 1 year ago

I'm glad to hear that it's ok now. I came to know that QT6 OpenGL is not working with wayland thanks to you. Thank you for giving me the clue.

Ricky-Tigg commented 1 year ago

From our discussion i could deduce that BARAM is built at least against a version of QT. Nevertheless if so, as it appears, no QT components are required installed in order to properly run this application. At last i learned that the QT platform supports plug-ins; wayland-egl, wayland, xcb among them. The details found here shall ideally complete the current installation instructions. No doubt that they will be found if needed. So it seems to me we can close.