Help - Search - Members - Calendar
Full Version: foo_vis_bacon-related crash
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Canar
Not sure what's causing this crash, but I'll report the log nonetheless. According to the log (and assuming I'm reading it correctly), it's crashing in fb2k, not in bacon, but it doesn't happen unless I'm mucking about in AVS.

Enter the Crashlog:
CODE
Illegal operation:
Code: C0000005h, flags: 00000000h, address: 00000001h
Access violation, operation: read, address: 00000001h
Call path:
WinMain=>app_mainloop
This is the first crash logged by this instance.
Access violation, operation: read, address: 00000001h
Stack (0012FD7Ch):
0012FD5Ch:  00000000 00000000 00000000 00000000
0012FD6Ch:  00000000 00000000 00000000 00000000
0012FD7Ch:  015A18FC 015A522C 00000004 00000000
0012FD8Ch:  02600798 0282FAE0 00420700 0282FB10
0012FD9Ch:  00000002 00000100 0000003F 00FCF3CE
0012FDACh:  0012FDD4 015A16B0 34FCF3CE 40A217B6
0012FDBCh:  0012FE3C 015A15CE 34FCF3CE 40A217B6
0012FDCCh:  00000000 0012FE04 0012FE00 77D48709
0012FDDCh:  008C04C0 00000113 0000029A 00000000
0012FDECh:  015A15CE DCBAABCD 00000000 0012FE3C
0012FDFCh:  015A15CE 0012FE68 77D487EB 015A15CE
0012FE0Ch:  008C04C0 00000113 0000029A 00000000
0012FE1Ch:  0012FF00 0012FEF8 006CE548 00000014
0012FE2Ch:  00000001 00000000 00000000 00000010
0012FE3Ch:  00000000 77D4ECD2 00000000 00000000
0012FE4Ch:  00000000 0012FE1C 0012F9A0 0012FEB8
0012FE5Ch:  77D70494 77D48808 00000000 0012FEC8
0012FE6Ch:  77D489A5 00000000 015A15CE 008C04C0
0012FE7Ch:  00000113 0000029A 00000000 006CE55C
0012FE8Ch:  00000001 00000004 00000004 00000000
Registers:
EAX: 015C51F8, EBX: 025F8C20, ECX: 02600770, EDX: 00000003
ESI: 00000004, EDI: 015A522C, EBP: 0012FDAC, ESP: 0012FD7C
Unable to identify crash location

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 - 7761C000h
msvcrt                           loaded at 77C10000h - 77C68000h
ADVAPI32                         loaded at 77DD0000h - 77E6B000h
RPCRT4                           loaded at 77E70000h - 77F01000h
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
foo_abx                          loaded at 008D0000h - 008DC000h
foo_ac3                          loaded at 008E0000h - 008F3000h
foo_albumlist                    loaded at 00900000h - 0090B000h
foo_ape                          loaded at 00910000h - 0092F000h
foo_apl                          loaded at 00930000h - 0093A000h
foo_audioscrobbler               loaded at 00940000h - 00960000h
LIBCURL                          loaded at 00960000h - 00979000h
WS2_32                           loaded at 71AB0000h - 71AC7000h
WS2HELP                          loaded at 71AA0000h - 71AA8000h
WINMM                            loaded at 76B40000h - 76B6D000h
foo_bitcompare                   loaded at 00A10000h - 00A19000h
foo_burninate                    loaded at 00A20000h - 00A2C000h
VERSION                          loaded at 77C00000h - 77C08000h
foo_cdda                         loaded at 00A30000h - 00A3E000h
foo_clienc                       loaded at 00A40000h - 00A4B000h
foo_console                      loaded at 00A50000h - 00A57000h
foo_convolve                     loaded at 00A60000h - 00AAF000h
foo_dbexplorer                   loaded at 00AB0000h - 00ABD000h
foo_diskwriter                   loaded at 00AC0000h - 00AD2000h
foo_dsp_continuator              loaded at 00AE0000h - 00AE8000h
foo_dsp_crossfade                loaded at 00AF0000h - 00AF7000h
foo_dsp_crossfeed                loaded at 00B00000h - 00B06000h
foo_dsp_extra                    loaded at 00B10000h - 00B25000h
foo_dsp_nogaps                   loaded at 00B30000h - 00B37000h
foo_dsp_skip_silence             loaded at 00B40000h - 00B47000h
foo_dsp_white_noise              loaded at 00B50000h - 00B57000h
foo_dumb                         loaded at 00B60000h - 00B8C000h
foo_dynamics                     loaded at 00B90000h - 00B97000h
foo_festalon                     loaded at 00BA0000h - 00CDE000h
foo_flac                         loaded at 00CE0000h - 00CFD000h
foo_floater                      loaded at 00D00000h - 00D08000h
foo_formatedit                   loaded at 00D10000h - 00D22000h
foo_freedb                       loaded at 00D30000h - 00D5E000h
foo_gym                          loaded at 00D60000h - 00DBE000h
foo_history                      loaded at 00DC0000h - 00DD5000h
foo_id3v2                        loaded at 00DE0000h - 00E10000h
MSVCP60                          loaded at 76080000h - 760E5000h
foo_infobox                      loaded at 00E10000h - 00E23000h
foo_input_std                    loaded at 00E30000h - 00ECD000h
MSACM32                          loaded at 77BE0000h - 77BF5000h
foo_masstag                      loaded at 00ED0000h - 00EE4000h
foo_matroska                     loaded at 00EF0000h - 00F2F000h
foo_midi                         loaded at 00F30000h - 00FBF000h
MFC42                            loaded at 73DD0000h - 73ECE000h
OLEAUT32                         loaded at 77120000h - 771AC000h
foo_mixer                        loaded at 00FC0000h - 00FD2000h
foo_mpeg4u                       loaded at 00FE0000h - 01009000h
foo_nez                          loaded at 01010000h - 0103C000h
foo_null                         loaded at 01040000h - 01047000h
foo_oggpreview                   loaded at 01050000h - 01165000h
foo_osd                          loaded at 01170000h - 0117C000h
foo_output_std                   loaded at 01280000h - 01289000h
foo_out_dsound_ex                loaded at 01290000h - 01299000h
DSOUND                           loaded at 73F10000h - 73F6C000h
foo_out_ks                       loaded at 012B0000h - 012BB000h
SETUPAPI                         loaded at 77920000h - 77A13000h
foo_playlistfind                 loaded at 012C0000h - 012CB000h
foo_playlistgen                  loaded at 012D0000h - 012DA000h
foo_playlistgen_ex               loaded at 012E0000h - 012EF000h
foo_pphsresample                 loaded at 012F0000h - 01300000h
foo_psf                          loaded at 01300000h - 013AC000h
foo_quicktag                     loaded at 013B0000h - 013B9000h
foo_read_http                    loaded at 013C0000h - 013C9000h
foo_recycle                      loaded at 013D0000h - 013D9000h
MSVCR71                          loaded at 7C340000h - 7C396000h
foo_rgscan                       loaded at 013F0000h - 013FD000h
foo_scheduler                    loaded at 01400000h - 01414000h
foo_scroll                       loaded at 01420000h - 01426000h
foo_search_ex                    loaded at 01430000h - 01438000h
foo_shuffle                      loaded at 01440000h - 0144B000h
foo_spc                          loaded at 01450000h - 01461000h
foo_speex                        loaded at 01470000h - 01488000h
foo_uie_albumlist                loaded at 01490000h - 0149E000h
foo_uie_simple_spectrum          loaded at 014A0000h - 014AB000h
foo_uie_tabs                     loaded at 014B0000h - 014B9000h
foo_ui_columns                   loaded at 014C0000h - 014F1000h
foo_ui_std                       loaded at 01500000h - 01517000h
foo_unpack                       loaded at 01520000h - 01551000h
foo_utils                        loaded at 01560000h - 01571000h
foo_vis_bacon                    loaded at 01580000h - 01597000h
foo_vis_manager                  loaded at 015A0000h - 015A8000h
foo_vis_simple_spectrum          loaded at 015B0000h - 015BA000h
foo_vis_vu_meter                 loaded at 015C0000h - 015C8000h
foo_vorbisenc                    loaded at 015D0000h - 016CD000h
foo_wavpack                      loaded at 016D0000h - 016E4000h
foo_winamp_input                 loaded at 016F0000h - 0171A000h
foo_wma                          loaded at 01720000h - 0173A000h
WMVCore                          loaded at 7D790000h - 7D99A000h
wmidx                            loaded at 4B320000h - 4B349000h
WMASF                            loaded at 59A10000h - 59A4C000h
msdmo                            loaded at 736B0000h - 736B7000h
WININET                          loaded at 771B0000h - 77256000h
CRYPT32                          loaded at 77A80000h - 77B14000h
MSASN1                           loaded at 77B20000h - 77B32000h
urlmon                           loaded at 77260000h - 772FE000h
MSVFW32                          loaded at 75A70000h - 75A91000h
WSOCK32                          loaded at 71AD0000h - 71AD9000h
DRMClien                         loaded at 01740000h - 0178F000h
foo_xa                           loaded at 017A0000h - 017AF000h
foo_oddcast                      loaded at 01860000h - 01A0B000h
vorbis                           loaded at 01A10000h - 01B1C000h
ogg                              loaded at 017B0000h - 017BF000h
BASS                             loaded at 017C0000h - 0181A000h
BASSWMA                          loaded at 10100000h - 1011C000h
LibToTray                        loaded at 01B20000h - 01B30000h
MSCTF                            loaded at 74720000h - 7476B000h
UxTheme                          loaded at 5AD70000h - 5ADA8000h
in_usf                           loaded at 01CD0000h - 01D6F000h
RSP                              loaded at 01D70000h - 01DA2000h
Powrprof                         loaded at 74AD0000h - 74AD8000h
WINTRUST                         loaded at 76C30000h - 76C5E000h
IMAGEHLP                         loaded at 76C90000h - 76CB8000h
wdmaud                           loaded at 72D20000h - 72D29000h
msacm32                          loaded at 72D10000h - 72D18000h
midimap                          loaded at 77BD0000h - 77BD7000h
mswsock                          loaded at 71A50000h - 71A8F000h
DNSAPI                           loaded at 76F20000h - 76F47000h
mslbui                           loaded at 605D0000h - 605D9000h
winrnr                           loaded at 76FB0000h - 76FB8000h
WLDAP32                          loaded at 76F60000h - 76F8C000h
rasadhlp                         loaded at 76FC0000h - 76FC6000h
hnetcfg                          loaded at 662B0000h - 66308000h
wshtcpip                         loaded at 71A90000h - 71A98000h
KsUser                           loaded at 73EE0000h - 73EE4000h
xpsp2res                         loaded at 20000000h - 202C5000h
netapi32                         loaded at 5B860000h - 5B8B4000h
appHelp                          loaded at 77B40000h - 77B62000h
CLBCATQ                          loaded at 76FD0000h - 7704F000h
COMRes                           loaded at 77050000h - 77115000h
shdocvw                          loaded at 77760000h - 778CC000h
CRYPTUI                          loaded at 754D0000h - 75550000h
msi                              loaded at 7D1E0000h - 7D492000h
USERENV                          loaded at 769C0000h - 76A73000h
RadExe                           loaded at 033A0000h - 033D2000h
Secur32                          loaded at 77FE0000h - 77FF1000h
vis_avs                          loaded at 03B30000h - 03BAA000h
DDRAW                            loaded at 73760000h - 737A9000h
DCIMAN32                         loaded at 73BC0000h - 73BC6000h
AVIFIL32                         loaded at 73B50000h - 73B67000h
3D                               loaded at 03400000h - 03413000h
colormap                         loaded at 03DB0000h - 03DBA000h
convolution                      loaded at 03DC0000h - 03DD0000h
fyrewurx                         loaded at 03DE0000h - 03DF4000h
multifilter                      loaded at 03F10000h - 03F16000h
multiplier                       loaded at 03F20000h - 03F29000h
texer                            loaded at 04040000h - 04047000h
texer2                           loaded at 04050000h - 0405B000h
VF                               loaded at 04060000h - 0406A000h
AcSignIcon                       loaded at 626B0000h - 626D6000h
WINSPOOL                         loaded at 73000000h - 73026000h
OLEACC                           loaded at 74C80000h - 74CAC000h
ntshrui                          loaded at 76990000h - 769B5000h
ATL                              loaded at 76B20000h - 76B31000h
AcSignCore16                     loaded at 62760000h - 62799000h
MPR                              loaded at 71B20000h - 71B32000h
drprov                           loaded at 75F60000h - 75F67000h
ntlanman                         loaded at 71C10000h - 71C1E000h
NETUI0                           loaded at 71CD0000h - 71CE7000h
NETUI1                           loaded at 71C90000h - 71CD0000h
NETRAP                           loaded at 71C80000h - 71C87000h
SAMLIB                           loaded at 71BF0000h - 71C03000h
davclnt                          loaded at 75F70000h - 75F79000h
MSGINA                           loaded at 75970000h - 75A67000h
WINSTA                           loaded at 76360000h - 76370000h
ODBC32                           loaded at 74320000h - 7435D000h
odbcint                          loaded at 04E40000h - 04E57000h
DBGHELP                          loaded at 59A60000h - 59B01000h

Stack dump analysis:
Address: 015A18FCh, location: "foo_vis_manager", loaded at 015A0000h - 015A8000h
Address: 015A522Ch, location: "foo_vis_manager", loaded at 015A0000h - 015A8000h
Address: 00420700h, location: "foobar2000", loaded at 00400000h - 00452000h
Address: 00FCF3CEh, location: "foo_mixer", loaded at 00FC0000h - 00FD2000h
Address: 015A16B0h, location: "foo_vis_manager", loaded at 015A0000h - 015A8000h
Address: 015A15CEh, location: "foo_vis_manager", loaded at 015A0000h - 015A8000h
Address: 77D48709h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetDC" (+00000072h)
Address: 015A15CEh, location: "foo_vis_manager", loaded at 015A0000h - 015A8000h
Address: 015A15CEh, location: "foo_vis_manager", loaded at 015A0000h - 015A8000h
Address: 77D487EBh, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetDC" (+00000154h)
Address: 015A15CEh, location: "foo_vis_manager", loaded at 015A0000h - 015A8000h
Address: 77D4ECD2h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "IsCharAlphaW" (+00000112h)
Address: 77D70494h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetClipboardFormatNameA" (+0000014Fh)
Address: 77D48808h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetDC" (+00000171h)
Address: 77D489A5h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetWindowLongW" (+00000127h)
Address: 015A15CEh, location: "foo_vis_manager", loaded at 015A0000h - 015A8000h
Address: 77D70494h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetClipboardFormatNameA" (+0000014Fh)
Address: 77D489C8h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "GetWindowLongW" (+0000014Ah)
Address: 77D489E8h, location: "USER32", loaded at 77D40000h - 77DD0000h
Symbol: "DispatchMessageW" (+0000000Fh)
Address: 100038ECh, location: "utf8api", loaded at 10000000h - 1000D000h
Symbol: "uDispatchMessage" (+0000000Ah)
Address: 0041238Bh, location: "foobar2000", loaded at 00400000h - 00452000h
Address: 00410FEAh, location: "foobar2000", loaded at 00400000h - 00452000h
Address: 00438DB5h, location: "foobar2000", loaded at 00400000h - 00452000h
Address: 00400000h, location: "foobar2000", loaded at 00400000h - 00452000h
Address: 00438DE0h, location: "foobar2000", loaded at 00400000h - 00452000h
Address: 0043C320h, location: "foobar2000", loaded at 00400000h - 00452000h
Address: 7C816D4Fh, location: "kernel32", loaded at 7C800000h - 7C8F4000h
Symbol: "RegisterWaitForInputIdle" (+00000049h)
Address: 7C8399F3h, location: "kernel32", loaded at 7C800000h - 7C8F4000h
Symbol: "FindAtomW" (+00000094h)
Address: 7C816D58h, location: "kernel32", loaded at 7C800000h - 7C8F4000h
Symbol: "RegisterWaitForInputIdle" (+00000052h)
Address: 00438C81h, location: "foobar2000", loaded at 00400000h - 00452000h

Version info:
foobar2000 v0.8.3
UNICODE
bleh
It's quite possible that foo_vis_bacon is doing something stupid that ends up triggering the problem even if the actual crash happens in foo_vis_manager. Can you give me an idea of the typical circumstances under which this crash is triggered?

[EDIT]: Well, I just noticed that AVS doesn't seem to get along particularly well if you have foo_vis_bacon set to Always on Top, you open up the AVS editor window, and then stop playback, causing the visualization to be closed. Interesting.

[ADDITIONAL EDIT]: Always on Top doesn't seem to matter; it's more a case of moving the AVS window around while the timer is counting down, at which point AVS seems to get stuck in a loop where it sends itself timer messages over and over again. Not sure what exactly I'm doing to cause this. :/
Canar
My problem's even weirder, but it seems to have something to do with the built-in script compiler. Usually the crash is triggered when I'm editing some complex superscope or dynamic movement, and usually involves a significant amount of dataloss. sad.gif It's rare, and only seems to happen after I've been working on a preset for several hours.

The crash doesn't happen in Winamp though.
bleh
Just so I can be sure, are you keeping the AVS window open by not killing the visualization on flush, or are you just playing music the entire time? I've currently got foo_vis_bacon running AVS with the editor open in the Visual Studio debugger to see if I can track this down and I'd like to get my settings as close to yours as possible.
Canar
QUOTE(bleh @ Nov 2 2004, 09:05 AM)
Just so I can be sure, are you keeping the AVS window open by not killing the visualization on flush, or are you just playing music the entire time?  I've currently got foo_vis_bacon running AVS with the editor open in the Visual Studio debugger to see if I can track this down and I'd like to get my settings as close to yours as possible.
*


Playing music the entire time.
bleh
Okay, I had it just kind of sitting there for four hours in the debugger without issue, but that was also without music, so I'll have to try it again. Also, what do you have set for flush handling? The reason I keep bringing this up is that the vast majority of the crashes I've seen with foo_vis_bacon either happened immediately after starting a plugin or around the time of shutting down visualization, so I suspect this issue is somehow related to one of those.

And just for certainty, which version are you using?

[EDIT] - See if this crashes just for kicks. I was able to get the crash to happen and it doesn't seem to have anything to do with starting or stopping visualization, but it also seems fiendishly hard to reproduce and I didn't get any useful debugging information out of it.
Canar
I'll try this as soon as possible. AVS is sort of an artsy thing for me; there are times when I enjoy it and times when I don't.
bleh
It's okay if you don't try it immediately; I'm just curious how good I am at guessing what's going wrong.
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-2008 Invision Power Services, Inc.