From ripley at stats.ox.ac.uk  Wed May 14 09:31:54 2003
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Wed May 14 09:32:10 2003
Subject: [Rd] R crashes when resizing windows (PR#2992)
In-Reply-To: <3EC1EF8C.1000005@statistik.uni-dortmund.de>
Message-ID: <Pine.LNX.4.44.0305140830200.23510-100000@gannet.stats>

On Wed, 14 May 2003, Uwe Ligges wrote:

> Duncan Murdoch wrote:
> > I've now committed changes to R-patched which appear to fix this
> > crash, at least on my system.
> > 
> > The problem was as follows:
> > 
> > During resizing, R allocates multiple bitmaps, then deletes them all
> > at the end.  If resources are tight (or if you do a lot of resizing),
> > you can run out of something (not sure what) and then the bitmap
> > allocation will fail.  This is supposed to give you an error message,
> > but it was leading to a crash.
> > 
> > To make the problem worse, intermediate allocations weren't always
> > being freed.
> > 
> > I've fixed both problems now, and am uploading a binary Windows build
> > to <http://www.stats.uwo.ca/faculty/murdoch/software/r-devel>.  Please
> > download and install rw1070pat.exe (22,183,871 bytes) and see if you
> > can get it to crash or act badly now.
> > 
> > I'm heading out of town for a few days, so I'm not likely to respond
> > to reports immediately, but I'll do so as soon as I can.
> 
> I cannot (re)produce a crash anymore, instead the message "Insufficient 
> memory. Please close the console." appears.
> Is there any reason for closing the console?

Probably.  That means that one of the internal structures has not be
allocated, and carrying on would lead to a crash (or at least, that is
what it meant before Duncan's recent changes).

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


[Rd] R crashes when resizing windows (PR#2992)
Prof Brian Ripley