[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error when compiling a large file

From: James
Subject: Re: Error when compiling a large file
Date: Tue, 19 Feb 2013 12:42:45 +0000


On 19 February 2013 10:06, Phil Holmes <address@hidden> wrote:

> "James" <address@hidden> wrote in message news:CA+T3wFm6ocUSfVyd=**
> address@hidden
> Miguel,
>  I have a quite powerful desktop and use Linux, but I only saw 1 CPU being
>> used and never above 2.5GB of RAM (using the 'top' command - a bit like
>> Windows' Task Manager/Processes if you haven't used top before).
> Single core is correct - LilyPond is single threaded.
>  I know that that probably doesn't help that much. I do have a windows
>> machine I could try it on, but that wil have to wait for now as I have to
>> get to work!
>  I've attached your Zip file here in case anyone else with Windows wants to
>> give it a go.
> Just run is on my normal desktop - 6 Gig RAM, Vista 64 bit.  It dies after
> 6 minutes, having consumed 1.3 Gigs of RAM.  I suspect it might be a
> problem with Windows memory allocation - it's possible each process is
> restricted to how much RAM it can allocate.

Yes there is a limit per process - the software company I work for hits
that all the time so we have to spawn multiple instances of a particular
process to get the RAM we need to use for a given driver. Slightly
different to what LP does but there are limits.

However these are not normally something that you will hit as a general
user on 64 bit OSs.

I have just run it on my Win7 32bit 2G RAM and get this

C:\Users\jlowe.DCSW\Desktop>lilypond "m orchestral score.ly"
GNU LilyPond 2.16.1
Processing `m orchestral score.ly'
Preprocessing graphical objects...terminate called after throwing an
instance of 'std::bad_alloc'
  what():  St9bad_alloc

This application has requested the Runtime to terminate it in an unusual
Please contact the application's support team for more information.


Which is what the user is getting.

I watched the Process Monitor slowly use up all the 1.2GB of Free memory I
have on this relatively underpowered desktop get all used up when it then

So I think the user is running out of memory for this file.

The event logs shows


Faulting application name: lilypond.exe, version:, time stamp:
Faulting module name: lilypond.exe, version:, time stamp:
Exception code: 0x40000015
Fault offset: 0x004237ce
Faulting process id: 0xed8
Faulting application start time: 0x01ce0e9c4bdffa41
Faulting application path: C:\Program Files\LilyPond\usr\bin\lilypond.exe
Faulting module path: C:\Program Files\LilyPond\usr\bin\lilypond.exe
Report Id: 6379eb11-7a90-11e2-8407-001d09802a5d


Now looking in ntstatus.h the exception code just gives me


Which is just a generic error message - nothing more.

Doing a quick google for 'what():  St9bad_alloc' it seems that this is
likely to be because we are running out of memory.

The question is how we can reduce the memory usage I guess but that is
certainly beyond my pay grade.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]