COW Mac OS X Build 60 - Out of memory error

Questions and answers for COW Macintosh and Windows
Post Reply
nmad
Posts: 5
Joined: Fri Aug 19, 2016 11:45 pm

COW Mac OS X Build 60 - Out of memory error

Post by nmad »

I just started using COW Pro on the Mac. I tried importing a PGN file with a collection of master games. The import process was slower that I expected. After importing around 57K games (which took hours), the program stopped importing and its windows contents became corrupted with an "out of memory" error message. The PGN file is about 150 MB in size and contains ~ 215K games.

Thanks,

Navid

P.S. the out of memory error actually occurs with fewer games import - around 5K, e.g. when importing any of the files from http://www.chessopeningspgn.com/chess/Openings.html
MikeAtBookup
Posts: 198
Joined: Mon Aug 01, 2016 2:02 pm

Re: COW Mac OS X Build 60 - Out of memory error

Post by MikeAtBookup »

Hey Navid,

Needless to say, I've had the Macintosh version import some large PGN files as part of testing.

I'm not sure what would cause and "out of memory" error. Does the problem come up after you restart your Mac and run only COW for the import?
-------------------
Mike Leahy
:geek: Head Geek at bookup.com
nmad
Posts: 5
Joined: Fri Aug 19, 2016 11:45 pm

Re: COW Mac OS X Build 60 - Out of memory error

Post by nmad »

I highly doubt that system memory is the issue. There are 16 GB on the system.

I think the program runs out of heap rather than running into a stack overflow. I think the best option would be to run a debug build with ReportMemoryLeaksOnShutdown set to true and observe if there would be a leak.

Navid
nmad
Posts: 5
Joined: Fri Aug 19, 2016 11:45 pm

Re: COW Mac OS X Build 60 - Out of memory error

Post by nmad »

Any response?
MikeAtBookup
Posts: 198
Joined: Mon Aug 01, 2016 2:02 pm

Re: COW Mac OS X Build 60 - Out of memory error

Post by MikeAtBookup »

nmad wrote:Any response?
Sorry, I missed your earlier response.

As recursion is used to parse PGN files, overflowing the heap is more likely. Then the problem would be to find the game that has so many nested variations that it could cause such a problem.

The program is written in Delphi so I'm not sure how to trap a heap overflow.
-------------------
Mike Leahy
:geek: Head Geek at bookup.com
MikeAtBookup
Posts: 198
Joined: Mon Aug 01, 2016 2:02 pm

Re: COW Mac OS X Build 60 - Out of memory error

Post by MikeAtBookup »

...and I meant stack overflow. :)

It could also have a memory leak. That would be easier to test for.
-------------------
Mike Leahy
:geek: Head Geek at bookup.com
User avatar
amadeo300
Posts: 15
Joined: Mon Dec 23, 2024 5:14 pm

Re: COW Mac OS X Build 60 - Out of memory error

Post by amadeo300 »

men i really love it mac
Post Reply