Bug 426580 - Random Freezes 20.04
Summary: Random Freezes 20.04
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-16 00:13 UTC by Scott
Modified: 2020-10-27 02:41 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Excerpt of syslog and kernel log around 9.33pm 17/09/20 (132.04 KB, text/plain)
2020-09-17 22:57 UTC, Scott
Details
syslog (75.20 KB, text/plain)
2020-09-20 03:40 UTC, Scott
Details
System Monitor 1 (145.47 KB, image/png)
2020-09-22 09:02 UTC, Scott
Details
process tab (94.25 KB, image/png)
2020-09-22 09:03 UTC, Scott
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Scott 2020-09-16 00:13:31 UTC
SUMMARY
I get a partial system freeze whereby sometimes the active window or all open windows are unresponsive normally for at least 10 seconds but can be minutes.

STEPS TO REPRODUCE
1. It is totally random, no set steps to reproduce.
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 10
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8

ADDITIONAL INFORMATION
I have 4 PCs running Kubuntu 20.04 and the 2 newest machines randomly partially freeze from a few seconds to a few minutes. I normally have mouse control outside of an active window and I can alt-tab out of full screen programs that have frozen. It may happen twice a day or it may happen only once per week. The syslog and kernel log show nothing happening at the time of the freeze. The 2 affected machines run an AMD processor and X470 and X570 MB and Nvidia 1050 and 1080 GPU. The working perfectly machines both run earlier generation CPU and MB though one has a Nvidia 1060. One of the affected PCs is a dual and Windows has not frozen though in fairness it is only useing Windows 2 hours per day.
Comment 1 Nate Graham 2020-09-16 03:59:05 UTC
I'm suspecting a kernel issue, but it could conceivably be KWin. Does the freeze only affect KDE apps, or all apps?
Comment 2 Scott 2020-09-16 04:10:39 UTC
No, it affects any/all applications. From memory it has occurred with Kate, Firefox, VLC, MPV, Dolphin. Not that I play games for any significant amount of time (maybe avg 1 hour/day)they have not been affected as yet. In many instances though many programs are running.
Comment 3 Nate Graham 2020-09-16 04:14:56 UTC
If you disable compositing (hit Alt+Shift+F12), does the problem stop happening?
Comment 4 Scott 2020-09-16 07:35:43 UTC
I have Alt+Shift+F12 on both machines and will wait to see if it happens again though bear in mind it may be many days.
Comment 5 Scott 2020-09-16 08:15:32 UTC
Just some additional information which may or may not be of assistance, both the affected PCs are never turned off though the dual boot machine is restarted into Windows every day. The unusual thing which causes no harm is that when it escapes Kubuntu the log offs are not identical as I would expect. I log off pretty much every time with 2 Dolphin windows and firefox open and minimised. Again totally random.
Comment 6 Scott 2020-09-16 12:37:59 UTC
Does Alt+Shift+F12 cause the time widget to display incorrect time? Both machines are displaying 4.31 p but when I go to change the time (right click > adjust time and date) the time is correct, approx 8.34pm.The widget time is not changing each minute.
Comment 7 Nate Graham 2020-09-16 17:11:27 UTC
That problem is Bug 353983 which was fixed in version 450.57 of the proprietary NVIDIA driver. You might consider updating it.
Comment 8 Scott 2020-09-17 22:57:26 UTC
Created attachment 131735 [details]
Excerpt of syslog and kernel log around 9.33pm 17/09/20
Comment 9 Scott 2020-09-17 23:01:26 UTC
Experienced a freeze on one PC last night at approx 9:33pm. The preceding post is an excerpt of the kernel and syslog surrounding that time. The crash occurred while watching mpv which I killed and I then resumed the movie with vlc with a minute or two. Please note vlc writes to syslog.
Comment 10 Scott 2020-09-17 23:12:43 UTC
Just a thought, as the time displayed in the clock widget was correct, 9:33, does that indicate that Alt+Shift+F12 had been overidden by mpv which as a video player might invoke a compositor?
Comment 11 Nate Graham 2020-09-18 01:52:56 UTC
Not necessarily; the nvidia panel freeze isn't a 100% thing.
Comment 12 Scott 2020-09-20 03:40:13 UTC
Created attachment 131793 [details]
syslog

The other machine also had a window freeze on 20/9/20 at around 11:30 am. Syslog is attached and no activity at all in the kernel log. The freeze occurred in Kate and unusually it was responding slowly just prior to and after the freeze, closing and reopening it fixed the problem.
Comment 13 Scott 2020-09-22 09:02:29 UTC
Created attachment 131859 [details]
System Monitor 1

Please see the attached screenshot showing CPU usage where many cores are at 100%. Although there were no frozen screens there was very sluggish responsiveness of the system. 

The interesting thing is that after leaving the PC for some hours CPU usage was at this level and without doing anything it returned to fairly low levels as can be seen at the start of the graph and then rose to extreme CPU usage after about 5 minutes.

A look at the processes tab showed Tixati using 1% CPU and everything else less than that. After closing Tixati, the only open program, CPU levels returned to idle. A google search found that Tixati had some high CPU usage issues back in 2013 that have since been fixed but nothing current.
Comment 14 Scott 2020-09-22 09:03:20 UTC
Created attachment 131860 [details]
process tab
Comment 15 Scott 2020-09-30 03:57:56 UTC
The CPU usage issue I last raised is likely an associated issue but may not be present when the active window freezes as seen in subsequent freezes. I think I have found a commonality with both machines: In, I think all cases, a very large file was in use, large being somewhere greater than 20+GB (not sure of the exact size threshold).
Comment 16 Scott 2020-10-02 08:02:41 UTC
I did some more tests on large files and discovered that there is indeed some problem with Kubuntu that is directly affected by what size file it is working on. For the tests I used MKVtoolnix GUI Ver 50 once on Kubuntu 20.04 against the same files and MKVtoolnix on Windows 10 using the same hardware, including disks. The test involved re-muxing a video file from an m2ts container to an mkv container, therefore the data of the movie was not changed. File size is output size. This is repeatable.

File               Time
Size     Windows         Kubuntu
1GB             11 secs           7 secs (45 min TV show)
6.2GBs   2 mins 23 secs   2 mins 30 secs (typical DVD)
18.8GBs  6 mins 43 secs  38 mins 45 secs (HD Blu Ray)
43.4GBs 14 mins         172 mins         (UHD Blu Ray)

As would be expected the time increase for Windows is fairly linear being dependent on file size whereas Kubuntu needs fixing.
Comment 17 Christoph Feck 2020-10-06 03:56:50 UTC
I don't see how this issue is related to KDE software. If a (user) process hangs, please attach to it with gdb and get a backtrace during the freeze. You might need to do this via a remote ssh connection.

If a system process hangs, it is a kernel or driver issue.
Comment 18 Scott 2020-10-27 02:41:14 UTC
As stated previously this problem affects multiple programs and is random so getting a backtrace, with my technical knowledge, is quite difficult. I have further highlighted that it appears to be somehow connected to large file sizes and have shown one example using just one application. Further the problem appears less pronounced on an older Intel based machine.It may well be that you are correct that it is an kernel or driver issue but after upgrading to 20.10 it is still there and not resolved. In the case of the mkv app I have raised a bug with them and they cannot reproduce it and I cannot remove the problem by using an earlier version of that program which did work much faster in 19.04.