Hi, On Thu, Dec 28, 2000 at 04:48:39AM +0100, Mårten Svantesson wrote: > > While trying to run gimp 1.2.0 on Solaris 7/SPARC: > > $ gimp > > > > Gimp-WARNING **: Failed to open palette file > > /home/china/.gimp-1.2/palettes/Bears: can't happen? > > Gimp-WARNING **: Failed to open palette file > > /home/china/.gimp-1.2/palettes/Bgold: can't happen? > > <snip> > > This works without a hitch on Solaris 8/SPARC. Well, turns out the > > default number of file descriptors on Solaris 8/SPARC is 256. On > > Solaris 7/SPARC, it's 64 (look at output of 'limit' command). > > Modifying this with: > > $ ulimit -n 256 > > solved the problem. To bump the number of file descriptors system > > wide, add the following to /etc/system: > > * set soft limit on file descriptors > > set rlim_fd_cur = 256 > > Wouldn't it be a good idea to make gimp call setrlimit to fix this if, > say, the limit is below 256? And if it turns out the hard limit is to low > the user should get a warning. Without having looked at the code - what do we need that many FDs for?! We don't need to open all palettes at once, do we? Bye, Tino. -- * LINUX - Where do you want to be tomorrow? * http://www.tu-chemnitz.de/linux/tag/ 3rd Chemnitzer Linux-Tag from 10th to 11th March 2001 at Chemnitz University of Technology!