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: ReplayGain scan crashing program (Read 473 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

ReplayGain scan crashing program

Having a strange issue where I will scan a folder of audio files, the program will crash. In task manager, I can see the disk activity go up a bit as you'd expect, then back to 0 and foobar2000.exe will be "Suspended". Lately I've just been scanning little by little and ending task over and over. The majority of my music is 320kbps MP3s so nothing really out of the ordinary. Running Windows 11 Pro x64 22H2.

What I have tried so far:
-Try scanning for per-file track gain instead of albums
-Moved folders from mechanical HDD to SSD
-Made sure scan is only using one format at a time (mp3, flac, etc)
-Opened folders in mp3tag and ensure everything is on ID3v2.3 and removed any APE tags
-Reinstall foobar from scratch using beta (went from x86 1.6.16 -> x64 2.0b24
-Navigated to view -> console to check for any diagnostic information but nothing regarding RG
-Try removing replaygain info instead of writing new info (still crashes)

Thread stack of suspended process
Code: [Select]
0x0000000000000000
ntdll.dll!ZwWaitForMultipleObjects+0x14
KERNELBASE.dll!WaitForMultipleObjectsEx+0xe9
KERNELBASE.dll!WaitForMultipleObjects+0xe
foobar2000.exe+0x23c0f7
foobar2000.exe+0x24cb4d
foobar2000.exe+0x23ce7d
foobar2000.exe+0x66c74
foobar2000.exe+0x23c88b
foobar2000.exe+0x23d3e7
ucrtbase.dll!recalloc+0xa3
KERNEL32.DLL!BaseThreadInitThunk+0x1d
ntdll.dll!RtlUserThreadStart+0x28

Attached Procmon logfile of foobar2000.exe when doing ctrl+A (2847 items) -> right clicking -> ReplayGain -> Remove ReplayGain information from files

Re: ReplayGain scan crashing program

Reply #1
This has happened to me in the past - processing 'freezes' up usually because of a corrupt file.

Try to verify files first using foo_verifier.

Usage: Select one or more tracks to test, choose "Utilities / Verify Integrity" from the context menu.

Re: ReplayGain scan crashing program

Reply #2
This has happened to me in the past - processing 'freezes' up usually because of a corrupt file.

Try to verify files first using foo_verifier.

Usage: Select one or more tracks to test, choose "Utilities / Verify Integrity" from the context menu.

I ran it and everything seems okay somehow. Hmm.


Re: ReplayGain scan crashing program

Reply #4
Is the RAM usage very high? Because that can happen with some True peak settings, especially when scanning many small files (https://hydrogenaud.io/index.php/topic,121957.0.html).

I monitored it and it stays at about 147MB pretty steady. My disk activity will go to 2-4MB/s then 0 after a second or two. I tried turning off the true peak scan and downsampling but same thing.

Did some more detective work. I'm leaning towards a file system/Windows issue because even with trying to remove the ReplayGain info from all the tags it crashes, so that would not even be engaging the scanning system at all I presume. Also out of curiosity I downloaded rsgain and manually scanned the folders using that outside of foobar entirely and... it crashed too after a few seconds of scanning. This is on an SSD too.

Might be a stretch but the only major computer change I made recently was changing from (in the bios) CSM on/secure boot disabled to CSM off/secure boot enabled (in order to play a game). I've noticed random odd computer issues since then so who knows, maybe I just need a reformat using the proper boot mode since it was my mistake to have the legacy mode on. But I reverted it and tested again and still it crashes. I don't know if this would be related at all.

Another test, I copied the folders with same files to my laptop and installed foobar and scanned there and yup, it worked with no crash. Very odd.

Re: ReplayGain scan crashing program

Reply #5
Do you have any programs installed that would access files in real-time? E.g. antivirus, backup software, anti-ransomware. If so, would check if disabling them makes any difference.
.

Re: ReplayGain scan crashing program

Reply #6
Do you have any programs installed that would access files in real-time? E.g. antivirus, backup software, anti-ransomware. If so, would check if disabling them makes any difference.


Yup, it's fixed.

Did a selective startup with all non-MS services disabled, turned off all startup items and it worked. Did some cleaning up and uninstalled/disabled and unneccessary services and it works now. I have a feeling Malwarebytes may have been the culprit but some other services/apps that were removed:

Everything
MBAM
Acronis services
SonicWall NetExtender
Autodesk
Misc gaming anti-cheats
Wacom

Thanks for the suggestion