EMC2 Crash on startup
Error:
Print file information:
RUN_IN_PLACE=no
EMC2_DIR=
EMC2_BIN_DIR=/usr/bin
EMC2_TCL_DIR=/usr/share/emc/tcl
EMC2_SCRIPT_DIR=
EMC2_RTLIB_DIR=/usr/realtime-2.6.32-122-rtai/modules/emc2
EMC2_CONFIG_DIR=
EMC2_LANG_DIR=/usr/share/emc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
EMC2_EMCSH=/usr/bin/wish8.5
EMC2 - 2.4.6
Machine configuration directory is '/home/matthew/emc2/configs/Sherline4Axis'
Machine configuration file is 'Sherline4Axis_inch.ini'
INIFILE=/home/matthew/emc2/configs/Sherline4Axis/Sherline4Axis_inch.ini
PARAMETER_FILE=stepper.var
EMCMOT=motmod
EMCIO=io
TASK=milltask
HALUI=
DISPLAY=axis
NML_FILE=
Starting EMC2...
Starting EMC2 server program: emcsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting EMC2 IO program: io
Starting EMC2 TASK program: milltask
Starting EMC2 DISPLAY program: axis
RTAPI: ERROR: Unexpected realtime delay on task 1
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
Unexpected realtime delay: check dmesg for details.
Shutting down and cleaning up EMC2...
Killing task emcsvr, PID=3087
Killing task milltask, PID=3155
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done
Debug file information:
Traceback (most recent call last):
File "/usr/bin/axis", line 3953, in <module>
get_coordinate_font(vars.dro_large_font.get())
File "/usr/bin/axis", line 3865, in get_coordinate_font
font_cache[coordinate_font] = fontbase = int(o.tk.call(o._w,
"loadbitmapfont", coordinate_font))
_tkinter.TclError: Could not allocate font
3087
PID TTY STAT TIME COMMAND
3155
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Kernel message information:
[ 9954.443417] I-pipe: Domain RTAI registered.
[ 9954.443431] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 9954.443436] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu
4.4.3-4ubuntu5) .
[ 9954.443499] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE
(INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 9954.443503] PIPELINE layers:
[ 9954.443509] f9539e20 9ac15d93 RTAI 200
[ 9954.443513] c085cb20 0 Linux 100
[ 9954.470543] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 9954.470759] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with
RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 9954.470767] RTAI[sched]: hard timer type/freq = APIC/12499948(Hz);
default timing: periodic; linear timed lists.
[ 9954.470773] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq
= 2999963000 hz.
[ 9954.470776] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns.
[ 9954.471593] RTAI[usi]: enabled.
[ 9954.551887] RTAI[math]: loaded.
[ 9954.653236] config string '0x0378'
[ 9955.482564] RTAPI: ERROR: Unexpected realtime delay on task 1
[ 9955.482576] This Message will only display once per session.
[ 9955.482579] Run the Latency Test and resolve before continuing.
[ 9955.483574] 811: ERROR: Unexpected realtime delay: check dmesg for details.
[ 9955.483582]
[ 9955.483583] In recent history there were
[ 9955.483585] 2996212, 2993235, 3009263, 2989170, and 2989635
[ 9955.483587] elapsed clocks between calls to the motion controller.
[ 9955.483593] This time, there were 4197532 which is so anomalously
[ 9955.483596] large that it probably signifies a problem with your
[ 9955.483598] realtime configuration. For the rest of this run of
[ 9955.483600] EMC, this message will be suppressed.
[ 9955.483602]
[ 9956.118220] RTAI[math]: unloaded.
[ 9956.158607] SCHED releases registered named ALIEN RTGLBH
[ 9956.189379] RTAI[malloc]: unloaded.
[ 9956.288151] RTAI[sched]: unloaded (forced hard/soft/hard
transitions: traps 0, syscalls 0).
[ 9956.292979] I-pipe: Domain RTAI unregistered.
[ 9956.293066] RTAI[hal]: unmounted.
I just got done installing the CNC upgrade package on my Sherline 5400 mill, and i am a new Linux user stumbling my way through figuring out how to use it.
-Matt
Please Log in or Create an account to join the conversation.
If not you need to check that first and maybe edit the configuration to lower setttings.
Take a look here...
wiki.linuxcnc.org/emcinfo.pl?TroubleShooting
From your report...
RTAPI: ERROR: Unexpected realtime delay on task 1
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
Unexpected realtime delay: check dmesg for details.
Rick G
Please Log in or Create an account to join the conversation.
-Matt
Please Log in or Create an account to join the conversation.
I assume you didn't adjust your config to suit your latency...
[ 9955.483583] In recent history there were
[ 9955.483585] 2996212, 2993235, 3009263, 2989170, and 2989635
[ 9955.483587] elapsed clocks between calls to the motion controller.
[ 9955.483593] This time, there were 4197532 which is so anomalously
[ 9955.483596] large that it probably signifies a problem with your
[ 9955.483598] realtime configuration. For the rest of this run of
[ 9955.483600] EMC, this message will be suppressed.
John
Please Log in or Create an account to join the conversation.
-Matt
Please Log in or Create an account to join the conversation.
If you used one of the sample configs which one did you use?
John
Please Log in or Create an account to join the conversation.
-Matt
Please Log in or Create an account to join the conversation.
Open up the Sherline4Axis_inch.ini file and change
BASE_PERIOD = 50000
to
BASE_PERIOD = 100000
I have a fairly good latency and I got the RTAPI: ERROR when I ran the config until I changed the base period to 100000
John
Please Log in or Create an account to join the conversation.
-Matt
Please Log in or Create an account to join the conversation.
Lets back up a bit... did you create a local copy of the sherline config in /home/.../emc2/configs by starting EMC from the CNC menu and clicking on sample configs and picking the sherline config and saving the config to your local directory and this creates an icon to your desktop to start your config from?
If your mucking about in the files above your home directory you are in the wrong place.
John
Please Log in or Create an account to join the conversation.