Crash when using EMC on 10.04 with vesa
I have tried to change my graphic drivers in order to reduce my latency and I got a crash.
I was using nvidia drivers and now I want to use vesa ones. After having changed /etc/X11/Xorg.conf file, I get a crash when I launch EMC.
This is the error message I got :
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/antoine/emc2/configs/ma-machine'
Machine configuration file is 'ma-machine.ini'
INIFILE=/home/antoine/emc2/configs/ma-machine/ma-machine.ini
PARAMETER_FILE=emc.var
EMCMOT=motmod
EMCIO=io
TASK=milltask
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 EMC2 TASK program: milltask
Starting EMC2 DISPLAY program: axis
RTAPI: ERROR: Unexpected realtime delay on task 1
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
Shutting down and cleaning up EMC2...
Killing task emcsvr, PID=1514
Killing task milltask, PID=1558
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done
Debug file information:
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 3 (X_GetWindowAttributes)
Resource id in failed request: 0xffffffff
Serial number of failed request: 725
Current serial number in output stream: 726
1514
PID TTY STAT TIME COMMAND
1558
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Kernel message information:
[ 72.027666] I-pipe: Domain RTAI registered.
[ 72.027677] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 72.027680] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 72.027687] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 72.027690] PIPELINE layers:
[ 72.027694] f83fbe20 9ac15d93 RTAI 200
[ 72.027697] c085cb20 0 Linux 100
[ 72.056791] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 72.056926] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 72.056933] RTAI[sched]: hard timer type/freq = APIC/12500368(Hz); default timing: periodic; linear timed lists.
[ 72.056937] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 3000168000 hz.
[ 72.056940] RTAI[sched]: timer setup = 999 ns, resched latency = 2943 ns.
[ 72.057050] RTAI[usi]: enabled.
[ 72.153701] RTAI[math]: loaded.
[ 72.354624] config string '0x378 out '
[ 73.744876] RTAPI: ERROR: Unexpected realtime delay on task 1
[ 73.744879] This Message will only display once per session.
[ 73.744881] Run the Latency Test and resolve before continuing.
[ 74.763378] RTAI[math]: unloaded.
[ 74.828734] SCHED releases registered named ALIEN RTGLBH
[ 74.844931] RTAI[malloc]: unloaded.
[ 74.944032] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 74.949060] I-pipe: Domain RTAI unregistered.
[ 74.949072] RTAI[hal]: unmounted.
Does anyone have an idea of the problem ?
Best Regards,
Antoine
Please Log in or Create an account to join the conversation.
After having changed /etc/X11/Xorg.conf file, I get a crash
/etc/X11/xorg.conf does not exist under Ubuntu 10.4
A lot depends upon where you got it from and what is in it.
Try running Xorg -configure from a shell ( having saved you xorg.conf file first to another name)
This will give you a skeleton file, then look at any differences.
regards
Please Log in or Create an account to join the conversation.
antoine@pc-desktop:~$ ls -l /etc/X11/
total 76
drwxr-xr-x 2 root root 4096 2011-08-01 22:50 app-defaults
drwxr-xr-x 2 root root 4096 2010-04-29 14:27 cursors
-rw-r--r-- 1 root root 14 2010-04-29 14:28 default-display-manager
drwxr-xr-x 6 root root 4096 2010-04-29 14:25 fonts
-rw-r--r-- 1 root root 17394 2009-12-03 11:56 rgb.txt
lrwxrwxrwx 1 root root 13 2011-05-03 22:55 X -> /usr/bin/Xorg
drwxr-xr-x 3 root root 4096 2010-04-29 14:27 xinit
drwxr-xr-x 2 root root 4096 2010-04-15 14:12 xkb
-rw-r--r-- 1 root root 249 2011-08-03 22:17 xorg.conf
-rwxr-xr-x 1 root root 709 2010-04-01 13:19 Xreset
drwxr-xr-x 2 root root 4096 2010-04-29 14:20 Xreset.d
drwxr-xr-x 2 root root 4096 2010-04-29 14:20 Xresources
-rwxr-xr-x 1 root root 3730 2010-04-01 13:07 Xsession
drwxr-xr-x 2 root root 4096 2011-08-01 22:52 Xsession.d
-rw-r--r-- 1 root root 265 2008-07-01 19:41 Xsession.options
-rw
1 root root 601 2010-04-29 14:20 Xwrapper.config
About Xorg -configure :
antoine@pc-desktop:~$ Xorg -configure
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
Please consult the The X.Org Foundation support
at wiki.x.org
for help.
ddxSigGiveUp: Closing log
After having deleted the file :
sudo Xorg -configure
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already running
Please consult the The X.Org Foundation support
at wiki.x.org
for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.
ddxSigGiveUp: Closing log
Do you know how to see if a X server is already launched ?
Please Log in or Create an account to join the conversation.
Post your Xconf file and I'll try to see if anything leaps out!
I take it your other apps all run properly with this driver?
Regards
Please Log in or Create an account to join the conversation.
Having slept and sadly probably dreamt about this, I remember seeing something on this before.
So a bit of explanation and some suggestions.
Xorg.conf is NOT part of the usual install of Ubuntu 10.4
The install process obviously could not get information on one or more of your input / display devices to use the alternative udev and HAL methods and created one by running xorg.configure (or the newer Xorg -configure more likely)
To edit the xorg.conf file you need to log in to a shell at start-up. This is not easily done these days, Ctl Alt F2 should do it during the boot, but you have to hit just the right time.
Gone are the days when everyone started with a shell and entered startx at the command line to boot the graphical interface.
The easier alternative is to boot from the live CD and then edit your files.
You won't be able to run Xorg - configure however unless you know about chroot and I am not going to attempt to explain it if you don't.
Whilst you are at it, try running EMC from the install CD, it runs its own mini install process and it will be interesting to see if it resolves your X server / libraries problem.
If your display appears to be OK outside of EMC, try running glxgears and a game like AssaultCube which is heavily graphical and OpenGL dependent. Do they work?
Edit your .ini file and change the DISPLAY = line from the default axis, to mini or xemc and then start emc
Does that work?
With your Xorg.conf file sight unseen at present, but assuming it is structured correctly, the most likely cause appears to be that discussed here.
wiki.linuxcnc.org/emcinfo.pl?TroubleShooting#Using_Vesa_Drivers
Some vesa cards will not work with the normal opengl setup in Ubuntu and require alternative software opengl libraries.
I would expect other OpenGL programs to have problems and xemc or mini to run OK in that case.
good luck
Please Log in or Create an account to join the conversation.
Xlib: extension "GLX" missing on display ":0.0".
Error: couldn't get an RGB, Double-buffered visual
So I will try to install an other open-gl software like libgl1-mesa-swx11 package.
Please Log in or Create an account to join the conversation.
![:dry: :dry:](/media/kunena/emoticons/ermm.png)
Please Log in or Create an account to join the conversation.
If you have followed the instruction in the link I posted and used the Synaptic Package manager to do it,How to be sure that EMC is using libgl1-sw instead of opengl ? And if it is not case, how to force it to use libgl1-sw ?
then you will only have the libgl1-mesa-swx11 package installed, since the default package conflicts and has to be removed.
What happened when you did this?Edit your .ini file and change the DISPLAY = line from the default axis, to mini or xemc and then start emc
Does that work?
Does EMC work correctly except for the OpenGL dependent Axis GUI?
And details of what video card you are using.Post your Xconf file and I'll try to see if anything leaps out!
.and you need to do this too, because if it works you can go into the ramdisk image and look at what it did that was different.Whilst you are at it, try running EMC from the install CD, it runs its own mini install process and it will be interesting to see if it resolves your X server / libraries problem.
Please Log in or Create an account to join the conversation.