Rockbox Technical Forums

Support and General Use => Hardware => Topic started by: Zakalwe on March 20, 2017, 12:57:07 AM

Title: Load to RAM on e280v2 - out of RAM?
Post by: Zakalwe on March 20, 2017, 12:57:07 AM
Hello,

I am not entirely sure whether this is a hardware issue, so depending on the background it might have to get moved to the database forum.

Anyway, I am using the most current build (35d69c8) on my Sansa e280v2, though I have encountered similar problems/symptoms with earlier versions, including 3.13 stable.

The problem is, when I enable the "Load to RAM" option in the database settings, then database browsing is greatly accelerated (as it should be), but the player can no longer play back music. Instead, when trying to play back music, with the current build I get a white screen with kernel panic. The stable build would simply do nothing, just show the playback screen but not play.

I have quite a lot of music on the player, as I use a 256GB card with about 22,000 files spread over 2,000 directories. Playback works fine again if I disable "Load to RAM", so I think it is a reasonable guess that my database takes up so much RAM that not enough is left for playback.

What is odd to me is that the same card and "Load to RAM" work fine in my Clip+. It was my layman's understanding that these two DAPs were quite similar internally. Do they differ in their amount of RAM? I could not find the amount in the e280v2. Or maybe the prettier big-colour-screen-GUI in the e280v2 also needs more memory, and in combination this takes too much for playback?

I am not really hoping for a solution to this, but I am curious and would like to know what is going on. :)
Title: Re: Load to RAM on e280v2 - out of RAM?
Post by: bascule on March 21, 2017, 06:47:04 AM
There does seem to be a specific issue with 'Load to RAM' causing tagnavi errors and possible playback and resume failures.

I've been trying to investigate it, but without much success so far (http://forums.rockbox.org/index.php/topic,51710.0.html).

Activity on the forum seems quite low, in general, so I guess we may have to wait for an answer...
Title: Re: Load to RAM on e280v2 - out of RAM?
Post by: jhMikeS on March 21, 2017, 09:20:19 PM
What exactly is the kernel panic?
Title: Re: Load to RAM on e280v2 - out of RAM?
Post by: Zakalwe on March 22, 2017, 05:21:10 AM
Ah, sorry, I should have included it in the first place.

The white screen says this:

*PANIC*
audio_reset_buffer_noalloc(): EOM (526104 > 118652)
pc: 30044B80 sp: 300CC1A8
     A: 0001CF7C
     A: 00000000
bt end

This output happens both when trying "Resume Playback" from a previously playing file, and when picking some new file to play using the database.

Title: Re: Load to RAM on e280v2 - out of RAM?
Post by: jhMikeS on March 22, 2017, 01:44:10 PM
Yep, it's running out of ram. That database is enormous and that player only has 8MB RAM. You've got 118k left at that point, not enough for even the PCM buffer. The database has to either completely loaded or not at all and there's no size restriction on how much it will try to load. That's how it's been since it was created a decade ago (and revising it is no trivial matter).

Personally, I think panicking is overkill for anything not a broken internal state.

Edit: It given the impression of something catastrophically broken when it might be trivial.
Title: Re: Load to RAM on e280v2 - out of RAM?
Post by: Zakalwe on March 22, 2017, 03:17:25 PM
Thanks, that puts my mind at ease. ;) It is not really a problem, directory navigation works well. Do you by any chance know how much RAM the Clip+ has? I am surprised how much better it copes with that card.
Title: Re: Load to RAM on e280v2 - out of RAM?
Post by: saratoga on March 22, 2017, 04:32:28 PM
It has the same amount of memory, but the firmware uses less since it doesn't have a color screen. 
Title: Re: Load to RAM on e280v2 - out of RAM?
Post by: Zakalwe on March 23, 2017, 07:27:54 AM
Nice, thanks. It is kinda funny how restricted these older devices are compared to smartphones, for example - by orders of magnitude. Yet still they are so capable. Every now and then I try to use my phone as my main player, to carry only one device. I always end up going back to some rockboxed Sansa, the user experience is so much better. And with microSD cards slowly growing along/ahead of my collection, I can see myself sticking to these old little machines for years to come.