-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Simple Play example doesn't quit after playing finishes #200
Comments
I can't confirm such a phenomenon with Python 3.10.10 on Windows, though, I think it will end correctly if |
Hi,
thanks for you reply, I tried to add:
```
session.close()
```
but now the remote server drops the connection suddenly, like the error reports:
```
INFO:Librespot:Session:Closing session. device_id:
9911b430490141c432082c879310aa7a852de101
INFO:Librespot:Session:Closed session. device_id:
9911b430490141c432082c879310aa7a852de101
Exception in thread session-packet-receiver:
Traceback (most recent call last):
File "E:\Miniconda\lib\threading.py", line 1009, in _bootstrap_inner
self.run()
File "E:\Miniconda\lib\threading.py", line 946, in run
self._target(*self._args, **self._kwargs)
File "E:\Miniconda\lib\site-packages\librespot\core.py", line 1674, in run
packet = self.__session.cipher_pair.receive_encoded(
File "E:\Miniconda\lib\site-packages\librespot\crypto.py", line 58,
in receive_encoded
header_bytes = self.__receive_cipher.decrypt(connection.read(3))
File "E:\Miniconda\lib\site-packages\librespot\core.py", line 1578, in read
return self.__socket.recv(length)
ConnectionAbortedError: [WinError 10053] Uma ligação estabelecida foi
anulada pelo software no computador anfitrião
```
and even after this in the end the program continues in getting stuck... !
2023-06-03 23:46 GMT+01:00, 碧舞すみほ ***@***.***>:
… I can't confirm such a phenomenon with Python 3.10.10 on Windows, though, I
think it will end correctly if session.close() is executed at the end.
--
Reply to this email directly or view it on GitHub:
#200 (comment)
You are receiving this because you authored the thread.
Message ID: ***@***.***>
|
Hi, I am currently facing the same problem on a windows machine when trying to stream audio from a list of URIs. Even after adding session.close() it leads to the error message. This does not impair my usage at this time since I'm only using the audiostream to extract a transcription but adds a lot of clutter to the console output & a bit of confusion on my part. |
Describe the bug
Hi, I tried your library using a simple example
To Reproduce
Steps to reproduce the behavior:
On VS Code 1.78.2 i run The following snippet:
Expected behavior
FFplay pops out and starts playing the track until the end after that exits cleanly but the program is stuck. I'm only able to stop pressing the trash button to kill terminal pane on vscode or killing it manually in the task manager. Doesn't respond to Ctrl+C
Screenshots
Last lines of output:
Client Information (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: