OpenBCI iHub fatal error listen EADDRINUSE 127.0.1:10996 [resolved]

DreambuildDreambuild China
edited May 2020 in OpenBCI_GUI

Hello guys, I just got my cyton board and started to test it using the newest 4.2.0 gui and 2.1.0 hub. The first time it worked well and got data streaming. However, in the following tests this error came with ''OpenbciHub fatal error listen EADDRINUSE 127.0.1:10996'' and the gui can't find the hub. Tried many times and ways but still turned out to be failure. Is there any way to solve it?

Comments

  • retiututretiutut Louisiana, USA
    edited May 2020

    There is no bug here. This means that the Hub is already running, and attempts to use the same exact port for communications a second time.Hub has already been removed entirely for GUI 5.0. Please be patient as we refine this release.
    For now, go into the Windows taskbar and close the OpenBCI Hub after closing the GUI, this error code means that it is running.

  • @retiutut Sorry to disturb you sir, I then tried to open the gui again without opening the hub individually, but the hub is still not connected. Does that mean I have to wait for another release? :'(

  • wjcroftwjcroft Mount Shasta, CA

    Did you follow Richard's instructions to kill the old Hub, before restarting?

    https://www.google.com/search?q=windows+10+task+manager

  • @wjcroft Yeah, already killed it with that. The problem is, when I restarted the hub, although the Error window doesn't exists anymore, the gui can still not find the hub. I guess it could be the problem of the environment of my laptop, since I copied my files on USB disk and ran it on my dad's 'anicant' laptop(there even no Bluetooth) and it successfully found the hub. Mine, however, only worked at the very first time.QAQ

  • wjcroftwjcroft Mount Shasta, CA

    Did you try rebooting your laptop?

  • @wjcroft Tried for many times. It never works. QAQ

  • wjcroftwjcroft Mount Shasta, CA

    Is this Windows 10, 64-bit processor?

  • wjcroftwjcroft Mount Shasta, CA

    Are you running the 'standalone' GUI? Have you tried the Processing IDE version?

    https://docs.openbci.com/docs/06Software/01-OpenBCISoftware/GUIDocs#running-the-openbci-gui-from-the-processing-ide

    Have you used the Google Advanced Search button in the upper right column?

    https://www.google.com/search?as_q=EADDRINUSE&as_sitesearch=openbci.com

  • @wjcroft Really sorry for asking help again, but I really can't get though the problem with my processing, which is like this
    I had follow the tutorial you provided and found no problem with the library, then this error came
    The library
    Any ideas on solving it?

  • @wjcroft The log:
    processing.app.SketchException: Duplicate libraries found for com.sun.jna.
    at processing.app.Mode.getLibrary(Mode.java:422)
    at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:419)
    at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:155)
    at processing.mode.java.JavaBuild.build(JavaBuild.java:122)
    at processing.mode.java.JavaBuild.build(JavaBuild.java:104)
    at processing.mode.java.JavaMode.handleLaunch(JavaMode.java:122)
    at processing.mode.java.JavaEditor.lambda$0(JavaEditor.java:1099)
    at java.lang.Thread.run(Thread.java:748)

  • DreambuildDreambuild China
    edited May 2020

    @wjcroft No need to solve the previous question. The IDE had been successfully activated. But, as you can see:

    The hub opened as gui was activated, but gui can still not find the hub
    Here's the log:
    No library found for com.sun.jna
    No library found for com.sun.jna
    No library found for com.sun.jna
    No library found for com.sun.jna
    Console Log Started at Local Time: 2020-05-13_12-53-09
    Screen Resolution: 1920 X 1080
    Welcome to the Processing-based OpenBCI GUI!
    For more information, please visit: https://openbci.github.io/Documentation/docs/06Software/01-OpenBCISoftware/GUIDocs
    Launching application from local data dir
    OpenBCI_GUI: hubStart: OS Detected: Windows
    TopNav: Internet Connection Not Available
    Local GUI Version: 420
    OpenBCI_GUI::Setup: Sample Data exists in Documents folder.
    ControlP5 2.2.6 infos, comments, questions at http://www.sojamo.de/libraries/controlP5
    The file "C:\Users\asus\Documents\OpenBCI_GUI\Settings\UserPlaybackHistory.json" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable.
    OpenBCI_GUI::Control Panel: Playback history file not found or other error.
    OpenBCI_GUI::Setup: Setup is complete!
    Instantiating hub object...
    sourceList: click!
    [ERROR]: Unable to establish link to Hub. LIVE functionality will be disabled.
    ControlEvent: Hub error
    sourceList: click!
    [ERROR]: Unable to establish link to Hub. LIVE functionality will be disabled.
    ControlEvent: Hub error

  • retiututretiutut Louisiana, USA

    If there is no folder called libraries in that location, go ahead and make one. Once you have done that, close the Processing app and reopen it. If you get an error saying "Duplicate Packages", you may need to remove the jna package from the Processing\libraries folder.

  • I finally found what's the problem with my gui. It was caused by my Vmess internet booster's protocol and the app I'm using seems to be blocking the 127.0.1:10996 port access. Still a lot of thanks for the help! :) @wjcroft @retiutut

  • retiututretiutut Louisiana, USA

    @Dreambuild Glad you got it to work. GUI v5 will not have this problem! Take care!

Sign In or Register to comment.