On closing a stream, I get the following error: "data_receiver.cpp:344 ERR| Stream transmission broke off (Input stream error.)"

  • MNE version: 1.9.0
  • operating system: Ubuntu 24.04

I try to close my StreamInlet with inlet.close_stream() but get the following error: “data_receiver.cpp:344 ERR| Stream transmission broke off (Input stream error.)”
Why?

stream_infos = discover_streams()
inlet = StreamInlet(sinfo[0])
inlet.open_stream()
inlet.close_stream()

I have a StreamOutlet, I can connect to it push and pull data, everything works well, but I still get this error on closing the StreamInlet.

That’s an error from the liblsl directly; which hints that the StreamOutlet is closed first (which thus yields on the inlet a Stream transmission broke off error).
Honestly, if you are done using your inlet anyway; you can disregard this error. It’s just that you are probably not closing resources in the right order.

Mathieu

Ok, thank you for your answer.
This is wired, since I don’t do anything to close the StreamOutlet.
However I’ll just ignore it.
Thanks again

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.