Open ShahbazU opened 4 years ago
Sorry, could you provide a bit more details?
Possible solution is adding the exception_on_overflow to the stream.read:
data = stream.read(4000, exception_on_overflow=False)
I saw occassional overflow errors that crashed the program. This helps (though it's not an ultimate solution it works for now)
data = stream.read(4000, exception_on_overflow=False)
I do not recommend that for sure since you will have a huge drop in accuracy and will not notice that. It is better to make sure you able to process the stream in realtime.
As mentioned, I did not say it was an ultimate solution, just that it can bypass this error (especially helpful in testing).
I tested reducing the rate to 2000 and that eliminated the error that caused the app to crash for me.
Hi, The input stream is likely to be overflowed and not closed. Assign a close stream to it