Doh!...looks like I shot myself in the the realtime foot...

More
7 years 8 months ago #126240 by pferrick
Hi all-

In goofing around with pygtk, Glade and popup windows that refuse to go away, I very regrettably deleted a file which is important to the health and well-being of 2.7, namely:

Error: could not load module /usr/realtime-3.4-9-rtai-686-pae/modules/rtai_hal.ko: No such file or directory

Please tell me that there's a fix that does not require a full re-install!!

Thanks,
Patrick

Please Log in to join the conversation.

More
7 years 8 months ago #126250 by pl7i92
Best is on this error
Go to bios
SAVE and exit and that is the Trick

it simply stuck in the realtime loader

Please Log in to join the conversation.

More
7 years 8 months ago #126259 by pferrick
Not sure I understand what you mean. Are you saying that some change has (or needs to ) happen to the BIOS??

If you could be just a bit more specific I would really appreciate it! Thanks.

Please Log in to join the conversation.

More
7 years 8 months ago #126267 by cmorley
can you post more of the error?
Unless you were using a sudo command you can't delete a file in there.

Chris M

Please Log in to join the conversation.

More
7 years 8 months ago #126271 by pferrick
Well, I hate to admit it but sudo WAS involved. Basically I was experimenting with having windows appear via pygtk, and for a while some could not be gotten rid of, because I hadn't yet connected the destroy signal to the right place. And of course I designed them without a iconify/fullscreen/close bar across the top.

In the process of dealing with these windows, linuxcnc didn't start up as usual and it looked to me (at the time, anyway) that there was a file related to the realtime part of linuxcnc that was hanging around that shouldn't be. That's essentially what led me to mistakenly delete the file in question. Super dumb move, I know.

Anyhow, here's the whole error output:
Code:
Starting LinuxCNC... Error: could not load module /usr/realtime-3.4-9-rtai-686-pae/modules/rtai_hal.ko: No such file or directory Realtime system did not load Shutting down and cleaning up LinuxCNC... Running HAL shutdown script RTAPI: ERROR: could not open shared memory (errno=2) /usr/bin/linuxcnc: line 542: 3630 Segmentation fault $HALCMD -f $SHUTDOWN RTAPI: ERROR: could not open shared memory (errno=2) /usr/bin/linuxcnc: line 542: 3636 Segmentation fault $HALCMD stop RTAPI: ERROR: could not open shared memory (errno=2) /usr/bin/linuxcnc: line 542: 3637 Segmentation fault $HALCMD unload all RTAPI: ERROR: could not open shared memory (errno=2) RTAPI: ERROR: could not open shared memory (errno=2) RTAPI: ERROR: could not open shared memory (errno=2) RTAPI: ERROR: could not open shared memory (errno=2) RTAPI: ERROR: could not open shared memory (errno=2) RTAPI: ERROR: could not open shared memory (errno=2) RTAPI: ERROR: could not open shared memory (errno=2) RTAPI: ERROR: could not open shared memory (errno=2) RTAPI: ERROR: could not open shared memory (errno=2) RTAPI: ERROR: could not open shared memory (errno=2) Error: Module hal_lib is not currently loaded Error: Module rtapi is not currently loaded Error: Module rtai_math is not currently loaded Error: Module rtai_sched is not currently loaded Error: Module rtai_hal is not currently loaded LinuxCNC terminated with an error. You can find more information in the log: /home/pferrick/linuxcnc_debug.txt and /home/pferrick/linuxcnc_print.txt as well as in the output of the shell command 'dmesg' and in the terminal

and here's the contents of linuxcnc_debug.txt:
Code:
RUN_IN_PLACE=no LINUXCNC_DIR= LINUXCNC_BIN_DIR=/usr/bin LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc LINUXCNC_SCRIPT_DIR= LINUXCNC_RTLIB_DIR=/usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc LINUXCNC_CONFIG_DIR= LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs INIVAR=inivar HALCMD=halcmd LINUXCNC_EMCSH=/usr/bin/wish8.5 INIFILE=/home/pferrick/linuxcnc/configs/PKF/./my_LinuxCNC_machine.ini PARAMETER_FILE=linuxcnc.var TASK=milltask HALUI=halui DISPLAY=axis Starting LinuxCNC server program: linuxcncsvr Loading Real Time OS, RTAPI, and HAL_LIB modules Killing task linuxcncsvr, PID=3603 Removing HAL_LIB, RTAPI, and Real Time OS modules Removing NML shared memory segments

and finally, here's the tail end of dmesg:
Code:
[ 74.651549] halcmd[3630]: segfault at 8 ip b77aa9bd sp bfbfbf90 error 6 in liblinuxcnchal.so.0[b77a6000+9000] [ 74.717476] halcmd[3636]: segfault at 8 ip b77459bd sp bfd930d0 error 6 in liblinuxcnchal.so.0[b7741000+9000] [ 74.723557] halcmd[3637]: segfault at 8 ip b76dd9bd sp bf9b54d0 error 6 in liblinuxcnchal.so.0[b76d9000+9000] [ 74.730580] halcmd[3640]: segfault at 8 ip b77719bd sp bfb2c8d0 error 6 in liblinuxcnchal.so.0[b776d000+9000] [ 74.935867] halcmd[3644]: segfault at 8 ip b779f9bd sp bfa7c0e0 error 6 in liblinuxcnchal.so.0[b779b000+9000] [ 75.141280] halcmd[3648]: segfault at 8 ip b77259bd sp bfc8ade0 error 6 in liblinuxcnchal.so.0[b7721000+9000] [ 75.346569] halcmd[3652]: segfault at 8 ip b76fc9bd sp bf94e160 error 6 in liblinuxcnchal.so.0[b76f8000+9000] [ 75.551936] halcmd[3656]: segfault at 8 ip b76f29bd sp bfaa5640 error 6 in liblinuxcnchal.so.0[b76ee000+9000] [ 75.757299] halcmd[3660]: segfault at 8 ip b77889bd sp bffb4c20 error 6 in liblinuxcnchal.so.0[b7784000+9000] [ 75.962538] halcmd[3664]: segfault at 8 ip b76cc9bd sp bfce91d0 error 6 in liblinuxcnchal.so.0[b76c8000+9000]

(everything before this is I believe unrelated to this particular problem...)

Well, I've got my asbestos underwear on so flame away!

Many thanks,
Patrick

Please Log in to join the conversation.

More
7 years 8 months ago #126273 by Todd Zuercher
You might try this and see if it fixes it.
Open Synaptic, search for "rtai", then mark every thing in that search which was already installed for re-installation, apply, reboot and see if it works again.

Please Log in to join the conversation.

More
7 years 8 months ago #126274 by pferrick
I'll try that. Thanks, Todd.

Patrick

Please Log in to join the conversation.

More
7 years 8 months ago #126276 by pferrick
It worked! Todd gets the gold star today.

Y'know, it's been said many times on this forum but I'll say it again: if ANY of you guru-types are ever passing through central NY (ie. the Syracuse area) you should really drop me a line. I would really enjoy heading out for a cold one and talking cnc, and you've certainly earned it! As a matter of fact, now I'm wondering what (if any) linuxcnc gatherings there might be in the works...now THAT would be a lot of fun.

Thanks again.

Patrick

Please Log in to join the conversation.

Time to create page: 0.108 seconds
Powered by Kunena Forum