mirror of
https://github.com/kokarare1212/librespot-python.git
synced 2026-04-25 08:35:49 +03:00
[GH-ISSUE #95] [BUG] Programs freezes on 2nd login after a failed attempt #11
Labels
No labels
bug
dependencies
duplicate
enhancement
invalid
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot-python-kokarare1212#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @PacketSurf on GitHub (Nov 20, 2021).
Original GitHub issue: https://github.com/kokarare1212/librespot-python/issues/95
The program freezes if you try to login after a failed login attempt. It doesn't throw any exception, just completely freezes up. I think it ties into another issue I have, where the program freezes while attempting to reconnect to a session after there is a disconnect.
To Reproduce
change file to .py
login_test.txt
@kokarare1212 commented on GitHub (Nov 21, 2021):
Thank you for your inquiry.
It seems to be stuck when sending data at login and then receiving data afterwards.
Please wait long enough to figure out the details.
@PacketSurf commented on GitHub (Nov 21, 2021):
So it seems to specifically get stuck while trying to receive data from the socket. It calls socket.recv(length) and then never gets passed that point. This is the traceback when I keyboard interrupt:
@kokarare1212 commented on GitHub (Nov 21, 2021):
This has been fixed in the following commit.
The problem was with the initialization of io.BytesIO in the class.
This may be a bug in Python.
Please check it again.
github.com/kokarare1212/librespot-python@bd71ecde46@PacketSurf commented on GitHub (Nov 21, 2021):
Yep, this appears to have fixed any issues I was having. Thank you for the quick response.