Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: console writes could be neater (Read 1078 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

console writes could be neater

I have had a lot of problems here and after much stuffing around I have finally figured out the problem. While the problem is mine to own, the way foobar deals with the problem is not really all that good... here's my encounter:

During the evening I had to unshare and reshare the drive my music is located on (it's on a mapped network drive - with full write access <- Normally!) What I didn't realise is that once reshared it doesn't reshare as standard with write privs. Foobar apparently was cueing the writes back to the mp3's to be done at a later time. But due to crashes and the like, it wasn't happening. On other exits, the iformation was just getting culled and (I think this was the cause of my) metadb_handle leaks resulted. I have rebooted the server, and checked the write priv's and everything seems to be fine now.

What I suggest is:

1) foobar warns you of pending writes before closing

2) pending writes are saved somewhere to be done next time it runs

  ^^      I think this is pretty important      ^^
  ^^ especially since i lost 15000+ writes! ^^

3) (a side issue but) have the console window report failed writes in a more standardised format. What I mean by this is don't just have a message that says "attempting to edit..." and then not report the result, if it's still in the cue, then say so.

On this last point, possibly a better way to handle the console is to report on success/failure on the same line by appending something suitable. I would like to propose the following by way of example. Here is the console as reported from my current session which is where I noticed the sharing issue:

Code: [Select]
INFO (CORE) : startup time: 16812 ms
INFO (CORE) : opening file for playback :
INFO (CORE) : location: "file://M:\Adam Harvey\Workin' Overtime\01 - The House That Jack Built.mp3" (0)
INFO (CORE) : attempting to edit file info : file://M:\Adam Harvey\Workin' Overtime\01 - The House That Jack Built.mp3
INFO (CORE) : file info update pending / file busy on : file://M:\Adam Harvey\Workin' Overtime\01 - The House That Jack Built.mp3
INFO (foo_playcount) : File busy, update queued.
INFO (CORE) : attempting to edit file info : file://M:\Adam Harvey\Workin' Overtime\01 - The House That Jack Built.mp3
INFO (CORE) : opening file for playback :
INFO (CORE) : location: "file://M:\_Compilations\100% HITS 7\ORDINARY WORLD.MP3" (0)
INFO (CORE) : attempting to edit file info : file://M:\Adam Harvey\Workin' Overtime\01 - The House That Jack Built.mp3
INFO (CORE) : attempting to edit file info : file://M:\_Compilations\100% HITS 7\ORDINARY WORLD.MP3
INFO (CORE) : file info update pending / file busy on : file://M:\_Compilations\100% HITS 7\ORDINARY WORLD.MP3
INFO (foo_playcount) : File busy, update queued.
INFO (CORE) : attempting to edit file info : file://M:\Adam Harvey\Workin' Overtime\01 - The House That Jack Built.mp3
INFO (CORE) : attempting to edit file info : file://M:\_Compilations\100% HITS 7\ORDINARY WORLD.MP3
INFO (CORE) : opening file for playback :
INFO (CORE) : location: "file://M:\_Compilations\1980-87 The Big #1's vol II\MICKEY.MP3" (0)
INFO (CORE) : attempting to edit file info : file://M:\Adam Harvey\Workin' Overtime\01 - The House That Jack Built.mp3
INFO (CORE) : attempting to edit file info : file://M:\_Compilations\100% HITS 7\ORDINARY WORLD.MP3
INFO (CORE) : attempting to edit file info : file://M:\_Compilations\1980-87 The Big #1's vol II\MICKEY.MP3
INFO (CORE) : file info update pending / file busy on : file://M:\_Compilations\1980-87 The Big #1's vol II\MICKEY.MP3
INFO (foo_playcount) : File busy, update queued.
INFO (CORE) : attempting to edit file info : file://M:\Adam Harvey\Workin' Overtime\01 - The House That Jack Built.mp3
INFO (CORE) : attempting to edit file info : file://M:\_Compilations\100% HITS 7\ORDINARY WORLD.MP3
INFO (CORE) : attempting to edit file info : file://M:\_Compilations\1980-87 The Big #1's vol II\MICKEY.MP3
INFO (CORE) : opening file for playback :
INFO (CORE) : location: "file://M:\_Compilations\1980-87 The Big #1's vol II\SHOUT.MP3" (0)
INFO (CORE) : attempting to edit file info : file://M:\Adam Harvey\Workin' Overtime\01 - The House That Jack Built.mp3
INFO (CORE) : attempting to edit file info : file://M:\_Compilations\100% HITS 7\ORDINARY WORLD.MP3
INFO (CORE) : attempting to edit file info : file://M:\_Compilations\1980-87 The Big #1's vol II\MICKEY.MP3
INFO (CORE) : attempting to edit file info : file://M:\_Compilations\1980-87 The Big #1's vol II\SHOUT.MP3
INFO (CORE) : file info update pending / file busy on : file://M:\_Compilations\1980-87 The Big #1's vol II\SHOUT.MP3
INFO (foo_playcount) : File busy, update queued.
INFO (CORE) : attempting to edit file info : file://M:\Adam Harvey\Workin' Overtime\01 - The House That Jack Built.mp3
INFO (CORE) : file info update successful on : file://M:\Adam Harvey\Workin' Overtime\01 - The House That Jack Built.mp3
INFO (CORE) : attempting to edit file info : file://M:\_Compilations\100% HITS 7\ORDINARY WORLD.MP3
INFO (CORE) : file info update successful on : file://M:\_Compilations\100% HITS 7\ORDINARY WORLD.MP3
INFO (CORE) : attempting to edit file info : file://M:\_Compilations\1980-87 The Big #1's vol II\MICKEY.MP3
INFO (CORE) : file info update successful on : file://M:\_Compilations\1980-87 The Big #1's vol II\MICKEY.MP3
INFO (CORE) : attempting to edit file info : file://M:\_Compilations\1980-87 The Big #1's vol II\SHOUT.MP3
INFO (CORE) : file info update successful on : file://M:\_Compilations\1980-87 The Big #1's vol II\SHOUT.MP3
INFO (CORE) : opening file for playback :
INFO (CORE) : location: "file://M:\_Compilations\1980-87 The Big #1's vol II\TAINTED LOVE.MP3" (0)
INFO (CORE) : attempting to edit file info : file://M:\_Compilations\1980-87 The Big #1's vol II\TAINTED LOVE.MP3
INFO (CORE) : file info update pending / file busy on : file://M:\_Compilations\1980-87 The Big #1's vol II\TAINTED LOVE.MP3
INFO (foo_playcount) : File busy, update queued.
INFO (CORE) : opening file for playback :
INFO (CORE) : location: "file://M:\_Compilations\1980-87 The Big #1's vol II\THAT'S WHAT FRIENDS ARE FOR.MP3" (0)
INFO (CORE) : attempting to edit file info : file://M:\_Compilations\1980-87 The Big #1's vol II\TAINTED LOVE.MP3
INFO (CORE) : file info update successful on : file://M:\_Compilations\1980-87 The Big #1's vol II\TAINTED LOVE.MP3
INFO (CORE) : attempting to edit file info : file://M:\_Compilations\1980-87 The Big #1's vol II\THAT'S WHAT FRIENDS ARE FOR.MP3
INFO (CORE) : file info update pending / file busy on : file://M:\_Compilations\1980-87 The Big #1's vol II\THAT'S WHAT FRIENDS ARE FOR.MP3
INFO (foo_playcount) : File busy, update queued.
INFO (CORE) : opening file for playback :
INFO (CORE) : location: "file://M:\_Compilations\'87 Right on Track\MIDNIGHT BLUE.MP3" (0)
INFO (CORE) : attempting to edit file info : file://M:\_Compilations\1980-87 The Big #1's vol II\THAT'S WHAT FRIENDS ARE FOR.MP3
INFO (CORE) : file info update successful on : file://M:\_Compilations\1980-87 The Big #1's vol II\THAT'S WHAT FRIENDS ARE FOR.MP3
INFO (CORE) : attempting to edit file info : file://M:\_Compilations\'87 Right on Track\MIDNIGHT BLUE.MP3
INFO (CORE) : file info update pending / file busy on : file://M:\_Compilations\'87 Right on Track\MIDNIGHT BLUE.MP3
INFO (foo_playcount) : File busy, update queued.


What I propose is to report tot he console in this manner

Code: [Select]
INFO (CORE) : startup time: 16812 ms
INFO (CORE) : opening file for playback :
INFO (CORE) : location: "file://M:\Adam Harvey\Workin' Overtime\01 - The House That Jack Built.mp3" (0)
INFO (CORE) : editing : "file://M:\Adam Harvey\Workin' Overtime\01 - The House That Jack Built.mp3" <<< *** FAILED / PENDING ***
INFO (foo_playcount) : File busy, update queued.
INFO (CORE) : editing : "file://M:\Adam Harvey\Workin' Overtime\01 - The House That Jack Built.mp3" <<< STILL PENDING
INFO (CORE) : opening file for playback :
INFO (CORE) : location: "file://M:\_Compilations\100% HITS 7\ORDINARY WORLD.MP3" (0)
INFO (CORE) : editing : "file://M:\Adam Harvey\Workin' Overtime\01 - The House That Jack Built.mp3" <<< STILL PENDING
INFO (CORE) : editing : "file://M:\_Compilations\100% HITS 7\ORDINARY WORLD.MP3" <<< *** FAILED / PENDING
INFO (foo_playcount) : File busy, update queued.
INFO (CORE) : editing : "file://M:\Adam Harvey\Workin' Overtime\01 - The House That Jack Built.mp3" <<< STILL PENDING
INFO (CORE) : editing : "file://M:\_Compilations\100% HITS 7\ORDINARY WORLD.MP3" <<< STILL PENDING
INFO (CORE) : opening file for playback :
INFO (CORE) : location: "file://M:\_Compilations\1980-87 The Big #1's vol II\MICKEY.MP3" (0)
INFO (CORE) : editing : "file://M:\Adam Harvey\Workin' Overtime\01 - The House That Jack Built.mp3" <<< STILL PENDING
INFO (CORE) : editing : "file://M:\_Compilations\100% HITS 7\ORDINARY WORLD.MP3" <<< STILL PENDING
INFO (CORE) : editing : "file://M:\_Compilations\1980-87 The Big #1's vol II\MICKEY.MP3" <<< *** FAILED / PENDING
INFO (foo_playcount) : File busy, update queued.
INFO (CORE) : editing : "file://M:\Adam Harvey\Workin' Overtime\01 - The House That Jack Built.mp3" <<< STILL PENDING
INFO (CORE) : editing : "file://M:\_Compilations\100% HITS 7\ORDINARY WORLD.MP3" <<< STILL PENDING
INFO (CORE) : editing : "file://M:\_Compilations\1980-87 The Big #1's vol II\MICKEY.MP3" <<< STILL PENDING
INFO (CORE) : opening file for playback :
INFO (CORE) : location: "file://M:\_Compilations\1980-87 The Big #1's vol II\SHOUT.MP3" (0)
INFO (CORE) : editing : "file://M:\Adam Harvey\Workin' Overtime\01 - The House That Jack Built.mp3" <<< STILL PENDING
INFO (CORE) : editing : "file://M:\_Compilations\100% HITS 7\ORDINARY WORLD.MP3" <<< STILL PENDING
INFO (CORE) : editing : "file://M:\_Compilations\1980-87 The Big #1's vol II\MICKEY.MP3" <<< STILL PENDING
INFO (CORE) : editing : "file://M:\_Compilations\1980-87 The Big #1's vol II\SHOUT.MP3" <<< *** FAILED / PENDING
INFO (foo_playcount) : File busy, update queued.
INFO (CORE) : editing : "file://M:\Adam Harvey\Workin' Overtime\01 - The House That Jack Built.mp3" <<< SUCCESS
INFO (CORE) : editing : "file://M:\_Compilations\100% HITS 7\ORDINARY WORLD.MP3" <<< SUCCESS
INFO (CORE) : editing : "file://M:\_Compilations\1980-87 The Big #1's vol II\MICKEY.MP3" <<< SUCCESS
INFO (CORE) : editing : "file://M:\_Compilations\1980-87 The Big #1's vol II\SHOUT.MP3" <<< SUCCESS
INFO (CORE) : opening file for playback :
INFO (CORE) : location: "file://M:\_Compilations\1980-87 The Big #1's vol II\TAINTED LOVE.MP3" (0)
INFO (CORE) : editing : "file://M:\_Compilations\1980-87 The Big #1's vol II\TAINTED LOVE.MP3" <<< *** FAILED / PENDING
INFO (foo_playcount) : File busy, update queued.
INFO (CORE) : opening file for playback :
INFO (CORE) : location: "file://M:\_Compilations\1980-87 The Big #1's vol II\THAT'S WHAT FRIENDS ARE FOR.MP3" (0)
INFO (CORE) : editing : "file://M:\_Compilations\1980-87 The Big #1's vol II\TAINTED LOVE.MP3" <<< SUCCESS
INFO (CORE) : editing : "file://M:\_Compilations\1980-87 The Big #1's vol II\THAT'S WHAT FRIENDS ARE FOR.MP3" <<< FAILED / PENDING
INFO (foo_playcount) : File busy, update queued.
INFO (CORE) : opening file for playback :
INFO (CORE) : location: "file://M:\_Compilations\'87 Right on Track\MIDNIGHT BLUE.MP3" (0)
INFO (CORE) : editing : "file://M:\_Compilations\1980-87 The Big #1's vol II\THAT'S WHAT FRIENDS ARE FOR.MP3" <<< SUCCESS
INFO (CORE) : editing : "file://M:\_Compilations\'87 Right on Track\MIDNIGHT BLUE.MP3" <<< FAILED / PENDING
INFO (foo_playcount) : File busy, update queued.

I can only imagine what my console must have looked like this morning when there were 15000 pending writes!

I've wasted too much of your time here as it is... I just think the console window could have a slightly better formatted output. As a programmer, I know what is involved, I know it's only a stdout, but it's still possible.