alexandrebarachant / muse-lsl

Python script to stream EEG data from the muse 2016 headset
BSD 3-Clause "New" or "Revised" License
616 stars 182 forks source link

"muselsl record" stuck on "inlet.time_correction()" #126

Open Venryx opened 4 years ago

Venryx commented 4 years ago

Running the muselsl record --duration 10 command, with a Muse S device connected through BlueMuse, has (all but once) frozen/gotten-stuck for me. (failing to proceed to the end of script and save the csv file)

Specifically, it "gets stuck" at the two lines containing:

time_correction = inlet.time_correction()

To fix, I just replaced those lines with:

time_correction = 0

Any idea what could be causing this, and how to fix?

If there is no proper fix, it might be worth adding some sort of timeout, where if the time-correction takes longer than 10 seconds, a warning message is shown, then the program resumes with an assumed time-correction of 0. (or alternatively, an error message before shutdown, so at least the user knows what's wrong)

buyuk-dev commented 3 years ago

This was a pylsl issue. It seems to have been resolved here: https://github.com/labstreaminglayer/liblsl-Python/issues/2 Perhaps try installing newer pylsl version?