You are not logged in.

#26 2020-07-17 08:47:47

Pillgar
Member
Registered: 2017-07-05
Posts: 35

Re: Random Freezes and Compositor Crashing with nvidia 450.57

I've downgraded to nvidia 440-dkms since my last post, and haven't noticed any lockups.  That's with XFCE, lightdm (though I auto-login), Kernel 5.7.8-1-ck-ivybridge, and a 1070ti card. 

@d_fajardo do you have nvidia-drm.modeset=1 enabled?

Offline

#27 2020-07-18 14:43:06

d_fajardo
Member
Registered: 2017-07-28
Posts: 783

Re: Random Freezes and Compositor Crashing with nvidia 450.57

@Pillgar Yes I have nvidia-drm.modeset=1 enabled. However...

I finally decided to do a complete reinstall of archlinux rather than chasing after this fantom of a solution. I made the decision not only of this problem. Well first I didn't really like that sddm crashing in the middle of a session. Secondly I have noticed a spike in my cpu usage even when idle which I was also trying to trace (pulseaudio and xorg were the culprits). Finally I just discovered I have a syslinux directory in my /boot directory. I use refind and never used syslinux so how that directory ended there is a big mystery. So because of those things, I felt something happened with my system.  It also seems to me that, except for a few, not many people are experiencing same problems to call for a bug ,  so instead of wasting more time trying to hunt for a solution, I decided to take that time instead to reinstall taking the opportunity to clear up some clutter in the process.

And with this, the problems are gone. nvidia and KDE are in love again, cpu runs on bare minimum on idle, and a leaner system.

I thank particularly V1del for helping look at the problem. I will close this thread with the solution to this particular problem to this particular system - reinstall.

Offline

#28 2020-07-21 21:09:20

d_fajardo
Member
Registered: 2017-07-28
Posts: 783

Re: Random Freezes and Compositor Crashing with nvidia 450.57

I'm afraid I have to reopen this thread again. My reinstall fixed most issues I was having personally but I was mistaken and the issue with KDE and nvidia hasn't gone away. In the beginning, a minimal plasma install seemed OK but I still get freezes on PC running idle (kscreenlocker issue it seems) and the compositor crashing adter wakeup from suspend. The logs look exactly the same as I posted.

There are others experiencing these problems - here, here and here.

Isn't this looking like a bug? And if it is, which one - nvidia or KDE?

Any thoughts? How does one file a bug report?

Offline

#29 2020-07-22 01:05:27

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 10,137

Re: Random Freezes and Compositor Crashing with nvidia 450.57

If you actually run into issues from waking up from suspend (that wasn't clear to me, session idling and kscreenlock invoking shouldn't matter if it isn't actually set to suspend, if you actually intend to wake up from suspension that is an entirely different ballpark), that is likely an issue with the nvidia driver  (... possibly in combination with the KDE related work they actually did in that driver, e.g. a feature I particularly like is that they've managed to fix a non updating plasma panel in this driver version, it's not too far fetched that something they've worked on here bites itself on restoration of the compositor). It could also be kscreenlock-specific in particular, as kscreenlock uses a sandbox that only allows a certain specific set of OpenGL calls to be made within it's context. It's possible that a new command was added here on the nvidia side during wakeup that bites itself with what the kscreenlock sandbox expects, which could indeed make this something that is fixable on KDE's side of things.

However nvidia has some newer methods for suspension/wakeup that aren't enabled by default that should probably be tested if they aren't yet active: http://us.download.nvidia.com/XFree86/L … ement.html Pay attention to the needed kernel module parameters and the size considerations mentioned there, you don't need to do the install part mentioned and can just enable the relevant services if you use the normal Arch packages.

Regardless of this, if you want to make a bug report about this it would be best to post a thread on their Linux forum including detailed reproduction steps as well as an attachment of the generated tarball from running nvidia-bug-report.sh as root (from what I'm reading you might have to change the extension to something like txt to fool the board software to attach that). If it's in any way possible attach that after reproduction of the issue. (Is it actually "frozen" ? Can you not switch VTs with ctrl+alt+F2 or so?)

Last edited by V1del (2020-07-22 01:10:19)

Offline

#30 2020-07-22 06:45:30

d_fajardo
Member
Registered: 2017-07-28
Posts: 783

Re: Random Freezes and Compositor Crashing with nvidia 450.57

Thanks so much for the link V1del. I will definitely have a look at the nvidia and bug tracker sites. And I can switch to a TTY. Does this mean it is a purely graphics problem?

Edit: Another thing to mention as well is I'm getting I believe are tearings in some applications in this new install. Konsole has produces lines and KPatience produces lines when cards are dragged. Search in the internet and some say it has to do with scaling (I'm in 4k so I have to scale things up). Anyone has any thoughts on these as well?

Last edited by d_fajardo (2020-07-22 07:09:07)

Offline

#31 2020-07-24 12:19:06

d_fajardo
Member
Registered: 2017-07-28
Posts: 783

Re: Random Freezes and Compositor Crashing with nvidia 450.57

The nvidia suspension/wakeup services didn't really fix the problem. I also had a look at the Linux nvidia forum. According to Phoronix a fix was done for to fix plasma crashing with the compositor disabled for this current driver and perhaps that fix contributed to the current problem. I think I'll just sit it tight for the moment. After recent updates, some things seem better - I don't get the compositor crashing anymore on wakeup from sleep but instead I get the message 'Desktop effects were restarted due to graphics reset'. I can l live with that for the moment. The manual invocation of the screenlock works, but I have to disable auto-screenlock otherwise I get a freeze when KDE tries to trigger it by itself.

Last edited by d_fajardo (2020-07-24 12:28:27)

Offline

#32 2020-07-29 20:51:15

radiobla
Member
Registered: 2020-02-19
Posts: 18

Re: Random Freezes and Compositor Crashing with nvidia 450.57

I'm having the very same issue with nvidia 450.57 (linux 5.7.10), but although kscreenlock seems to invoke the issue, the process hanging is the kwin_x11.

I was able to switch to TTY4 (for some reason TTY2 and TTY3 were not available) and see kwin_x11 on "top" consuming 99% of CPU. I killed the process (kwin_x11) and restarted display-manager.service through systemctl.

This way I was able to recover the system without needing to do a "cold boot".

You can try a

kwin_x11 --replace

if you see no decorations on windows.

Have you guys found a better workaround?

Offline

#33 2020-07-29 20:53:19

radiobla
Member
Registered: 2020-02-19
Posts: 18

Re: Random Freezes and Compositor Crashing with nvidia 450.57

One more thing:

The issue doesn't happen consistently every single time that screen lock is invoked. It happens intermittently.

Offline

#34 2020-07-30 18:34:46

d_fajardo
Member
Registered: 2017-07-28
Posts: 783

Re: Random Freezes and Compositor Crashing with nvidia 450.57

@rabiola kwin-x11 --replace crashes badly for me but read on.

Anyway, just to update, I have filed bug reports to both NVIDIA and KDE and the good news is both have replied. I received an email from NVIDIA that they have taken the bug report internally and will setup a system to try to reproduce it.
The current state of the KDE bug report is here.

Fingers crossed there will be a favourable outcome to all these.

EDIT:
The auto screen lock function seems to be fixed now after the recent upgrades. I can leave the machine to lock by itself without it freezing.
The problem with suspend continues however and issuing kwin-x11 --replace crashes badly.

Last edited by d_fajardo (2020-07-31 05:57:43)

Offline

#35 Yesterday 16:55:57

d_fajardo
Member
Registered: 2017-07-28
Posts: 783

Re: Random Freezes and Compositor Crashing with nvidia 450.57

Another update in this issue. Initially, nvidia tested it on an Ubuntu setup and couldn't reproduce the problems. Suspecting it might a newer kernel against the 450 driver, I requested that they test on an Archlinux setup and they are now confirming the same issues I'm experiencing.
So it does look like the problem stems from the newer kernel (possible the 5.7) and Nvidia 450.
Nvidia is now investigating the problem and hopefully come up with a fix in the next nvidia update.

Offline

Board footer

Powered by FluxBB