Bug 24316 - Plasma startup freezes system, with Nouveau, since Qt 5.12.1
Summary: Plasma startup freezes system, with Nouveau, since Qt 5.12.1
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: KDE maintainers
QA Contact:
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-05 23:07 CET by JanKusanagi
Modified: 2019-06-19 06:16 CEST (History)
6 users (show)

See Also:
Source RPM: qtbase5-5.12.1-1.mga7.src.rpm
CVE:
Status comment:


Attachments
dmesg output of one instance where the freeze was not absolute (35.70 KB, text/plain)
2019-02-05 23:09 CET, JanKusanagi
Details

Description JanKusanagi 2019-02-05 23:07:14 CET
Description of problem:

Since the recent upgrade of Qt to 5.12.1, Plasma fails to start on my machine with NVIDIA graphics (old model, NVIDIA Corporation GF119 [GeForce GT 610] (rev a1).

Maybe Qt is not at fault, and it just uncovered some bug in Nouveau. For now, I'm setting this to Qt core. Downgrading all Nouveau-related packages I could didn't help.


Some Archlinux users are also experiencing this, or similar:
https://bbs.archlinux.org/viewtopic.php?id=243962
+ https://bbs.archlinux.org/viewtopic.php?id=243962

And there's a related issue opened against Nouveau:
https://bugs.freedesktop.org/show_bug.cgi?id=109556


For anyone else in a similar situation:

For now, my workaround has been disabling KWin's compositing, renaming the plasmashell binary to prevent it from crashing the whole OS, and launching Tint2 to have a decent task manager in the absence of Plasma's panels. I initially had a pretty stable system with the compositing on, but eventually some of the alt-tab popups ended up freezing the thing. Without plasmashell and without compositing, it seems quite stable, so far.

What also worked, but was quite horrible, was setting "NoAccel" "true" in the device section of xorg.conf.



Version-Release number of selected component (if applicable):
Version     : 5.12.1
Release     : 1.mga7


How reproducible:
Always. The level of "frozenness" varies, sometimes the initial steps of a REISUB can get you back to the login screen, but often you need the whole REISUB to reboot.


Steps to Reproduce:
1. Set your system to use the Nouveau driver for your NVIDIA card.
2. Log into Plasma Desktop.
Comment 1 JanKusanagi 2019-02-05 23:09:12 CET
Created attachment 10732 [details]
dmesg output of one instance where the freeze was not absolute

CC: (none) => jan-bugs

Comment 2 JanKusanagi 2019-02-05 23:41:59 CET
I pasted a link twice there. It was supposed to be: https://bugs.archlinux.org/task/61638
Comment 3 JanKusanagi 2019-02-06 01:04:17 CET
Another fd.o report: https://bugs.freedesktop.org/show_bug.cgi?id=109558
Martin Whitaker 2019-02-06 22:38:46 CET

CC: (none) => mageia
See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=24060

Marja Van Waes 2019-02-07 08:14:00 CET

CC: (none) => marja11
Assignee: bugsquad => kde

Comment 4 JanKusanagi 2019-02-08 22:03:04 CET
Users in Archlinux's bug report seem to be mixing two different issues, but in any case, point to a bugreport to Qt that seems interesting, with a possible patch: https://bugreports.qt.io/browse/QTBUG-73691

From what I can understand, the problem might be with whitelisting the use of multithreading in more situations. I remember QWebEngine having serious problems with Nouveau due to exactly that, multithreading issues.
Comment 5 Nicolas Lécureuil 2019-02-09 23:14:45 CET
Please test next qtbase5

CC: (none) => mageia

Comment 6 Thomas Andrews 2019-02-10 04:48:23 CET
(In reply to Nicolas Lécureuil from comment #5)
> Please test next qtbase5

FWIW Nicolas, just got that update, and early indications are that it has fixed the flickering that's been seen with the Intel i915 driver, Bug 24060.

Will try nouveau on my old nvidia Geforce 9800GT tomorrow.

CC: (none) => andrewsfarm

Comment 7 JanKusanagi 2019-02-10 17:26:46 CET
(In reply to Nicolas Lécureuil from comment #5)
> Please test next qtbase5

Thanks! I'll test this as soon as I can reboot, hopefully tonight =)
Comment 8 Thomas Andrews 2019-02-10 17:36:01 CET
I have now tested with nouveau, and from what I've seen so far Plasma is now the most stable with nouveau that I have seen so far - and that includes all of Mageia 6.

BTW, I made sure that nouveau and OpenGL 2.0 were both being used.

Makes me really wonder if some of the older nvidia hardware, those no longer supported with proprietary drivers, would now work with Plasma.
Comment 9 Thomas Andrews 2019-02-10 19:56:47 CET
Tried now on a machine using a Geforce 210 card. First boot after getting many updates was using Xrender as compositor. That was stable. Another boot after switching to OpenGL 2.0 had a few glitches (Jittery scrolling using mouse wheel in Firefox, flashing when the logout screen appeared), but did not freeze. 

Auto-login is active on these systems. The second and subsequent boots show a momentary (1-2 seconds) video glitch (a "scrambling" is how I would describe it) when the sddm video first shows, but corrects and is very stable after that, including when shutting down. Checking the 9800GT system again shows the same momentary glitch and subsequent stability.

While not quite as perfect as I thought it was when I typed Comment 8, it is definitely now usable.
Comment 10 JanKusanagi 2019-02-11 02:48:54 CET
(In reply to Nicolas Lécureuil from comment #5)
> Please test next qtbase5

PER-FECT! Thanks!

All issues, gone =)

Perfectly running Plasma, with smooth compositing and everything, no flickering, no issues at all (so far, at least, after one hour).
Although, contrary to some other people, I had no flickering at all before the "Qt 5.12.1 disaster", either.

I'll report again after more hours of use. Cheers! o/
Comment 11 JanKusanagi 2019-02-12 02:59:07 CET
So ~24h later, all's still good! \o/
Comment 12 JanKusanagi 2019-06-18 16:20:22 CEST
Several months later, I think this can, quite safely, be closed =)
Comment 13 David GEIGER 2019-06-19 06:16:37 CEST
So closing this bug!

Resolution: (none) => FIXED
CC: (none) => geiger.david68210
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.