rhasspy / wyoming

Peer-to-peer protocol for voice assistants
MIT License
137 stars 20 forks source link

AsyncServer service startup hangs/?? #32

Closed sdetweil closed 10 hours ago

sdetweil commented 14 hours ago

I am creating my own satellite like thing

main start a task for the real event handler and then an AsyncServer.from_uri() and server.run(partial(myclass, wyoming_info, the task instance, args)

but the init of the myclass never is fired.. and when my JS tcp client connects, it never responds

using wyoming 1.6.0

something changed yesterday to today.

I commented out my service task, so it should just startup my tcp server instance and take events from my tcp client, but doesn't I don't get any exceptions

where can I look next?

sdetweil commented 12 hours ago

if i do not create an instance of my worker class ( like Satellite)

the AsyncServer gets invoked funny if you have bad json inout, it jumps directly to disconnected!! without any info

if i DO create an instance of my worker class, ( only its init should run, and LOGGER message says it completed) but do NOT CREATE the task to run it, then my AsyncServer does NOT get invoked

sdetweil commented 10 hours ago

i dont know what it was. i started again got the asyncserver task working. then started the subtask and it all still worked. then added the control of the mic task only when a client is connected. and saved