Rockbox Technical Forums

Support and General Use => Audio Playback, Database and Playlists => Topic started by: krisdb on January 17, 2008, 04:18:38 PM

Title: Can't play mp3s through 'Files' option (Sansa c200)
Post by: krisdb on January 17, 2008, 04:18:38 PM
I have the Sansa c200, with the latest build of Rockbox and my mp3's are DRM-free(mostly podcasts).  I haven't done any major customization to rockbox, after a clean install, besided change some colors, equalizer and some other basic options.  

I have one directory under the Music folder, that I will drill down though the 'Files' menu option to play mp3s, instead of through the Database.  When I'm done listening to the mp3, I will manually delete it from the Sansa.  After about a week or so of adding/deleting files from this directory, I can no longer click on a file in that directory and play it.  The little 'loading/playing' icon will show in the top right when I click any file in that directory, then disappear.  I have no problems with mp3's in other directories or by playing the files through the Database.

Any help would be appreciated.
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: GodEater on January 18, 2008, 03:10:00 AM
Have you tried running a scandisk / chkdsk on your sansa ?
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: krisdb on January 19, 2008, 10:58:18 AM
Thanks for the reply.  I ran a scandisk, but it didn't fix the issue.  I misspoke in my first post, I didn't have the latest build, but I just updated to the r16109 version, but it didn't fix the issue.  I still click on the file and the little play icon in the top right shows for a second, then disappears.  Any other mp3, outside of that directory, will play, and the mp3s will play through the database.  
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: saanaito on January 19, 2008, 07:07:40 PM
Maybe a corrupted file table? You could rename the folder and rebuild the database....

Can you access the songs through your computer properly? (Access one through a file browser to be sure.)
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: krisdb on January 20, 2008, 09:40:05 AM
I was able to play the file through Windows Explorer, no problem.  I renamed the directory on the Sansa and attempted to play  an mp3.  It would bring up the WPS, but not actually play the file.  I updated the database, then rebooted, it said it was committing some files, then I was able to play the files in the renamed directory.

Edit:  I've been playing around with trying to pinpoint this issue and it get stranger.  Its seems that the software will not recognize the files in the directory unless I do a manual update of the database (I have rockbox set to auto-update).  Even then, after an update, I have to reboot and if I try to play a file, the player will freeze and I have to take the battery out.  After doing another reboot, the files will play fine.  If I do another reboot and try to play a file, it will either play a different file in the directory or freeze up.
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: krisdb on January 22, 2008, 09:52:01 AM
Well, I guess I'm done using Rockbox.  I know its free, but I wasted money buying the Sansa so I could use Rockbox.  I would recommend anyone who is thinking of getting a Sansa c200, so they can use Rockbox on it, to think twice (unless you enjoy manually removing the battery, multiple times).  For me, it is just completely unusable in its current form, for what it stated it did and what I was hoping to use it for.  I'm guessing the ipod versions get more attention than the Sansa versions.
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: Llorean on January 22, 2008, 10:29:57 AM
The sansa versio is also nearly a year younger than the iPod version. And people like you who experience problems that nobody else with the player experience rarely seem to understand that as we are not mind readers and can only fix it if you can find out enough information about it.
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: markun on January 22, 2008, 10:33:58 AM
Well, I guess I'm done using Rockbox.


Too bad we can't give you any money back. I hope you will have better luck in future.

Quote
I'm guessing the ipod versions get more attention than the Sansa versions.

The ipods also have their problems with rockbox, like short runtime (although it's being worked on)
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: krisdb on January 22, 2008, 01:16:30 PM
The sansa versio is also nearly a year younger than the iPod version. And people like you who experience problems that nobody else with the player experience rarely seem to understand that as we are not mind readers and can only fix it if you can find out enough information about it.

That's fine, except I posted this issue twice (first time over two weeks ago on the 6th http://forums.rockbox.org/index.php?topic=14796.0 and this post), and got ZERO responses.  I tried to offer as much information as I could (and tried to figure out as much as I could on my own), but it gets to a point where I couldn't give more information without some kind of proper feedback, which I didn't receive.  Even something like "we are looking into it".  I mean, yeah, I could wait a month to get some kind of feedback and another however many to pinpoint the issue, but constantly pulling the battery out of my Sansa because its crashed gets old quick.

I'm not trying to complain about Rockbox, because its free and does alot right, but its just meant as warning to anyone thinking of getting a c200 to use Rockbox's stated features (like I did), to be wary.  This is open-source software, which means its probably being developed during the developer's free time, so you won't get fixes and responses like you would with commercial software.  Just the nature of open-source software, I guess.
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: saratoga on January 22, 2008, 02:03:23 PM
Even something like "we are looking into it".  I mean, yeah, I could wait a month to get some kind of feedback and another however many to pinpoint the issue, but constantly pulling the battery out of my Sansa because its crashed gets old quick.

Can't you just reset it by holding power like on the e200?

I'm not trying to complain about Rockbox, because its free and does alot right, but its just meant as warning to anyone thinking of getting a c200 to use Rockbox's stated features (like I did), to be wary.  

In the c200 case its because its brand new.  The port was added in September, and it really is beta.  If you're expecting a polished product, you're probably a year too early.  Buy something like the Gigabeat or even e200 which have been around a bit longer or else except that you're going to be finding bugs that no one knows how to fix just yet.  

And anyway I don't think anyone ever claimed that the c200 port was particularly stable or even that it worked beyond basic playback, so I'm not sure that any warning is necessary.  It sort of goes without saying that an unfinished beta is going to have issues.
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: krisdb on January 22, 2008, 02:42:46 PM
of course, I'm not expecting a polished product, but I didn't know that playing/deleting a file constitutes an "advanced" feature.  Actually, someone did say that the c200 port worked beyond basic playback.  Specifically on the "What is Rockbox? Why should I use it?" page for your site (which I read before purchasing my Sansa):

"Rockbox for the SanDisk Sansa c200, e200 and e200R series features a large amount of plugins (games, applications and "demos") allow you to have some fun when you're bored, or put one of our multiple applications to use: open files with the text viewer, time yourself with the stopwatch, view some JPEG photos, perhaps watch a video or two, or turn your Sansa into a desktop clock with the clock plugin. Support for microSDHC cards, On-The-Go playlist creation and adjustment, full file bookmarking support, and Recording with a variety of settings and features are more key points of Rockbox for the Sansa c200 and e200 series."

Unless you consider a stopwatch and watching videos "basic" functionality.  I guess it was my mistake in assuming that, since you were able to get videos playing on the Sansa, that playing/deleting a file would work fairly well.

Holding down the power button does turn it off, but not when Rockbox freezes my Sansa up, then I have to pull the battery out.

I find it funny that I don't get any responses to my issue for over 2 weeks, but when I post I'm ditching Rockbox, I get nice prompt responses.
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: Lear on January 22, 2008, 03:06:59 PM
of course, I'm not expecting a polished product, but I didn't know that playing/deleting a file constitutes an "advanced" feature.

So you do delete the file from within Rockbox? Because I also listen to some podcasts on my e200, but I delete the old ones from the PC, and I haven't seen this problem at all. If so, it could mean there is a problem in the filesystem code in Rockbox.

Have you enabled bookmarks in any way? If set to auto-load bookmarks, it could cause somewhat unexpected behavior if you keep deleting files...

As your testing suggest that the database is somehow involved in this (though I don't see how, if you play the file through the file browser), you could try adding a file named "database.ignore" (without quotes) in the podcast directory and see if that makes any difference.

Also, when the problem appears, checking the disk from Linux could be worth a try. I had a problem on one player that scandisk didn't find, but would blue-screen Windows if I tried to delete a certain file. The Linux FAT checker fixed it for me.
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: pixelma on January 22, 2008, 03:33:35 PM
Even something like "we are looking into it".  I mean, yeah, I could wait a month to get some kind of feedback and another however many to pinpoint the issue, but constantly pulling the battery out of my Sansa because its crashed gets old quick.
Can't you just reset it by holding power like on the e200?
Yes you can power off a hanging c200 the same way as on e200 - hold power for about 15 seconds.

So you do delete the file from within Rockbox? Because I also listen to some podcasts on my e200, but I delete the old ones from the PC, and I haven't seen this problem at all. If so, it could mean there is a problem in the filesystem code in Rockbox.
I was thinking this too and wanted to suggest some proper tests - meaning repair possible file system errors, installing a fresh build and music, do what you think you did causing this problem (a week of deleting/copying or whatever files only on your Sansa) and if the same problem occurs again - check the "disk" for errors again and file a proper bug report. But then there was this statement that there were no file system errors...

I guess it was my mistake in assuming that, since you were able to get videos playing on the Sansa, that playing/deleting a file would work fairly well.
I don't do this kind of operations very often but used it sometimes and didn't have any problem with it on my c250 yet. Edit: I mean "deleting a file". ;)
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: krisdb on January 22, 2008, 04:35:35 PM
I was thinking this too and wanted to suggest some proper tests - meaning repair possible file system errors, installing a fresh build and music, do what you think you did causing this problem (a week of deleting/copying or whatever files only on your Sansa) and if the same problem occurs again - check the "disk" for errors again and file a proper bug report. But then there was this statement that there were no file system errors...

As stated, I ran a scandisk using Windows XP and received no errors.  Since my first post, two week ago, I've installed a fresh build twice and deleted files from the Sansa ONLY using Rockbox (I rarely delete files using my computer).  Approximately a week after I install a fresh build and use the Sansa normally (adding/deleting/bookmarking), I get the playback issues.

One other thing to note, I am using auto-bookmarking and I have the database set to auto-update.

Should I file a bug report?
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: MarcGuay on January 22, 2008, 04:43:14 PM
Quote from: krisdb
One other thing to note, I am using auto-bookmarking and I have the database set to auto-update.

- The Database Auto-Update is unrelated as that only affects the Database browser.
- The problem is probably the result of deleting files with bookmarks.
- Everybody knows your first post was two weeks ago.  Some people never get a reply.
- The fact that you've run into a small, weird, and rare problem while doing a small, weird, and rare task doesn't make Rockbox unusable on the c200 series, especially when there are perfectly good alternatives available (deleting the files on your PC or browsing with the Database).
- Good luck.  Hopefully someone with some bookmarking knowledge can help explain this behavior.
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: pixelma on January 22, 2008, 05:05:09 PM
Hmm, just saw MarcGuay's reply but I still think that auto-update could have an influene if it somehow alters the file(s) but I'm also confused about
Edit:  I've been playing around with trying to pinpoint this issue and it get stranger.  Its seems that the software will not recognize the files in the directory unless I do a manual update of the database (I have rockbox set to auto-update).  Even then, after an update, I have to reboot and if I try to play a file, the player will freeze and I have to take the battery out.  After doing another reboot, the files will play fine.
Are you playing the files through "File" browser (as the topic says) or "Database"?

As far as I know auto-updating the database is problematic on the Sansas and people were reporting a few issues (e.g. duplicate entries, too) - could you try without for a while? For example I don't use the database much and never auto-update only initialise again (I once tried a manual "update now" which didn't work correctly with plugged in and removing a microSD which is why I don't trust it).

I don't use even one of the two suspected features - it would really help if you could narrow the problem down with some experimentation and turning one or the other feature off and use it for a while. Hopefully you can find the problematic one.
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: Lear on January 22, 2008, 05:40:22 PM
One other thing to note, I am using auto-bookmarking and I have the database set to auto-update.

There are two parts to bookmarking, what happens on stop ("Bookmark on stop") and what happens on play ("Load last bookmark"). The way I read the above is that bookmarks are automatically created on stop, but nothing is said about what happens on play (which is the interesting bit in this case).

I tried setting "Load last bookmark" to yes in the simulator. Then stopped playback, creating a bookmark on the last file in the directory and renamed it. After that, when trying to play any file (of two) in the folder, there was some disk activity, and then nothing. Sounds very much like your problem...

Flashing the "Nothing to resume" message in this case sounds like a good idea. In fact, so good that I just committed that. Hope this fixes the problem.
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: MarcGuay on January 22, 2008, 06:41:24 PM
Hmm, just saw MarcGuay's reply but I still think that auto-update could have an influene if it somehow alters the file(s)...

Yeah doubt me all the way... I was just pointing out what I thought was the obvious truth, not something I know from digging through the code...
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: krisdb on January 22, 2008, 09:29:40 PM

There are two parts to bookmarking, what happens on stop ("Bookmark on stop") and what happens on play ("Load last bookmark"). The way I read the above is that bookmarks are automatically created on stop, but nothing is said about what happens on play (which is the interesting bit in this case).


Yes, I have bookmarks created on stop and I currently have it set to "load last bookmark".  However I had the same issue when I didn't have it set to "load last bookmark".

Now that I'm getting some decent feedback, I'm going to do another fresh install and recreate the problem.  I'm going to turn auto-update, "bookmark on stop" and "load last bookmark" off and see what happens.  I'm going to use the Sansa like I normally do, download mp3's into the /Music/Podcast directory, play them through the "File" browser (not "Database") and delete them from the Sansa directly.  If nothing happens, I will turn on each option until I recreate the issue.

Thanks for the feedback.
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: pixelma on January 24, 2008, 05:41:19 AM
Yeah doubt me all the way... I was just pointing out what I thought was the obvious truth, not something I know from digging through the code...
Apologies, I didn't mean to offend anyone, it's just that I distrust the database auto-update on devices with removeable media (my OndioFM with MMCs and the c200 with a microSD). As far as I know and was told by Slasheri this feature relied on dircache, which those devices don't have, to detect deleted files and this dependency was just removed recently and might still be buggy.

I just meant to have an eye on both (automatic bookmarking and the database auto-update). As I now realise my post wasn't very clear but I'm not a native speaker, was confused whether it's about database or file browsing, was almost finished with the reply when you posted yours and only followed my first notion that excluding this possibility was a bit too categorical, especially since bugs don't tend to be logical.

Nevermind if Lear's changes already clear things up and the problem is solved.
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: MarcGuay on January 24, 2008, 07:22:33 AM
Apologies, I didn't mean to offend anyone

You didn't offend me at all, I wasn't being sarcastic (for once)!  Sorry for the misunderstanding.  If it makes you feel any better even native English speakers have difficulty interpreting tone from words alone.
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: krisdb on January 24, 2008, 09:30:02 AM
Nevermind if Lear's changes already clear things up and the problem is solved.

I'm still testing it.  I've installed a fresh build and turned "bookmark on stop" off, "load last bookmark" off and auto-update off and am playing/deleting files through the "Files" browser like I normally would.  So far no issues, but I have a feeling once I start bookmarking/deleting, things are going to go haywire.  I'll let you know.
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: krisdb on January 30, 2008, 09:06:52 AM
Ok, I've been testing this issue out for the last week and I'm still getting the error.  I installed a fresh build, played mp3's through the File Brower, with all default settings, for a couple days and had no issues.  I then turned "bookmark on stop" on only.  That is when the weirdness started to happen.  When I powered down, I could see the "Bookmark Created" confirmation and when powering on I could see the bookmark under Recent Bookmarks, but when I manually selected it, to resume playback, it would just start at the beginning of the file.  I did this with a couple mp3s, with the same results.  I could still successfully click on any file (my original issue), under File Browser, but the file would never play from where the bookmark was created.  I then turned "Load Last Bookmark" on, and that's when my original issue was replicated.  After powering down, creating a bookmark, powering on, then trying to play the bookmark, I could no longer play any file, using the File Browser, and it would only flash the "Nothing to Resume" message.  So, here is a breakdown:

Default Settings
- no issues

Bookmark on Stop on
- file would not resume

Bookmark on Stop/Load Last Bookmark on
- file would not resume
- unable to play any file, in directory, using File Browser

The only thing I didn't turn on, during testing, was "Resume Playback" for the start screen, which I usually have on.

As far as I can tell, there something wonky with the bookmarking and play files through the File Browser, but my knowledge is limited.

Thanks for any help.
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: Lear on January 31, 2008, 01:06:11 AM
That is when the weirdness started to happen.  When I powered down, I could see the "Bookmark Created" confirmation and when powering on I could see the bookmark under Recent Bookmarks, but when I manually selected it, to resume playback, it would just start at the beginning of the file.

This sounds like a different problem, that I've heard happens on recent builds.

Quote
I then turned "Load Last Bookmark" on, and that's when my original issue was replicated.  After powering down, creating a bookmark, powering on, then trying to play the bookmark, I could no longer play any file, using the File Browser, and it would only flash the "Nothing to Resume" message.

Just making sure here... After enabling "Load Last Bookmark", did you delete any file before the problem started? Could you attach/PM me the full path to the folder, the name of all files in it, as well as the .bmark file for that folder? That could give some ideas on what is going on...

Regardless, the current behavior isn't very good. If "Load Last Bookmark" can't find the file to resume, it should play the selected file instead, I think. Setting "Load Last Bookmark" set to "Ask" would avoid this problem, by the way.

Quote
Bookmark on Stop on
- file would not resume

This should not happen with a build from Jan 18 or before...
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: krisdb on January 31, 2008, 10:18:45 AM
Just making sure here... After enabling "Load Last Bookmark", did you delete any file before the problem started? Could you attach/PM me the full path to the folder, the name of all files in it, as well as the .bmark file for that folder? That could give some ideas on what is going on...

I'm trying to think, but I don't think I deleted a file before creating the first bookmark and trying to load it, after turning "Load Last Bookmark" on.  I'm sure I turned "Load Last Bookmark" on, created a bookmark and tried to load it, before deleting a file.

I'll have to get you the .bmark file and folder path when I get to my home computer, since I don't have my USB cable with me.  It should be fairly easy to recreate it since I've probably done 4 fresh build installs and have been able to recreate the problem everytime.  Just load a bunch of mp3s into a directory under Music, play a file through the "File Browser", bookmark it, reboot and try to play the bookmark.  If that works, try bookmarking a file, deleting the file, play a different file and bookmark that one and try to load the new bookmark.  I'm trying to find a pattern to make it easier to debug, the closest I can get is trying this.

Edit: I attached my bookmark file (changed the extenstion to .txt so it will upload).  The full path to the folder is: L:\MUSIC\Podcasts.  I currently only have one file in there called 'wiik-in-review-12508.mp3', which does not resume when I try to play its bookmark and flashes "Nothing to Resume" when I click on it manually.

Edit2: This thing is so jacked.  So I only had the 'wiik-in-review-12508.mp3' file in the Podcast directory.  I just added two new mp3s, when I booted up my Sansa, instead of resuming 'wiik-in-review-12508.mp3' where I left off, it started to play one of the new mp3s.  When I tried to manually select the 'wiik-in-review-12508.mp3' file, the Sansa froze and I had to hold down the power button for 15s to reboot it.  When it hangs, it doesn't show any of the normal file info on the WPS. It shows (root) (root) 0:00/0:00 ?kBit (no id3), where the normal file information is displayed.  Rebooting once, allows me to play the 'wiik-in-review-12508.mp3' and I can move left and right to select the new mp3s, like it should.  If I try to go through the 'File Browser' to manually select an mp3, the Sansa hangs again and shows the WPS without the ID3 info.
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: cdurst on January 31, 2008, 06:12:52 PM
Could you try "downgrading" to r16099-20080118 and see if the bookmarking starts working again?

If so, perhaps this bug is the same one as reported in FS#8511(http://www.rockbox.org/tracker/task/8511).
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: krisdb on February 04, 2008, 10:02:52 AM
Could you try "downgrading" to r16099-20080118 and see if the bookmarking starts working again?

If so, perhaps this bug is the same one as reported in FS#8511(http://www.rockbox.org/tracker/task/8511).


Downgrading didn't work, but that bug looks a different than the one I'm experiencing.
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: pokeme444 on February 05, 2008, 01:43:59 AM
tendinitis, can't tyupe much but
bug is killing me! some audiobooks affected, others not!
can't dig code, BUT

diff shows this function changed from

/trunk/apps/tree.c
/*    
     * removes the extension of filename (if it doesn't start with a .)    
     * puts the result in buffer    
     */    
    static char * strip_extension(char * filename, char * buffer)    
    {    
        int dotpos;    
        char * dot=strrchr(filename, '.');    
        if(dot!=0 && filename[0]!='.')    
        {    
            dotpos = dot-filename;    
            strncpy(buffer, filename, dotpos);    
            buffer[dotpos]='\0';    
            return(buffer);    
        }    
        else    
            return(filename);    
    }

to

trunk/apps/misc.c
 /*
1125           * removes the extension of filename (if it doesn't start with a .)
1126           * puts the result in buffer
1127           */
1128          char *strip_extension(const char *filename, char *buffer)
1129          {
1130              int dotpos;
1131              char *dot = strrchr(filename, '.');
1132              if (dot != 0 && filename[0] != '.')
1133              {
1134                  dotpos = dot - filename;
1135                  strncpy(buffer, filename, dotpos);
1136                  buffer[dotpos] = '\0';
1137              }
1138              else
1139                  strcpy(buffer, filename);
1140              return buffer;
1141          }



it seems a likely culprit for a subtle bug like this, especially with this code in the albumart;

http://svn.rockbox.org/viewvc.cgi/trunk/apps/recorder/albumart.c?r1=16102&r2=16103

someone could revert those changes and test whose hands work?
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: GodEater on February 05, 2008, 02:35:56 AM
I'd be pretty surprised if that's the problem - the code wasn't changed much (only two lines, and they're trivial), and was moved from one source file to another.
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: Lear on February 05, 2008, 04:03:39 AM
I'd be pretty surprised if that's the problem - the code wasn't changed much (only two lines, and they're trivial), and was moved from one source file to another.

Actually, that change can cause problems, though it isn't very likely to. With a file where the full path is more than 250 bytes (exact size depends on album art size), then the strip_extension call in albumart.c can cause a buffer overflow...

I intend to fix that, but I haven't gotten around to it yet. :)
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: pokeme444 on February 05, 2008, 02:16:43 PM
please do!
i will test if you want
can't type much or i'd do it myself
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: krisdb on February 06, 2008, 01:51:19 PM
I just ran across these bug submission in the bug tracker.  

This one seems to be a similar issue, so maybe its not limited to the Sansa c200 build:

http://www.rockbox.org/tracker/task/5072

The only difference with mine and the 1st comment, is I cannot manually select the bookmark to resume, as my player hangs if I try that.

This one is also similar:
http://www.rockbox.org/tracker/task/8215

The issue seems to be auto-bookmarking using the File View and maybe its not so "subtle" and "rare" as has been previously hinted at.
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: Lear on February 06, 2008, 04:29:06 PM
I just ran across these bug submission in the bug tracker.  

This one seems to be a similar issue, so maybe its not limited to the Sansa c200 build:

http://www.rockbox.org/tracker/task/5072

The only difference with mine and the 1st comment, is I cannot manually select the bookmark to resume, as my player hangs if I try that.

The original bug is completely different (a known limitation in the bookmarking code), but the first comment is similar, yes. Don't understand why your player hangs though.

Quote
This one is also similar:
http://www.rockbox.org/tracker/task/8215

Not really... :)

Quote
The issue seems to be auto-bookmarking using the File View and maybe its not so "subtle" and "rare" as has been previously hinted at.

I think your case is a bit unusual in that not many users set Load Last Bookmark to yes and then go about deleting the files that would be resumed. That would explain why it hasn't been noticed before (that I've heard about at least).

Anyway, I think that it would be better to just load the selected file when the bookmarked file couldn't be found, at least with Load Last Bookmark set to yes. If set to ask, that could be a bit strange though...
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: krisdb on February 06, 2008, 05:28:43 PM
I'm not saying those other bugs are exactly like the one I'm getting, I'm saying they are similar, in that they are having issues with bookmarking using the File Viewer.

I think your case is a bit unusual in that not many users set Load Last Bookmark to yes and then go about deleting the files that would be resumed.

I don't bookmark a file, then delete the file.  I bookmark a file, then delete a different file in the same directory.  Usually a file I delete, I've previously bookmarked, but I've never deleted a file I intend to playback.
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: pokeme444 on February 07, 2008, 01:21:34 AM
im running sansa e200
it happen when I delete/add portions of audiobook split into 100+ files
moving it, renaming them...they nmo longer bookmark right
start at right time, then go to beginning
also sometimes after this bug starts it randomly skips some when playing sequentially for no reason
books will work, then not work later
sometimes when resuming bookmark while something else playing, player locks up& hard restart needed
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: pondlife on February 07, 2008, 04:15:11 AM
If I understand correctly, part of the bookmark is the index of the file in the directory - e.g. "4th file in directory".  So if you delete or add files to a directory then any bookmark to files in that directory is no longer valid.

I guess we should be storing the filename rather than this index.  When resuming, if the filename is present in a bookmark, use that in preference to the index, so we maintain compatibility with old bookmarks.

pondlife
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: Lear on February 07, 2008, 11:01:54 AM
If I understand correctly, part of the bookmark is the index of the file in the directory - e.g. "4th file in directory".  So if you delete or add files to a directory then any bookmark to files in that directory is no longer valid.

I guess we should be storing the filename rather than this index.  When resuming, if the filename is present in a bookmark, use that in preference to the index, so we maintain compatibility with old bookmarks.

It already works like this. Rockbox first checks the name of the indexed file. If the name (which is stored in the bookmark) doesn't match, the directory is searched for that file. If found, it is resumed, otherwise playback is not started.

The last bit is, as far as I can tell, the root cause for this thread. If Load Last Bookmark is set to yes, and the most recent bookmark for a directory refers to a file that doesn't exist, you can't play any file in that directory.
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: krisdb on February 11, 2008, 10:41:03 PM
The last bit is, as far as I can tell, the root cause for this thread. If Load Last Bookmark is set to yes, and the most recent bookmark for a directory refers to a file that doesn't exist, you can't play any file in that directory.

I can't speak for anyone else who maybe having this issue, but I guarantee, I never have a bookmark that refers to a file that I don't intend to playback.  That is, I would never click on a bookmark to a file that doesn't exists.  I do have bookmarks the refer to files that I've deleted, but I would never use those.

Just an update on the status, bookmarks completely do not work at all at this point.  They are created fine, I can see the timestamp from when they were created.  When I first boot up my Sansa in the morning and try to play the last bookmark, the WPS will show the empty ID3 info, then hang.  If I try to hold the power button down for 15s, I will get the message "Shutting down..." and it hangs again.  Holding down for another 15s will allow the player to reboot.  Upon rebooting, I am able to play files, but clicking on the latest bookmark doesn't work, nor does clicking on a file through the File Browser ("nothing to resume").  The only way to play files through the File Browser, is to manually add each file to a playlist, and then play them.
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: Lear on February 12, 2008, 12:57:18 AM
Have you tried the Feb 11 (or later) daily build? It should only show the "Nothing to resume" message if you select a bookmark for a non-existing file in the bookmark selection screen.
Title: Re: Can't play mp3s through 'Files' option (Sansa c200)
Post by: krisdb on February 12, 2008, 09:35:39 AM
Yeah, I get that message.  I'm not sure why I get it for brand new file I've added, but I get it.

Don't worry about this issue anymore, you can lock or close this thread if you want.  I'm guessing this probably won't get fixed anytime soon and I've sorta gotten used to it.  I just manually add each new file to a playlist.  The only thing that really sucks, is that the bookmarks don't work at all, but I can see the timestamp when they were created, and I just manually fast-forward to that position.

Thanks for, at least responding, so I know it not any easy issue to fix.

PS: I love Llorean!