Error code on exit

More
07 Jun 2019 00:07 #136136 by Vector459
Error code on exit was created by Vector459
Hi Guys, I am a new linuxcnc user. I am getting this error message after closing down linuxcnc. Works fine and no other issues I can tell just get this message when shutting it down.


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/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
LINUXCNC - 2.5.4
Machine configuration directory is '/home/probotix/linuxcnc/configs/my-lathe'
Machine configuration file is 'my-lathe.ini'
INIFILE=/home/probotix/linuxcnc/configs/my-lathe/my-lathe.ini
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=halui
DISPLAY=axis
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
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=1818
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done

Debug file information:
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
insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/hal_parport.ko': -1 Resource temporarily unavailable
my-lathe.hal:7: exit value: 1
my-lathe.hal:7: insmod failed, returned -1
See the output of 'dmesg' for more information.
1818
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

Kernel message information:
[ 106.679082] I-pipe: Domain RTAI registered.
[ 106.679100] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 106.679107] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 106.679210] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 106.679217] PIPELINE layers:
[ 106.679223] f993ae20 9ac15d93 RTAI 200
[ 106.679230] c085cb20 0 Linux 100
[ 106.721716] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 106.722783] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 106.722794] RTAI[sched]: hard timer type/freq = APIC/8312550(Hz); default timing: periodic; linear timed lists.
[ 106.722801] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 1861952000 hz.
[ 106.722806] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns.
[ 106.723053] RTAI[usi]: enabled.
[ 106.790677] RTAI[math]: loaded.
[ 106.910075] config string '0x378 out '
[ 106.910113] PARPORT: ERROR: port parport0 claim failed
[ 107.579058] RTAI[math]: unloaded.
[ 107.610410] SCHED releases registered named ALIEN RTGLBH
[ 107.676106] RTAI[malloc]: unloaded.
[ 107.775330] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 107.779791] I-pipe: Domain RTAI unregistered.
[ 107.779919] RTAI[hal]: unmounted.



Thanks in advance

Please Log in or Create an account to join the conversation.

More
07 Jun 2019 05:29 #136171 by pl7i92
Replied by pl7i92 on topic Error code on exit
hi welcome
my-lathe.hal:7: exit value: 1
it seams you loadrt parport
ther is no parport available on your system as shown in error
can you please check in terminal

dmesg | grep parpo*

if it is there
and please get the HAL file inhere so we see how it is added
What Operation System did you install Wheezy or stretch Mint ..

What Linuxcnc Version are you on

Please Log in or Create an account to join the conversation.

More
07 Jun 2019 17:26 #136236 by Vector459
Replied by Vector459 on topic Error code on exit
I just purchased a mini lathe with linuxcnc2.5.4 on it and Ubuntu 10.04.LTS. SO everything was already installed.

My computer does have 2 parallel ports but I only use one? Also this error does not happen all the time I just checked and ran program closed and reopened 4 times right now and no error. So it seem intermittent.

Here is .hal file

# Generated by stepconf at Sun Dec 15 13:01:19 2013
# If you make changes to this file, they will be
# overwritten when you run stepconf again
loadrt trivkins
loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[TRAJ]AXES
loadrt probe_parport
loadrt hal_parport cfg="0x378 out "
setp parport.0.reset-time 5000
loadrt stepgen step_type=0,0
loadrt encoder num_chan=1

addf parport.0.read base-thread
addf stepgen.make-pulses base-thread
addf encoder.update-counters base-thread
addf parport.0.write base-thread
addf parport.0.reset base-thread

addf stepgen.capture-position servo-thread
addf encoder.capture-position servo-thread
addf motion-command-handler servo-thread
addf motion-controller servo-thread
addf stepgen.update-freq servo-thread

setp encoder.0.position-scale 400.000000
setp encoder.0.x4-mode true
net spindle-position encoder.0.position => motion.spindle-revs
net spindle-velocity encoder.0.velocity => motion.spindle-speed-in
net spindle-index-enable encoder.0.index-enable <=> motion.spindle-index-enable
net spindle-phase-a encoder.0.phase-A <= parport.0.pin-11-in-not
net spindle-phase-b encoder.0.phase-B <= parport.0.pin-12-in
net spindle-index encoder.0.phase-Z <= parport.0.pin-10-in
net spindle-cmd <= motion.spindle-speed-out

net xstep => parport.0.pin-02-out
setp parport.0.pin-02-out-reset 1
setp parport.0.pin-03-out-invert 1
net xdir => parport.0.pin-03-out
net zstep => parport.0.pin-06-out
setp parport.0.pin-06-out-reset 1
net zdir => parport.0.pin-07-out

#net home-x <= parport.0.pin-13-in
#net home-z <= parport.0.pin-15-in

setp stepgen.0.position-scale [AXIS_0]SCALE
setp stepgen.0.steplen 1
setp stepgen.0.stepspace 0
setp stepgen.0.dirhold 35000
setp stepgen.0.dirsetup 35000
setp stepgen.0.maxaccel [AXIS_0]STEPGEN_MAXACCEL
net xpos-cmd axis.0.motor-pos-cmd => stepgen.0.position-cmd
net xpos-fb stepgen.0.position-fb => axis.0.motor-pos-fb
net xstep <= stepgen.0.step
net xdir <= stepgen.0.dir
net xenable axis.0.amp-enable-out => stepgen.0.enable
#net home-x => axis.0.home-sw-in

setp stepgen.1.position-scale [AXIS_2]SCALE
setp stepgen.1.steplen 1
setp stepgen.1.stepspace 0
setp stepgen.1.dirhold 35000
setp stepgen.1.dirsetup 35000
setp stepgen.1.maxaccel [AXIS_2]STEPGEN_MAXACCEL
net zpos-cmd axis.2.motor-pos-cmd => stepgen.1.position-cmd
net zpos-fb stepgen.1.position-fb => axis.2.motor-pos-fb
net zstep <= stepgen.1.step
net zdir <= stepgen.1.dir
net zenable axis.2.amp-enable-out => stepgen.1.enable
#net home-z => axis.2.home-sw-in

net estop-out <= iocontrol.0.user-enable-out
net estop-out => iocontrol.0.emc-enable-in

loadusr -W hal_input -KRAL Box

loadusr -W hal_manualtoolchange
net tool-change iocontrol.0.tool-change => hal_manualtoolchange.change
net tool-changed iocontrol.0.tool-changed <= hal_manualtoolchange.changed
net tool-number iocontrol.0.tool-prep-number => hal_manualtoolchange.number
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared

Please Log in or Create an account to join the conversation.

More
07 Jun 2019 18:12 #136241 by Vector459
Replied by Vector459 on topic Error code on exit
Here is log file

File Attachment:

File Name: Log.txt
File Size:41 KB
Attachments:

Please Log in or Create an account to join the conversation.

More
18 Jun 2019 12:16 #137181 by Vector459
Replied by Vector459 on topic Error code on exit
I still don't know why this is happening I can not even run linuxcnc anymore just get the error in the first post. Here is what I get when I run : dmesg | grep parpo* in terminal:

probotix@probotix-desktop:~$ dmesg | grep parpo*
[ 8.192124] parport_pc 00:0b: reported by Plug and Play ACPI
[ 8.192197] parport0: PC-style at 0x378, irq 5 [PCSPP,TRISTATE]
[ 8.282942] lp0: using parport0 (interrupt-driven).
probotix@probotix-desktop:~$

Please Log in or Create an account to join the conversation.

More
20 Jun 2019 12:19 #137368 by andypugh
Replied by andypugh on topic Error code on exit
I suspect that lp (line printer, I think) is grabbing the parport and not giving it up to LinuxCNC.

Are you still using LinuxCNC 2.5 as you said in the first post?

You can try opening a terminal window and typing "sudo rmmod lp" then try running linuxCNC.
If that helps then the answer might be to blacklist lp.

askubuntu.com/questions/134266/how-do-i-...from-loading-on-boot

Please Log in or Create an account to join the conversation.

More
20 Jun 2019 12:33 #137371 by pl7i92
Replied by pl7i92 on topic Error code on exit
you indicated 2 parports on the pc
the terminal saying only one
[ 8.192124] parport_pc 00:0b: reported by Plug and Play ACPI
[ 8.192197] parport0: PC-style at 0x378, irq 5 [PCSPP,TRISTATE]
[ 8.282942] lp0: using parport0 (interrupt-driven).

TRY in Bios to set it to ECP/EPP
then it can be unloaded and reloded by software

is the second parport connected to a ISA or pci card

Please Log in or Create an account to join the conversation.

More
21 Jun 2019 14:18 #137489 by Vector459
Replied by Vector459 on topic Error code on exit
I tried to enter into the terminal what you suggested and this is what I get back.

(Sudo) probotix password:

And then it will not let me type anything and as I tried to type the password but will not allow any input?

Please Log in or Create an account to join the conversation.

More
21 Jun 2019 14:27 #137492 by Vector459
Replied by Vector459 on topic Error code on exit
Ok I got sudo rmmod lp to work in terminal. Now it says:

Error: module lp does not exist in / proc/ modules.

Yes I'm running same version I mentioned in top of post.

Thanks

Please Log in or Create an account to join the conversation.

More
21 Jun 2019 14:28 #137493 by Vector459
Replied by Vector459 on topic Error code on exit
I will try this. 2nd parport is pci

Thanks

Please Log in or Create an account to join the conversation.

Time to create page: 0.183 seconds
Powered by Kunena Forum