On Monday, April 02, 2012 09:24:27 AM Mark Wendt did opine:

> I'd also like to add my thanks to all those who worked on this and
> delivered!
> 
> Mark

I'll 2nd those thoughts although I haven't yet tried 2.5.0.  I have been on 
master-rt, the 2.6.0-hashnumber builds for about 4 months now, which means 
I get a fresh build almost every day.  I think it is more stable than these 
atom machines.  The last one I bought doesn't seem to be as stable as the 
first one, and quitting a major app without having to power cycle it is 
occurring often enough that I am not pointing any fingers at LinuxCNC.  
Quitting any app can lock it up, and will about 10% of the time.

Next Subject, question asked before without an answer other than Ed Nisley 
saying I should setup a vnc connection which seems extremely complex to do.

Has anyone else seen this error when attempting to run linuxcnc -l over an 
ssh -Y session?

----------
[gene@coyote CoCo]$ ssh -Y lathe
gene@lathe's password:
(about a 1 minute 30 second delay here, no clue why)
Linux lathe 2.6.32-122-rtai #rtai SMP Tue Jul 27 12:44:07 CDT 2010 i686 
GNU/Linux
Ubuntu 10.04.4 LTS

Welcome to Ubuntu!
 * Documentation:  https://help.ubuntu.com/

4 packages can be updated.
0 updates are security updates.

Last login: Thu Mar 29 21:00:09 2012 from coyote.coyote.den
gene@lathe:~$ linuxcnc -l
LINUXCNC - 2.6.0-pre0-2913-g8c84ee0
Machine configuration directory is '/home/gene/linuxcnc/configs/my-lathe'
Machine configuration file is 'my-lathe.ini'
Starting LinuxCNC...
io started
halcmd loadusr io started
task pid=27447
RTAPI: ERROR: Unexpected realtime delay on task 1
This Message will only display once per session.
Run the Latency Test and resolve before continuing.

emcTaskInit: using builtin interpreter
Traceback (most recent call last):
  File "/usr/bin/axis", line 3001, in <module>
    o = MyOpengl(widgets.preview_frame, width=400, height=300, double=1, 
depth=1)
  File "/usr/bin/axis", line 357, in __init__
    Opengl.__init__(self, *args, **kw)
  File "/usr/lib/pymodules/python2.6/rs274/OpenGLTk.py", line 164, in 
__init__
    apply(RawOpengl.__init__, (self, master, cnf), kw)
  File "/usr/lib/pymodules/python2.6/rs274/OpenGLTk.py", line 112, in 
__init__
    Togl.__init__(self, master, cnf, **kw)
  File "/usr/lib/pymodules/python2.6/rs274/OpenGLTk.py", line 38, in 
__init__
    Widget.__init__(self, master, 'togl', cnf, kw)
  File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 1935, in __init__
    (widgetName, self._w) + extra + self._options(cnf))
_tkinter.TclError: Togl: couldn't get visual
Shutting down and cleaning up LinuxCNC...
Cleanup done
LinuxCNC terminated with an error.  You can find more information in the 
log:
    /home/gene/linuxcnc_debug.txt
and
    /home/gene/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
----------------------
I have installed, or re-installed, much of the tcl/tk package listings 
without effecting that tkinter.TclError line shown above.  A cat of the 
debug file: cat /home/gene/linuxcnc_debug.txt
------------
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
27395
  PID TTY      STAT   TIME COMMAND
27447
  PID TTY      STAT   TIME COMMAND
Stopping realtime threads
Unloading hal components
----------
But it all runs fine, and usually without the realtime error, from the 
machines own console.  So bear with me folks as I do SOLVE this problem 
below.

My gene@lathe 'env':
gene@lathe:~$ env
TERM=xterm
SHELL=/bin/bash
XDG_SESSION_COOKIE=41987ec8fc00cc40adcb37a24f5b464a-1333373841.2183-464408650
SSH_CLIENT=192.168.71.3 50156 22
SSH_TTY=/dev/pts/1
USER=gene
LS_COLORS=rs=0:di=01;34:ln=01;36:hl=44;37:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
MAIL=/var/mail/gene
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
PWD=/home/gene
LANG=en_US.UTF-8
SPEECHD_PORT=7560
SHLVL=1
HOME=/home/gene
LOGNAME=gene
SSH_CONNECTION=192.168.71.3 50156 192.168.71.5 22
LESSOPEN=| /usr/bin/lesspipe %s
DISPLAY=localhost:10.0
LESSCLOSE=/usr/bin/lesspipe %s %s
_=/usr/bin/env

The only diff I see in the env outputs is the working shop machine has
LIBGL_ALWAYS_INDIRECT=1
in its env output, the lathe machine does not, so I'll 
"export LIBGL_ALWAYS_INDIRECT=1" and retry

And it now works, complete with the realtime error! (expected, base_thread 
is 20 u-s on that box as I am not done 'tuning' by a long ways)

So what .profile or .bashrc do I edit to add these 

# make ssh -Y behave itself
export LIBGL_ALWAYS_INDIRECT=1

lines to?  grepping for it on the shop machine comes up empty.  grep 
apparently doesn't search '.' files by default. :(

But if on the mills box, I sudo -i, cd back to /home/gene, it IS in 
/home/gene/.bashrc, so I've edited that file on lathe.coyote.den and added 
it.  So this problem at least can be marked SOLVED!  Maybe folks searching 
the list archive can find it next time?

In any event, a snappy salute, and a virtual hand cooler is due for the new 
release folks.  Many thanks.  Now I need to see about an isolated, 
nominally 24 volt supply for one of Arturo Duncan's C41 spindle controller 
cards.

Cheers, Gene
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
My web page: <http://coyoteden.dyndns-free.com:85/gene>
I have not yet begun to byte!

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to