Having trouble running PocketNC once connected to Beaglebone on Mac

384 views
Skip to first unread message

Roger

unread,
Nov 14, 2016, 8:34:26 PM11/14/16
to Pocket NC
Hi there,

I'm using Quartz 2.7.11 on Mac OS Sierra and I'm getting the following error, when running PocketNC. Look toward the bottom:

pocketnc@pocketnc:~$ PocketNC

MACHINEKIT - 0.1

Machine configuration directory is '/home/pocketnc/linuxcnc/configs/ARM.BeagleBone.PocketNC'

Machine configuration file is 'PocketNC.ini'

Starting Machinekit...

io started

halcmd loadusr io started

Loading PocketNCdriver overlay

X11 connection rejected because of wrong authentication.

Loading cape-bone-iio overlay

X11 connection rejected because of wrong authentication.

...

task pid=1955

emcTaskInit: using builtin interpreter

X Error of failed request:  BadValue (integer parameter out of range for operation)

  Major opcode of failed request:  149 (GLX)

  Minor opcode of failed request:  3 (X_GLXCreateContext)

  Value in failed request:  0x0

  Serial number of failed request:  735

  Current serial number in output stream:  736

Shutting down and cleaning up Machinekit...

Cleanup done


I looked on the internet and I saw comments regarding this on this article below. I'm aware that the tutorial mentioned using XQuartz 2.7.8, but when I used that, the window magically disappears on Mac OS Sierra. I used a program to tell me the coordinates of the program window, and it did mention that it is on the screen, but somehow it disappears every time I open up the window from it being minimized.

On the original topic, we may have to wait on the XQuartz guys according to the article. I'm just posting this to see if anyone has found a way around to be notified when a fix is pushed.


Cheers,
-Roger

gul...@gmail.com

unread,
Dec 13, 2016, 7:00:56 PM12/13/16
to Pocket NC
Just got my machine today and I'm having the same issue connecting from my MAC.
BTW I can run other X windows apps ok, I ran xev and that displays the app fine.

I tried going back to XQuartz 2.7.8 but that version does not work at all for me.

Ta

gul...@gmail.com

unread,
Dec 14, 2016, 5:16:08 AM12/14/16
to Pocket NC
Hi All,
Somwhow I have now managed to get it working.
Not sure what was the exact fix, here are the list of things I tried.
1. Rename /opt/X11 ro /opt/X11.old
2. Finder Go->Applications
3. Rename Utils/XQuartz to Utils/XQuartz.old
4. Install XQuartz-2.7.8
5 Delete /opt/X11
6. Delete Appliations/Utils/XQuartz
7. Install XQuartz-2.7.11
8. Run Quartx and set these Preferences
9. XQuartz->Preferences->Output, Colours->256 & Uncheck Full-Screen Mode
10. XQuartz->Preferences->Security, Uncheck Authenticate Connections& Check Allow connections from network clients.
To check if things are working run xev on the beaglebone and check if that displays on the MAC. If you can't see anything click on XQuartz to bring it to the foreground then click CMD+ALT+A ( full screen ).
Click CMD+ALT+A to get back.

Like I said I'm not sure what is the exact option that caused it to work.
Hope this helps.
Ta

george....@gmail.com

unread,
Mar 11, 2017, 12:36:33 PM3/11/17
to Pocket NC
Same issue here...just received machine today.

pock...@192.168.7.2's password: 
Last login: Sun Feb  1 19:05:39 2015 from 192.168.7.1
pocketnc@pocketnc:~$ PocketNC
MACHINEKIT - 0.1
Machine configuration directory is '/home/pocketnc/linuxcnc/configs/ARM.BeagleBone.PocketNC'
Machine configuration file is 'PocketNC.ini'
Starting Machinekit...
io started
halcmd loadusr io started
PocketNCdriver overlay found
cape-bone-iio overlay found
task pid=4098
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:  674
  Current serial number in output stream:  675
Shutting down and cleaning up Machinekit...
Cleanup done
pocketnc@pocketnc:~$ 

gul...@gmail.com

unread,
Mar 13, 2017, 7:17:39 AM3/13/17
to Pocket NC
try this

Fullscreen the X session.
Start a terminal session within the Xsession.
Remote into the pocketnc and then run the pocketnc program.
I find this works much more consistently.

gul...@gmail.com

unread,
Mar 13, 2017, 7:17:42 AM3/13/17
to Pocket NC

Michael

unread,
Mar 14, 2017, 11:58:51 AM3/14/17
to Pocket NC
Hey George,

Did you get your machine to run for you or are you still having issues connecting?

Looking at the screenshot I am wondering if the XQuartz program is running properly in the background. Sometimes I forget to open up XQuartz after I shut down my computer and then it isn't running in the background when I run terminal.

Let me know if this is not the problem and we can look into other potential issues. 

Michael

george....@gmail.com

unread,
Mar 14, 2017, 12:58:24 PM3/14/17
to Pocket NC
TY for the post.   I switched to a windows based platform to run the machine interface.  All works great now.  I was not able to get the MAC interface to run properly.

george....@gmail.com

unread,
Mar 14, 2017, 12:59:49 PM3/14/17
to Pocket NC
One more question, is the source code for these tools OPEN?  If so are they on GitHub?  I would like to build an installer package for the machine and contribute to the project?

Michael

unread,
Mar 14, 2017, 1:37:13 PM3/14/17
to Pocket NC
George,

What part of the tool do you mean? Are you talking about the Linux CNC software or are you talking about the tool tables for Fusion 360? The software we use is open source software so it is all available online somewhere. The tool library for all of the tools can also be found online here (http://www.pocketnc.com/post-processor-information) in the "Fusion 360 tool library for PocketNC". 

If you are wondering about software I would need to see where those files are online and/or can send you a copy of the image. For the most part the files you would need for an installer package would be the files you download and install onto the computer. These can all be found here (http://www.pocketnc.com/software-setup).

We would be happy to help you on our end where we are able and would appreciate if you wanted to contribute to the machine setup process. We understand the process is not the most straight forward but would also like to keep the process as stable as possible.

Feel free to email me directly with any questions you have related to the software side of things. (in...@pocketnc.com)

Michael

george....@gmail.com

unread,
Mar 14, 2017, 1:53:00 PM3/14/17
to Pocket NC
Cool.  I was speaking about the client tools, LinuxCNC, drivers, etc...

Let me do some research and I will email you directly.
Reply all
Reply to author
Forward
0 new messages