Skip to content
This repository was archived by the owner on Sep 8, 2024. It is now read-only.
This repository was archived by the owner on Sep 8, 2024. It is now read-only.

can only connect once to gui #2525

@JarbasAl

Description

@JarbasAl

im having some weird issue with the GUI websocket

  • start mycroft
  • gui connects (debug cli GUI)
  • kill debug cli
  • start debug cli
  • gui wont connect again until mycroft enclosure restart

I was making my own cli GUI

enclosure logs bellow

2020-04-01 05:00:24.357 | INFO     |  9767 | mycroft.messagebus.client.client:on_open:67 | Connected
2020-04-01 05:00:32.569 | INFO     |  9767 | tornado.access | 101 GET /gui (127.0.0.1) 0.80ms
2020-04-01 05:00:44.081 | INFO     |  9767 | mycroft.client.enclosure.base:callback_disconnect:423 | Disconnecting!
2020-04-01 05:00:44.081 | INFO     |  9767 | mycroft.client.enclosure.base:callback_disconnect:425 | dict_keys(['dummy_10064'])
2020-04-01 05:00:44.082 | INFO     |  9767 | mycroft.client.enclosure.base:callback_disconnect:426 | deleting: dummy_10064
2020-04-01 05:00:51.334 | WARNING  |  9767 | tornado.general | tornado.autoreload started more than once in the same process

3 ways to replicate

  • if gui is open in debug cli, my gui will not connect
  • if gui is open in my script, gui cli will not connect
  • if debug cli is restarted, second time gui wont connect

so i guess the issue can be summed up as only 1 gui can connect, only once

NOTE: cli GUI always prints that it connected, that message is logged before it actually connects, so that needs refactoring

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions