#851 accepted
Dave Eckhardt

uncaught exception of type std::bad_alloc

Reported by Dave Eckhardt | July 16th, 2014 @ 10:44 PM

I am evaluating MailMate because Mail.app can't deal with a large
IMAP account because it can't ignore non-subscribed folders.

MailMate worked ok for a day or so but then crashed with "uncaught
exception of type std::bad_alloc". I am nervous because it looks
like MailMate is a 32-bit application and according to the crash
dump the address space looks pretty full... the region type/size
list looks like this:

REGION TYPE                      VIRTUAL
===========                      =======
ATS (font support)                 31.9M
CG backing stores                  7692K
CG image                            440K
CG raster data                      180K
CG shared images                    244K
CoreAnimation                      1956K
CoreData                              4K
CoreGraphics                          8K
CoreImage                            72K
CoreServices                         64K
Foundation                            8K
IOKit                              25.3M
IOKit (reserved)                      4K        reserved VM address space (unallocated)
Image IO                            192K
JS JIT generated code                16K
JS VM register file                4096K
JS garbage collector               1088K
Kernel Alloc Once                     4K
MALLOC                              2.9G
MALLOC (admin)                       64K
Memory Tag 242                       12K
OpenCL                               72K
OpenGL GLSL                        1280K
SQLite page cache                   384K
Stack                              71.2M
VM_ALLOCATE                        17.2M
WebKit Malloc                      4616K
__DATA                             31.1M
__IMAGE                             528K
__LINKEDIT                         52.6M
__OBJC                             4864K
__PAGEZERO                            4K
__TEXT                            191.0M
__UNICODE                           544K
mapped file                       410.9M
shared memory                        68K
===========                      =======
TOTAL                               3.7G
TOTAL, minus reserved VM space      3.7G

The mailboxes I'm subscribed to contain around 200K messages. Is this a
case of "sorry, bub, you are hopelessly large"?

If so, is a 64-bit version on the horizon (or a way to consume less memory
per message)? I guess 3G/210000 = 15KB, so maybe MailMate requires enough
memory to fit all headers into RAM at once?

Comments and changes to this ticket

  • benny

    benny July 17th, 2014 @ 06:11 PM

    • State changed from “new” to “accepted”

    Depending on your hardware, 200K should not be hopeless. I know a few users have 500K+ messages. But I recommend staying in the 50K-100K range for now.

    Yes, part of the problem is 32 bit, part of the problem is MailMate using a lot of memory. I have an experimental (unreleased) 64 bit version of MailMate in the works, but it currently uses even more memory and I need to do more optimizations before releasing it. I'll track progress on the 64 bit version in this ticket.

    If you are using r3905 (About window) then hold down ⌥ when clicking “Check Now” in the Software Update preferences window. Newer test releases include some memory related fixes.

    Thanks for trying out MailMate.

  • Dave Eckhardt

    Dave Eckhardt July 17th, 2014 @ 11:44 PM

    Indeed moving from 32-bit to 64-bit means that all pointers get larger,
    so more memory is consumed. But the upside is that the address space
    becomes (effectively) infinite.

    I will try the prerelease version.

  • benny

    benny September 28th, 2017 @ 02:35 PM

    • State changed from “accepted” to “fixreleased”

    This old request for a 64 bit version was somehow never closed. Doing it now.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Mac OS X email client.

Shared Ticket Bins

People watching this ticket

Pages