Help - Search - Members - Calendar
Full Version: Slowdown/freeze when trying to open file from unavailable hard drive
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Support - (fb2k)
random_asdf
Not sure if there is information on this already or anything, but I haven't found any

But anyway, so most of my music is on an external harddrive and occasionally i forget to power it up first before trying to play a song. The problem that arises is that foobar tries to play the track, but it cannot and returns the error that the file is missing or what not and then tries to play the next track. This slows down/freezes foobar and I cannot stop this sequence until foobar finds the song or until the external HDD is powered up and recognized. Sometimes, foobar ends up crashing due to this.

Is there anyway I can disable the function where it continues to seek a track if it cannot find one or something similar?
Zarkon
Curious about this myself, because in previous releases, there was a pause after several of these errors which gave me time to hit Stop before any more errors popped up. Was this an intended change, or was the pause unintended behavior on my system?
random_asdf
Bump.

If that is not possible, are there any plugins to fix this?
Yirkha
This behaviour is not normal, it should be always possible to simply stop the playback. See this, for example?
mrm
I'm with Zarkon.
Why does foobar insist on playing if it's clear after the first 10 "misses" that there are no files available?
mixcherry
Because 11th may be available?
mrm
QUOTE (mixcherry @ Sep 24 2009, 14:56) *
Because 11th may be available?

Obviously.

But here's a realistic scenario:
I use fb2k at home and on my work PC. I keep the program folders and settings synchronized using Dropbox. At home I listen to music on my hdd and at work I listen to music on my iPod using foo_dop.
When I open foobar on my work computer, I get the dreaded "look for an available track amidst 6099 files in the library" annoying problem that this thread is about. I manage to stop foobar after bashing "Z" (shortcut for STOP) and clicking the STOP button for about 15 seconds then I switch to iPod view to listen to my music. This is when the fun part starts.
I use the Last.fm scrobbler and I noticed that it lags behind foobar in showing and scrobbling the currently playing track. Depending on how many tracks foobar has skipped, this "lagging behind" business can even last 2 minutes (tested just now, on my crappy Athlon XP work computer).

If 10 misses is not a reasonable number, then a preferences entry would be the best solution.
Frank Bicking
Sounds like you want to disable "resume playback after restart".
mrm
QUOTE (Frank Bicking @ Sep 24 2009, 15:20) *
Sounds like you want to disable "resume playback after restart".

Really? And how/when am I supposed to do that? I just mentioned foobar freezes when trying to resume playback. Plus, I don't want to.
It's not my fault the program goes into an infinite loop. It's the programmers' fault for not accounting for such edge cases. I should know, being a software programmer myself. When I build software I don't tell my users "Hey, just write letters into that field, don't write letters or weird symbols. Or numbers greater than 2^32. Or negative numbers. And don't use comma as decimal separator. Got it? Great." smile.gif
shakey_snake
QUOTE (mrm @ Sep 25 2009, 17:05) *
Really? And how/when am I supposed to do that? I just mentioned foobar freezes when trying to resume playback.
It's a simple enough process:
1. Remove third-party components.
2. Start foobar.
3. Press stop button.

The UI doesn't lock when not using brain-dead components.

Edit: You could also just try sending fb2k the /stop command via commandline

See this thread: http://www.hydrogenaudio.org/forums/index....showtopic=73800
tpijag
Wasn't Frank just referencing standard Foobar preference setting?

Preferences > Playback > Untick resume playback after restart

terry
shakey_snake
Yes. But they can't open the Preferences if the UI is freezing because of this situation, can they?
tpijag
Ah, of course. Missed that. It always the details.
thanks
terry
vogliadicane
QUOTE (shakey_snake @ Sep 25 2009, 23:14) *
The UI doesn't lock when not using brain-dead components.


Those "brain-dead" components only slow down the in this case "brain-dead" infinite loop foobar creates (up to locking, depending on the hardware).

... which is btw the only annoyance of foobar.
Yirkha
Seems to be in direct relevance with count of brain-dead components, the infinite loop takes just 1-2% CPU here, far from locking up the system or whatever. happy.gif
But I agree, it is a matter of taste, I might actually prefer stopping on first non-existent location instead of going on and on to find a valid track too.
southisup
QUOTE (Yirkha @ Sep 26 2009, 19:58) *
But I agree, it is a matter of taste, I might actually prefer stopping on first non-existent location instead of going on and on to find a valid track too.

Likewise. If I forget to turn on an external drive before starting Foobar then I lose which track I've listened up to in the playlist, or what time I've listened up to in a long track. Same if I move or rename directories from the OS, for that matter.

A "Pause on missing track" option would be lovely.
TomBarlow
I would also like it if foobar stopped on missing track. I have a playlist of internet streams, and if my connection goes down it pointlessly goes through them all.

I don't think just because you hit play you necessarily want to hear *anything* - you typically just want to hear the track you chose, not the first available one in the playlist.
Vomitus
0. Set playback order to: repeat playlist.
1. Create new playlist, add some files to that playlist.
2. Start playing all of those files and then stop.
3. Delete, move or rename ALL of those files in the system.
4. Start playing that playlist again.
As a result playlist will endlessly loop trying to play missing files and reporting the same error:
CODE
Unable to open item for playback (Object not found):
"D:\temp\1.mp3"

The worst thing is that I cannot stop this process - foobar does not respond to nothing: buttons on interface(mouse clicks), hotkeys (system-wide and internal), media keyboard buttons, nothing. Only solution is to kill foobar process.

Question: how to make foobar STOP playback if all items in playlist are dead without switching playback order from 'repeat playlist'?
Suggestion: implement this function if it is not present at the time.

P.S. For the sake of observing rules I add my components list:
CODE

Core (2009-08-22 12:25:22)
foobar2000 core 0.9.6.9
foo_abx.dll (2009-06-07 15:25:26)
ABX Comparator 1.3.4
foo_ac3.dll (2009-05-09 16:27:36)
AC3 decoder 0.9.3
foo_albumlist.dll (2009-08-22 12:23:44)
Album List 4.3.1
foo_amipwrapper.dll (2008-10-21 00:20:44)
AMIP Wrapper 0.99
foo_audioscrobbler.dll (2009-05-07 20:05:30)
Audioscrobbler 1.4.1
foo_benchmark.dll (2008-12-31 18:23:04)
Decoding Speed Test 1.1
foo_bitcompare.dll (2008-12-05 14:08:02)
Binary Comparator 1.2
foo_burninate.dll (2009-06-24 19:14:28)
Audio CD Writer 3.0.1
foo_cdda.dll (2009-08-22 12:23:34)
CD Audio Decoder 2.1.4
foo_chacon.dll (2009-02-14 03:50:06)
Chacon 0.0.2
foo_channel_mixer.dll (2008-03-12 12:37:46)
Channel Mixer 0.9.6.5
foo_chronflow.dll (2008-04-13 23:16:00)
Chronial's Coverflow 0.3.0
foo_converter.dll (2009-08-22 12:23:26)
Converter 1.2.1
foo_convolve.dll (2006-08-04 20:57:26)
Convolver 0.3
foo_covers.dll (2009-05-28 17:54:29)
Locate Covers 0.03
foo_cuefilter.dll (2009-04-28 14:09:44)
CUE Playlist Filter 0.1.7.0
foo_cuesheet_creator.dll (2007-03-10 10:58:28)
Cuesheet Creator 0.4.6
foo_dbsearch.dll (2007-01-25 20:58:48)
Database Search 1.4
foo_discogs.dll (2009-04-26 09:25:45)
Discogs Tagger 1.19
foo_dop.dll (2009-06-25 09:57:06)
iPod manager 0.6.4.7
foo_dsp_bs2b.dll (2009-04-07 08:57:26)
bs2b 3.0.0
foo_dsp_crossfeed.dll (2009-02-10 20:18:24)
Crossfeed 1.1.1
foo_dsp_delta.dll (2008-10-24 16:57:16)
Noise Sharpening DSP 1.0.0
foo_dsp_noise.dll (2009-06-28 19:28:32)
Add Noise DSP 0.0.4
foo_dsp_resampler.dll (2009-06-15 17:19:30)
SoX Resampler 0.5.3
foo_dsp_span.dll (2009-04-07 14:35:31)
Surround Pan 1.3
foo_dsp_ssrcX.dll (2008-05-11 06:45:16)
Resampler DSP (SSRC X) 0.57
foo_dsp_std.dll (2009-08-22 12:23:48)
Standard DSP Array 1.0
foo_dsp_xover.dll (2009-01-16 00:08:20)
Crossover 0.38a
foo_dumb.dll (2009-09-24 16:12:10)
DUMB module decoder 0.9.9
foo_exvar.dll (2008-06-14 01:42:54)
Extended Variables 0.3.1
foo_fileops.dll (2009-08-22 12:22:36)
File Operations 2.1.2
foo_freedb2.dll (2009-08-22 12:22:52)
freedb Tagger 0.6.1
foo_g15lcd.dll (2009-06-29 20:41:08)
Logitech G15 LCD Display 0.3a
foo_input_alac.dll (2009-03-22 14:15:46)
ALAC Decoder 1.0.3
foo_input_dts.dll (2009-05-02 12:58:30)
DTS decoder 0.2.4
foo_input_monkey.dll (2009-05-01 13:40:52)
Monkey's Audio Decoder 2.1.4
foo_input_mslive.dll (2008-11-22 17:22:52)
mslive 0.4.9 (SSE)
foo_input_std.dll (2009-08-22 12:23:28)
Standard Input Array 1.0
foo_input_tak.dll (2009-06-15 21:44:54)
TAK Decoder 0.4.3
foo_input_tta.dll (2008-11-29 15:55:14)
TTA Audio Decoder (unofficial) 2.4.2
foo_jesus.dll (2009-03-21 22:41:12)
Autosave 0.0.3
foo_masstag.dll (2009-06-21 22:04:00)
Masstagger 1.8.2
foo_masstag_addons.dll (2009-02-10 22:54:08)
Masstagger Addons 0.3.5 (SSE)
foo_menu_addons.dll (2008-02-16 06:53:34)
Menu Addons 0.4 (SSE)
foo_midi.dll (2009-06-14 11:26:32)
MIDI synthesizer host 1.81
foo_musicbrainz.dll (2009-04-10 23:27:28)
MusicBrainz Tagger 0.2
foo_navigator.dll (2007-08-04 14:36:46)
Navigator 0.63
foo_normalprev.dll (2009-06-28 13:30:52)
Normal Previous 0.1
foo_out_asio.dll (2009-03-22 15:15:46)
ASIO support 1.2.7
foo_out_ks.dll (2006-08-04 21:54:58)
Kernel Streaming Output 1.2.2
foo_out_wasapi.dll (2009-05-19 21:45:18)
WASAPI output support 2.1
foo_playcount.dll (2009-04-29 19:09:32)
Playback Statistics 2.1.9
foo_playcount_sql.dll (2009-06-18 22:12:48)
Playback statistics SQL 1.5.4.236
foo_playlists_sort.dll (2009-06-08 04:03:29)
Playlist Sorter 0.1.9
foo_popupplus.dll (2008-04-25 00:24:18)
PopUp Plus 20080424
foo_preview.dll (2008-12-22 23:41:12)
Preview 1.4
foo_queue_random.dll (2009-06-21 18:45:00)
Enqueue Random 0.4
foo_quicktag.dll (2008-05-01 18:39:02)
Quick Tagger 1.0.1
foo_rgscan.dll (2009-08-22 12:23:20)
ReplayGain Scanner 2.0.9
foo_run.dll (2009-06-07 14:15:18)
Run services 0.3.7
foo_sendtodevice.dll (2009-06-29 09:31:15)
Send to Device 1.1.2 [Nov 28 2007 - 10:13:31]
foo_stop_after_queue.dll (2009-06-19 17:49:42)
Stop After Queue 0.1
foo_stop_on_current.dll (2009-06-18 04:54:52)
Stop on Current 0.4
foo_stopaftercuralbum.dll (2009-06-01 08:50:42)
foo_stopaftercuralbum 0.2
foo_texttools.dll (2009-01-31 14:23:38)
Text Tools 1.0.3
foo_tlbRC.dll (2009-05-05 01:44:34)
TLB Remote Control 3.0
foo_ui_columns.dll (2009-06-15 01:18:06)
Columns UI 0.3.7.8
foo_ui_hacks.dll (2009-06-25 02:05:17)
UI Hacks 2009-06-25
foo_ui_std.dll (2009-08-22 12:23:54)
Default User Interface 0.9.5
foo_uie_albumlist.dll (2009-06-14 01:49:19)
Album list panel 0.3.5
foo_uie_biography.dll (2009-06-27 15:31:10)
Biography View 0.3.0.1
foo_uie_bookmarks.dll (2008-07-19 17:29:50)
Bookmarks 0.2.6
foo_uie_console.dll (2008-08-06 13:43:30)
Console panel 0.3
foo_uie_elplaylist.dll (2009-06-05 21:01:32)
ELPlaylist 0.6.5.3.3(beta)
foo_uie_explorer.dll (2009-05-11 05:37:30)
Explorer Tree 1.04.7c
foo_uie_graphical_browser.dll (2008-04-19 22:37:52)
Graphical Browser rev015
foo_uie_library_tree.dll (2009-06-20 11:43:54)
Library Tree 0.3.2.3b
foo_uie_lyrics.dll (2008-12-12 12:39:20)
Lyric Show Panel 0.3.3.9 [Dec 12 2008 - 17:39:01]
foo_uie_panel_splitter.dll (2009-06-07 21:36:54)
Panel Stack Splitter 0.3.8(alpha)
foo_uie_playlists_dropdown.dll (2009-05-16 18:10:32)
Playlists Dropdown 0.7.2
foo_uie_queuemanager.dll (2006-12-14 00:12:38)
Queue manager panel 0.2.2
foo_uie_quicksearch.dll (2007-05-18 12:31:10)
Quick Search Toolbar 2.8l
foo_uie_tabs.dll (2009-05-13 14:46:00)
Tabbed Panel Modified 0.2.8
foo_uie_trackinfo_mod.dll (2007-01-05 13:36:20)
Track info panel mod 0.8.0 beta [Jan 5 2007 - 13:36:12]
foo_uie_vis_channel_spectrum.dll (2008-05-18 02:02:12)
Channel Spectrum panel 0.17.2
foo_uie_vis_peakmeter_spectrum.dll (2008-04-19 18:18:50)
Peakmeter Spectrum Visualisation 0.2.0.0 beta
foo_uie_wsh_panel_mod.dll (2009-06-01 19:04:40)
WSH Panel Mod 1.1.8
foo_unpack.dll (2009-08-22 12:22:20)
RAR reader 1.2
ZIP/GZIP reader 1.0
foo_unpack_7z.dll (2009-04-21 12:40:32)
7-Zip unpacker 1.1
foo_utils.dll (2008-02-08 23:26:58)
Playlist Tools 0.6.2 beta 6
foo_verifier.dll (2009-06-21 22:03:56)
File Integrity Verifier 1.0.5
foo_vis_shpeck.dll (2009-05-21 09:59:39)
Shpeck - Winamp vis plugins wrapper 0.3.5
foo_w7shell.dll (2009-04-01 02:52:06)
Windows 7 integration 0.2.7.1

shakey_snake
*threads merged*

Vomitus:
As has been suggested previously you need to find and remove the third party components that are locking your UI.

Pressing the stop button should be possible. If it's not, you need to find the component that is at fault and suggest to the author that they fix their problem.
Vomitus
shakey_snake
And as mentioned before this is not proper program behavior. An option to stop playback if all items or one item is dead is necessary. I really don't want to create yet-another-boring-plugin with only one function just to fix obvious flaw in original program.

Btw, is there a way to track what's going on when I play a track? Certanly without plugins this problem does not occur, but I think this is not only one plugin that creates this mess, but several ones. And I further think that this is not the plugin itself but its specific settings that matter.
shakey_snake
And has been mentioned before: for most people it's not a flaw, they just press the stop button.

It's extremely unlikely the core would add an option for this, and probably just as unlikely that the "looping" behavior will be changed. So your best bet is to remove the components causing the interface locks.
Vomitus
shakey_snake:
Alright, I'll have to give it a try.
Robertina
Vomitus,

to reproduce that unstoppable infinite loop you lament I followed your guidance you gave above on four computers with different operating systems, different amounts of RAM, motherboards etc.

On all of them I succeed in stopping foobar without any problems via keyboard shortcuts as well as pressing the stop button, with both the Default User Interface and Columns UI.

The newer versions of foobar2000 have in their main menu a function called (Help ->) Troubleshooter to detect problematic components, maybe this helps you.

I must admit that - different from other members - I like foobar's behaviour trying to play the next tracks in a playlist if the one you started is not available.

Especially when I am listening to online music this feature is helpfully for me because the addresses are often changed (Shoutcast).

Robertina.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.