You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Afaik the only bug blocking a release candidate is #505. Unfortunately we've not been able to track it down yet and since I cannot reproduce it there is not much I can do to debug it.
@mahkoh Yes I encountered similar problem as @flyingmutant do back in 2015, when I became a cmus user. What I did was simply importing my large music collection into cmus. The UI corrupted while loading all the tracks. a simple CTRL+L would fix the problem. This could be reproduced reliably on my machine.
However I can't reproduce this now with the latest bits.
@flyingmutant What do you make of this? I think the situation is that this bug has existed for over a year. It might even be in 2.7. But nobody ever reported it. The thing that changed now is that it's happening to you. But we do not know if the frequency with which it happens has increased since the 2.7 release. Should we just put out an RC and collect some feedback?
I am OK with making an RC now -- since I am not making any progress on #505 myself, and just waiting is not very productive. Maybe put in the release notes mention a request to looks for UI corruptions, to know how widespread this is.
Do you consider everything RC-ready?
P.S. These races (like #505) and deadlocks (like #574) look to me like a sign that internals are in a bit of a mess. It'd be nice to make data and control flows simple and explicit, to transition from "no obvious defects" to "obviously no defects" (not for this release; maybe for 3.0).
P.S. These races (like #505) and deadlocks (like #574) look to me like a sign that internals are in a bit of a mess. It'd be nice to make data and control flows simple and explicit, to transition from "no obvious defects" to "obviously no defects" (not for this release; maybe for 3.0).
This deadlock issue was unfortunately introduced recently when I removed the explicit locks. The fundamental problem is that we're using three different ways to communicate between threads:
Mutexes
Synchronous message passing (cmus_get_next_track)
Asynchronous message passing (job results)
Synchronous message passing alone is already dangerous because if two threads try to do it at the same time with each other you get a deadlock even though no locking is visible in the code. Ideally I'd like to move everything over to async message passing but that probably requires a rewrite of player.c.
Activity
flyingmutant commentedon Aug 26, 2016
Yeah, it is about time: there are lots of new features. Just have to wait for everything that is in to stabilise a bit (e.g. #505).
Wang-Yue commentedon Oct 28, 2016
any recent plans to triage bugs and make the release?
mahkoh commentedon Oct 28, 2016
Afaik the only bug blocking a release candidate is #505. Unfortunately we've not been able to track it down yet and since I cannot reproduce it there is not much I can do to debug it.
flyingmutant commentedon Oct 29, 2016
@Wang-Yue, you have a mac, right? Can you please try to reproduce #505?
Wang-Yue commentedon Oct 29, 2016
@flyingmutant I could reproduce this before when I add my entire music folder last year (2015). Now I can't reproduce this any more.
mahkoh commentedon Oct 29, 2016
@Wang-Yue If I understand you correctly you are saying that this bug already existed back in 2015?
Wang-Yue commentedon Oct 29, 2016
@mahkoh Yes I encountered similar problem as @flyingmutant do back in 2015, when I became a cmus user. What I did was simply importing my large music collection into cmus. The UI corrupted while loading all the tracks. a simple CTRL+L would fix the problem. This could be reproduced reliably on my machine.
However I can't reproduce this now with the latest bits.
Wang-Yue commentedon Oct 29, 2016
I have an old cmus installation (that synced to 9d37708 ) that could reproduce the problem.
Wang-Yue commentedon Oct 29, 2016
I pull the latest commit and the problem disappear.
mahkoh commentedon Oct 29, 2016
@flyingmutant What do you make of this? I think the situation is that this bug has existed for over a year. It might even be in 2.7. But nobody ever reported it. The thing that changed now is that it's happening to you. But we do not know if the frequency with which it happens has increased since the 2.7 release. Should we just put out an RC and collect some feedback?
flyingmutant commentedon Oct 31, 2016
Yeah, it might be an old bug lurking around.
I am OK with making an RC now -- since I am not making any progress on #505 myself, and just waiting is not very productive. Maybe put in the release notes mention a request to looks for UI corruptions, to know how widespread this is.
Do you consider everything RC-ready?
P.S. These races (like #505) and deadlocks (like #574) look to me like a sign that internals are in a bit of a mess. It'd be nice to make data and control flows simple and explicit, to transition from "no obvious defects" to "obviously no defects" (not for this release; maybe for 3.0).
mahkoh commentedon Oct 31, 2016
Sure.
This deadlock issue was unfortunately introduced recently when I removed the explicit locks. The fundamental problem is that we're using three different ways to communicate between threads:
Synchronous message passing alone is already dangerous because if two threads try to do it at the same time with each other you get a deadlock even though no locking is visible in the code. Ideally I'd like to move everything over to async message passing but that probably requires a rewrite of player.c.
nefthy commentedon Oct 31, 2016
I think that is a good idea, for the next release or so.
flyingmutant commentedon Nov 20, 2016
https://github.com/cmus/cmus/releases/tag/v2.8.0-rc0 (finally!)
I hope I've got release notes right, and have included everything important there. Now, it's time to update the website, and also prepare v2.7.2.