Cannot start EMC with axis on a 10.04/2.4 system
- step4linux
- Offline
- Premium Member
- Posts: 115
- Thank you received: 5
I have persisting problems to use EMC 2.4.4 (Ub 10.04) with axis.
Other GUIs work perfect, including mocca, as well as the stepconf wizzard.
EMC with axis crashes with seg fault, whatever config I use. Could be old proven configs (yes removed NML...) or new created by stepconf. The same configs work with tkemc, mini, mocca (not touchy).
when I start emc -d I see this:
+ axis -ini /home/gerd/emc2/configs/NewStepper/NewStepperAxis.ini
/usr/bin/emc: Zeile 654: 1216 Segmentation fault $EMCDISPLAY -ini "$INIFILE" $EMCDISPLAYARGS $EXTRA_ARGS
+ result=139
+ Cleanup
+ echo 'Shutting down and cleaning up EMC2...'
Shutting down and cleaning up EMC2...
dmesg tells:
[ 311.280644] RTAI[usi]: enabled.
[ 311.744712] RTAI[math]: loaded.
[ 312.545142] config string '0x378 out '
[ 318.797623] axis[1216]: segfault at 0 ip (null) sp bf95737c error 4 in libXext.so.6.4.0[110000+e000]
[ 324.250886] RTAI[math]: unloaded.
Anybody has a hint how to proceed ? what to check ?
thanks for help, Gerd
Please Log in or Create an account to join the conversation.
- CannonFodder
- Offline
- New Member
- Posts: 6
- Thank you received: 0
Thanks,
Randy
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- CannonFodder
- Offline
- New Member
- Posts: 6
- Thank you received: 0
Thanks, that didn't help. I rerun it over and over and over. Any interface except axis works. Axis and axis based interfaces crash. I notice the segmentation fault randomly occurs in other libraries. Below is my last run attempt and below that is other segfaultt from previous runs.
Thanks,
Randy
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/cnc/emc2/configs/sim'
Machine configuration file is 'axis.ini'
INIFILE=/home/cnc/emc2/configs/sim/axis.ini
PARAMETER_FILE=sim.var
EMCMOT=motmod
EMCIO=io
TASK=milltask
HALUI=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 HAL User Interface program: halui
Starting EMC2 TASK program: milltask
Starting EMC2 DISPLAY program: axis
Shutting down and cleaning up EMC2...
Killing task emcsvr, PID=6790
Killing task milltask, PID=6840
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done
Debug file information:
/usr/bin/emc: line 654: 6841 Segmentation fault $EMCDISPLAY -ini "$INIFILE" $EMCDISPLAYARGS $EXTRA_ARGS
6790
PID TTY STAT TIME COMMAND
6840
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Kernel message information:
[ 2701.182656] I-pipe: Domain RTAI registered.
[ 2701.182693] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 2701.182699] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 2701.182717] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 2701.182723] PIPELINE layers:
[ 2701.182732] da619e20 9ac15d93 RTAI 200
[ 2701.182737] c085cb20 0 Linux 100
[ 2701.263519] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 2701.265081] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 2701.265102] RTAI[sched]: hard timer type/freq = APIC/6264148(Hz); default timing: periodic; linear timed lists.
[ 2701.265110] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 1202687000 hz.
[ 2701.265117] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns.
[ 2701.270064] RTAI[usi]: enabled.
[ 2701.566727] RTAI[math]: loaded.
[ 2707.081389] axis[6841]: segfault at 0 ip (null) sp bf9b0bfc error 4 in _tkinter.so[110000+a000]
[ 2711.407587] RTAI[math]: unloaded.
[ 2711.627738] SCHED releases registered named ALIEN RTGLBH
[ 2711.644650] RTAI[malloc]: unloaded.
[ 2711.744070] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 2711.760128] I-pipe: Domain RTAI unregistered.
[ 2711.760159] RTAI[hal]: unmounted.
[ 1913.792715] axis[4464]: segfault at 0 ip (null) sp bf9e06dc error 4 in libcrypto.so.0.9.8[110000+138000]
[ 1979.355086] axis[4685]: segfault at 0 ip (null) sp bfa4589c error 4 in libutil-2.11.1.so[110000+2000]
[ 2068.324668] axis[4905]: segfault at 0 ip (null) sp bfebd1cc error 4 in libz.so.1.2.3.3[110000+13000]
[ 2281.412599] axis[5724]: segfault at 0 ip (null) sp bfaf453c error 4 in libpthread-2.11.1.so[113000+15000]
Please Log in or Create an account to join the conversation.
the problem you are seeing is an interoperability between librarys or library versions , and possibly an old incompatabilty with a library recently installed
form any newly installed application , using an old library .
it may be a better solution if this persists , to backup your emc config , and do a clean install of the live cd
look in the package manager for any conflicts or multiple versions of the same library , this may point you to a solution
Please Log in or Create an account to join the conversation.
This might point at an OpenGL issue. The other UI's don't use OpenGL (well, I am not sure about Mocca).I have persisting problems to use EMC 2.4.4 (Ub 10.04) with axis.
Other GUIs work perfect, including mocca, as well as the stepconf wizzard.
You could try software-only OpenGL:
wiki.linuxcnc.org/emcinfo.pl?TroubleShoo...oftware_based_OpenGL
Please Log in or Create an account to join the conversation.
- CannonFodder
- Offline
- New Member
- Posts: 6
- Thank you received: 0
The errors above are from my desktop computer I want to use to run the cnc table. Reinstalled on my laptop and did all the recommended updates and no longer get the segfault errors. Now it says there is a configuration error, but fails to give any clue as to what the configuration error is or which config file is having the issue.
Please Log in or Create an account to join the conversation.
- CannonFodder
- Offline
- New Member
- Posts: 6
- Thank you received: 0
Get the same results from the Live CD. It functions normally on my computer at work. So, I don't think it is a library mismatch from an update.
The errors above are from my desktop computer I want to use to run the cnc table. Reinstalled on my laptop and did all the recommended updates and no longer get the segfault errors. Now it says there is a configuration error, but fails to give any clue as to what the configuration error is or which config file is having the issue.
Andy,
Will try the software OpenGL when I get home this evening.
Thanks for all the ideas,
Randy
Please Log in or Create an account to join the conversation.
- CannonFodder
- Offline
- New Member
- Posts: 6
- Thank you received: 0
The software OpenGL drivers did it. Thanks.
Now if I can get it to run on my laptop. I'm thinking my problem is no printer port on it. Is there a way run the software with out any hardware? I want to use my laptop to develop and test the code before going out to the garage to run it.
Randy
Please Log in or Create an account to join the conversation.
Now if I can get it to run on my laptop. I'm thinking my problem is no printer port on it. Is there a way run the software with out any hardware? I want to use my laptop to develop and test the code before going out to the garage to run it.
Yes, you can compile for simulator, or just use one of the sim configs with a standard install.
wiki.linuxcnc.org/emcinfo.pl?EMC2_Pure_Simulator
Please Log in or Create an account to join the conversation.