bug-lilypond
[Top][All Lists]
Advanced

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

Re: lilypond-book runs out of memory: large file compilatioin fails


From: Nikita
Subject: Re: lilypond-book runs out of memory: large file compilatioin fails
Date: Wed, 2 Jul 2008 07:45:42 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Nikita <nikita.a.borisenko <at> gmail.com> writes:

> 
> I have a tex document with large number of lilypond snipsets, say about 
> several
> thousands. When I run lilypond-book 2.10.25 on it I get the following error
> while dissecting:
> 
> Dissecting...Traceback (most recent call last):
>   File "/usr/bin/lilypond-book", line 1879, in <module>
>     main ()
>   File "/usr/bin/lilypond-book", line 1845, in main
>     chunks = do_file (file)
>   File "/usr/bin/lilypond-book", line 1723, in do_file
>     chunks = find_toplevel_snippets (source, snippet_types)
>   File "/usr/bin/lilypond-book", line 1355, in find_toplevel_snippets
>     m = res[type].search (s[index:endex])
> MemoryError
> 
> My OS is Ubuntu with 4G memory. When I see `top` during compilation I see that
> the free memory is going down and in 5 minutes I get the error above. For 
> small
> files everything is going right.
> 

Greetings,

This problems arises on 32-bit systems for extremely large files. 32-bit systems
can't address more than 4G memory so playing around with swap gives no solution.
Seems that for amd64 this is can be solved by swapping on enough disk space.

The problem is that lilypond-book script tries to dissect any file in one pass
and runs out of memory if the file is very large. The solution that worked for
me was to split the file and process it by parts. That could probably be coded
within lilypond-book itself. The latest version I tried 2.11.49 suffered from
the same problem.

Best,
Nikita.






reply via email to

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