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: error loading libpng (Read 3708 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

error loading libpng

This is a strange problem... libpng fails to load upon opening foobar, it seems quite randomly. Most of the time, it loads fine, however every once in a while it fails to load and the default foobar buttons are displayed. Any ideas on how to stop this? I have the latest libpng13.dll and zlib1.dll in my components folder...

error loading libpng

Reply #1
Exactly the same situation is here! -> Columns UI (newest version)

error loading libpng

Reply #2
I believe it's a bad image file for your buttons.

error loading libpng

Reply #3
same here, but now i also put libpng13.dll and zlib1.dll in foobar/ dir as i dont know if components is the right dir

error loading libpng

Reply #4
Quote
same here, but now i also put libpng13.dll and zlib1.dll in foobar/ dir as i dont know if components is the right dir
[a href="index.php?act=findpost&pid=281739"][{POST_SNAPBACK}][/a]

These two files should be placed in foobar's main directory, not in components directory. Remove these files from components directory if they are there...

error loading libpng

Reply #5
Quote
This is a strange problem... libpng fails to load upon opening foobar, it seems quite randomly. Most of the time, it loads fine, however every once in a while it fails to load and the default foobar buttons are displayed. Any ideas on how to stop this? I have the latest libpng13.dll and zlib1.dll in my components folder...
[{POST_SNAPBACK}][/a]
Sorry, I don't really know of any specific reason for this (I don't have this issue though).

That error message is outputed if the call to [a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/loadlibrary.asp]LoadLibrary[/url] fails. If it truely is random, you can try repeatedly pressing the "info" button in columns prefs under the other tab, which will report the exact error when it fails to load libpng. However, it is probably likely it is some factor only present during fb2k startup causing it. Just speculating, but are you running from a limited account maybe? How many components do you have? And how often is "once in a while"? You could try putting them in your main foobar folder instead of the components folder if that is where you put them.

In any case, you can switch to using bmps instead as a workaround. If you need transparency and are using XP, a simple way to convert the 32-bit png to a 32-bit bmp is using MS Paint - open the png in paint, save it as a "24 bit bitmap", which actually then saved it as a 32-bit bmp last time i tried anyway.
.

error loading libpng

Reply #6
Quote
These two files should be placed in foobar's main directory, not in components directory. Remove these files from components directory if they are there...
[a href="index.php?act=findpost&pid=281740"][{POST_SNAPBACK}][/a]


I think that did the trick... so far working fine. Thanks all.

error loading libpng

Reply #7
I'm also having the same problem... just compiled pnglib 1.2.8 with zlib 1.2.2 and put both of them in foobar2000's main dir.

Using Columns UI 0.1.2 gives me this failure upon startup:

Code: [Select]
Illegal operation:
Code: C0000005h, flags: 00000000h, address: 7C918FEAh
Access violation, operation: write, address: 00000010h
Call path:
WinMain=>app_init
This is the first crash logged by this instance.
Code bytes (7C918FEAh):
7C918FAAh:  0B 64 A1 18 00 00 00 0F B6 4D 0B 89 88 84 0F 00
7C918FBAh:  00 38 1D 30 C0 97 7C 0F 85 CC 04 00 00 A0 48 C1
7C918FCAh:  97 7C F6 D8 57 1B C0 F7 D0 25 40 C1 97 7C 8B F8
7C918FDAh:  8B 46 10 3B C3 89 45 FC 0F 84 9E 00 00 00 8B 06
7C918FEAh:  FF 40 10 8B 45 FC 83 E0 01 89 45 E8 8B 06 FF 40
7C918FFAh:  14 F6 05 F0 02 FE 7F 01 0F 85 E6 92 02 00 39 5D
7C91900Ah:  E8 57 53 0F 85 AC DE 01 00 FF 75 FC E8 99 59 FF
7C91901Ah:  FF 3D 02 01 00 00 0F 84 53 93 02 00 3B C3 0F 8C
Stack (0012E654h):
0012E634h:  00000000 B7448E6C 00000001 804DA591
0012E644h:  B7448F04 7FFDF700 B7448F6C 00000000
0012E654h:  01E73C58 00000008 00000000 7C34240D
0012E664h:  7C37A2A8 FFFFFFFF 7C3416B8 7C3416DB
0012E674h:  00001BA8 7C3416F8 00001BA8 00000000
0012E684h:  01E328EB 00001BA8 01E73C58 00020000
0012E694h:  01E31175 01E73C58 00001BA8 00000000
0012E6A4h:  01E73CCC 00000000 01E5567C 01E73C58
0012E6B4h:  01E556C6 01E73CCC 01E73C58 00000000
0012E6C4h:  000000FC 0012E70C 7C90104B 00C5FD00
0012E6D4h:  7C34F639 77C5FD00 7C36BA1B 77C5FCE0
0012E6E4h:  01E73C58 00000008 00000000 01E30000
0012E6F4h:  0012E6E4 0012E278 0012EA00 7C34240D
0012E704h:  7C3821C8 FFFFFFFF 01E72438 01E3590C
0012E714h:  01E72458 00000001 00000008 77C5FCE0
0012E724h:  00000008 01E73C58 01E3469C 01E73C58
0012E734h:  01E72458 00000008 01E73C58 01E72438
0012E744h:  0012E83C 000000D5 01E354F4 01E73C58
0012E754h:  01E72438 01E30000 7C80AC28 00000000
0012E764h:  018A4B20 01E73C58 01E72438 000000D5
Registers:
EAX: 00000000, EBX: 00000000, ECX: 000000FC, EDX: 77C5FD10
ESI: 77C5FD00, EDI: 00000000, EBP: 0012E6C8, ESP: 0012E654
Crash location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlpWaitForCriticalSection" (+0000005Bh)

Loaded modules:
foobar2000                       loaded at 00400000h - 00452000h
ntdll                            loaded at 7C900000h - 7C9B0000h
kernel32                         loaded at 7C800000h - 7C8F4000h
USER32                           loaded at 77D40000h - 77DD0000h
GDI32                            loaded at 77F10000h - 77F56000h
ole32                            loaded at 774E0000h - 7761D000h
ADVAPI32                         loaded at 77DD0000h - 77E6B000h
RPCRT4                           loaded at 77E70000h - 77F01000h
msvcrt                           loaded at 77C10000h - 77C68000h
COMCTL32                         loaded at 773D0000h - 774D2000h
SHLWAPI                          loaded at 77F60000h - 77FD6000h
utf8api                          loaded at 10000000h - 1000D000h
comdlg32                         loaded at 763B0000h - 763F9000h
SHELL32                          loaded at 7C9C0000h - 7D1D4000h
LPK                              loaded at 629C0000h - 629C9000h
USP10                            loaded at 74D90000h - 74DFB000h
UmxSbxExw                        loaded at 5FE00000h - 5FE12000h
UmxSbxTrw                        loaded at 5FC00000h - 5FC1A000h
UmxSbxw                          loaded at 5FF00000h - 5FF2B000h
PSAPI                            loaded at 76BF0000h - 76BFB000h
foo_abx                          loaded at 00B50000h - 00B5C000h
foo_ac3                          loaded at 00B60000h - 00B73000h
foo_albumlist                    loaded at 00B80000h - 00B8B000h
foo_ape                          loaded at 00B90000h - 00BAF000h
foo_apl                          loaded at 00BB0000h - 00BBA000h
foo_bitcompare                   loaded at 00BC0000h - 00BC9000h
foo_burninate                    loaded at 00BD0000h - 00BDC000h
VERSION                          loaded at 77C00000h - 77C08000h
foo_cdda                         loaded at 00BE0000h - 00BEE000h
foo_clienc                       loaded at 00BF0000h - 00BFB000h
foo_console                      loaded at 00C00000h - 00C07000h
foo_convolve                     loaded at 00C10000h - 00C5F000h
foo_dbsearch                     loaded at 00C60000h - 00C77000h
foo_diskwriter                   loaded at 00C80000h - 00C92000h
WINMM                            loaded at 76B40000h - 76B6D000h
foo_dsp_crossfade                loaded at 00D20000h - 00D27000h
foo_dsp_crossfeed                loaded at 00D30000h - 00D36000h
foo_dsp_extra                    loaded at 00D40000h - 00D55000h
foo_dsp_nogaps                   loaded at 00D60000h - 00D67000h
foo_dsp_pause                    loaded at 00D70000h - 00D77000h
foo_dsp_skip_silence             loaded at 00D80000h - 00D87000h
foo_dsp_soundtouch               loaded at 00D90000h - 00D9D000h
MSVCP60                          loaded at 76080000h - 760E5000h
foo_dynamics                     loaded at 00DA0000h - 00DA7000h
foo_faac                         loaded at 00DB0000h - 00DE3000h
foo_festalon                     loaded at 00DF0000h - 00F2E000h
foo_flac                         loaded at 00F30000h - 00F4C000h
foo_flaccer                      loaded at 00F50000h - 00F66000h
foo_freedb                       loaded at 00F70000h - 00F9E000h
WS2_32                           loaded at 71AB0000h - 71AC7000h
WS2HELP                          loaded at 71AA0000h - 71AA8000h
foo_history                      loaded at 00FE0000h - 00FF5000h
foo_id3v2                        loaded at 01000000h - 01030000h
foo_infobox                      loaded at 01030000h - 01043000h
foo_input_std                    loaded at 01050000h - 010EE000h
MSACM32                          loaded at 77BE0000h - 77BF5000h
foo_lpac                         loaded at 010F0000h - 010F7000h
lpac_codec_api                   loaded at 01100000h - 0110A000h
lpaccodec                        loaded at 01110000h - 01139000h
foo_masstag                      loaded at 01360000h - 01374000h
foo_matroska                     loaded at 01380000h - 013C8000h
foo_mod                          loaded at 013D0000h - 013D9000h
BASS                             loaded at 013E0000h - 0143A000h
foo_monkey                       loaded at 01440000h - 0145C000h
foo_mpeg4u                       loaded at 01460000h - 01489000h
foo_nez                          loaded at 01490000h - 014BB000h
foo_null                         loaded at 014C0000h - 014C7000h
foo_ofr                          loaded at 014D0000h - 014D6000h
OptimFROG                        loaded at 014E0000h - 0150C000h
foo_oggpreview                   loaded at 01520000h - 01621000h
foo_output_std                   loaded at 01630000h - 01639000h
foo_out_dsound_ex                loaded at 01640000h - 01649000h
DSOUND                           loaded at 73F10000h - 73F6C000h
foo_out_ks                       loaded at 01660000h - 0166B000h
SETUPAPI                         loaded at 77920000h - 77A13000h
foo_playcount                    loaded at 01670000h - 0167A000h
foo_playlistgen_ex               loaded at 01680000h - 0168F000h
foo_pphsresample                 loaded at 01690000h - 016A0000h
foo_psf                          loaded at 016A0000h - 0174C000h
foo_read_http                    loaded at 01750000h - 01765000h
foo_rgscan                       loaded at 01770000h - 0177D000h
foo_scroll                       loaded at 01780000h - 01786000h
foo_search_ex                    loaded at 01790000h - 01798000h
foo_shn                          loaded at 017A0000h - 017AF000h
foo_sid                          loaded at 017B0000h - 017F7000h
foo_spc                          loaded at 01820000h - 01836000h
foo_speex                        loaded at 01840000h - 01858000h
foo_tfmx                         loaded at 01800000h - 01809000h
foo_tta                          loaded at 01860000h - 01869000h
foo_tta_old                      loaded at 01870000h - 01879000h
foo_uie_trackinfo                loaded at 01880000h - 0188B000h
foo_uie_volume                   loaded at 01890000h - 0189B000h
foo_ui_columns                   loaded at 018A0000h - 018D7000h
foo_ui_std                       loaded at 018E0000h - 018F7000h
foo_unpack                       loaded at 01900000h - 01931000h
OLEAUT32                         loaded at 77120000h - 771AC000h
foo_utils                        loaded at 01940000h - 01951000h
foo_vis_manager                  loaded at 01960000h - 01968000h
foo_vis_simple_spectrum          loaded at 01970000h - 0197C000h
foo_vorbisenc                    loaded at 01980000h - 01A91000h
foo_wavpack                      loaded at 01AA0000h - 01AB2000h
foo_wma                          loaded at 01AC0000h - 01ADA000h
WMVCore                          loaded at 086C0000h - 08904000h
WMASF                            loaded at 070D0000h - 0710B000h
foo_xa                           loaded at 01AE0000h - 01AEF000h
uxtheme                          loaded at 5AD70000h - 5ADA8000h
MsgPlusLoader                    loaded at 01D30000h - 01D3E000h
MSCTF                            loaded at 74720000h - 7476B000h
AM16218                          loaded at 01DA0000h - 01DD2000h
libpng13                         loaded at 01E30000h - 01E4E000h
zlib1                            loaded at 01E50000h - 01E62000h
MSVCR71                          loaded at 7C340000h - 7C396000h
imagehlp                         loaded at 76C90000h - 76CB8000h
DBGHELP                          loaded at 59A60000h - 59B01000h

Stack dump analysis:
Address: 7C34240Dh, location: "MSVCR71", loaded at 7C340000h - 7C396000h
Symbol: "except_handler3" (+00000000h)
Address: 7C37A2A8h, location: "MSVCR71", loaded at 7C340000h - 7C396000h
Symbol: "ldexp" (+00005388h)
Address: 7C3416B8h, location: "MSVCR71", loaded at 7C340000h - 7C396000h
Symbol: "_crtLCMapStringA" (+0000030Ah)
Address: 7C3416DBh, location: "MSVCR71", loaded at 7C340000h - 7C396000h
Symbol: "_crtLCMapStringA" (+0000032Dh)
Address: 7C3416F8h, location: "MSVCR71", loaded at 7C340000h - 7C396000h
Symbol: "malloc" (+0000000Fh)
Address: 01E328EBh, location: "libpng13", loaded at 01E30000h - 01E4E000h
Symbol: "png_malloc" (+0000002Bh)
Address: 01E31175h, location: "libpng13", loaded at 01E30000h - 01E4E000h
Symbol: "png_check_sig" (+000000C5h)
Address: 01E5567Ch, location: "zlib1", loaded at 01E50000h - 01E62000h
Symbol: "inflateInit2_" (+0000005Ch)
Address: 01E556C6h, location: "zlib1", loaded at 01E50000h - 01E62000h
Symbol: "inflateInit2_" (+000000A6h)
Address: 7C90104Bh, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "RtlEnterCriticalSection" (+00000046h)
Address: 7C34F639h, location: "MSVCR71", loaded at 7C340000h - 7C396000h
Symbol: "_crtGetLocaleInfoW" (+000002B1h)
Address: 7C36BA1Bh, location: "MSVCR71", loaded at 7C340000h - 7C396000h
Symbol: "fread" (+00000014h)
Address: 01E30000h, location: "libpng13", loaded at 01E30000h - 01E4E000h
Symbol: "Ordinal169" (+00000000h)
Address: 7C34240Dh, location: "MSVCR71", loaded at 7C340000h - 7C396000h
Symbol: "except_handler3" (+00000000h)
Address: 7C3821C8h, location: "MSVCR71", loaded at 7C340000h - 7C396000h
Symbol: "__non_rtti_object::`vftable'" (+00003170h)
Address: 01E3590Ch, location: "libpng13", loaded at 01E30000h - 01E4E000h
Symbol: "png_read_init" (+000000CCh)
Address: 01E3469Ch, location: "libpng13", loaded at 01E30000h - 01E4E000h
Symbol: "png_read_info" (+0000002Ch)
Address: 01E354F4h, location: "libpng13", loaded at 01E30000h - 01E4E000h
Symbol: "png_read_png" (+00000024h)
Address: 01E30000h, location: "libpng13", loaded at 01E30000h - 01E4E000h
Symbol: "Ordinal169" (+00000000h)
Address: 7C80AC28h, location: "kernel32", loaded at 7C800000h - 7C8F4000h
Symbol: "GetProcAddress" (+00000000h)
Address: 018A4B20h, location: "foo_ui_columns", loaded at 018A0000h - 018D7000h
Address: 747308B6h, location: "MSCTF", loaded at 74720000h - 7476B000h
Symbol: "TF_UninitSystem" (+0000044Dh)
Address: 77C2C3CEh, location: "msvcrt", loaded at 77C10000h - 77C68000h
Symbol: "free" (+000001B3h)
Address: 01E34F60h, location: "libpng13", loaded at 01E30000h - 01E4E000h
Symbol: "png_read_image" (+00000000h)
Address: 01E31B30h, location: "libpng13", loaded at 01E30000h - 01E4E000h
Symbol: "png_get_rowbytes" (+00000000h)
Address: 01E31860h, location: "libpng13", loaded at 01E30000h - 01E4E000h
Symbol: "png_destroy_info_struct" (+00000000h)
Address: 01E31690h, location: "libpng13", loaded at 01E30000h - 01E4E000h
Symbol: "png_init_io" (+00000000h)
Address: 01E31BB0h, location: "libpng13", loaded at 01E30000h - 01E4E000h
Symbol: "png_get_bit_depth" (+00000000h)
Address: 01E354D0h, location: "libpng13", loaded at 01E30000h - 01E4E000h
Symbol: "png_read_png" (+00000000h)
Address: 01E31DF0h, location: "libpng13", loaded at 01E30000h - 01E4E000h
Symbol: "png_get_channels" (+00000000h)
Address: 01E31B50h, location: "libpng13", loaded at 01E30000h - 01E4E000h
Symbol: "png_get_rows" (+00000000h)
Address: 01E31B70h, location: "libpng13", loaded at 01E30000h - 01E4E000h
Symbol: "png_get_image_width" (+00000000h)
Address: 01E31000h, location: "libpng13", loaded at 01E30000h - 01E4E000h
Symbol: "png_set_sig_bytes" (+00000000h)
Address: 77C5F7A0h, location: "msvcrt", loaded at 77C10000h - 77C68000h
Symbol: "_badioinfo" (+00000490h)
Address: 01E31B90h, location: "libpng13", loaded at 01E30000h - 01E4E000h
Symbol: "png_get_image_height" (+00000000h)
Address: 01E30000h, location: "libpng13", loaded at 01E30000h - 01E4E000h
Symbol: "Ordinal169" (+00000000h)
Address: 01E35780h, location: "libpng13", loaded at 01E30000h - 01E4E000h
Symbol: "png_destroy_read_struct" (+00000000h)
Address: 01E35680h, location: "libpng13", loaded at 01E30000h - 01E4E000h
Symbol: "png_create_read_struct" (+00000000h)
Address: 01E31820h, location: "libpng13", loaded at 01E30000h - 01E4E000h
Symbol: "png_create_info_struct" (+00000000h)
Address: 018BF1A7h, location: "foo_ui_columns", loaded at 018A0000h - 018D7000h
Address: 018CCF90h, location: "foo_ui_columns", loaded at 018A0000h - 018D7000h
Address: 018BF419h, location: "foo_ui_columns", loaded at 018A0000h - 018D7000h
Address: 77D70494h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetClipboardFormatNameA" (+0000014Fh)
Address: 77D488B8h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetWindowLongW" (+0000003Ah)
Address: 018C4592h, location: "foo_ui_columns", loaded at 018A0000h - 018D7000h
Address: 018C44B2h, location: "foo_ui_columns", loaded at 018A0000h - 018D7000h
Address: 77D48709h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetDC" (+00000072h)
Address: 018C44B2h, location: "foo_ui_columns", loaded at 018A0000h - 018D7000h
Address: 018C44B2h, location: "foo_ui_columns", loaded at 018A0000h - 018D7000h
Address: 77D4D297h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetTopWindow" (+00000128h)
Address: 018C44B2h, location: "foo_ui_columns", loaded at 018A0000h - 018D7000h
Address: 77D70494h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetClipboardFormatNameA" (+0000014Fh)
Address: 77D48808h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetDC" (+00000171h)
Address: 77D4B368h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DefWindowProcW" (+00000183h)
Address: 018C44B2h, location: "foo_ui_columns", loaded at 018A0000h - 018D7000h
Address: 7C90EAE3h, location: "ntdll", loaded at 7C900000h - 7C9B0000h
Symbol: "KiUserCallbackDispatcher" (+00000013h)

Version info:
foobar2000 v0.8.3
UNICODE

 

error loading libpng

Reply #8
Quote
I'm also having the same problem... just compiled pnglib 1.2.8 with zlib 1.2.2 and put both of them in foobar2000's main dir.

Using Columns UI 0.1.2 gives me this failure upon startup:
[snip]

Known bug, sorry for the time being you will have to use the official binaries or anything linked with msvcrt.dll, or use bitmap files instead. (I was passing a FILE handle to libpng without thinking, furture version will use foobar's reader service instead.)

PS use [codebox ] [/codebox ]for crashlogs
.