OpenBCI Hub is not running when I launch the GUI in Ubuntu 18.04
I had a hard time getting the OpenBCI GUI running due to the file from your website had several issues:
A. I couldn't get it to run instantly, I originally got an error that said it could not find the /java/java/bin files. After moving the files in java/java/ to the parent directly java, only then did the GUI load (BTW I am using the latest download available on 10.16.18).
B. Even after I got it loaded, the GUI was completely white and was completely unusable, also the Hub never loaded. So I had to resort to Processing IDE
C. Lack of
documentation for Linux. Would be a good idea to dedicate an entire walk through
to running this software on Linux instead of merging it with Mac OSX.
documentation for Linux. Would be a good idea to dedicate an entire walk through
to running this software on Linux instead of merging it with Mac OSX.
I
finally got the GUI to run by launching it through Processing (also should
be a separate Linux setup guide). However, when I run it through Processing
IDE I get an error for starting the Hub.
finally got the GUI to run by launching it through Processing (also should
be a separate Linux setup guide). However, when I run it through Processing
IDE I get an error for starting the Hub.
Some extra info:
Running rx 580 gpu
I have installed latest jre
Kernel and Driver are up to date
Here is my console error:
Caught
handled GLException: X11GLXDrawableFactory - Could not initialize
shared resources for X11GraphicsDevice[type .x11, connection :0, unitID
0, handle 0x0, owner false, ResourceToolkitLock[obj 0x37a54b57, isOwner
false, <4a5aab52, 6f3ed31c>[count 0, qsz 0, owner <NULL>]]]
on thread main-SharedResourceRunner
[0]:
jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:306)
[1]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353)
[2]: java.lang.Thread.run(Thread.java:748)
Caused[0]
by GLException: main-SharedResourceRunner: Error making temp context(1)
current: display 0x7f9a70001200, context 0x7f9a701766f0, drawable
X11OnscreenGLXDrawable[Realized true,
Factory jogamp.opengl.x11.glx.X11GLXDrawableFactory@4b44b99d,
Handle 0x4000002,
Surface WrappedSurface[ displayHandle 0x7f9a70001200
, surfaceHandle 0x4000002
, size 64x64
, UOB[ OWNS_SURFACE | WINDOW_INVISIBLE ]
,
X11GLXGraphicsConfiguration[X11GraphicsScreen[X11GraphicsDevice[type
.x11, connection :0, unitID 0, handle 0x7f9a70001200, owner true,
ResourceToolkitLock[obj 0x543ad96e, isOwner true, <67aaf912,
6be2dc05>[count 2, qsz 0, owner <main-SharedResourceRunner>]]],
idx 0], visualID 0x1d8, fbConfigID 0x188,
requested GLCaps[rgba
8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, dbl, mono , hw,
GLProfile[GL2/GL2.sw], on-scr[.]],
chosen GLCaps[glx vid
0x1d8, fbc 0x188: rgba 8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms
24/0/0, dbl, mono , hw, GLProfile[GL2/GL2.sw], on-scr[.]]]
, surfaceLock <50418b5, 7f750d2>[count 1, qsz 0, owner <main-SharedResourceRunner>]
, X11DummyUpstreamSurfaceHook[pixel 64x64]
, upstreamSurface false ]] on thread main-SharedResourceRunner
[0]: jogamp.opengl.x11.glx.X11GLXContext.createImpl(X11GLXContext.java:393)
[1]: jogamp.opengl.GLContextImpl.makeCurrentWithinLock(GLContextImpl.java:765)
[2]: jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:648)
[3]: jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:586)
[4]:
jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:277)
[5]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353)
[6]: java.lang.Thread.run(Thread.java:748)
Launching application from local data dir
OpenBCI_GUI: hubStart: OS Detected: Linux
Welcome to the Processing-based OpenBCI GUI!
Last update: 9/5/2016
For more information about how to work with this code base, please visit: http://docs.openbci.com/OpenBCI Software/
Graphics & GUI Library: ControlP5 2.2.6 infos, comments, questions at http://www.sojamo.de/libraries/controlP5
attempting to load images for presentation...
DONE loading images!
OpenBCI_GUI::Setup: Is RX mulitcast: false
OpenBCI_GUI::Setup: Has RX joined multicast: false
java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at java.net.Socket.connect(Socket.java:538)
at java.net.Socket.<init>(Socket.java:434)
at java.net.Socket.<init>(Socket.java:211)
at processing.net.Client.<init>(Unknown Source)
at OpenBCI_GUI$Hub.startTCPClient(OpenBCI_GUI.java:13105)
at OpenBCI_GUI$Hub.<init>(OpenBCI_GUI.java:13081)
at OpenBCI_GUI.systemUpdate(OpenBCI_GUI.java:1203)
at OpenBCI_GUI.draw(OpenBCI_GUI.java:563)
at processing.core.PApplet.handleDraw(PApplet.java:2429)
at processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:866)
at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692)
Instantiating hub object...
at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:674)
at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:443)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1293)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
click

Comments
at processing.opengl.PSurfaceJOGL$2.run(PSurfaceJOGL.java:410)
at java.lang.Thread.run(Thread.java:748)
X11Util.Display: Shutdown (JVM shutdown: true, open (no close attempt): 2/2, reusable (open, marked uncloseable): 0, pending (open in creation order): 2)
X11Util: Open X11 Display Connections: 2
X11Util: Open[0]: NamedX11Display[:0, 0x7efcb4001300, refCount 1, unCloseable false]
X11Util: Open[1]: NamedX11Display[:0, 0x7efcb4017ce0, refCount 1, unCloseable false]