-
Notifications
You must be signed in to change notification settings - Fork 21
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
Crash while searching #38
Comments
I'm sorry I cannot reproduce this issue. When exactly is "while in progress"? Is the progressbar in the search entry already visible? |
Sent you an email with screen capture showing the bug. |
Thanks for the detailed info. This should now be fixed in master. I'm sadly not able to test it since my collection seemingly is way to small. I just can't hint the right moment to crash the player, the search is always to fast. I patched it to always "crash" while searching and this didn't crash the player anymore. So please let me know if it fixed on your machine. |
I can confirm 14d4766 fixes the greyed out search box but I'm still being instantly disconnected as soon as I try to search something. |
Ok, sorry I misunderstood you. I thought you stopped MPD on purpose.
On my machine the actual mpd search is also almost instantaneous. Is it possible for you to test the search directly with |
|
Ok, so I'd consider this a bug in |
Yeah, I agree. Do you want me to open a ticket there? |
Yes, that's a good idea. I can't report a bug I'm not experiencing. I'll close this for now, feel free to reopen when additional work on this is needed. |
Opened Mic92/python-mpd2#174. |
@SoongNoonien By chance, what mpd version are you using? |
I'm using MPD 0.22.9 and python-mpd2 3.0.4. |
And search is working for you without disconnects? |
Well, yes obviously if not I would have left this bug open. ;-) And why should I implement a search which is not even working on my own machine? :-) |
OK. |
I think this can be reopened, there's things that mpdevil can do here that won't cause disconnections. |
And which are those? |
OK, I've got the search to actually work (still requires some refactoring as it's just a bunch of hacks atm).
An interesting find was that if you type fast enough or paste the text to search you won't crash the search presumably because the more you type the less results there will be. |
As a sidenote, python-mpd2 shouldn't be disconnecting in the code example that was initially posted, it's crashing on a empty search result and the command there is a valid mpd protocol one (try with netcat and you'll see mpd respond with |
This should be doable. I'm currently displaying the search results in packages of 100 songs it should be no problem to also fetch them in packages/windows of 100. After each package the GUI gets refreshed, so it does not block. |
I can confirm this fixes the issue and the UI doesn't block anymore. |
If mpdevil gets disconnected from mpd while searching, the search bar is unusable/greyed-out after reconnecting, requiring a program restart in order to unblock it again.
Steps to reproduce:
Search for something and have mpd disconnect while in progress.
Reconnect.
Search bar is greyed out with previous search text.
Extra info:
Before mpdevil gets disconnected, mpd logs show:
I've asked over #mpd IRC channel and someone suggested that it's most likely a MPD client bug.
The text was updated successfully, but these errors were encountered: