Cannot connect "Cannot compile vertex shader"

edited April 2018 in Ganglion
I cannot seem to get the Ganglion 4 channel board to show up as a device to connect to. When I try the GUI it just continues to say saying searching. I also tried downloading brainbay to see if maybe it was the gui, but also could not detect anything. I have setup the drivers and I have tried this on both mac and windows, any suggestions on what to do from here? 

Comments

  • Hey what OS do you have?

    If this issue is still persisting with the lastest v3.2.0 GUI, could you please open an issue here: https://github.com/OpenBCI/OpenBCI_GUI/issues/new

    OpenBCI_GUI: https://github.com/OpenBCI/OpenBCI_GUI/releases/tag/v3.2.0

  • It was Mac OS X where this particular issue was happening. However I have also tried Linux and Windows and cannot get the gui to work properly on those either.
  • This is what it says on my computer running Ubuntu. The GUI is a white screen and the terminal reads this. 

    P.S. Didn't write all of the code down just the part I thought you should see where it says there is a compiling error. 

    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
    Instantiating hub object...
    Hub: clientEvent: handshake complete
    java.lang.RuntimeException: Cannot compile vertex shader:
    ERROR: 0:2: error(#308) Profile " " is not available in shader version 3465761371
    ERROR: error(#273) 1 compilation errors.  No code generated


    at processing.core.PGraphics.showException(PGraphics.java:8205)
    at processing.opengl.PShader.compileVertexShader(PShader.java:981)
    at processing.opengl.PShader.compile(PShader.java:917)
    at processing.opengl.PShader.init(PShader.java:894)
    at processing.opengl.PShader.getAttributeLoc(PShader.java:595)
    at processing.opengl.PShader.loadAttributes(PShader.java:1123)
    at processing.opengl.PGraphicsOpenGL.getPolyShader(PGraphicsOpenGL.java:7075)
    at processing.opengl.PGraphicsOpenGL.flushPolys(PGraphicsOpenGL.java:2374)
    at processing.opengl.PGraphicsOpenGL.flush(PGraphicsOpenGL.java:2311)
    at processing.opengl.PGraphicsOpenGL.endDraw(PGraphicsOpenGL.java:1480)
    at processing.core.PApplet.handleDraw(PApplet.java:2455)
    at processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:849)
    at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692)
    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)

  • The screen is white and will not load the GUI

    Here is what the terminal says when I try to load the gui.

    Caught handled GLException: X11GLXDrawableFactory - Could not initialize shared resources for X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x4bcc3333, isOwner false, <2a1a95d5, 6f1c5665>[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 0x7f7c48000b90, context 0x7f7c480140d0, drawable X11OnscreenGLXDrawable[Realized true,
    Factory   jogamp.opengl.x11.glx.X11GLXDrawableFactory@3eec5dea,
    Handle    0x4c00002,
    Surface   WrappedSurface[ displayHandle 0x7f7c48000b90
    , surfaceHandle 0x4c00002
    , size 64x64
    , UOB[ OWNS_SURFACE | WINDOW_INVISIBLE ]
    , X11GLXGraphicsConfiguration[X11GraphicsScreen[X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x7f7c48000b90, owner true, ResourceToolkitLock[obj 0x9febd61, isOwner true, <1224bbcf, 5c37a007>[count 2, qsz 0, owner <main-SharedResourceRunner>]]], idx 0], visualID 0x1a1, fbConfigID 0x151,
    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 0x1a1, fbc 0x151: 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 <68a566, 7c0105bf>[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)
    OpenGL error 1280 at bot beginDraw(): invalid enumerant
    Killed:  4690 ?        00:00:00 OpenBCIHub
    Killed:  4693 ?        00:00:00 OpenBCIHub
    Killed:  4732 ?        00:00:00 OpenBCIHub
    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
    Instantiating hub object...
    Hub: clientEvent: handshake complete
    java.lang.RuntimeException: Cannot compile vertex shader:
    ERROR: 0:2: error(#308) Profile " " is not available in shader version 3465761371
    ERROR: error(#273) 1 compilation errors.  No code generated


    at processing.core.PGraphics.showException(PGraphics.java:8205)
    at processing.opengl.PShader.compileVertexShader(PShader.java:981)
    at processing.opengl.PShader.compile(PShader.java:917)
    at processing.opengl.PShader.init(PShader.java:894)
    at processing.opengl.PShader.getAttributeLoc(PShader.java:595)
    at processing.opengl.PShader.loadAttributes(PShader.java:1123)
    at processing.opengl.PGraphicsOpenGL.getPolyShader(PGraphicsOpenGL.java:7075)
    at processing.opengl.PGraphicsOpenGL.flushPolys(PGraphicsOpenGL.java:2374)
    at processing.opengl.PGraphicsOpenGL.flush(PGraphicsOpenGL.java:2311)
    at processing.opengl.PGraphicsOpenGL.endDraw(PGraphicsOpenGL.java:1480)
    at processing.core.PApplet.handleDraw(PApplet.java:2455)
    at processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:849)
    at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692)
    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)
    Client got end-of-stream.

  • wjcroftwjcroft Mount Shasta, CA
    Sam, hi.

    Does the GUI run for you on Windows or another laptop? Sometimes blank or black screens are a sign that the graphics hardware may not have the latest OpenGL drivers, or is not supported. Is this a recent Linux and laptop?


    Have you tried running the GUI both as the standalone and from within Processing?

    William

Sign In or Register to comment.