-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
Saved preset is displayed as "Unsaved Preset" when pressing the stop button (intermittently occuring...) #1155
Comments
Thanks for reporting this! iirc, it came up during the implementation, and I had been lazy about it. Nonetheless, I'll try to fix this as soon as possible. |
Thanks for this quick reply! I was currently trying to investigate what causes this bug to occur, exactly. Trying to find the exact steps to reproduce... Because this is that kind of mysterious bug that I can talk about, but I am not able to consistently reproduce it every time... So, my question is: do you have a clear idea of the "steps to reproduce"? Or should I keep trying to find the exact combination of steps to reproduce this bug? |
@SebastJava Thank you for taking the time to investigate it. I don't remember exactly. There may have been several refactors since then. Perhaps it is best not to rely on my vague memory. If I were starting afresh, I'd start here: android-app/app/src/main/java/com/github/ashutoshgngwr/noice/engine/SoundPlayerManager.kt Lines 275 to 280 in 262724d
Most likely, it is broken. You can also look at |
@SebastJava I tried reproducing it myself! I think what happens is when you play a preset, not all sounds will be in the To reproduce it, you need to hit stop before all sounds enter the |
@SebastJava It should be easy to reproduce on a slow network since not all sounds from a preset will be able to buffer adequately to start concurrently. |
@ashutoshgngwr I am not really a programmer, but I am willing to learn... Maybe, one day, I will finally find the time, and a quiet environment, and peace of mind, so I can dive into these things more seriously. I am currently writing this reply on my computer, with the latest Linux Mint Cinnamon OS. But here I am talking about your Noice app on my Moto G Pure cellular phone, with Android 12.
Yes, I approximately understand your reasoning and it makes sense.
If I understand you correctly, your are saying this bug would only occur when I quickly press "stop", so there are still sounds in the And... what makes it even weirder is it seems I only get this bug with my custom presets. |
Sorry, I have trouble understanding this. I don't know how to find any log messages on my Moto G Pure Android 12 phone. Help please! |
Also, I believe my internet connection isn't so slow. I only use this nice Noice when at home. So, I have my own WiFi connection here. And I am the only user on it and thus I am pretty sure I always get the same steady ▼15 Mbit/s || ▲10 Mbit/s... |
Ah, okay, sorry, I had many things on mind at the same time. I think I can quickly find answers on how to get these Android system logs. Still, your help would be appreciated, but otherwise I will probably just find some answers on Google... :) |
@ashutoshgngwr All right ! I think I may have finally found the exact strange steps to reproduce... To reproduce
Of course, I can't be sure, but I think I found it. I hope I am not wasting your time. The truth is I am a bit reluctant to dive into this big system logs investigation. It would probably be a fascinating adventure, but I currently have other concerns on my mind. I am busy with other things. This system logs investigation probably sounds easy for you, but the thing is I would have to start by installing the big SDK. This looks like a big adventure. Maybe later? |
Hey @SebastJava! Thank you for taking the time to dig deep and find the exact steps needed to reproduce this. I'll resolve it as soon as possible, perhaps over the weekend.
You didn't. Your input has been very helpful! |
this helps maintain behaviour parity among contiguous and non-contiguous sounds, which in-turn helps maintaining the correct preset state during STOPPING and PAUSING transitions. resolves #1155
this helps maintain behaviour parity among contiguous and non-contiguous sounds, which in-turn helps maintaining the correct preset state during STOPPING and PAUSING transitions. resolves #1155
this helps maintain behaviour parity among contiguous and non-contiguous sounds, which in-turn helps maintaining the correct preset state during STOPPING and PAUSING transitions. resolves #1155
@SebastJava I've added a fix to resolve this issue. Since it changes a few components' behaviours at the implementation's lowest level, I'm sceptical that it may cause unwanted side effects. Nevertheless, I've released a new version, 2.5.5, with this fix, and it should be available shortly on GitHub releases, F-Droid and Noice beta on the Google Play Store. |
Thanks ! |
Description
I play one of my saved presets. While this preset is playing, I just take a look at its composition by scrolling up and down through the library. I don't change anything, I am just looking at all the individual sound sources mixed in... Then I press the "stop" button and then the name displayed at the bottom of the screen is: "Unsaved Preset". This leaves me in a somewhat doubtful state: did I save my last tweaks or not? But yes, it was saved and there were no further tweaks, I tested this many times. Unfortunately, it isn't easy to reproduce, it only occurs intermittently !
To Reproduce
Note
This bug only occurs once in a while. Maybe the key to trigger this bug is just... TIME !? I mean, just keep looking at the library for 5 minutes while listening to your custom preset, and then press the "Stop" button... :)
Screenshots
Others
The text was updated successfully, but these errors were encountered: