Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: URGENT: We need to revert Qt from 5.14.2 to 5.14.1 in the reps (Read 2037 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

URGENT: We need to revert Qt from 5.14.2 to 5.14.1 in the reps

1.) We need a warning about Qt 5.14.2 in the Artix news and a HOWTO for downgrading it.
2.) In the repositories it should be reverted to 5.14.1 immediately.

The following bug brought many users in severe trouble as they couldn't login after the upgrade and some of them don't know how to repair their system:
https://forum.artixlinux.org/index.php/topic,1374.0.html

One of our users postet at the Telegram channel that he even reinstallled his Artix because he didn't know what was going on.

As people are gradually updating their systems, there will be more and more harm done, so please revert it to 5.14.1 in the repositories now!
Code: [Select]
ARTIX Dinit + SDDM + Enlightenment

Re: URGENT: We need to revert Qt from 5.14.2 to 5.14.1 in the reps

Reply #1
Code: [Select]
$ pacman -Ss qt5 |ag 5.14.1
world/python-pyqt5 5.14.1-2 (pyqt5)
world/python2-pyqt5 5.14.1-2
I have some qt packages and they are all the same version and things are working (I'm not using lxqt though.) The only things I found with pacman that were still on the old version were python-pyqt5 and python2-pyqt5, perhaps they need rebuilding to the newer version?

Newer versions are in the Arch extra repo as that has been updated to the newer version now, so the advice on the other thread about using that to downgrade won't work any more.
extra/python-pyqt5 5.14.2-1 (pyqt5)
extra/python2-pyqt5 5.14.2-1

Re: URGENT: We need to revert Qt from 5.14.2 to 5.14.1 in the reps

Reply #2
Please read this post: https://forum.artixlinux.org/index.php/topic,1374.msg9535.html#msg9535

TL;DR: Dudemanguy found out that Qt 5.14.2 has a bug that breaks everything as soon as the environment variable QT_QPA_PLATFORMTHEME ist set.

In your case it may work, because you didn't set this variable, thus you are lucky because of a random coincidence. As long as this bug is not fixed, we should stay with 5.14.1, as QT_QPA_PLATFORMTHEME is set in all our LXQt ISOs.
Code: [Select]
ARTIX Dinit + SDDM + Enlightenment

Re: URGENT: We need to revert Qt from 5.14.2 to 5.14.1 in the reps

Reply #3
I don't know. It's kind of too late to downgrade given that we're rolling release and all arch packages are on Qt 5.14.2 now.

LXQT is the worst case scenario here. It sets QT_QPA_PLATFORMTHEME to "lxqt" which completely breaks everything on the DE. If you are an LXQT user, I believe if you uninstall lxqt-qtplugin it should work again (it looks like that's the package that sets that variable).

As an aside, setting QT_QPA_PLATFORMTHEME to an actual QT style like breeze or oxygen does still work so I think most Plasma users won't notice anything unless they have a weird configuration. Also QT_STYLE_OVERRIDE seems to trigger this issue as well but that one is probably less commonly set.

I still need to verify that this is an upstream bug and not just some error on our side. I would expect Arch to have this same issue. That's something I need to test.

Re: URGENT: We need to revert Qt from 5.14.2 to 5.14.1 in the reps

Reply #4
We need at least some practical solution that prevents our LXQt users from freaking out. It should be a solution that works also for the less tech-savvy ones.
Code: [Select]
ARTIX Dinit + SDDM + Enlightenment

Re: URGENT: We need to revert Qt from 5.14.2 to 5.14.1 in the reps

Reply #5
Also the kvantum theme engine works 5.14.2
Code: [Select]
ARTIX Dinit + SDDM + Enlightenment

Re: URGENT: We need to revert Qt from 5.14.2 to 5.14.1 in the reps

Reply #6
I found the problem. It's qt5-styleplugins. The arch mirrors are really slow so everyone is on an old version of that which breaks with 5.14.2 because it's built against 5.14.1. A quick fix is to manually install the newer version on Arch.

We will import this package into our repos. Not every setup happens to call that library, but quite a few do and that causes crashes.

Re: URGENT: We need to revert Qt from 5.14.2 to 5.14.1 in the reps

Reply #7
Also another reason why this happened is because the default arch-mirrorlist picks "http://mirrors.evowise.com/archlinux/$repo/os/$arch". This mirror was fine in the past, but now it is constantly out of sync and outdated. I'll try to get the default changed to the rackspace mirror instead which works well.

Re: URGENT: We need to revert Qt from 5.14.2 to 5.14.1 in the reps

Reply #8
Great! Thank you so much for your efforts!
Code: [Select]
ARTIX Dinit + SDDM + Enlightenment

Re: URGENT: We need to revert Qt from 5.14.2 to 5.14.1 in the reps

Reply #9
I just imported and pushed qt5-styleplugins into our repos (galaxy). When your mirror syncs for the next update, it should fix it and everything should be safe to upgrade again.

Re: URGENT: We need to revert Qt from 5.14.2 to 5.14.1 in the reps

Reply #10
KDE is not affected, seems only LXQt is affected

Re: URGENT: We need to revert Qt from 5.14.2 to 5.14.1 in the reps

Reply #11
I just imported and pushed qt5-styleplugins into our repos (galaxy). When your mirror syncs for the next update, it should fix it and everything should be safe to upgrade again.

Thank you so much!  I have just updated both desktops and now they boot into LXQT as normal, I appreciate the efforts you guys make.

Re: URGENT: We need to revert Qt from 5.14.2 to 5.14.1 in the reps

Reply #12
KDE is not affected, seems only LXQt is affected

It didn't depend on LXQt but on the value of QT_QPA_PLATFORMTHEME. As soon as you set it to gtk2, Qt based applications wouln't work as they would call functions from the old version of qt5-styleplugins that was built against Qt 5.14.1 instead of 5.14.2

I tried it on a plain X session with OpenBox. As long as qt5-base was 5.14.2 and qt5-styleplugins was built against 5.14.1 Qt5 applications would halt because of incompatible libraries.

For LXQt, QT_QPA_PLATFORMTHEME is quite essential because we use it to set the theme of the task bar.
Code: [Select]
ARTIX Dinit + SDDM + Enlightenment

Re: URGENT: We need to revert Qt from 5.14.2 to 5.14.1 in the reps

Reply #13
It didn't depend on LXQt but on the value of QT_QPA_PLATFORMTHEME. As soon as you set it to gtk2, Qt based applications wouln't work as they would call functions from the old version of qt5-styleplugins that was built against Qt 5.14.1 instead of 5.14.2

I tried it on a plain X session with OpenBox. As long as qt5-base was 5.14.2 and qt5-styleplugins was built against 5.14.1 Qt5 applications would halt because of incompatible libraries.

For LXQt, QT_QPA_PLATFORMTHEME is quite essential because we use it to set the theme of the task bar.

 qt5ct package provides a Qt5 QPA independent of the desktop environment and a configuration utility. After installing the package, run qt5ct to set an icon theme, and set the environment variable QT_QPA_PLATFORMTHEME="qt5ct" (no gtk2!) so that the settings are picked up by Qt applications. Alternatively, use --platformtheme qt5ct as argument to the Qt5 application.

Code: [Select]
[alois@raven ~]$ cat /etc/profile.d/qt5ct.sh 
export QT_QPA_PLATFORMTHEME=qt5ct

Re: URGENT: We need to revert Qt from 5.14.2 to 5.14.1 in the reps

Reply #14
And then choose gtk2 inside qt5ct and you will have the same problem again  ;)

Thank you for your efforts, but your proposal is just another workaround that will change the look of a system by choosing another theme. The actual reason for the problem was already solved by Dudemanguy. Read his posts above.
Code: [Select]
ARTIX Dinit + SDDM + Enlightenment