- Posts: 88
- Thank you received: 0
Error starting LinuxCNC sim axis
3 years 1 month ago #280794
by NTULINUX
Error starting LinuxCNC sim axis was created by NTULINUX
Hi, I was just trying LinuxCNC out again on Gentoo and discovered a problem both with the 2.9 and master branches:
Any ideas? Thank you!!
Code:
Error report created by /usr/lib/tcltk/linuxcnc/show_errors.tcl:
Print file information:
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/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.0~pre1
Machine configuration directory is '/home/ntu/linuxcnc/configs/sim.axis'
Machine configuration file is 'axis.ini'
INIFILE=/home/ntu/linuxcnc/configs/sim.axis/axis.ini
VERSION=1.1
PARAMETER_FILE=sim.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=X Y Z
KINEMATICS=trivkins
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(lib): /usr/share/linuxcnc/hallib/core_sim.hal
Found file(lib): /usr/share/linuxcnc/hallib/sim_spindle_encoder.hal
Found file(lib): /usr/share/linuxcnc/hallib/axis_manualtoolchange.hal
Found file(lib): /usr/share/linuxcnc/hallib/simulated_home.hal
Found file(lib): /usr/share/linuxcnc/hallib/check_xyz_constraints.hal
Found file(REL): ./cooling.hal
Shutting down and cleaning up LinuxCNC...
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Debug file information:
Note: Using POSIX realtime
count= and names= are mutually exclusive
and2: rtapi_app_main: Invalid argument (-22)
./cooling.hal:2: waitpid failed /usr/bin/rtapi_app and2
./cooling.hal:2: /usr/bin/rtapi_app exited without becoming ready
./cooling.hal:2: insmod for and2 failed, returned -1
4401
Stopping realtime threads
Unloading hal components
and2: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
<commandline>:0: unloadrt failed
Note: Using POSIX realtime
Any ideas? Thank you!!
Please Log in to join the conversation.
3 years 1 month ago #280795
by NTULINUX
Replied by NTULINUX on topic Error starting LinuxCNC sim axis
sim.axis -> "axis" fails however, "axis_9axis" loads just fine.. Funny how the more complicated one works just fine, heh!
axis_mm also fails.
axis_mm also fails.
Please Log in to join the conversation.
3 years 1 month ago #280811
by Aciera
Replied by Aciera on topic Error starting LinuxCNC sim axis
Could you try replacing the contents of 'cooling.hal' with this (I changed component count to names):
# Fake the existence of coolant options
loadrt and2 names=and2_cool
addf and2_cool servo-thread
net flood iocontrol.0.coolant-flood => and2_cool.in0
net mist iocontrol.0.coolant-mist => and2_cool.in1
# Fake the existence of coolant options
loadrt and2 names=and2_cool
addf and2_cool servo-thread
net flood iocontrol.0.coolant-flood => and2_cool.in0
net mist iocontrol.0.coolant-mist => and2_cool.in1
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
Less
More
- Posts: 22012
- Thank you received: 4
3 years 1 month ago #280839
by tommylight
Last line says the AND component failed because of first line issue while adding it with loadrt.
Replied by tommylight on topic Error starting LinuxCNC sim axis
First line says it is using both count and namescount= and names= are mutually exclusive
and2: rtapi_app_main: Invalid argument (-22)
./cooling.hal:2: waitpid failed /usr/bin/rtapi_app and2
./cooling.hal:2: /usr/bin/rtapi_app exited without becoming ready
./cooling.hal:2: insmod for and2 failed, returned -1
Last line says the AND component failed because of first line issue while adding it with loadrt.
Please Log in to join the conversation.
3 years 1 month ago #280853
by Aciera
Replied by Aciera on topic Error starting LinuxCNC sim axis
Yes, the strange thing is that if I add 'cooling.hal' to 'axis.ini' (as it is done in the current source) to a march build of master then it works just fine. So I'm not sure what else changed.
Please Log in to join the conversation.
3 years 1 month ago #280986
by Aciera
Replied by Aciera on topic Error starting LinuxCNC sim axis
Just built current master and I cannot reproduce this error.
Please Log in to join the conversation.
Time to create page: 0.092 seconds
