# Not enough memory / Runtime error

**URL:** https://community.mp3tag.de/t/not-enough-memory-runtime-error/41762
**Category:** Support
**Created:** [May 23, 2018, 9:42am UTC](https://community.mp3tag.de/t/not-enough-memory-runtime-error/41762 "2018-05-23T09:42:47Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![bascurtiz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@bascurtiz](https://community.mp3tag.de/u/bascurtiz)
#### Post date: [May 23, 2018, 9:42am UTC](https://community.mp3tag.de/t/not-enough-memory-runtime-error/41762/1 "2018-05-23T09:42:47Z")

</div>

Right clicking my music collection folder in order to open it in Mp3tag,  
Results in reading directory... until I get this error message:  
[https://gyazo.com/73bfaeb02c689001b0db928cfbbf96ec](https://gyazo.com/73bfaeb02c689001b0db928cfbbf96ec)

When clicking ok, I get the following message:  
[https://gyazo.com/9fc80c416b5e902c52f1d79af522a54e](https://gyazo.com/9fc80c416b5e902c52f1d79af522a54e)

Reading this topic, [[F] Not enough memory addressable to complete the operation!](https://community.mp3tag.de/t/f-not-enough-memory-addressable-to-complete-the-operation/19610/8), I've made sure to test my FLAC files with AudioTester64 and re-rippped/downloaded the ones that were either Truncated, LostSync & CRCMismatched (and deleted these faulty ones).

Since that didn't do the trick yet, I've used MP3 Diags, using option 4 where it does the following:  
[https://gyazo.com/1634cd70f3aa142d36fc1a14914e7fb4](https://gyazo.com/1634cd70f3aa142d36fc1a14914e7fb4)

Attached is the log-file.  
[Mp3tagError.log](https://community.mp3tag.de/uploads/default/original/2X/c/c3c2bad9e9b76a4a1b20c16861a97a9939f6081c.log) (404.6 KB)

I mean, 12000+ files, shouldnt be an issue with Mp3tag, nor my PC specs: AMD Ryzen 1700x / 32GB DDR4 RAM  
OS: Win10 x64 1709  
Mp3tag: v2.87a

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [May 23, 2018, 9:46am UTC](https://community.mp3tag.de/t/not-enough-memory-runtime-error/41762/2 "2018-05-23T09:46:46Z")

</div>

MP3tag is a 32bit application, so (only) 4GB or memory are available.

Check if you run into the same error when you switch on the library (see File\>Options\>Library). This feature releaves the electrical storage as it puts a lot of information on the hdd.

I don't know if MP3diags is the right tool for flacs ...

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [May 23, 2018, 9:47am UTC](https://community.mp3tag.de/t/not-enough-memory-runtime-error/41762/3 "2018-05-23T09:47:47Z")

</div>

Thanks for testing all the different error causes before posting.

Can you somehow reproduce the error? Does it always happen with a specific file?

If so, it could be that this file causes Mp3tag to try to allocate too much memory which would also result in the out of memory error (some kind of attempted memory exploit).

If you could identify the file that causes the issue, it would be great if you can provide it for analyzing purposes.

---

<div class="post-metadata">

### Author: ![bascurtiz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@bascurtiz](https://community.mp3tag.de/u/bascurtiz)
#### Post date: [May 23, 2018, 10:15am UTC](https://community.mp3tag.de/t/not-enough-memory-runtime-error/41762/4 "2018-05-23T10:15:42Z")

</div>

I use MP3 and FLAC files in my music collection, hence the 2 apps I mentioned.  
AudioTester64 for FLAC (only) failure detection (no way to fix them, but replace them with valid files);  
MP3 Diags for MP3 (only) - to fix bad tags and more.

Meanwhile I set the path using File\>Options\>Library and it seems to make a difference, see:

> **[Gyazo](https://gyazo.com/3c8a1abd4e6fba00f630197c0b35443d)**
>
> Easily capture screenshots, GIFs, and replays that are ready to share. Download the free app for windows and mac.

Not sure how to go from here though...

---

<div class="post-metadata">

### Author: ![bascurtiz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@bascurtiz](https://community.mp3tag.de/u/bascurtiz)
#### Post date: [May 23, 2018, 10:17am UTC](https://community.mp3tag.de/t/not-enough-memory-runtime-error/41762/5 "2018-05-23T10:17:51Z")

</div>

How do I know it happens with a specific file?  
I mean, when opening my subfolders 1-by-1 in Mp3tag, I dont have this issue.

See my structure/subfolders:  
[https://gyazo.com/d0a131a7a2b134b2a37b1bd364551c30](https://gyazo.com/d0a131a7a2b134b2a37b1bd364551c30)

---

<div class="post-metadata">

### Author: ![bascurtiz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@bascurtiz](https://community.mp3tag.de/u/bascurtiz)
#### Post date: [May 23, 2018, 10:29am UTC](https://community.mp3tag.de/t/not-enough-memory-runtime-error/41762/6 "2018-05-23T10:29:52Z")

</div>

I managed to open up all folders in 1 go (9777 files) without issues, like this:  
[https://gyazo.com/cde4a55be70e898fc45a8d9b200796b9](https://gyazo.com/cde4a55be70e898fc45a8d9b200796b9)

Mind you, the House folder which I've deselected here, is the biggest (92GB - 2912 files).

When I select them all, I get a different error-msg by now, see:  
[https://gyazo.com/54c0b819c22fc3a115316b6f9cf18de7](https://gyazo.com/54c0b819c22fc3a115316b6f9cf18de7)

---

<div class="post-metadata">

### Author: ![bascurtiz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@bascurtiz](https://community.mp3tag.de/u/bascurtiz)
#### Post date: [May 23, 2018, 10:35am UTC](https://community.mp3tag.de/t/not-enough-memory-runtime-error/41762/7 "2018-05-23T10:35:27Z")

</div>

Seems it's not related to the House folder though.  
Here I open up all folders in 1 go incl. House folder (total of 9665 files), without issues.  
[https://gyazo.com/5d18b81572f644407dbd0c2bbb2011fd](https://gyazo.com/5d18b81572f644407dbd0c2bbb2011fd)

Leaving Hardcore folder, since that's another huge one by itself (75GB - 3024 files).

Hmmm.

---

<div class="post-metadata">

### Author: ![bascurtiz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@bascurtiz](https://community.mp3tag.de/u/bascurtiz)
#### Post date: [May 23, 2018, 11:55am UTC](https://community.mp3tag.de/t/not-enough-memory-runtime-error/41762/8 "2018-05-23T11:55:01Z")

</div>

I've used the Convert action Filename - Tag on all folders by now, which all seem to do fine.  
If I grab more than 5000+ in 1 batch, I get the same ''not enough memory'' error message.  
This means, it's not related to a specfic file, right?

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [May 23, 2018, 12:22pm UTC](https://community.mp3tag.de/t/not-enough-memory-runtime-error/41762/9 "2018-05-23T12:22:12Z")

</div>

> [@bascurtiz](#):
>
> If I grab more than 5000+ in 1 batch

I load more than 100,000 files in one go (mp3 ones, very few flacs, though) without any problems.  
So I would still check

- the HD integrity with chkdsk /r /v
- see if the HD has problems in general with crystaldiskinfo.  
Then I would load different subsets of files to narrow down what may be the cause.

---

<div class="post-metadata">

### Author: ![bascurtiz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@bascurtiz](https://community.mp3tag.de/u/bascurtiz)
#### Post date: [May 23, 2018, 9:45pm UTC](https://community.mp3tag.de/t/not-enough-memory-runtime-error/41762/10 "2018-05-23T21:45:13Z")

</div>

After doing a chkdsk /r /v on my C: drive - where Mp3tag is installed - 512GB SSD, waited 50 minutes & finished.  
I did the same for E: drive where my audio collection is (2,20TB - 5900RPM): waited 4 hours and still at 14%.  
Pushed the Reset-button.  
CrystalDiskInfo shows SMART of both drives: GOOD with temps around 35 celcius.

I also have dBPoweramp which is able to do a Filename - Tag in Batch-mode.  
Let's see how that works out.

---

<div class="post-metadata">

### Author: ![bascurtiz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@bascurtiz](https://community.mp3tag.de/u/bascurtiz)
#### Post date: [May 23, 2018, 10:53pm UTC](https://community.mp3tag.de/t/not-enough-memory-runtime-error/41762/11 "2018-05-23T22:53:14Z")

</div>

dBpoweramp worked out fine, no issues.  
Though that's 64-bit app.

A friend of mine, suggested [https://docs.microsoft.com/en-us/sysinternals/downloads/procmon](https://docs.microsoft.com/en-us/sysinternals/downloads/procmon) to keep track where mp3tag gets into error-mode, to trace on which file.  
Let's find out.

---

<div class="post-metadata">

### Author: ![bascurtiz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@bascurtiz](https://community.mp3tag.de/u/bascurtiz)
#### Post date: [May 23, 2018, 11:04pm UTC](https://community.mp3tag.de/t/not-enough-memory-runtime-error/41762/12 "2018-05-23T23:04:47Z")

</div>

Not sure, if this helps but capture 1 is with the last succeeded FLAC file here:  
[https://gyazo.com/9d03c77a5d64f05b52b17bdf3e3c51ce](https://gyazo.com/9d03c77a5d64f05b52b17bdf3e3c51ce)

And capture 2 is with the last message of Process Monitor filtered on Mp3tag.exe:  
[https://gyazo.com/e7b64831c03d4f8f688e7fc64898d8f7](https://gyazo.com/e7b64831c03d4f8f688e7fc64898d8f7)

Does this help?

---

<div class="post-metadata">

### Author: ![bascurtiz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@bascurtiz](https://community.mp3tag.de/u/bascurtiz)
#### Post date: [May 23, 2018, 11:13pm UTC](https://community.mp3tag.de/t/not-enough-memory-runtime-error/41762/13 "2018-05-23T23:13:54Z")

</div>

Deleted the Rod Stewart song, just to be sure, it's not simply that song.  
Now it's Jimi Hendrix where it stalls (though shows SUCCESS), so not sure this error is actually file-wise:  
[https://gyazo.com/344b5bf57a851fec51bdb802fda3c3f1](https://gyazo.com/344b5bf57a851fec51bdb802fda3c3f1)

---

<div class="post-metadata">

### Author: ![bascurtiz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@bascurtiz](https://community.mp3tag.de/u/bascurtiz)
#### Post date: [May 23, 2018, 11:33pm UTC](https://community.mp3tag.de/t/not-enough-memory-runtime-error/41762/14 "2018-05-23T23:33:26Z")

</div>

The same friend suggested to look up the mem-usage of Mp3tag.  
According to him due there is no 'large address aware' switch for Mp3tag it only uses 2GB max.

TECHNICAL FILE INFORMATION :  
File Type Description : Portable Executable (PE)  
Entry Point RVA: 003548C1h  
Entry Point RAW: 00353CC1h

FILE CHARACTERISTICS :  
Relocation info stripped from file  
File is executable (i.e. no unresolved external references)  
Machine based on 32-bit-word architecture  
FILE HEADER :

```
Machine: 014Ch (i386 or later, and compatible)
Number of Sections: 0004h
Time Date Stamp: 5ABD46AFh -> 29/03/2018 22:03:59  
Symbols Pointer: 00000000h
Number Of Symbols: 00000000h
Size Of Optional Header: 00E0h
Flags: 0103h

```

So I enabled the /3gb switch according to this tutorial and rebooted:

> **[How to enable the 3GB switch in Windows | AutoCAD 2017 | Autodesk Knowledge...](https://knowledge.autodesk.com/support/autocad/learn-explore/caas/sfdcarticles/sfdcarticles/How-to-enable-a-3GB-switch-on-Windows-Vista-Windows-7-or-Windows-XP-s.html)**
>
> You want to make more memory available to your Autodesk application by enabling the 3GB switch on your 32-bit version of Windows XP, Windows Vista, Windows 7, or Windows 8 operating systems. While the 3GB switch may be a useful tool that allows you...

Still same issue, as shown here:  
[https://gyazo.com/f6288e65decb7d7b3bcbbcd68f1da0f4](https://gyazo.com/f6288e65decb7d7b3bcbbcd68f1da0f4)

Mind you, before the /3gb it was stalled at 1.815,6MB of Memory usage (so practically the same).

---

<div class="post-metadata">

### Author: ![bascurtiz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@bascurtiz](https://community.mp3tag.de/u/bascurtiz)
#### Post date: [May 23, 2018, 11:50pm UTC](https://community.mp3tag.de/t/not-enough-memory-runtime-error/41762/15 "2018-05-23T23:50:48Z")

</div>

''If a 32bit executable does not have the LARGEADDRESSAWARE flag set to true, the application can't use more than 2 gigabytes. If you are on a 64bit machine with lots of memory, even if you are stuck with a 32bit process, you should ideally be able to start multiple processes each using 3+ gigabytes.''

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [May 24, 2018, 5:07am UTC](https://community.mp3tag.de/t/not-enough-memory-runtime-error/41762/16 "2018-05-24T05:07:00Z")

</div>

> [@bascurtiz](#):
>
> I did the same for E: drive where my audio collection is (2,20TB - 5900RPM): waited 4 hours and still at 14%.  
> Pushed the Reset-button.

I do not think that 4 hours for just 2 TB is normal.  
And as the process did not finish, it is hard to say what the cause may be as faults on the drive, which I suspect, have still not been ruled out.

---

<div class="post-metadata">

### Author: ![bascurtiz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@bascurtiz](https://community.mp3tag.de/u/bascurtiz)
#### Post date: [May 24, 2018, 9:07am UTC](https://community.mp3tag.de/t/not-enough-memory-runtime-error/41762/17 "2018-05-24T09:07:58Z")

</div>

Copied the whole collection over to external drive, tried mp3tag on different PC (i5 3470 / 16GB) ; same result. Not enough memory:  
[https://gyazo.com/690e5632e818c0becd8767647cae17e7](https://gyazo.com/690e5632e818c0becd8767647cae17e7)

Doesnt this outrule a faulty drive?

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [May 24, 2018, 9:13am UTC](https://community.mp3tag.de/t/not-enough-memory-runtime-error/41762/18 "2018-05-24T09:13:52Z")

</div>

> [@bascurtiz](#):
>
> Doesnt this outrule a faulty drive?

Yes, I would say so.  
But again: I can load FAR more than just 5000 files into MP3tag.  
So the assumption is not too far-fetched that it has to be some kind of local condition that causes it.  
If the fault is still there when the collection is treated on a different hardware, we are more or less back to square one: it is most likely that one of the files has a fault.  
And all this happens with the library switched on?

---

<div class="post-metadata">

### Author: ![bascurtiz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@bascurtiz](https://community.mp3tag.de/u/bascurtiz)
#### Post date: [May 24, 2018, 10:09am UTC](https://community.mp3tag.de/t/not-enough-memory-runtime-error/41762/19 "2018-05-24T10:09:09Z")

</div>

Just tried it on the i5 PC, this time with Library set to Ext. drive/Music folder, same result.  
I will now make a copy of the whole music collection folder (327GB).  
And delete the FLAC files; so MP3 is left over.  
And do the same on the copy, but then delete the MP3 files; so FLAC is left over.  
So the folder structure stays intact.  
Re-import only MP3 based collection and re-import only FLAC based collection.  
To be continued.

---

<div class="post-metadata">

### Author: ![movtar](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/53a042/32.png) [@movtar](https://community.mp3tag.de/u/movtar)
#### Post date: [May 24, 2018, 12:21pm UTC](https://community.mp3tag.de/t/not-enough-memory-runtime-error/41762/20 "2018-05-24T12:21:34Z")

</div>

Hey All, I'm the friend of Bas... mp3tag ran out of memory at 2GB, so i edited the binary to support the larger address space (4GB). (editbin /LARGEADDRESSAWARE ).

Now we can load more mp3 and flac and it runs out of memory at 4GB.. My conclusion: recompile mp3tag witg 64bit support.

[Next page](https://community.mp3tag.de/t/not-enough-memory-runtime-error/41762.md?page=2)
