Cannot connect to Cyton (Linux)
Hi everyone, I am having issues connecting Cyton to the OpenBCI GUI on my Linux system (Ubuntu 24.04). More specifically, after clicking "auto-connect", the GUI is frozen on "Starting session", while the console displays the message below. This is very similar to the issue mentioned in this thread, although connecting any kind of speaker or earplugs does not solve this issue.
A few additional information:
sudo dmesg | grep FTDIreturns the following:
[171234.063004] usb 1-1: Manufacturer: FTDI
[171234.087991] usbserial: USB Serial support registered for FTDI USB Serial Device
[171234.088020] ftdi_sio 1-1:1.0: FTDI USB Serial Device converter detected
[171234.089269] usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB0I tried this method and made sure I am a member of the
dialoutgroup. However, launching GtkTerm and setting the port to dev/ttyUSB0 does not display any data (just a default blank screen).
Any help is appreciated. Thanks!ControlPanel: Found Cyton Dongle on COM port: /dev/ttyUSB0
Success: Host and Device on Channe. Using COM port: /dev/ttyUSB0
[DEFAULT]: Attempting to Start Session...
initButtonPressed: Calling initSystem() after next draw()
OpenBCI_GUI: Start session. Calling initSystem().=================================================
|| INITIALIZING SYSTEM ||
OpenBCI_GUI: Configuring Cyton Channel Count...
Sending config string to board: c
OpenBCI_GUI: Channel count set to 8
"Arial" is not available, so another font will be used. Use PFont.list() to show available fonts.
Unpacking to: /root/.cache/JNA/temp/libonnxruntime_x64.so
Unpacking to: /root/.cache/JNA/temp/libonnxruntime_arm64.so
java.lang.NullPointerException
at java.base/java.util.Objects.requireNonNull(Objects.java:208)
at java.base/java.nio.file.Files.copy(Files.java:3128)
at brainflow.JarHelper.unpack_from_jar(JarHelper.java:31)
at brainflow.MLModel.(MLModel.java:58)
at OpenBCI_GUI$W_Focus.initBrainFlowMetric(OpenBCI_GUI.java:24885)
at OpenBCI_GUI$W_Focus.(OpenBCI_GUI.java:24672)
at OpenBCI_GUI.setupWidgets(OpenBCI_GUI.java:31736)
at OpenBCI_GUI$WidgetManager.(OpenBCI_GUI.java:31826)
at OpenBCI_GUI.initSystem(OpenBCI_GUI.java:849)
at OpenBCI_GUI.systemInitSession(OpenBCI_GUI.java:1117)
at OpenBCI_GUI.draw(OpenBCI_GUI.java:654)
at processing.core.PApplet.handleDraw(PApplet.java:2094)
at processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:840)
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:782)
at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:453)
at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
at java.base/java.util.TimerThread.run(Timer.java:516)
file: libonnxruntime_arm64.so is not found in jar file
Unpacking to: /root/.cache/JNA/temp/libMLModule.so
[SUCCESS]: Marker Widget: Listening for markers on 127.0.0.1:12350
InitSettings: Saving Default Settings to file!
SessionSettings: 3 active widgets saved!
[SUCCESS]: Session started!
Unpacking to: /root/.cache/JNA/temp/libDataHandler.so
java.lang.NullPointerException: Cannot invoke "ddf.minim.ugens.Gain.setValue(float)" because "this.this$0.auditoryNfbGains[i]" is null
at OpenBCI_GUI$AuditoryNeurofeedback.update(OpenBCI_GUI.java:2229)
at OpenBCI_GUI$W_Focus.updateFocusState(OpenBCI_GUI.java:24837)
at OpenBCI_GUI$W_Focus.updateFocusWidgetData(OpenBCI_GUI.java:24970)
at OpenBCI_GUI$DataProcessing.process(OpenBCI_GUI.java:9341)
at OpenBCI_GUI.processNewData(OpenBCI_GUI.java:9074)
at OpenBCI_GUI.systemUpdate(OpenBCI_GUI.java:1046)
at OpenBCI_GUI.draw(OpenBCI_GUI.java:649)
at processing.core.PApplet.handleDraw(PApplet.java:2094)
at processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:840)
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:782)
at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:453)
at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
at java.base/java.util.TimerThread.run(Timer.java:516)
Comments
Mentioning @retiutut, the GUI dev.