Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QT under wayland causes painter to fail #150

Open
jakob1379 opened this issue Jan 24, 2025 · 2 comments
Open

QT under wayland causes painter to fail #150

jakob1379 opened this issue Jan 24, 2025 · 2 comments

Comments

@jakob1379
Copy link

jakob1379 commented Jan 24, 2025

Describe the bug
the regular issues with Qt on wayland

To Reproduce

❯ python main/python/main.py 
Initialising RootPainter
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

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

Aborted (core dumped)

Additional context

root painter version: "0.2.27.0"
system info:

OS: NixOS 25.05 (Warbler) x86_64
Host: 20S1S8KN00 (ThinkPad T14 Gen 1)
Kernel: Linux 6.12.10
Uptime: 3 hours, 29 mins
Packages: 1397 (nix-system), 967 (nix-user)
Shell: bash 5.2.37
Display (PHL 346E2C): 3440x1440 @ 75 Hz in 34" [External]
DE: KDE Plasma
WM: KWin (Wayland)
WM Theme: Breeze
Theme: Breeze (Light) [Qt]
Icons: breeze [Qt], breeze [GTK2/3/4]
Font: Noto Sans (10pt) [Qt], Noto Sans (10pt) [GTK2/3/4]
Cursor: breeze (24px)
Terminal: ghostty 1.0.1
Terminal Font: JetBrainsMono Nerd Font (13pt)
CPU: Intel(R) Core(TM) i7-10610U (8) @ 4.90 GHz
GPU 1: NVIDIA GeForce MX330 [Discrete]
GPU 2: Intel UHD Graphics @ 1.15 GHz [Integrated]
Memory: 10.01 GiB / 30.98 GiB (32%)
Swap: Disabled
Disk (/): 226.86 GiB / 928.65 GiB (24%) - ext4
Local IP (wlp0s20f3): 10.18.6.215/21
Battery (5B10W13906): 100% [AC Connected]
Locale: en_DK.UTF-8
@Abe404
Copy link
Owner

Abe404 commented Jan 24, 2025

Thanks for reporting:

I'm wondering if the solutions available here (for the issue with 'error related to xcb') might help:

https://github.com/Abe404/root_painter/blob/master/docs/FAQ.md#question---on-ubuntu-i-get-an-error-related-to-xcb

@jakob1379
Copy link
Author

jakob1379 commented Jan 24, 2025

You can force windows to start in x using

QT_QPA_APPLICATION=xcb python <path to painter main>.py

Works for the

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants