OpenBCI Hub is not running when I launch the GUI in Ubuntu 18.04

edited October 2018 in Software
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.

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.

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

  • wjcroftwjcroft Mount Shasta, CA
    Winstead, hi.

    Have you tried looking on your laptop / desktop manufacturers website for newer OpenGL drivers? Frequently OpenGL errors are because of mismatch between hardware and driver layer.


    Also look through those links and report back if you get it working. What hardware platform are you using?

    Regards,

    William

  • edited October 2018
    I am using Radeon RX 580 sapphire nitro 8gb GPU, intel i5 cpu, and an asrock h81 motherboard. I have the latest OpenGL version (4.5.13536). @wjcroft
  • wjcroftwjcroft Mount Shasta, CA
    Hmm, that sounds like a very high end graphics card. DId you say you checked around to see if there is a special graphics board driver compatible with OpenGL and your version of Linux? (What Linux?) In Windows land, graphics driver version must line up with what OpenGL expects. Not sure how your Linux handles it's drivers.

    Maybe you just have bad luck with this combination of graphics board, mainboard, and linux. I still suggest you try some searches on particular error strings that popped out on that traceback. And see what other OpenGL or Processing users have concluded. Processing may be fussier than other apps on it's OpenGL requirements.

    Regards,

    William

  • edited October 2018
    I have the latest amd-gpu driver for linux for the RX 580 specifically.



    if you scroll down on this page you will see that it supports OpenGL 4.5
    https://www.amd.com/en/support/graphics/radeon-500-series/radeon-rx-500-series/radeon-rx-580
  • Alright so I got the hub working by installing libconfig2-4, but now the GUI is broken.

    Here is the error I get when running the GUI

    java.lang.RuntimeException: Profile GL3bc is not available on X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x7efcb4017ce0, owner true, ResourceToolkitLock[obj 0x3bc85142, isOwner true, <3ff7d2e3, 7af55b79>[count 1, qsz 0, owner <main-FPSAWTAnimator#00-Timer0>]]], but: [GLProfile[GLES1/GLES1.hw], GLProfile[GLES2/GLES3.hw], GLProfile[GL2ES1/GLES1.hw], GLProfile[GL4ES3/GL4.hw], GLProfile[GL2ES2/GL4.hw], GLProfile[GL4/GL4.hw], GLProfile[GLES3/GLES3.hw], GLProfile[GL4/GL4.hw], GLProfile[GL3/GL4.hw], GLProfile[GL2GL3/GL4.hw]]
        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]

  • wjcroftwjcroft Mount Shasta, CA
    https://www.google.com/search?q=Profile+GL3bc+is+not+available+on+X11GraphicsDevice

    Keep checking your error messages against what others are finding.
  • Ok got some good news and some bad news.

    Let's go with the good news first. I got the GUI and the hub both working now. When I say working though, I mean the programs launch without crashing.

    Bad news:

    The GUI does not recognize that the Hub is actually running, even though it is. Anyone had this problem on linux?

  • I noticed when I click my scroll when in after running ./OpenBCIHub I get this:
    (OpenBCIHub:6977): GLib-GIO-CRITICAL **: 05:22:40.086: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

  • edited October 2018
    Here is the fix to this problem. It now runs smoothly on Ubuntu 18.04: https://github.com/OpenBCI/OpenBCI_GUI/releases/tag/3.4.0
  • wjcroftwjcroft Mount Shasta, CA
    That is great news, congrats.

    Earlier you had several issues with OpenGL crashes. Can you mention what you did to resolve those, since you said you already had up to date drivers.

    Thanks,

    William
  • Yea I tried a newer released version of the GUI that is not currently available on the OpenBCI Website. It should be though because the website download was the one that was not working and giving that error. When I downloaded this GitHub link that I posted above it solved my issues. After that I had a few errors with getting the hub working but ended up working that out and got everything running smoothly.
Sign In or Register to comment.