HydrogenAudio

Hosted Forums => foobar2000 => Support - (fb2k) => Topic started by: Hullubullu on 2010-01-10 14:41:21

Title: [intended behavior]Tries to play files on non-present locations
Post by: Hullubullu on 2010-01-10 14:41:21
Foobar2000 v1.0 will try to play files located on media not present on the system .

I have about 300GB music in various lossless formats on a disk that is only present on the system when I decide so .
After installing foobar2000 v1.0 I forgot to mount the disk before selecting "Play random",
foobar then runs trough the entire collection and tries to play files on media that is not present.
Foobar should detect that the location is not available and throw some error-message instead of trying to play what isn't there .
( all files are displayed in the "Album list" so I can browse by directory-structure btw. I don't have other playlists at all)

Code: [Select]
Core (2010-01-09 12:47:00)
    foobar2000 core 1.0
foo_abx.dll (2009-06-07 14:25:26)
    ABX Comparator 1.3.4
foo_albumlist.dll (2010-01-09 12:44:46)
    Album List 4.4
foo_cdda.dll (2010-01-09 12:44:42)
    CD Audio Decoder 3.0
foo_converter.dll (2010-01-09 12:44:32)
    Converter 1.4
foo_dsp_std.dll (2010-01-09 12:44:48)
    Standard DSP Array 1.0
foo_input_alac.dll (2009-03-22 15:15:46)
    ALAC Decoder 1.0.3
foo_input_monkey.dll (2009-05-01 14:40:52)
    Monkey's Audio Decoder 2.1.4
foo_input_shorten.dll (2009-11-15 21:46:36)
    Shorten decoder 0.4.2.2
foo_input_std.dll (2010-01-09 12:44:24)
    Standard Input Array 1.0
foo_out_asio.dll (2009-03-22 15:15:46)
    ASIO support 1.2.7
foo_out_wasapi.dll (2009-05-19 22:45:18)
    WASAPI output support 2.1
foo_rgscan.dll (2010-01-09 12:44:24)
    ReplayGain Scanner 2.0.9
foo_ui_columns.dll (2010-01-05 23:03:59)
    Columns UI 0.3.8.2
foo_ui_std.dll (2010-01-09 12:44:52)
    Default User Interface 0.9.5
foo_uie_albumlist.dll (2009-06-13 23:49:19)
    Album list panel 0.3.5
_________________________________________________________

foo_uie_vis_peakmeter_spectrum.dll (2008-04-19 20:18:50)
    Peakmeter Spectrum Visualisation 0.2.0.0 beta

I realize it's a third-party component but still : It would be nice if I was allowed to decide to take my chances anyway,
I NEED this component, it's a major reason for why I selected foobar over all the other players .
Anyway I can get it to load  ?

[!--sizeo:1--][span style=\"font-size:8pt;line-height:100%\"][!--/sizeo--]Moderation: Codeboxed the components list.[/size]
Title: [intended behavior]Tries to play files on non-present locations
Post by: shakey_snake on 2010-01-10 14:51:26
Foobar2000 v1.0 will try to play files located on media not present on the system .

I have about 300GB music in various lossless formats on a disk that is only present on the system when I decide so .
After installing foobar2000 v1.0 I forgot to mount the disk before selecting "Play random",
foobar then runs trough the entire collection and tries to play files on media that is not present.
Foobar should detect that the location is not available and throw some error-message instead of trying to play what isn't there .
Just press the stop button. There's not really a way for fb2k to determine that the next N items in the playlist are all from the same volume without trying to play them and giving you the same "Unable to open location" error.



Title: [intended behavior]Tries to play files on non-present locations
Post by: carmenm on 2010-01-10 16:08:32
I wish we had a "removable device" feature. That way when media library source is not available, tracks from it doesnt appear as part of the library. I facing that problem everyday as i am using the same foobar installation on 2 computers with 2 different media library sources.
Title: [intended behavior]Tries to play files on non-present locations
Post by: thecircusfreak on 2010-01-10 17:19:28
Althought i have tested it  without any 3rd parties yet, random playing non existent files causes foobar2000 to freeze on my one-core system, i m not able to press stop without killing it.
Title: [intended behavior]Tries to play files on non-present locations
Post by: Hullubullu on 2010-01-10 18:03:08
I have ONE (1) music-DIR, "I:\Music" .
Are you telling me foobar is to stupid to realize that "I:" is not present on the system ? And that it's intended behaviour ?
I have NEVER experienced this in any other application.

Know what ? Just forget it, I'll upgrade to 0.9.6.9 until I find something else, maybe something that can figure out on it's own that a sub-dir named "Artwork"
contains ....ARTWORK and display it without me having to learn yet another scripting-language ..
Title: [intended behavior]Tries to play files on non-present locations
Post by: q_b6 on 2010-01-10 19:01:01
Althought i have tested it  without any 3rd parties yet, random playing non existent files causes foobar2000 to freeze on my one-core system, i m not able to press stop without killing it.

Same situation @ Intel core duo system ...
I preform a 'Move' operation on my entire library, then somehow fb2k crashes (due to 3rd plugin)
When I restart fb2k, all songs have wrong file locations (due to crash and unsaved library), fb2k start to play all these non-existed tracks (I use 'shuffle(track)' play order), and Console window popups.
I just can't close the Console window nor press the stop or pause button .... finally fb2k crashed (may due to 3rd plugin)

Hope fb2k provide a 'Stop after [ n ] error tracks' option at Advanced preferences 
Title: [intended behavior]Tries to play files on non-present locations
Post by: NEOhidra on 2010-01-10 19:17:31
Stop after [ n ] errors is a feature that i would like to use - i have a laptop and two external hdds - if i go somewhere its impossible to for me to press stop - its unpleasant. "Stop after n" - or "Try with to play a song from different drive after n errors" is something that will be useful to me - rarely but very useful.
Title: [intended behavior]Tries to play files on non-present locations
Post by: Gapkiller on 2010-01-10 19:48:11
Stop after [ n ] errors is a feature that i would like to use...


me too!
Title: [intended behavior]Tries to play files on non-present locations
Post by: thecircusfreak on 2010-01-10 20:04:34
Actually I think there was  a feature like this, because  "repeat track" on non existent track, after several loops, stopped execution.

Unfortunately I  had a regression  and after v1.0betas  , even this doesnt work, thats why I m puzzled if  foobar core is really the one to blame.
Title: [intended behavior]Tries to play files on non-present locations
Post by: shakey_snake on 2010-01-10 20:53:50
Althought i have tested it  without any 3rd parties yet, random playing non existent files causes foobar2000 to freeze on my one-core system, i m not able to press stop without killing it.
Guess:
Remove foo_uie_biography and/or tell foo_jesus not to save on every track change.

I have ONE (1) music-DIR, "I:\Music" .
Are you telling me foobar is to stupid to realize that "I:" is not present on the system ? And that it's intended behaviour ?
Of course it realizes I: is not on the system, that's why it's giving you the "Unable to open item for playback (Object not found)" error.

Know what ? Just forget it, I'll upgrade to 0.9.6.9 until I find something else, maybe something that can figure out on it's own that a sub-dir named "Artwork"
contains ....ARTWORK and display it without me having to learn yet another scripting-language ..
How is adding artwork\ to the beginning of a search pattern too difficult for you?

If your attitude is always this bad, please use another piece of software so I no longer have to read your posts anymore.
Title: [intended behavior]Tries to play files on non-present locations
Post by: Case on 2010-01-10 21:09:18
Here's an experimental component that should fix your infinite looping issues: stop on error (http://www.saunalahti.fi/~cse/foobar2000/foo_stop_on_error.zip).
Title: [intended behavior]Tries to play files on non-present locations
Post by: thecircusfreak on 2010-01-11 00:04:33
Quote
Although i havent tested it without any 3rd parties yet, random playing non existent files causes foobar2000 to freeze on my one-core system, i m not able to press stop without killing it.

I just isolated it, in my case foo_uie library tree(same author of biography view) was causing the problem.

It was a bit of surprise because i just use this plugin just a couple of months while I am  encountering this problem for ages, probably by other plugins I dont use anymore(among others the biography view).

I m glad I  busted it, thanks @snake for the hint and sorry for slightly hijacking the topic!
Title: [intended behavior]Tries to play files on non-present locations
Post by: NEOhidra on 2010-01-14 08:50:33
Here's an experimental component that should fix your infinite looping issues: stop on error (http://www.saunalahti.fi/~cse/foobar2000/foo_stop_on_error.zip).


Thank you Case for this component. It works - but not and if you:
1. Exit F2k while playing a song from external source
2. Eject the source using its context menu from My computer (but leave it connected to the PC)
3. Start F2k
But now with v1.0 it isn't such a problem because now i can stop F2k. It isn't actually a problem but just to report it.
Title: [intended behavior]Tries to play files on non-present locations
Post by: odyssey on 2010-01-14 11:34:06
I wish we had a "removable device" feature. That way when media library source is not available, tracks from it doesnt appear as part of the library. I facing that problem everyday as i am using the same foobar installation on 2 computers with 2 different media library sources.

I've been thinking the same thing.
Title: [intended behavior]Tries to play files on non-present locations
Post by: marc2003 on 2010-01-14 12:34:04
if i had 2 sources like that, i'd create an album list branch or facet/filter panel at the top level to separate them

Code: [Select]
$left(%path%,2)


to show the drive letter for example.
Title: [intended behavior]Tries to play files on non-present locations
Post by: Case on 2010-01-14 16:33:49
Thanks for reporting, NEOhidra. Uploaded a fixed version.
Title: Re: [intended behavior]Tries to play files on non-present locations
Post by: Sickid on 2018-05-05 05:21:40
This plug-in does not work when playing an unsupported format.
Title: Re: [intended behavior]Tries to play files on non-present locations
Post by: Case on 2018-05-05 15:21:51
I was silly and thought it couldn't be done. I have just uploaded a new version that handles this scenario.
Title: Re: [intended behavior]Tries to play files on non-present locations
Post by: Sickid on 2018-05-05 17:35:26
I just installed the plug-in RAM-Disk.
When I accidentally play the track that does not exist in RAM-Disc, FB2K began to try again and again.
Title: Re: [intended behavior]Tries to play files on non-present locations
Post by: Case on 2018-05-06 11:27:36
Freshly released version 0.6 of the component should now be able to stop playback in all kinds of error cases.
Title: Re: [intended behavior]Tries to play files on non-present locations
Post by: LL25255252 on 2018-05-08 12:15:21
@Case , Can you please also stop playback of dead radio streams?

For example, I sometimes listen to this A-RnB-FM-WEB1 station.
They used to stream at :
http://streaming206.radionomy.com/A-RnB-FM-WEB1
but now they changed the URL to :
http://streaming208.radionomy.com/A-RnB-FM-WEB1
Before I noticed it I clicked on the "OLD" stream and foobar  was "stuck" during almost 45 seconds with a "Starting Playback..." message on the status bar before displaying "Unable to open item for playback (Connection error):" Error and starting to play the next item on the playlist.

Can you please stop the playback in this case like you stop the playback on a dead mp3 ?

I attached here a playlist (m3u) of some radio stations including the "dead" URL stream.

Foobar v1.4 beta 11
Stop on Error 0.6
Win 7 x64
Thanks in advance.
Title: Re: [intended behavior]Tries to play files on non-present locations
Post by: LL25255252 on 2018-05-08 14:33:54
(update to my previous post) :

Foobar doesn't stuck on all "dead" streams. On some streams like the 2 streams on my second attachment the error comes quickly and foobar continues to the next item on the playlist.
Title: Re: [intended behavior]Tries to play files on non-present locations
Post by: Case on 2018-05-08 17:28:34
The purpose of this component was originally to prevent foobar2000 from hanging. With slow operations there's no fear of that.

That said I took a look at the problem and unfortunately my component can't help here. The callback I use is called only after the core has tried opening the stream for 20 seconds and given up. It's up to Peter to improve the behavior here.
Title: Re: [intended behavior]Tries to play files on non-present locations
Post by: Sergey77 on 2018-05-23 17:21:26
Hello All!

It would be nice if the foobar2000 show "dead" links (or unknown format files) at playlists as on the attached picture (just cross out them)
Maybe Peter or other developers will draw the attention on this.

Thanks.
Title: Re: [intended behavior]Tries to play files on non-present locations
Post by: Sergey77 on 2018-06-18 20:18:34
Hi!
@Case,
maybe can you add function for component Stop on Error (https://www.foobar2000.org/components/view/foo_stop_on_error) to generate the field name <ERROR> in TAG when file (or link) is corrupt or isn't playback ?
In this way you can display these elements by $meta(error) at the playlist.
Behavior like the element Skip Track (https://www.foobar2000.org/components/view/foo_skip) only with auto generated field <ERROR> if playlist element has playback issue. 

Thanks.
Title: Re: [intended behavior]Tries to play files on non-present locations
Post by: kode54 on 2018-06-19 01:52:06
Would that be doable with a hook? Or would it require an input that actually lies and says the file is readable, just to report the ERROR tag?
Title: Re: [intended behavior]Tries to play files on non-present locations
Post by: Sergey77 on 2018-06-20 20:15:54
Would that be doable with a hook? Or would it require an input that actually lies and says the file is readable, just to report the ERROR tag?
@kode54, unfortunately I'm not coder (maybe a little on BASIC... :) )
I think @Case and You know how implement that better.
Title: Re: [intended behavior]Tries to play files on non-present locations
Post by: Case on 2018-06-21 11:55:39
I don't like this idea. If a file is corrupted trying to tag it either fails or makes any problems in the file worse. If a file doesn't exist you can't tag it. Can't you just remove your corrupted files so that they don't bother you again?
Title: Re: [intended behavior]Tries to play files on non-present locations
Post by: LL25255252 on 2018-06-21 13:59:43
....Can't you just remove your corrupted files so that they don't bother you again?
In case of a playlist with radio stations with for example :
Unable to open item for playback (Network error): "http://streaming206.radionomy.com/A-RnB-FM-WEB1"
I don't want to remove that radio station b/c sometimes the radio station stream is down temporarily.
Title: Re: [intended behavior]Tries to play files on non-present locations
Post by: Sergey77 on 2018-06-21 14:48:01
 ;) @LL25255252, you don't imagine how i glad of your support!
For example in attachment (playlist with many radio stations stream and some items mark as playback error!)
Maybe not for Stop on Error component (or TAG edit), but fb2k must have that exactly.

Thanks.
Title: Re: [intended behavior]Tries to play files on non-present locations
Post by: Sergey77 on 2019-08-09 17:17:36
@Case, a lot of time has passed and fb2k got a lot of good changes. In this regard, let me return to the following issues that were earlier:
1. stop playback of dead radio streams
That said I took a look at the problem and unfortunately my component can't help here. The callback I use is called only after the core has tried opening the stream for 20 seconds and given up. It's up to Peter to improve the behavior here.
2. the ability to indicate playlist elements that have errors
maybe with the current interface fb2k is it possible to implement for the Stop on Error component?

Thanks!
Title: Re: [intended behavior]Tries to play files on non-present locations
Post by: Sergey77 on 2020-01-06 18:05:16
@Case,
I did not notice in which version the behavior of the fb2k was changed but at least between versions 1.5.1 and 1.4. there is a difference.
For version fb2k1.4, when an error occurs, the fb go to play the next playlist item.
For version fb2k1.5.1, when an error occurs, the fb does not go to the next item of the playlist, but again tries to play that item.
Perhaps now there is an opportunity to improve the Stop on Error component for streaming items.
For testing, here is a "dead" link:
Code: [Select]
http://textville.net/chiptune.ogg?1:kjzAkNr1v8

Please take a look at this issue again.
Title: Re: [intended behavior]Tries to play files on non-present locations
Post by: sveakul on 2020-01-07 01:29:08
Sergey77:  I have Foobar 1.5.1.  When I try to play a stream in my playlist that is not working, after the error message appears Foobar does jump to the next station on the list, but does not start to play it until I double-click it.  In Prefs/Playback/Other, I have checked "Stop playback after the current track", and NOT checked "Reset the above when stopping."  Try those settings.
Title: Re: [intended behavior]Tries to play files on non-present locations
Post by: Sergey77 on 2020-01-08 09:16:47
@sveakul, thanks for your answer and advice, I will use it. This works well for the streams. For other items of the playlist, I will need to disable this option.
But I once again tested the clean versions of fb2k and I must say that the behavior, that I mentioned earlier in versions 1.4 and 1.5.1, is the same. Sorry for the hurried conclusions.
Title: Re: [intended behavior]Tries to play files on non-present locations
Post by: Spanky Monkey on 2021-01-13 11:00:46
Hi,
I'm not sure if I am doing something wrong, but I can't get this component to do anything.
I thought to utilise it as a way to stop playback at various points in a playlist, by inserting a non-playable file (like a png).  Fb2k generates the error when it hits such an image file, but just carries on and plays the next song in the list.
Fb2k v 1.5.1.
Thanks.

-edit-
It does work.  I've found that creating an empty text file called "STOP", adding it to the playlist, and then renaming or moving/deleting said empty file causes the desired stop behaviour.
Title: Re: [intended behavior]Tries to play files on non-present locations
Post by: tonez on 2021-09-03 17:24:33
I set the plugin parameter to '1' expecting that playback will stop on the first error, but instead it stops on the second error. Can it be fixed? I want playback to stop at any first error.