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.qpa.wayland: Wayland does not support QWindow::requestActivate #13119

Closed
sagitter opened this issue Jul 10, 2020 · 7 comments
Closed

qt.qpa.wayland: Wayland does not support QWindow::requestActivate #13119

sagitter opened this issue Jul 10, 2020 · 7 comments
Labels
Platform-specific (Linux/POSIX) Qt Issue on Qt but not all ports.

Comments

@sagitter
Copy link

Hi all.

What happens?

PPSSPPQt-1.10.2 crashes on Fedora 32 Gnome + Wayland:

$ PPSSPPQt
QWaylandGLContext: failed to create EGLContext, error=3009
QObject::connect: No such slot MainWindow::frameSkippinGroup_triggered(QAction *)
I: Core.cpp:190: pixel_res: 960x544. Calling NativeResized()
I: NativeApp.cpp:1340: NativeResized - setting flag
06:52:565 UI/NativeApp.cpp:402 E[LOADER]: Failed graphics backends: OPENGL
06:52:565 Core/Config.cpp:609 E[LOADER]: Graphics backend failed for 0, trying another
06:52:565 Core/Config.cpp:634 E[LOADER]: All graphics backends failed
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
I: QtMain.cpp:346: MainUI::Destructor
Segmentation fault (core dumped)

The opened window is empty

Screenshot from 2020-07-10 12-25-37

What should happen?

Correctly showed and usable.

Other softwares had same problem on Fedora (for example, Paraview); a workaround was to use:

$ QT_QPA_PLATFORM=xcb PPSSPPQt

@hrydgard hrydgard added Qt Issue on Qt but not all ports. Platform-specific (Linux/POSIX) labels Jul 10, 2020
@hrydgard hrydgard added this to the v1.11.0 milestone Jul 10, 2020
@hrydgard hrydgard modified the milestones: v1.11.0, Future Dec 13, 2020
@chriztheanvill
Copy link

This issue also happens in KDE plasma in Kubuntu: With

$ sudo apt install ppsspp-qt
$ QT_QPA_PLATFORM=xcb PPSSPPQt

Thank you.

@ghost
Copy link

ghost commented Jun 30, 2022

I didn't have any such issue when I used QT and Wayland recently.
Didn't need to use XWayland to fix it like someone suggested here.
There is another issue that the UI doesnt scale correctly and that even happens on X11 though.

@unknownbrackets
Copy link
Collaborator

Sounds to me like this was a Qt issue, then, and has been fixed now.

I think we might already have an issue about scaling in Qt? But it should probably be separate.

Closing based on the above. If you're still seeing this issue with latest versions of Qt and PPSSPP, please comment and we can reopen.

-[Unknown]

@unknownbrackets unknownbrackets removed this from the Future milestone Jul 2, 2022
@sagitter
Copy link
Author

sagitter commented Aug 20, 2022

This issue is still unresolved. PPSSPP is not correclty visualized under with Qt-5.15.5 under Wayland on Fedora 36:

$ /usr/bin/PPSSPPQt
QSocketNotifier: Can only be used with threads started with QThread
ThreadManager::Init(compute threads: 8, all: 16)
04:39:108 Net/NetBuffer.cpp:41 E[IO]: FlushSocket failed
QObject::connect: No such slot MainWindow::frameSkippinGroup_triggered(QAction *)
04:39:158 Core/Config.cpp:1587 E[LOADER]: Failed to download http://www.ppsspp.org/version.json: 0
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: setGrabPopup called with a parent, QtWaylandClient::QWaylandXdgSurface(0x55c667fb0950) which does not match the current topmost grabbing popup, QtWaylandClient::QWaylandXdgSurface(0x55c66879f200) According to the xdg-shell protocol, this is not allowed. The wayland QPA plugin is currently handling it by setting the parent to the topmost grabbing popup. Note, however, that this may cause positioning errors and popups closing unxpectedly because xdg-shell mandate that child popups close before parents

@unknownbrackets
Copy link
Collaborator

Does it happen with Qt 6? It sounded like this is a Qt issue.

-[Unknown]

@sagitter
Copy link
Author

Does it happen with Qt 6? It sounded like this is a Qt issue.

-[Unknown]

I don't know, i must try to rebuild PPSSPP with Qt6

@sagitter
Copy link
Author

Does it happen with Qt 6? It sounded like this is a Qt issue.

-[Unknow

It's not ready for Qt6, i seen.
Is there a patch for that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform-specific (Linux/POSIX) Qt Issue on Qt but not all ports.
Projects
None yet
Development

No branches or pull requests

4 participants