Issue running GUI 5.0.4 on Windows

edited March 2021 in OpenBCI_GUI

I just setup my cyton+daisy with the EEG electrode cap for the first time. I followed all the instructions from the website very carefully. When I click the "Start Data Stream" button, the TXD light turns red on the USB dongle, (Which I assume is a positive thing?) however, the entire GUI then freezes, and no data is displayed. Has anyone else experienced this? I'm seriously concerned as I'm a broke college student who maxed out my credit card for this device, and it seems that it does not work at all?

Comments

  • retiututretiutut Louisiana, USA
    edited March 2021

    Can we please see the full Console Log? There is not enough information here to determine what could be happening.

    Please be aware that the current version of the GUI is incredibly stable and has been tested on all 3 major OS many times.

  • Error! Failed to open C:\Users\trist\Documents\OpenBCI_GUI\Console_Data\Console_2021-03-31_16-09-52.txt for write.
    java.lang.RuntimeException: Couldn't create a writer for C:\Users\trist\Documents\OpenBCI_GUI\Console_Data\Console_2021-03-31_16-09-52.txt
    Console Log Started at Local Time: 2021-03-31_16-09-52
    Screen Resolution: 1920 X 1080
    Operating System: Windows
    Welcome to the Processing-based OpenBCI GUI!
    For more information, please visit: https://openbci.github.io/Documentation/docs/06Software/01-OpenBCISoftware/GUIDocs
    OpenBCI_GUI::Setup: Copying sample data to Documents/OpenBCI_GUI/Sample_Data
    OpenBCI_GUI::Setup: Error trying to copy Sample Data to Documents directory.
    ControlP5 2.3.1 infos, comments, questions at http://www.sojamo.de/libraries/controlP5
    TopNav: Internet Connection Successful
    Local Version: v5.0.4, Latest Version: v5.0.4
    GUI is up to date!
    OpenBCI_GUI::Control Panel: Playback history file not found.
    OpenBCI_GUI::Setup: Setup is complete!
    sourceList: click! 
    Channel count set to 8
    ControlPanel: Found Cyton Dongle on COM port: COM3
    Channel count set to 16
    [DEFAULT]: SessionData: Enter your custom session name.
    
    -------------------------------------------------
    ControlPanel: Attempting to Auto-Connect to Cyton
    -------------------------------------------------
    
    ControlPanel: Found Cyton Dongle on COM port: COM3
    CytonAutoConnect: Error reading from Serial/COM port
    [WARN]: Found a Cyton dongle, but could not connect to the board. Auto-Scanning now...
    CytonAutoConnect: Error reading from Serial/COM port
    Success: Host and D using COM port: COM3
    Successfully connected to Cyton using COM3
    [DEFAULT]: Attempting to Start Session...
    initButtonPressed: Calling initSystem() after next draw()
    OpenBCI_GUI: Start session. Calling initSystem().
    
    
    =================================================
    ||             INITIALIZING SYSTEM             ||
    =================================================
    
    brainflow.BrainFlowError: Error in set_log_file:GENERAL_ERROR
        at brainflow.BoardShim.set_log_file(BoardShim.java:190)
        at OpenBCI_GUI$BoardBrainFlow.initializeInternal(OpenBCI_GUI.java:2454)
        at OpenBCI_GUI$BoardCyton.initializeInternal(OpenBCI_GUI.java:2985)
        at OpenBCI_GUI$Board.initialize(OpenBCI_GUI.java:1990)
        at OpenBCI_GUI.initSystem(OpenBCI_GUI.java:681)
        at OpenBCI_GUI.systemInitSession(OpenBCI_GUI.java:982)
        at OpenBCI_GUI.draw(OpenBCI_GUI.java:559)
        at processing.core.PApplet.handleDraw(PApplet.java:2475)
        at processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:866)
        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)
    Channel count set to 16
    InitSettings: Saving Default Settings to file!
    SessionSettings: 3 active widgets saved!
    [SUCCESS]: Session started!
    [DEFAULT]: openBCI_GUI: startButton was pressed. Starting data transfer, wait a few seconds.
    Brainflow start streaming
    [DEFAULT]: Data stream started.
    java.lang.RuntimeException: Couldn't create a writer for C:\Users\trist\Documents\OpenBCI_GUI\Recordings\OpenBCISession_MY_DATA\OpenBCI-RAW-2021-03-31_16-10-38.txt
        at processing.core.PApplet.createWriter(PApplet.java:7003)
        at processing.core.PApplet.createWriter(PApplet.java:6981)
        at OpenBCI_GUI$DataWriterODF.<init>(OpenBCI_GUI.java:10038)
        at OpenBCI_GUI$DataLogger.openNewLogFileODF(OpenBCI_GUI.java:7934)
        at OpenBCI_GUI$DataLogger.openNewLogFile(OpenBCI_GUI.java:7893)
        at OpenBCI_GUI$DataLogger.onStartStreaming(OpenBCI_GUI.java:7866)
        at OpenBCI_GUI.startRunning(OpenBCI_GUI.java:796)
        at OpenBCI_GUI$TopNav.stopButtonWasPressed(OpenBCI_GUI.java:14983)
        at OpenBCI_GUI$TopNav$2.controlEvent(OpenBCI_GUI.java:14841)
        at controlP5.Controller.callListener(Unknown Source)
        at controlP5.Controller.setMousePressed(Unknown Source)
        at controlP5.ControllerGroup.setMousePressed(Unknown Source)
        at controlP5.ControlWindow.mouseReleasedEvent(Unknown Source)
        at controlP5.ControlWindow.mouseEvent(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:1432)
        at processing.core.PApplet.handleMethods(PApplet.java:1634)
        at processing.core.PApplet.handleMouseEvent(PApplet.java:2742)
        at processing.core.PApplet.dequeueEvents(PApplet.java:2645)
        at processing.core.PApplet.handleDraw(PApplet.java:2486)
        at processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:866)
        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)
    Caused by: java.io.FileNotFoundException: C:\Users\trist\Documents\OpenBCI_GUI\Recordings\OpenBCISession_MY_DATA\OpenBCI-RAW-2021-03-31_16-10-38.txt (Access is denied)
        at java.io.FileOutputStream.open0(Native Method)
        at java.io.FileOutputStream.open(FileOutputStream.java:270)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
        at processing.core.PApplet.createWriter(PApplet.java:6996)
        ... 33 more
    ConsoleLog: Copying console log to clipboard!
    
    

    The full console log is above, I am running the program as an administrator, so I don't see why there would be Access is Denied errors. What's strange is that the console itself actually freezes, but when I click the button to copy the the console log, it contains much more information on the errors.

  • retiututretiutut Louisiana, USA
    edited March 2021

    Ouch! Program can't read and write from the Documents folder. Every step that involves system disk read/write is failing.

    I even think BrainFlow is being denied access to wherever this is running from (Ex. C:/ProgramFiles/OpenBCI_GUI).

    I really appreciate seeing the Console Log for the new 5.0.4.

  • Any thoughts as to why? I don't see why there would be access errors when I'm running the application as an administrator. I'm now trying it on my Mac, and just so you are aware, it seems as though the latest version is not properly signed, as I am getting an issue stating that "OpenBCI_GUI" can't be opened because Apple cannot check it for malicious software. (This I think I can work around)

  • Ah, It is working on the MacBook, so I will do development from there.

  • retiututretiutut Louisiana, USA

    I'm seeing that 5.0.4 failed to sign on Windows with Appveyor. We may need to do a hot-fix in the CI/CD pipeline and bump version to 5.0.5.

  • retiututretiutut Louisiana, USA
    edited March 2021

    Yea, I think the Mac signing is fine. That's at Travis (at the moment but they don't want to respond to a request for OSS credits).

    Mac signing is fine. Mac OS X should only show popups associated with downloading an app from the internet instead of the built-in app store. Fixed by right-clicking -> open app the first time you open a new version.

  • retiututretiutut Louisiana, USA

    @wjcroft Can we rename this thread to something more relevant? -> "Issue running GUI 5.0.4 on Windows"

  • wjcroftwjcroft Mount Shasta, CA

    Richard, changed thread title.

  • Andrey1994Andrey1994 Moscow
    edited March 2021

    Could you check your permissions to write files there and check that folder exists?

    Richard, maybe later on we can make this path configurable by env variable for example or by file with settings(not really related to this issue since there must be write permissions for documents folder)

  • @Andrey1994 Permissions all appear good, and the folder does exist. It's very strange behavior. I'll likely dig into it myself a bit more in the future, but for now I am just moving forward on my Mac, which has had no issues so far!

  • marles77marles77 Poland
    edited April 2021

    This was the first thing I noticed when started using GUI 5.0.4. I also run it on Win 10 (v2004) and write the data to SD. It happens from time to time (I don't see any pattern). The only solution is to go back to the Control panel and switch off and on the board. Otherwise, the session can not be started again. I didn't test it on other OSs.
    Marcin

Sign In or Register to comment.