From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83831 Path: news.gmane.org!not-for-mail From: Henning Hraban Ramm Newsgroups: gmane.comp.tex.context Subject: SOLVED: too many open files Date: Thu, 15 Aug 2013 21:48:09 +0600 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1376581736 16638 80.91.229.3 (15 Aug 2013 15:48:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Aug 2013 15:48:56 +0000 (UTC) To: mailing ConTeXt users list for Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 15 17:48:58 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V9znG-00089K-15 for gctc-ntg-context-518@m.gmane.org; Thu, 15 Aug 2013 17:48:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B53331020F; Thu, 15 Aug 2013 17:48:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 4yrZm5zNTHpF; Thu, 15 Aug 2013 17:47:36 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id B4F5710210; Thu, 15 Aug 2013 17:47:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6DB7410210 for ; Thu, 15 Aug 2013 17:47:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id mXoEcT0tg7dz for ; Thu, 15 Aug 2013 17:47:20 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 3B3581020F for ; Thu, 15 Aug 2013 17:47:20 +0200 (CEST) Original-Received: from thesan.fiee.net (thesan.fiee.net [178.77.74.245]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r7FFmEUJ029111 for ; Thu, 15 Aug 2013 17:48:16 +0200 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=fiee.net; b=bTtrUoiBFbrE+Y7YkGITX5V12anK97dWcEYt0yHOTj1UhgT1cCPJCLkB/5GV67U+ZBASKhrua01JTDOHCLYGyMnMLhq1Bqh0vNIrtPz7P7pl+1vCPPRmAjCV8lC89pdR; h=Received:Received:From:Content-Type:Content-Transfer-Encoding:Subject:Message-Id:Date:To:Mime-Version:X-Mailer; Original-Received: (qmail 19754 invoked from network); 15 Aug 2013 17:48:12 +0200 Original-Received: from unknown (HELO ?192.168.0.100?) (95.87.89.103) by thesan.fiee.net with ESMTPSA (AES128-SHA encrypted, authenticated); 15 Aug 2013 17:48:11 +0200 X-Mailer: Apple Mail (2.1508) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=178.77.74.245; country=DE; region=07; city=Host; latitude=51.6500; longitude=6.1833; http://maps.google.com/maps?q=51.6500,6.1833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03Kd3Melv - 991d447116fd - 20130815 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:83831 Archived-At: Hi again, in my current songbook project I use t-filter with LilyPond as shown in http://wiki.contextgarden.net/LilyPond with latest beta MkIV on OSX. Every line (system) of notes is included as its own PDF to leave the page breaking to ConTeXt. But since I have some hundred songs with each a few lines, it sums up... I guess ConTeXt keeps every externalfigure open, since I get this error: pages > flushing realpage 70, userpage 70 (c_helpmesee.tex structure > sectioning > TitelKlein @ level 2 : 0.83 -> Help Me See GNU LilyPond 2.16.2 ERROR: In procedure open-file: ERROR: Too many open files: "/Applications/music/LilyPond.app/Contents/Resources/bin/../share/guile/1.8/ice-9/r4rs.scm" LILYPOND > name='lilytemp/prd_alle-temp-lilypond-c_helpmesee.pdf' LILYPOND > including system no.1 LILYPOND > including system no.2 LILYPOND > including system no.3 LILYPOND > including system no.4 LILYPOND > including system no.5 ) (c_hochaufdem.tex Fatal error occurred, no output PDF file produced! It works with songbook excerpts (some 30 songs). I don't understand if the error is really from LilyPond or from LuaTeX (I guess the former), and how I would be able to increase the number of possible files (in bash on OSX 10.8.4). So probably it's more a general Unix question than a ConTeXt one, but anyway... ANALYSIS: $ ulimit -n 256 $ sysctl kern.maxfiles kern.maxfiles: 12288 $ sysctl kern.maxfilesperproc kern.maxfilesperproc: 10240 SOLUTION: $ ulimit -S -n 2048 (Properly describing a problem often helps to solve it. I send this for the records, in case someone runs into the same.) Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________