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: library file could not be written, on exit and while app is open (Read 5493 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

library file could not be written, on exit and while app is open

Hello everybody,

i expericence the same problem as here, but i have no solution until now.

the message "library file could not be written (bad allocation)" comes up periodicly, but randomly anyhow, when foobar is started and i do much with my playlists (i.e. adding files, tagging a lot)
(i might be wrong, but i remember the message "playlist file could not be written (bad allocation)" came up sometimes too)

it comes up, after i load files from a network-folder into a playlist.
it comes up, wile shutting down foobar2000 (v1.1)
it comes up, after i pressed F5 to update the files in a big playlist.


as told in the thread,

i did save my playlist and got no error. (97MB size, with *where can i see, how many files are in the library?* a lot of files)

i checked my database for files with coverart, but did not found any.

i'm running on W7 32bit (3.4GB RAM), but the problem occures on XP 32bit (3.4GB RAM) too. (i use portable mode and copy the program-folder of foobar from XP to W7 and vice versa. also with portable mode turned off, the problem comes up.)


i see that the foobar.exe uses 1.139.780K virtual memory from my ram and i have about 900MB free RAM

anyone a idea on how i can check for a solution?

library file could not be written, on exit and while app is open

Reply #1
no idea anybody?

library file could not be written, on exit and while app is open

Reply #2
The forum guidelines tell you to paste the list of components to help people to help you. Your memory use is super high and it wouldn't surprise me if it went over the 2GB limit during save and cause the error.
Is that 97 MB playlist with your files saved in FPL format or something else?
Oh and you can see how many files you have by opening Library \ Search and type 'ALL' to the search field. Window title will tell you the info.

library file could not be written, on exit and while app is open

Reply #3
Case, Thanks for pointing me to the missing points, i can supply now:

181598 Items (after deleting an additional network-share and leaving only the "main" share)

The windows versions are those with the latest hotfixes (W7)/service packs (XP).

Code: [Select]
Core (2010-08-21 11:42:56 UTC)
    foobar2000 core 1.1
foo_abx.dll (2010-08-15 22:16:38 UTC)
    ABX Comparator 1.3.4
foo_ac3.dll (2010-04-13 06:00:12 UTC)
    AC3 decoder 0.9.5
foo_adpcm.dll (2010-09-26 11:17:20 UTC)
    kode's ADPCM decoders 1.9
foo_AdvancedControls.dll (2010-03-15 23:34:30 UTC)
    FooBar2000 Advanced Controls 0.6.0.1
foo_albumlist.dll (2010-08-21 11:41:12 UTC)
    Album List 4.5
foo_audioscrobbler.dll (2010-08-01 13:22:49 UTC)
    Audioscrobbler 1.4.7
foo_bitcompare.dll (2010-08-12 23:17:15 UTC)
    Binary Comparator 1.2
foo_cdda.dll (2010-08-21 11:41:04 UTC)
    CD Audio Decoder 3.0
foo_chacon.dll (2010-08-01 13:30:06 UTC)
    Chacon 3
foo_channel_mixer.dll (2007-11-21 17:18:16 UTC)
    Channel Mixer 0.9.6.3
foo_converter.dll (2010-08-21 11:40:42 UTC)
    Converter 1.5
foo_convolve.dll (2006-08-04 20:57:26 UTC)
    Convolver 0.3
foo_dbsearch.dll (2007-01-25 20:58:48 UTC)
    Database Search 1.4
foo_discogs.dll (2010-08-01 11:33:41 UTC)
    Discogs Tagger 1.25
foo_dop.dll (2010-09-26 22:01:03 UTC)
    iPod manager 0.6.8.4
foo_dsp_continuator.dll (2008-03-04 18:41:40 UTC)
    Continuator 0.6.1
foo_dsp_crossfader.dll (2010-01-13 20:46:10 UTC)
    Gapless Crossfader 1.3.4.1
foo_dsp_skip_silence.dll (2010-01-16 10:32:48 UTC)
    Acro Skip Silence 1.1
foo_dsp_soundtouch.dll (2010-01-14 20:08:06 UTC)
    SoundTouch DSP 1.1
foo_dsp_std.dll (2010-08-21 11:41:12 UTC)
    Standard DSP Array 1.0
foo_dumb.dll (2010-10-05 18:32:06 UTC)
    DUMB module decoder 0.9.9.20
foo_facets.dll (2008-02-26 15:38:36 UTC)
    Facets 2008-02-25
foo_fileops.dll (2010-08-21 11:39:48 UTC)
    File Operations 2.1.3
foo_freedb2.dll (2010-08-21 11:40:00 UTC)
    freedb Tagger 0.6.2
foo_game.dll (2008-12-11 21:26:52 UTC)
    Game Audio Decoder 1.10
foo_gep.dll (2010-10-22 09:14:46 UTC)
    Game Emu Player 1.103
foo_httpcontrol.dll (2010-08-01 13:42:13 UTC)
    HTTP Control 0.95.2
foo_input_adplug.dll (2010-08-21 21:16:10 UTC)
    AdPlug 1.37
foo_input_alac.dll (2010-09-03 17:48:11 UTC)
    ALAC Decoder 1.0.6
foo_input_avs.dll (2010-01-11 11:10:34 UTC)
    AVS input 0.3
foo_input_dts.dll (2010-09-04 13:47:36 UTC)
    DTS decoder 0.3.0
foo_input_ht.dll (2009-08-16 14:16:42 UTC)
    Highly Theoretical 2.0.10
foo_input_hvl.dll (2010-04-13 06:06:48 UTC)
    Hively Tracker decoder 1.5
foo_input_monkey.dll (2009-05-01 12:40:52 UTC)
    Monkey's Audio Decoder 2.1.4
foo_input_qsf.dll (2010-08-01 13:33:03 UTC)
    Highly Quixotic 2.0.17
foo_input_reverse.dll (2009-01-05 19:47:00 UTC)
    Reverse Playback 0.1.4 (SSE)
foo_input_shorten.dll (2009-11-15 20:46:36 UTC)
    Shorten decoder 0.4.2.2
foo_input_std.dll (2010-08-21 11:40:42 UTC)
    Standard Input Array 1.0
foo_jesus.dll (2010-09-26 11:17:20 UTC)
    Autosave & Autobackup 10
foo_lastfm_radio.dll (2010-02-17 21:21:28 UTC)
    Last.fm Radio 0.5.7e
foo_lnk.dll (2010-01-07 18:57:56 UTC)
    Shell Link Resolver 1.3.1
foo_lock.dll (2010-01-11 11:18:36 UTC)
    Pause on Lock 0.5
foo_lunar2.dll (2010-01-11 10:32:54 UTC)
    Lunar 2 PCM decoder 0.6
foo_masstag.dll (2009-09-18 09:01:36 UTC)
    Masstagger 1.8.4
foo_midi.dll (2010-09-11 19:16:21 UTC)
    MIDI synthesizer host 1.110
foo_musicbrainz.dll (2010-08-17 01:04:35 UTC)
    MusicBrainz Tagger 0.2
foo_navigator.dll (2010-09-29 23:12:18 UTC)
    Navigator 0.64
foo_osd.dll (2010-10-23 21:45:42 UTC)
    On-Screen Display GDI+ 1.63
foo_out_asio.dll (2009-03-22 14:15:46 UTC)
    ASIO support 1.2.7
foo_out_ks.dll (2006-08-04 19:54:58 UTC)
    Kernel Streaming Output 1.2.2
foo_out_wasapi.dll (2009-05-19 20:45:18 UTC)
    WASAPI output support 2.1
foo_plorg.dll (2010-10-22 09:14:47 UTC)
    Playlist Organizer 1.7
foo_podcatcher.dll (2010-10-17 09:40:07 UTC)
    Podcatcher 0.1.7.4 (beta, Apr 24 2010)
foo_preview.dll (2008-12-22 20:41:12 UTC)
    Preview 1.4
foo_psf.dll (2010-08-15 19:26:12 UTC)
    Highly Experimental 2.0.17
foo_quicktag.dll (2010-09-03 17:48:11 UTC)
    Quick Tagger 1.0.3
foo_random.dll (2009-06-30 21:06:58 UTC)
    Randomized Playlist Entry 1.3.0
foo_removeplayed.dll (2007-09-02 11:15:30 UTC)
    Remove played Files 1.4.0
foo_rgscan.dll (2010-08-21 11:40:44 UTC)
    ReplayGain Scanner 2.0.9
foo_run.dll (2009-06-07 14:15:18 UTC)
    Run services 0.3.7
foo_runcmd.dll (2010-01-07 18:32:34 UTC)
    Run Command 1.1
foo_scrobblecharts.dll (2007-03-31 15:36:48 UTC)
    Last.fm Chart Player 0.2.3
foo_seek_box.dll (2010-08-15 19:29:31 UTC)
    Seek box 0.0.3
foo_shutdown.dll (2006-12-06 07:59:24 UTC)
    Foo Shutdown 0.9.3
foo_sid.dll (2010-08-12 20:31:23 UTC)
    sidplay2 1.19
foo_softplaylists.dll (2010-10-22 09:14:47 UTC)
    Soft Playlists 2010-10-21
foo_texttools.dll (2010-09-03 17:48:11 UTC)
    Text Tools 1.0.5
foo_timebomb.dll (2010-08-15 20:47:48 UTC)
    Timebomb 0.0.2
foo_touchremote.dll (2010-09-30 00:04:22 UTC)
    iPhone/iPod Touch Remote support 0.1.2.1
foo_ui_columns.dll (2009-06-14 22:18:06 UTC)
    Columns UI 0.3.7.8
foo_ui_std.dll (2010-08-21 11:41:10 UTC)
    Default User Interface 0.9.5
foo_uie_albumlist.dll (2009-06-13 22:49:20 UTC)
    Album list panel 0.3.5
foo_uie_biography.dll (2010-08-14 08:59:59 UTC)
    Biography View 0.4.2.2
foo_uie_bookmarks.dll (2008-07-19 17:29:50 UTC)
    Bookmarks 0.2.6
foo_uie_console.dll (2010-08-13 00:16:58 UTC)
    Console panel 0.4
foo_uie_quicksearch.dll (2007-10-15 09:36:30 UTC)
    Quick Search Toolbar 2.8l
foo_unpack.dll (2010-08-21 11:40:10 UTC)
    ZIP/GZIP/RAR Reader 1.6
foo_unpack_7z.dll (2010-01-13 16:52:24 UTC)
    7-Zip reader 1.4
foo_unpack_jma.dll (2010-01-13 16:52:08 UTC)
    JMA reader 1.3
foo_unpack_lha.dll (2010-01-13 16:52:14 UTC)
    LHA reader 1.6
foo_unpack_unix.dll (2010-08-01 13:20:55 UTC)
    Unix archive reader 1.4
foo_upnp.dll (2010-08-21 21:16:10 UTC)
    UPnP/DLNA Renderer, Server, Control Point 0.99.29
foo_verifier.dll (2010-08-01 13:29:22 UTC)
    File Integrity Verifier 1.1

Code: [Select]
foobar2000 troubleshooter
The following components found on your system are known to be problematic and should be either uninstalled or updated to their latest versions:

foo_scrobblecharts.dll : Last.fm Chart Player 0.2.3
Reason: Repeated crash reports.

foo_touchremote.dll : iPhone/iPod Touch Remote support 0.1.2.1
Reason: Repeated crash reports.

foo_navigator.dll : Navigator 0.64
Reason: Repeated crash reports.

foo_AdvancedControls.dll : FooBar2000 Advanced Controls 0.6.0.1
Reason: Repeated crash reports.
Download the latest version...

foo_discogs.dll : Discogs Tagger 1.25
Reason: Repeated crash reports.
Download the latest version...
It took a while, because i had to download/install some symbol packages for the "How to debug high CPU usage"-Topic in the forum rules to use with process explorer,
and, unfortunately, the discogs plugin seems not to work theese days, so i cannot modify/update my database/tags to reproduce this error.

the error mostly came up while or after i modyfied a lot of files (updating the tags) with the plugin foo_discogs and the foo_freedb2.
or, in other words, after i reorganized my database a lot (moving/renaming files on the server, adding/updating tags, re-read the files into the db).
some local drives are configured to monitor changes while running, while the network-shares are not monitored automaticly, beause foobar then "kills/slows down" my network.

I also tried to remove some plugins which i guessed to modify the database in background, while i worked with foobar, but the problem remains.

Deleting the db and let foobar recreate it did not solve the issue.

I hope, the provided Info can point out something.

Is that 97 MB playlist with your files saved in FPL format or something else?
should be FPL, i used the "normal" way to save it.
thanks.

library file could not be written, on exit and while app is open

Reply #4




Here are some Screenshots from Process Explorer.

library file could not be written, on exit and while app is open

Reply #5
are those informations not useful/helpful?
i still have this issues and can only get rid of it by deleting the library-db.
this, of course, helps only a short time (some days, maybe a week)

 

library file could not be written, on exit and while app is open

Reply #6
meanwhile, in another universe, i figured out (with longtimetesting) that those plugins are the cause of all (my) evil:

Quote
foo_dop
foo_httpcontrol
foo_podcatcher
foo_playlisthistory
foo_touchremote
foo_upnp


if i remove them, foobar and its media library works fine.

if one of those plugins is active, foobar shows all the problems i mentioned in the first posts.

as i cannot live without those excellent plugins,
what can i do?
go to the corresponding thread in this forum and try to point the developers to my probem. ok.

how could they help?
i don't know, but i will try.

if there is any help here, please let me know.

library file could not be written, on exit and while app is open

Reply #7
oh no!
today, i created 3 new playlists and imported big network-folder from my nas with music-files, while i played arount renaming/retagging files on that nas.

after the import (menu->files->import folder) was ready after about 3 hours, foobar throwed out the same message while if exited it.

playlist/library couldnt be written....

a neverending story...




library file could not be written, on exit and while app is open

Reply #8
I often see this error

Library file could not be written (Insufficient system resources).
If you choose 'cancel', your recent library changes will be lost.


Any other programs do not have a problems with writing files to disk

library file could not be written, on exit and while app is open

Reply #9
Looks like I have solved this problem on my PC after adding to registry following values:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]
"PagedPoolSize"=dword:ffffffff
"PoolUsageMaximum"=dword:0000003c