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

After DPMS, Qt5 apps crash #922

Closed
JordanL2 opened this issue Dec 6, 2020 · 11 comments
Closed

After DPMS, Qt5 apps crash #922

JordanL2 opened this issue Dec 6, 2020 · 11 comments
Labels

Comments

@JordanL2
Copy link
Contributor

JordanL2 commented Dec 6, 2020

Happening on wayfire-git with wlroots-git

After waking from DPMS, Qt5 apps freeze, use 100% of a single CPU core for ~ 20 seconds, then closes.

This happens for:
Okular (flatpak)
Okular (non-flatpak)
Dolphin
I've not found a Qt5 app this doesn't happen for yet.

In the terminal:

$ flatpak run org.kde.okular
qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
wl_registry@2: error 0: invalid global wl_output (47)
The Wayland connection experienced a fatal error: Protocol error
$ okular
qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
The Wayland connection broke. Did the Wayland compositor die?
Aborted (core dumped)
$ dolphin
qt.qpa.wayland: Unexpected wl_keyboard.enter event. Keyboard already has focus
qt.qpa.wayland: The compositor sent a wl_pointer.enter event before sending a leave event first, this is not allowed by the wayland protocol attempting to work around it by invalidating the current focus
qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
The Wayland connection broke. Did the Wayland compositor die?
Aborted (core dumped)
@JordanL2 JordanL2 added the bug label Dec 6, 2020
@ammen99
Copy link
Member

ammen99 commented Dec 6, 2020

Can you run the app with WAYLAND_DEBUG=1 and attach the output?

@JordanL2
Copy link
Contributor Author

JordanL2 commented Dec 6, 2020

dolphin_log.txt

@ammen99
Copy link
Member

ammen99 commented Dec 6, 2020

I believe this might be a bug in Qt. This error is thrown out when the client attempts to make an invalid wayland request, here involving the output. The output in question is wl_output@38, but the server has already sent wl_registry.global_remove(38) long before Qt references that output. Can you report a bug on Qt's bug tracker?

@JordanL2
Copy link
Contributor Author

JordanL2 commented Dec 7, 2020

@ammen99 - I raised it: https://bugreports.qt.io/browse/QTBUG-89162

Can you please check and confirm I described it correctly?

@ammen99
Copy link
Member

ammen99 commented Dec 7, 2020

Can you please check and confirm I described it correctly?

Yes, I think it is properly explained.

@JordanL2
Copy link
Contributor Author

JordanL2 commented Jan 1, 2021

Since changing my monitors I no longer have this issue (as I suspected would be the case), so this issue is caused by a weird fault in a particular model of monitor I bought in 2015. I think this issue might as well be closed.

@ammen99
Copy link
Member

ammen99 commented Jan 1, 2021

Since changing my monitors I no longer have this issue (as I suspected would be the case), so this issue is caused by a weird fault in a particular model of monitor I bought in 2015. I think this issue might as well be closed.

Sounds about right, there is an upstream issue in Qt anyway so ...

@ammen99 ammen99 closed this as completed Jan 1, 2021
@liangqi
Copy link

liangqi commented Nov 10, 2021

What is DPMS? thanks.

@marcusbritanicus
Copy link
Contributor

marcusbritanicus commented Nov 10, 2021

@liangqi DPMS is display power management signalling. It's a way to reduce power consumption in monitors. You may have noticed in DE's that after some idle time, the monitor is powered off. That's DPMS.

@JordanL2 can you check again, now with Qt 5.15.2 or higher? I'm regularly using Qt apps, and I'm working on DesQ - a Qt based DE. Past week onwards I've been using wayfire's idle plugin to power off the display after idle of 5 mins using DPMS. When waking up from DPMS, everything is normal, including okular and dolphin and other Qt apps.

@JordanL2
Copy link
Contributor Author

No, after replacing my monitors I can't reproduce it any more.

@liangqi
Copy link

liangqi commented Nov 10, 2021

@marcusbritanicus thanks for the information.

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

No branches or pull requests

4 participants