On Sunday 16 December 2012 06:44:13 Michael Haberler did opine:
> Gene,
>
> I dont think it's the HAL file (gut feeling) - could be any number of
> reasons, see below:
>
> Am 15.12.2012 um 23:38 schrieb Gene Heskett:
> > Greetings;
> >
> > I have a startup error that doesn't make any sense to me.
> >
> > From dmsg:
> >
> > gene@lathe:~/linuxcnc/configs/my-lathe$ linuxcnc -l
> > LINUXCNC - 2.6.0-pre0-3610-g3ff05c9
> > Machine configuration directory is
> > '/home/gene/linuxcnc/configs/my-lathe' Machine configuration file is
> > 'my-lathe.ini'
> > Starting LinuxCNC...
> > redis server started as: 'redis-server ', logging to: /dev/null
> > (time=1355606562.264318,pid=2836): Registering server on TCP port
> > 5005. (time=1355606562.264584,pid=2836): running server for TCP port
> > 5005 (connection_socket = 3).
> > io started
> > iocontrol: machine: 'my-lathe' version 'unknown'
> > halcmd loadusr io started
> > task pid=2898
> > task: machine: 'my-lathe' version 'unknown'
> > emcTaskOnce: Python plugin configuredemcTaskOnce:
> > extract(task_instance): KeyError: ('task',)
> >
> > emcTaskOnce: no Python Task() instance available, using default
> > iocontrol- based task methods
> > waiting for s.axes
> > waiting for s.axes
> > waiting for s.axes
> > waiting for s.axes
> > waiting for s.axes
> > waiting for s.axes
> > waiting for s.axes
> > waiting for s.axes
> > waiting for s.axes
> > A configuration error is preventing LinuxCNC from starting.
> > More information may be available when running from a terminal.
> > Shutting down and cleaning up LinuxCNC...
> > (time=1355606570.945526,pid=2836): Deleting 5 channels from the
> > NML_Main_Channel_List.
> > (time=1355606570.945584,pid=2836): Deleting emcCommand NML channel
> > from NML_Main_Channel_List.
> > (time=1355606570.945614,pid=2836): deleting NML (1)
> > (time=1355606570.945640,pid=2836): delete (CMS *) 0x980a1e8;
> > (time=1355606570.945678,pid=2836):
> > rcs_shm_close(shm->key=1001(0x3E9),shm-
> >
> >> size=8192(0x2000),shm->addr=0xb7708000)
> >
> > (time=1355606570.945737,pid=2836): deleting CMS (emcCommand)
> > (time=1355606570.945771,pid=2836): free( data = 0x980abd0);
> > (time=1355606570.945800,pid=2836): Leaving ~CMS()
> > (time=1355606570.945825,pid=2836): CMS::delete(0x980a1e8)
> > (time=1355606570.945852,pid=2836): CMS::delete successful.
> > (time=1355606570.945878,pid=2836): Leaving ~NML()
> > (time=1355606570.945902,pid=2836): NML channel deleted from
> > NML_Main_Channel_List
> > (time=1355606570.945928,pid=2836): Deleting emcStatus NML channel from
> > NML_Main_Channel_List.
> > (time=1355606570.945954,pid=2836): deleting NML (2)
> > (time=1355606570.945979,pid=2836): delete (CMS *) 0x980fab8;
> > (time=1355606570.946008,pid=2836):
> > rcs_shm_close(shm->key=1002(0x3EA),shm-
> >
> >> size=16384(0x4000),shm->addr=0xb7704000)
> >
> > (time=1355606570.946050,pid=2836): deleting CMS (emcStatus)
> > (time=1355606570.946081,pid=2836): free( data = 0x98104a0);
> > (time=1355606570.946109,pid=2836): Leaving ~CMS()
> > (time=1355606570.946133,pid=2836): CMS::delete(0x980fab8)
> > (time=1355606570.946158,pid=2836): CMS::delete successful.
> > (time=1355606570.946184,pid=2836): Leaving ~NML()
> > (time=1355606570.946209,pid=2836): NML channel deleted from
> > NML_Main_Channel_List
> > (time=1355606570.946233,pid=2836): Deleting emcError NML channel from
> > NML_Main_Channel_List.
> > (time=1355606570.946259,pid=2836): deleting NML (3)
> > (time=1355606570.946284,pid=2836): delete (CMS *) 0x98148d0;
> > (time=1355606570.946312,pid=2836):
> > rcs_shm_close(shm->key=1003(0x3EB),shm-
> >
> >> size=8192(0x2000),shm->addr=0xb7702000)
> >
> > (time=1355606570.946355,pid=2836): deleting CMS (emcError)
> > (time=1355606570.946385,pid=2836): free( data = 0x98152b8);
> > (time=1355606570.946413,pid=2836): Leaving ~CMS()
> > (time=1355606570.946438,pid=2836): CMS::delete(0x98148d0)
> > (time=1355606570.946463,pid=2836): CMS::delete successful.
> > (time=1355606570.946489,pid=2836): Leaving ~NML()
> > (time=1355606570.946513,pid=2836): NML channel deleted from
> > NML_Main_Channel_List
> > (time=1355606570.946538,pid=2836): Deleting toolCmd NML channel from
> > NML_Main_Channel_List.
> > (time=1355606570.946564,pid=2836): deleting NML (4)
> > (time=1355606570.946589,pid=2836): delete (CMS *) 0x9817638;
> > (time=1355606570.946616,pid=2836):
> > rcs_shm_close(shm->key=1004(0x3EC),shm-
> >
> >> size=1024(0x400),shm->addr=0xb7701000)
> >
> > (time=1355606570.946660,pid=2836): deleting CMS (toolCmd)
> > (time=1355606570.946689,pid=2836): free( data = 0x9818020);
> > (time=1355606570.946716,pid=2836): Leaving ~CMS()
> > (time=1355606570.946740,pid=2836): CMS::delete(0x9817638)
> > (time=1355606570.946766,pid=2836): CMS::delete successful.
> > (time=1355606570.946792,pid=2836): Leaving ~NML()
> > (time=1355606570.946817,pid=2836): NML channel deleted from
> > NML_Main_Channel_List
> > (time=1355606570.946841,pid=2836): Deleting toolSts NML channel from
> > NML_Main_Channel_List.
> > (time=1355606570.946869,pid=2836): deleting NML (5)
> > (time=1355606570.946894,pid=2836): delete (CMS *) 0x98187d0;
> > (time=1355606570.946921,pid=2836):
> > rcs_shm_close(shm->key=1005(0x3ED),shm-
> >
> >> size=8192(0x2000),shm->addr=0xb76ff000)
> >
> > (time=1355606570.946964,pid=2836): deleting CMS (toolSts)
> > (time=1355606570.946994,pid=2836): free( data = 0x98191b8);
> > (time=1355606570.947020,pid=2836): Leaving ~CMS()
> > (time=1355606570.947044,pid=2836): CMS::delete(0x98187d0)
> > (time=1355606570.947071,pid=2836): CMS::delete successful.
> > (time=1355606570.947096,pid=2836): Leaving ~NML()
> > (time=1355606570.947120,pid=2836): NML channel deleted from
> > NML_Main_Channel_List
> > (time=1355606570.947147,pid=2836): deleting NML (1)
> > (time=1355606570.947174,pid=2836): Leaving ~NML()
> > (time=1355606570.947200,pid=2836): NML::operater delete(0x980a008)
> > (time=1355606570.947228,pid=2836): NML channel deleted from
> > Dynamically_Allocated_NML_Objects
> > (time=1355606570.947255,pid=2836): deleting NML (2)
> > (time=1355606570.947280,pid=2836): Leaving ~NML()
> > (time=1355606570.947304,pid=2836): NML::operater delete(0x980f938)
> > (time=1355606570.947330,pid=2836): NML channel deleted from
> > Dynamically_Allocated_NML_Objects
> > (time=1355606570.947356,pid=2836): deleting NML (3)
> > (time=1355606570.947381,pid=2836): Leaving ~NML()
> > (time=1355606570.947405,pid=2836): NML::operater delete(0x98146d0)
> > (time=1355606570.947431,pid=2836): NML channel deleted from
> > Dynamically_Allocated_NML_Objects
> > (time=1355606570.947456,pid=2836): deleting NML (4)
> > (time=1355606570.947481,pid=2836): Leaving ~NML()
> > (time=1355606570.947505,pid=2836): NML::operater delete(0x98174b8)
> > (time=1355606570.947532,pid=2836): NML channel deleted from
> > Dynamically_Allocated_NML_Objects
> > (time=1355606570.947557,pid=2836): deleting NML (5)
> > (time=1355606570.947582,pid=2836): Leaving ~NML()
> > (time=1355606570.947607,pid=2836): NML::operater delete(0x9818650)
> > (time=1355606570.947635,pid=2836): NML channel deleted from
> > Dynamically_Allocated_NML_Objects
>
> this means milltask died. It should never do that. in particular its not
> involved with HAL directly.
>
> > /usr/bin/milltask (pid 2898) died on signal 11, backtrace stored in
> > /tmp/backtrace.2898
>
> --^^^^^^^^^^^^^^^^ this file would give some indication what the issue
> is, pastebin or post it here please
>
> -m
I've been playing, getting rid of any setp's that referenced a normal input
pin, so I have generated several of those by now.
Here is the first one:
stack trace for /usr/bin/milltask pid=1584 signal=11
[Thread debugging using libthread_db enabled]
0x00f9c422 in __kernel_vsyscall ()
[Current thread is 1 (Thread 0xb785c6d0 (LWP 1584))]
#0 0x00f9c422 in __kernel_vsyscall ()
#1 0x004a9e93 in waitpid () from /lib/tls/i686/cmov/libc.so.6
#2 0x0807e894 in ?? ()
#3 <signal handler called>
#4 0x08056010 in ?? ()
#5 0x0805fa1a in ?? ()
#6 0x0806333d in ?? ()
#7 0x00423bd6 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#8 0x08055f61 in ?? ()
and here is the most recent:
[Thread debugging using libthread_db enabled]
0x006f4422 in __kernel_vsyscall ()
[Current thread is 1 (Thread 0xb785b6d0 (LWP 14304))]
#0 0x006f4422 in __kernel_vsyscall ()
#1 0x005c2e93 in waitpid () from /lib/tls/i686/cmov/libc.so.6
#2 0x0807e894 in ?? ()
#3 <signal handler called>
#4 0x08056010 in ?? ()
#5 0x0805fa1a in ?? ()
#6 0x0806333d in ?? ()
#7 0x0053cbd6 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#8 0x08055f61 in ?? ()
DEBUG is commented out in each case
Here is the most recent linucnc_debug.txt:
Can not find -sec MOT -var MOT -num 1
Can not find -sec IO -var IO -num 1
Can not find -sec LINUXCNC -var NML_FILE -num 1
Can not find -sec EMC -var NML_FILE -num 1
Can not find -sec REDIS -var DISABLE_SERVER -num 1
Can not find -sec REDIS -var SERVER_PATH -num 1
Can not find -sec REDIS -var SERVER_ARGS -num 1
Can not find -sec REDIS -var SERVER_LOG -num 1
14240
PID TTY STAT TIME COMMAND
14304
PID TTY STAT TIME COMMAND
14304 pts/2 S+ 0:00 milltask -ini /home/gene/linuxcnc/configs/my-
lathe/my-lathe.ini
PID TTY STAT TIME COMMAND
14304 pts/2 T+ 0:00 milltask -ini /home/gene/linuxcnc/configs/my-
lathe/my-lathe.ini
PID TTY STAT TIME COMMAND
14304 pts/2 T+ 0:00 milltask -ini /home/gene/linuxcnc/configs/my-
lathe/my-lathe.ini
PID TTY STAT TIME COMMAND
14239
PID TTY STAT TIME COMMAND
14239 pts/2 Dl+ 0:00 redis-server
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
And the most recent linuxcnc_print.txt:
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-2.6.32-122-rtai/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
Using previous inifile: /home/gene/linuxcnc/configs/my-lathe/my-lathe.ini
INIFILE=/home/gene/linuxcnc/configs/my-lathe/my-lathe.ini
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=
DISPLAY=axis
DISABLE_SERVER=
SERVER_PATH=
SERVER_ARGS=
SERVER_LOG=
Starting redis server program:
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting TASK program: milltask
Starting DISPLAY program: axis
Killing task linuxcncsvr, PID=14240
Killing task milltask, PID=14304
Killing task redis-server, PID=14239
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
and just for grins, that .ini file:
# Generated by stepconf at Tue Mar 13 16:05:56 2012
# If you make changes to this file, they will be
# overwritten when you run stepconf again
[EMC]
MACHINE = my-lathe
# DEBUG = 0x7FFFFFFF
DEBUG = 0
[DISPLAY]
DISPLAY = axis
EDITOR = gnome-terminal -e vim
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.5
MIN_SPINDLE_OVERRIDE = 0.25
MAX_SPINDLE_OVERRIDE = 1.5
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 4
CYCLE_TIME = 0.05
PROGRAM_PREFIX = /home/gene/linuxcnc/nc_files
INCREMENTS = .1in .05in .02in .01in .005in .002in .001in .0005in .0001in
LATHE = 1
# slightly faster display of arcs
ARCDIVISION = 32
# for NGCGUI
TKPKG = Ngcgui 1.0
TKPKG = Ngcguittt 1.0
NGCGUI_FONT = Helvetica -12 normal
NGCGUI_PREAMBLE = in_std.ngc
NGCGUI_SUBFILE = simp.ngc
NNGCGUI_SUBFILE = GCGUI_SUBFILE = ""
NGCGUI_OPTIONS =
TTT = truetype-tracer
TTT_PREAMBLE = in_std.ngc
[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image
PROGRAM_EXTENSION = .py Python Script
png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python
[TASK]
TASK = milltask
CYCLE_TIME = 0.010
[RS274NGC]
RS274NGC_STARTUP_CODE = G7 G18 G20 G54 G90 G97
PARAMETER_FILE = linuxcnc.var
SUBROUTINE_PATH =
/home/gene/linuxcnc/nc_files/ngcgui_lib:/home/gene/linuxcnc/nc_files/ngcgui_lib/utilitysubs
USER_M_PATH = /home/gene/linuxcnc/nc_files/ngcgui_lib/mfiles
[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
COMM_WAIT = 0.010
BASE_PERIOD = 24000
SERVO_PERIOD = 1000000
[HAL]
HALFILE = my-lathe.hal
HALFILE = custom.hal
POSTGUI_HALFILE = custom_postgui.hal
[TRAJ]
TAJECTORY_PERIOD =1000000
AXES = 3
COORDINATES = X Z
LINEAR_UNITS = inch
ANGULAR_UNITS = degree
CYCLE_TIME = 0.010
DEFAULT_VELOCITY = 0.250
MAX_LINEAR_VELOCITY = 0.65
POSITION_FILE = position.txt
NO_FORCE_HOMING = 1
[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = tool.tbl
[AXIS_0]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 0.60
MAX_ACCELERATION = 5.50
STEPGEN_MAXACCEL = 11.00
SCALE = -8050
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = -5.01
MAX_LIMIT = 5.50
HOME_OFFSET = 0.0
BACKLASH = 0.001
[AXIS_2]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 0.37650
MAX_ACCELERATION = 3.00
STEPGEN_MAXACCEL = 6.00
# 1000 steps/rev, 2/1 gear to 16 tip screw
SCALE = 32000
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = -10.05
MAX_LIMIT = 12.00
HOME_OFFSET = 0.0
BACKLASH =0.0063
Thanks Michael.
Cheers, Gene
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
My web page: <http://coyoteden.dyndns-free.com:85/gene> is up!
I didn't like the play, but I saw it under adverse conditions. The curtain
was up.
I was taught to respect my elders, but its getting
harder and harder to find any...
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers