Rockbox Technical Forums

Support and General Use => Audio Playback, Database and Playlists => Topic started by: grmoht on August 08, 2017, 11:27:05 AM

Title: [ClipZip] Annoying beeps when playing ogg + random crash when playing opus
Post by: grmoht on August 08, 2017, 11:27:05 AM
Hi,

After upgrading from 3.13 to 3.14, when playing most of the ogg vorbis files in my library, a "beeping" sound sporadically occurs.
The sound seems random (2 consecutive playbacks of the same track will beep on the same time), and occurs a few times per minute.

Another problem since I upgraded 3.13 to 3.14, random crash occurs when playing opus files, around once per hour.

All the files played fine with 3.13.

Possibly interesting facts :
Files with a lower bitrate (<100kpbs) seem to be less subject to theses problems (at least for the ogg one, the other one is too random to reproduce to be sure).
It never occurs when screen is on.
Title: Re: [ClipZip] Annoying beeps when playing ogg + random crash when playing opus
Post by: saratoga on August 08, 2017, 12:57:35 PM
Could you try both of the builds in this thread and let me know which work (if either do)?

http://forums.rockbox.org/index.php/topic,51843.0.html
Title: Re: [ClipZip] Annoying beeps when playing ogg + random crash when playing opus
Post by: grmoht on August 08, 2017, 03:06:07 PM
Thanks for your reply !

Ogg Vorbis playback works flawlessly on both build.
But USB is really unstable (as in barely usable) with both of them, 3.14 is a great improvement in this aspect.
Title: Re: [ClipZip] Annoying beeps when playing ogg + random crash when playing opus
Post by: saratoga on August 08, 2017, 03:42:45 PM
Can you try the current development build? 

If that doesn't work, then try this:

http://web.mit.edu/mgg6/www/rockbox-zip-9432ecffea94afae224391a86f1d3fa46cd87bc0.7z
Title: Re: [ClipZip] Annoying beeps when playing ogg + random crash when playing opus
Post by: grmoht on August 09, 2017, 04:19:14 AM
Thanks for your help.

The development build still have the beeping problem.
And the one from your link seems to actually make it worse (up to several times per seconds during the few minutes of my test).

I had no crash with theses builds, but it is so random i'm not sure it means anything.
Title: Re: [ClipZip] Annoying beeps when playing ogg + random crash when playing opus
Post by: saratoga on August 09, 2017, 01:14:21 PM
Can you install the current build, go to the system > debug menu > cpu frequency and raise CPU boost counter to 2 or more?  This should prevent the CPU from changing voltage/frequency.  I wonder if the beeping happens on frequency change.
Title: Re: [ClipZip] Annoying beeps when playing ogg + random crash when playing opus
Post by: grmoht on August 10, 2017, 03:18:33 AM
I tried this on my morning commute, and it seems to work !

No beeping at all on the few ogg vorbis songs I listened.

Probably not relevant, but if I set boost counter to 0 it beeps like crazy, until it eventually crash.
If the display is accurate, frequency never changes and stay at the lower possible.
Maybe beeping happens when frequency is too low, and not (only) on frequency change ?
Title: Re: [ClipZip] Annoying beeps when playing ogg + random crash when playing opus
Post by: grmoht on August 24, 2017, 03:13:34 AM
After a few days, I can confirm that this workaround works : no beeping, and the crashes are gone too.

Is there a way to set this setting reboot-proof-ly ?
Title: Re: [ClipZip] Annoying beeps when playing ogg + random crash when playing opus
Post by: Bilgus on August 24, 2017, 05:10:28 AM
I remember around December 'Miles' reported a problem with opus files on IRC https://www.rockbox.org/irc/log-20161130 with the clip+ not beeps but opus files stopping and the UI becoming laggy when playing

I was under the impression this was fixed by https://github.com/Rockbox/rockbox/commit/c6299b268da0599c2bbce3e71efb5398ffd0a808

I don't think he ever let us know if that fixed all issues for him but it might have been related to the frame size of the files but if you didn't have issues in 3.13 they may or may not be related

If you like You can try a build with a longer cpu boost time out and see if it negates the issue or atleast changes the frequency of the beeps albeit your battery life will be shorter

here is the diff of the changes
Code: [Select]
--- /home/ubuntu/Desktop/orig/rockbox/apps/buffering.c 2017-05-19 23:14:24.907259508 +0200
+++ apps/buffering.c 2017-08-24 10:43:12.866395007 +0200
@@ -1603,10 +1603,10 @@
     while (true)
     {
         if (num_handles > 0) {
+            queue_wait_w_tmo(&buffering_queue, &ev, filling ? 1 : HZ*20);
             if (!filling) {
                 cancel_cpu_boost();
             }
-            queue_wait_w_tmo(&buffering_queue, &ev, filling ? 1 : HZ/2);
         } else {
             filling = false;
             cancel_cpu_boost();

and the firmware:
http://www.mediafire.com/file/jucy17bbaqvy33g/ClipZip_RB3.14_EXLongBuffCpuBoost_rockbox-full.zip
Title: Re: [ClipZip] Annoying beeps when playing ogg + random crash when playing opus
Post by: saratoga on August 24, 2017, 04:31:23 PM
Here is the current build but with the voltage locked at the maximum value.  Does it work any better?

http://web.mit.edu/mgg6/www/rockbox-clipzip-no-voltagescaling.7z
Title: Re: [ClipZip] Annoying beeps when playing ogg + random crash when playing opus
Post by: grmoht on October 03, 2017, 09:10:57 AM
@Bilgus : Unfortunately it does not change anything : still beeping on ogg files and (occasionally) crashing on opus files, unless I set the CPU boost counter to 2 or more.

@saratoga : It does work! After a few weeks of use, no crash nor beeping, that's perfect. Obviously battery life is somewhat lower, but I can live with that. Thanks !