- Posts: 275
- Thank you received: 49
Linux Mint / LinuxCNC 2.8.0 freezing - SOLVED?
5 years 2 months ago #218925
by Muzzer
Replied by Muzzer on topic Linux Mint / LinuxCNC 2.8.0 debugging?
I don't know how to check for sure but it's a vanilla 2.8.0 install which presumably means it's running RTAI from what I can see. I haven't done anything unconventional unless by mistake. I simply installed the default setup, then got Probe Basic Lathe running. I've since (this week) got gmoccapy running as PB still seems to have some distance to go before it's finished but the issue was there before I got that far.
I don't actually need to start LinuxCNC to get it to freeze up. Does the kernel only get run when LinuxCNC starts?
None of the crash logs seem to tell me much of use, possibly because there is so much in them. I'm trying to figure out how to provoke the problem consistently so I stand a better chance of knowing if I've influenced it at all. I'm planning to remove the PC from the cabinet and run it standalone until I figure this out.
I had a job getting it to boot up initially, which seems to have been something to do with sleep states. However, now it simply freezes up, screen, mouse, kbd and all at random times. I can be running almost any kind of operation at the time. Time to freeze seems to be anything from 5 minutes to 30 hours.
Intermittent faults are the worst sort, as you can never be 100% certain you've fixed them....
I don't actually need to start LinuxCNC to get it to freeze up. Does the kernel only get run when LinuxCNC starts?
None of the crash logs seem to tell me much of use, possibly because there is so much in them. I'm trying to figure out how to provoke the problem consistently so I stand a better chance of knowing if I've influenced it at all. I'm planning to remove the PC from the cabinet and run it standalone until I figure this out.
I had a job getting it to boot up initially, which seems to have been something to do with sleep states. However, now it simply freezes up, screen, mouse, kbd and all at random times. I can be running almost any kind of operation at the time. Time to freeze seems to be anything from 5 minutes to 30 hours.
Intermittent faults are the worst sort, as you can never be 100% certain you've fixed them....
Please Log in or Create an account to join the conversation.
5 years 2 months ago #218930
by andypugh
Replied by andypugh on topic Linux Mint / LinuxCNC 2.8.0 debugging?
If it’s a conventional Mint install then it is probably premmpt-rt
uname -a
Will tell you.
uname -a
Will tell you.
Please Log in or Create an account to join the conversation.
5 years 2 months ago #218933
by Muzzer
Replied by Muzzer on topic Linux Mint / LinuxCNC 2.8.0 debugging?
Looks as if you were right:
muzzer@LinuxCNC:~$ uname -a
Linux LinuxCNC 4.19.106-rt46-lcnc #1 SMP PREEMPT RT Mon Sep 14 12:23:06 AEST 2020 x86_64 x86_64 x86_64 GNU/Linux
Does the kernel only run when you start LinuxCNC?
I was reading this from the downloads page which seemed to suggest RTAI:LinuxCNC 2.8 Downloads
muzzer@LinuxCNC:~$ uname -a
Linux LinuxCNC 4.19.106-rt46-lcnc #1 SMP PREEMPT RT Mon Sep 14 12:23:06 AEST 2020 x86_64 x86_64 x86_64 GNU/Linux
Does the kernel only run when you start LinuxCNC?
I was reading this from the downloads page which seemed to suggest RTAI:LinuxCNC 2.8 Downloads
- LinuxCNC 2.8.2 Debian 10 Buster PREEMPT-RT ISO
- LinuxCNC 2.8.0 Debian 7 Wheezy RTAI
- LinuxCNC 2.8.2 Debian 10 Buster RTAI
- LinuxCNC 2.8.1 Raspberry Pi OS based on Debian 10 Buster
Please Log in or Create an account to join the conversation.
- tommylight
-
- Online
- Moderator
-
5 years 2 months ago #218949
by tommylight
LinuxCNC will use the real-time part of the kernel when active, so that will set the processor to higher frequency and do some other stuff that will end up heating the processor much more.
Try adding a fan, a used PC one or whatever you can find, see if that makes the time to lock longer or get rid of it altogether.
Replied by tommylight on topic Linux Mint / LinuxCNC 2.8.0 debugging?
Nope, it runs pretty much from boot time.Does the kernel only run when you start LinuxCNC?
LinuxCNC will use the real-time part of the kernel when active, so that will set the processor to higher frequency and do some other stuff that will end up heating the processor much more.
Try adding a fan, a used PC one or whatever you can find, see if that makes the time to lock longer or get rid of it altogether.
Please Log in or Create an account to join the conversation.
5 years 2 months ago - 5 years 2 months ago #218990
by Muzzer
Replied by Muzzer on topic Linux Mint / LinuxCNC 2.8.0 debugging?
The last freezes were almost 2 days ago during and following an update using Update Manager. Since then it's been running continuously without issue. It's too early to say but it's possible that fixed it. Dangerous talk, I know.
I've got Axis Sim running in a continuous loop plus Youtube streaming endless music video, Visual Studio code sitting in the background, Thunderbird email and VNC server running.
It has a Sunon fan in the case running all the time and I've not been able to get the core temperature above 59C no matter what I do.
About to go for a few hours walk in the hills. If it's still running on our return, I'll be tempted to consider itself fixed. Fingers crossed....
I've got Axis Sim running in a continuous loop plus Youtube streaming endless music video, Visual Studio code sitting in the background, Thunderbird email and VNC server running.
It has a Sunon fan in the case running all the time and I've not been able to get the core temperature above 59C no matter what I do.
About to go for a few hours walk in the hills. If it's still running on our return, I'll be tempted to consider itself fixed. Fingers crossed....
Last edit: 5 years 2 months ago by Muzzer.
Please Log in or Create an account to join the conversation.
5 years 2 months ago #219347
by Muzzer
Replied by Muzzer on topic Linux Mint / LinuxCNC 2.8.0 freezing - SOLVED?
I hope this isn't premature but I'm becoming more confident that I've fixed the issue here. After an unplanned excursion into Linux crash logs and bug fixes, I appear to have a solution. If so, it's possible someone else may find this useful.
The error messages in the crash log seemed to feature 2 main themes:
The second seems to be caused by an "open bug" in the Intel HD graphics device. Something about a "PSR" feature that doesn't appear to be critically required yet can cause an "Atomic failure" (aka the processor won't continue until it's finished). www.dedoimedo.com/computers/intel-microcode-atomic-update.html . This sounded like a strong candidate.
My first step to fixing the i915 error was to run Update Manager. I was 99% certain I'd done this previously but when I ran it late last week, I recall it reported that it planned to install the "Intel microcode", which is the firmware for the chipset to run Linux. Perhaps I hadn't run it previously after all. This almost fixed it - but not quite. I got a dark screen lockup shortly after the update which at least represented a change from the previous freeze (a change is as good as a rest?). The second and hopefully final step was to disable the PSR feature and after something like 4 days of continuous stress testing, I haven't seen any issues. That could change at any moment of course but I seem to have found a plausible root case and a credible corrective action.
If I've spoken too soon, I'll report back....
The error messages in the crash log seemed to feature 2 main themes:
- PAM adding faulty module: pam_kwallet5.so
- [drm:intel_pipe_update_end [i915}} *ERROR* Atomic update failure on pipe B .........etc.
The second seems to be caused by an "open bug" in the Intel HD graphics device. Something about a "PSR" feature that doesn't appear to be critically required yet can cause an "Atomic failure" (aka the processor won't continue until it's finished). www.dedoimedo.com/computers/intel-microcode-atomic-update.html . This sounded like a strong candidate.
My first step to fixing the i915 error was to run Update Manager. I was 99% certain I'd done this previously but when I ran it late last week, I recall it reported that it planned to install the "Intel microcode", which is the firmware for the chipset to run Linux. Perhaps I hadn't run it previously after all. This almost fixed it - but not quite. I got a dark screen lockup shortly after the update which at least represented a change from the previous freeze (a change is as good as a rest?). The second and hopefully final step was to disable the PSR feature and after something like 4 days of continuous stress testing, I haven't seen any issues. That could change at any moment of course but I seem to have found a plausible root case and a credible corrective action.
If I've spoken too soon, I'll report back....
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
Time to create page: 0.118 seconds