Installed on Ubuntu 10.04 tries to start and then

More
26 Dec 2010 07:31 #6250 by hondaman900
I installed EMC2 on my existing Ubuntu 10.04 system. I configured to sim-axis, and then starting EMC2 I get the following error. Not sure what to do next. Any suggestions?
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/stephen/emc2/configs/sim'
Machine configuration file is 'axis.ini'
INIFILE=/home/stephen/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=1595
Killing task milltask, PID=1649
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done

Debug file information:
/usr/bin/emc: line 654:  1650 Segmentation fault      $EMCDISPLAY -ini "$INIFILE" $EMCDISPLAYARGS $EXTRA_ARGS
1595
  PID TTY      STAT   TIME COMMAND
1649
  PID TTY      STAT   TIME COMMAND
Stopping realtime threads
Unloading hal components

Kernel message information:
[  638.932135] I-pipe: Domain RTAI registered.
[  638.932165] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[  638.932172] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[  638.932190] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[  638.932198] PIPELINE layers:
[  638.932207] e1314e20 9ac15d93 RTAI 200
[  638.932215] c085cb20 0 Linux 100
[  639.029326] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[  639.030014] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[  639.030032] RTAI[sched]: hard timer type/freq = APIC/8306320(Hz); default timing: periodic; linear timed lists.
[  639.030043] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 863830000 hz.
[  639.030052] RTAI[sched]: timer setup = 999 ns, resched latency = 2943 ns.
[  639.035267] RTAI[usi]: enabled.
[  639.377914] RTAI[math]: loaded.
[  644.874892] axis[1650]: segfault at 0 ip (null) sp bface17c error 4 in libnsl-2.11.1.so[110000+13000]
[  649.084597] RTAI[math]: unloaded.
[  649.296235] SCHED releases registered named ALIEN RTGLBH
[  649.312909] RTAI[malloc]: unloaded.
[  649.412054] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[  649.427105] I-pipe: Domain RTAI unregistered.
[  649.427136] RTAI[hal]: unmounted.

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

More
26 Dec 2010 15:29 - 26 Dec 2010 15:30 #6252 by BigJohnT
Did you install it using the instructions located here ?

Did you boot up with the real time kernel? Installing on a stock 10.04 system will leave you with two or more kernels...

John
Last edit: 26 Dec 2010 15:30 by BigJohnT.

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

More
26 Dec 2010 17:46 - 26 Dec 2010 17:48 #6253 by hondaman900
Thanks for the reply John.

Yes, I followed those instructions for installing on an existing Ubuntu 10.04 system. I ran into the RTAPI real time kernel issue right away and then followed these instructions: hart.sourceforge.net/rtai_installation_10_04_woc.html just down to the line "Reboot in the new installed RTAI-kernel." The line
xaw3dg-dev libpvm3 pvm-dev libgtkhtml2-dev libvte-dev ocaml-native-compilers
didn't work (couldn't find xaw3dg-dev), which brings me to where I am now (i.e. lost) :)

I should add that the issue seems to be with the sim-axis setup. If I choose sim-tkemc it appears to run.
Last edit: 26 Dec 2010 17:48 by hondaman900.

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

More
27 Dec 2010 06:22 #6258 by psha
Usually this is caused by OpenGL - RTAI incompatibilities on some hardware.
Look into wiki.linuxcnc.org/emcinfo.pl?TroubleShooting#Display_Issues for possible solutions.

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

More
27 Dec 2010 08:05 #6259 by hondaman900
Thank you Psha! I installed the software OpenGL drivers (point 4.2 in the document you linked to) and ti did the trick. Now works like a champ.

Thank you! :woohoo:

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

More
04 Jul 2011 16:51 #11148 by billtrondsen
I have used the Ubuntu 8.04 installed from live CD for about one year with no problems - my first use of Linux.
I upgraded from a CRT to a flat panel LCD - Ubuntu works fine, but Axis messes up the display.
Tried upgrading to 10.04 from Live CD (full install) and got the same "1650 Segmentation Fault" as you - pointing to a similar Video driver issue.

From the EMC Trouble Shooting documentation:
5.1 - install "vesa" driver.
- my system doesnt have Xorg.conf file
- used sudo X -configure in Terminal Emulator, but it gives me an error: X-window Server is being used for session 0 - remove /tmp/.X0.lock file.
- tried closing all windows and using ctrl-alt-F1 for text mode entry of this function - still the same error.

Second option was:
5.2 - install new OpenGL driver
- I downloaded and tried installing libgl1-mesa-swx11 using the package manager (my CNC computer in the garage does not have internet)
- gives an error - conflict with libgl1-mesa-gwx and will not allow the install

Probably either of these if allowed could fix my video issue.
Any basic linux tips would be greatly appreciated!

Thanks - BillT

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

More
04 Jul 2011 21:55 #11162 by psha
Let's try 5.2 first.
It's normal that libgl1-mesa-swx11 conflicts with libgl1-mesa-glx - both packages provide same functionality. So by installing libgl1-mesa-swx11 you are
replacing GLX. Another "error" you may see - deletion of ubuntu-desktop package. Don't be afraid, it's empty metapackage.

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

More
07 Jul 2011 01:36 #11202 by billtrondsen
Thanks for the response.

The synaptic package manager does not allow me to install the swx11 - the install button is grayed-out due to the conflict with gcx.
I started to remove gcx, but it gives me a long list of dependent packages that will be removed, including EMC2 and Win-X.

Does this mean that these would be deleted and would need to be installed after installing swx11?
Should I make a list of the packages and be prepared to reinstall them all?
Or, is there another option, for instance using command-line interface for bypassing the conflict?

Thanks - BillT

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

More
10 Jul 2011 16:34 #11357 by Andrey_L
Hello gentlemen!
I decided to try EMC2 on Ubuntu 10.04 installed from live CD.I ran EMC with sim. config and received the following message:

EMC2 - 2.4.6
Machine configuration directory is '/home/andrey/emc2/configs/sim'
Machine configuration file is 'axis_mm.ini'
Starting EMC2...
waiting for s.axes
waiting for s.axes
waiting for s.axes
waiting for s.axes
waiting for s.axes
USRMOT: ERROR: command timeout
waiting for s.axes
waiting for s.axes
USRMOT: ERROR: command timeout
waiting for s.axes
USRMOT: ERROR: command timeout
waiting for s.axes
USRMOT: ERROR: command timeout
A configuration error is preventing emc2 from starting.
More information may be available when running from a terminal.
Shutting down and cleaning up EMC2...
USRMOT: ERROR: command timeout
USRMOT: ERROR: command timeout
USRMOT: ERROR: command timeout
/usr/bin/emc: line 358: 2273 Killed $EMCTASK -ini "$INIFILE"
Cleanup done

I will appreciate any thoughts on this subject
P.S.EMC2-2.4.6 runs perfect with Ubuntu 8.04 on the same computer...

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

More
10 Jul 2011 17:30 #11359 by Rick G
Have you looked here?
www.linuxcnc.org/component/option,com_ku...tart,0/lang,english/
Have you run the latency test with 10.04?

Rick G

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

Time to create page: 0.172 seconds
Powered by Kunena Forum