Error message when I try to open LinuxCNC

Hi, everyone!

I flashed my SD card with MachineKit(2013-09-02) image, after I put this on my BBB and power on. As I understood, for work the BBB via SSH and VNC, I edited uEnv.txt (uncomment " optargs=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN,BB-BONE-EMMC-2G" and comment the another “optargs= line”), and reboot.

Then I have access to my BBB via SSH and VNC( I installed tightvncserver-client), I see the BBB desktop through my desktop pc. The problem is when I tried to run linuxcnc, I see this message:

linuxcnc@arm:~$ linuxcnc
LINUXCNC - 2.6.0~pre
Machine configuration directory is ‘/home/linuxcnc/linuxcnc/configs/ARM/BeagleBone/BeBoPr’
Machine configuration file is ‘BeBoPr.ini’
Starting LinuxCNC…
io started
halcmd loadusr io started
Loading BB-LCNC-BEBOPR overlay
Loading cape-bone-iio overlay
Waiting for component ‘Therm’ to become ready.
task pid=3267
emcTaskInit: using builtin interpreter
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: 641
Current serial number in output stream: 642
Shutting down and cleaning up LinuxCNC…
Cleanup done
LinuxCNC terminated with an error. You can find more information in the log:
/home/linuxcnc/linuxcnc_debug.txt
and
/home/linuxcnc/linuxcnc_print.txt
as well as in the output of the shell command ‘dmesg’ and in the terminal

Suddenly be a newbie error, I would appreciate your help. (Sorry for my English)

Hi, everyone!

I flashed my SD card with MachineKit(2013-09-02) image, after I put this on
my BBB and power on. As I understood, for work the BBB via SSH and VNC, I
edited uEnv.txt (uncomment "
optargs=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN,BB-BONE-EMMC-2G"
and comment the another "optargs= line"), and reboot.

Then I have access to my BBB via SSH and VNC( I installed
tightvncserver-client), I see the BBB desktop through my desktop pc. The
problem is when I tried to run linuxcnc, I see this message:

linuxcnc@arm:~$ linuxcnc
LINUXCNC - 2.6.0~pre
Machine configuration directory is
'/home/linuxcnc/linuxcnc/configs/ARM/BeagleBone/BeBoPr'
Machine configuration file is 'BeBoPr.ini'
Starting LinuxCNC...
io started
halcmd loadusr io started
Loading BB-LCNC-BEBOPR overlay
Loading cape-bone-iio overlay

The device tree overlays are loading correctly, so the uEnv.txt changes
are working.

Waiting for component 'Therm' to become ready.
task pid=3267
emcTaskInit: using builtin interpreter
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 3 (X_GetWindowAttributes)

The issue is tightvnc does not "play nice" with the installed 3D
graphics library. I recommend you use standard X forwarding
(unencrypted using xhost) or tunnel X11 via ssh, both of which I know
work. You may also be able to use a different user interface that does
not require OpenGL (LinuxCNC has several different interfaces to choose
from).

If you want to stick with tightvnc, someone else reported this issue on
the emc-users list:

http://www.mailinglistarchive.com/html/emc-users@lists.sourceforge.net/2013-09/msg00079.html

...along with a possible solution:

http://www.mailinglistarchive.com/html/emc-users@lists.sourceforge.net/2013-09/msg00139.html

I have not personally tested this option, so I do not know if or how
well it works.