Crash when trying to re-run LinuxCNC

More
08 Aug 2014 21:39 #49600 by doronby
I installed LinuxCNC from the latest LiveCD

I WORKES FINE BUT... WHEN I CLOSE THE PROCESS AND TRY TO RE-START---> CRASH
i used the wizard to setup all the pins and motor values and MANUALLY edited & added the neccesary files to do screw compensation which works great.

I have to re-boot for it to start again.
Any idea why ?

This is the output of the 'crash' windows



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.0
Machine configuration directory is '/home/gytis/linuxcnc/configs/big_macine'
Machine configuration file is 'big_macine.ini'
INIFILE=/home/gytis/linuxcnc/configs/big_macine/big_macine.ini
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=
DISPLAY=axis
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=1624
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
big_macine.hal:7: exit value: 1
big_macine.hal:7: insmod failed, returned -1
See the output of 'dmesg' for more information.
1624
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

Kernel message information:
[ 1345.689146] I-pipe: Domain RTAI registered.
[ 1345.689157] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 1345.689160] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 1345.689168] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 1345.689171] PIPELINE layers:
[ 1345.689176] f8bd1e20 9ac15d93 RTAI 200
[ 1345.689179] c085cb20 0 Linux 100
[ 1345.720973] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 1345.721116] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 1345.721123] RTAI[sched]: hard timer type/freq = APIC/12468720(Hz); default timing: periodic; linear timed lists.
[ 1345.721128] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 2792959000 hz.
[ 1345.721132] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns.
[ 1345.721249] RTAI[usi]: enabled.
[ 1345.818055] RTAI[math]: loaded.
[ 1345.910012] config string '0x378 out '
[ 1345.910033] PARPORT: ERROR: port parport0 claim failed
[ 1346.341077] RTAI[math]: unloaded.
[ 1346.404802] SCHED releases registered named ALIEN RTGLBH
[ 1346.420322] RTAI[malloc]: unloaded.
[ 1346.520024] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 1346.524650] I-pipe: Domain RTAI unregistered.
[ 1346.524663] RTAI[hal]: unmounted.

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

More
08 Aug 2014 23:16 - 08 Aug 2014 23:19 #49605 by ArcEye
Hi

The answer is because hal_parport could not be loaded

insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/hal_parport.ko': -1 Resource temporarily unavailable

[ 1345.910012] config string '0x378 out '
[ 1345.910033] PARPORT: ERROR: port parport0 claim failed


This is probably because either it did not unload ( but that should give a different error message) or because something else has claimed the parport and it cannot attach.

When it fails to start , do lsmod in a terminal and look for lp, ppdev and parport_pc in the print out.
lsmod > lsmod.txt will save it as a file, please attach it on your next post.

Check /etc/modules does not have the line
lp
in it
Also that /etc/modprobe.d/linuxcnc.conf has the line
install parport_pc /bin/true
uncommented

These prevent the other normal printer modules from claiming the parport.
(you need to use sudo gedit in a terminal to get root access to edit them)

I am not clear why it starts the first time however.

regards
Last edit: 08 Aug 2014 23:19 by ArcEye.
The following user(s) said Thank You: doronby

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

More
12 Aug 2014 20:38 #49762 by doronby
commenting out the LP entry did the trick. :)

In future releases, it may be worth while to get the liveCD to come up in that state without the comment.

Thanks !!!

-D

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

Time to create page: 0.144 seconds
Powered by Kunena Forum