gavin@stats.gla.ac.uk
2003-May-13 13:47 UTC
[Rd] R crashes when resizing windows (PR#2992)
Full_Name: Gavin Alexander Version: 1.7.0 OS: Win2000 Submission from: (NULL) (130.209.6.40) When I resize the R-GUI console window by dragging an edge and drag for more than a second or two, R crashes. The program exits, leaving a pop-up "Program Error" box with the message: "Rgui.exe has generated errors and will be closed by Windows. You will need to restart the program. An Error log is being created.". I now avoid having to resize the console window by setting the default size in GUI preferences. However, R still crashes when resizing help windows, which don't have a user-settable default size. I am using R version 1.7.0, but can replicate this problem in the only other versions I have used: 1.4.1 and 1.6.2, in both MDI and SDI mode, all in Win2000. Gavin Alexander
ligges@statistik.uni-dortmund.de
2003-May-13 14:22 UTC
[Rd] R crashes when resizing windows (PR#2992)
gavin@stats.gla.ac.uk wrote:> Full_Name: Gavin Alexander > Version: 1.7.0 > OS: Win2000 > Submission from: (NULL) (130.209.6.40) > > > When I resize the R-GUI console window by dragging an edge and drag for more > than a second or two, R crashes. The program exits, leaving a pop-up "Program > Error" box with the message: > "Rgui.exe has generated errors and will be closed by Windows. > You will need to restart the program. > An Error log is being created.". > > I now avoid having to resize the console window by setting the default size in > GUI preferences. However, R still crashes when resizing help windows, which > don't have a user-settable default size. > > I am using R version 1.7.0, but can replicate this problem in the only other > versions I have used: 1.4.1 and 1.6.2, in both MDI and SDI mode, all in > Win2000. > > Gavin AlexanderThis is the same as PR#1711. But thanks anyway, since you provide an interesting information: It's easy to reproduce this crash now by continously (slowly) dragging a couple of seconds, at least on my machine (WinNT4.0). Anyway, this one is hard to fix. Please read the thread for PR#1711 for more information, particularly the message From: Duncan Murdoch <murdoch@stats.uwo.ca> To: ripley@stats.ox.ac.uk Cc: <socrates@mail.ru>, <R-bugs@biostat.ku.dk> Subject: Re: GUI bug (PR#1711) Date: Thu, 27 Jun 2002 10:15:01 -0400 Uwe Ligges
This is PR#1711 ! On Tue, 13 May 2003 gavin@stats.gla.ac.uk wrote:> Full_Name: Gavin Alexander > Version: 1.7.0 > OS: Win2000 > Submission from: (NULL) (130.209.6.40) > > > When I resize the R-GUI console window by dragging an edge and drag for more > than a second or two, R crashes. The program exits, leaving a pop-up "Program > Error" box with the message: > "Rgui.exe has generated errors and will be closed by Windows. > You will need to restart the program. > An Error log is being created.". > > I now avoid having to resize the console window by setting the default size in > GUI preferences. However, R still crashes when resizing help windows, which > don't have a user-settable default size.They do: look in the Rconsole file or Edit | Preferences. (Hint: a `help window' is actually a pager window.)> I am using R version 1.7.0, but can replicate this problem in the only other > versions I have used: 1.4.1 and 1.6.2, in both MDI and SDI mode, all in > Win2000.Could you send us a patch please? *We* find is very hard to re-create. -- 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
On Tue, 13 May 2003 13:47:23 +0200 (MET DST), you wrote:>Full_Name: Gavin Alexander >Version: 1.7.0 >OS: Win2000 >Submission from: (NULL) (130.209.6.40) > > >When I resize the R-GUI console window by dragging an edge and drag for more >than a second or two, R crashes. The program exits, leaving a pop-up "Program >Error" box with the message: >"Rgui.exe has generated errors and will be closed by Windows. > You will need to restart the program. > An Error log is being created.". > >I now avoid having to resize the console window by setting the default size in >GUI preferences. However, R still crashes when resizing help windows, which >don't have a user-settable default size. > >I am using R version 1.7.0, but can replicate this problem in the only other >versions I have used: 1.4.1 and 1.6.2, in both MDI and SDI mode, all in >Win2000.This sounds like an existing bug (PR#1711) that we've found very hard to reproduce. However, I recently committed changes to the resize code to fix another bug; it's conceivable my fix would have an effect on this one too, hopefully positive! Could you please try R-patched? You can download a binary build from my web page, <http://www.stats.uwo.ca/faculty/murdoch/software/r-devel> You want to get rw1070pat.exe from that page. Duncan Murdoch
ligges@statistik.uni-dortmund.de
2003-May-13 15:18 UTC
[Rd] R crashes when resizing windows (PR#2992)
Duncan Murdoch wrote:> On Tue, 13 May 2003 13:47:23 +0200 (MET DST), you wrote: > > >>Full_Name: Gavin Alexander >>Version: 1.7.0 >>OS: Win2000 >>Submission from: (NULL) (130.209.6.40) >> >> >>When I resize the R-GUI console window by dragging an edge and drag for more >>than a second or two, R crashes. The program exits, leaving a pop-up "Program >>Error" box with the message: >>"Rgui.exe has generated errors and will be closed by Windows. >>You will need to restart the program. >>An Error log is being created.". >> >>I now avoid having to resize the console window by setting the default size in >>GUI preferences. However, R still crashes when resizing help windows, which >>don't have a user-settable default size. >> >>I am using R version 1.7.0, but can replicate this problem in the only other >>versions I have used: 1.4.1 and 1.6.2, in both MDI and SDI mode, all in >>Win2000. > > > This sounds like an existing bug (PR#1711) that we've found very hard > to reproduce. However, I recently committed changes to the resize > code to fix another bug; it's conceivable my fix would have an effect > on this one too, hopefully positive! Could you please try R-patched? > You can download a binary build from my web page, > > <http://www.stats.uwo.ca/faculty/murdoch/software/r-devel> > > You want to get rw1070pat.exe from that page. > > Duncan Murdoch >Duncan, the bug still persists in R-1.7.0 Patched (2003-05-13) which I just got via rsync. Uwe
gavin@stats.gla.ac.uk
2003-May-13 16:53 UTC
[Rd] R crashes when resizing windows (PR#2992)
I tried R-1.7.0 Patched too and the problem hasn't changed. I tried to replicate the bug on a colleague's machine and it behaved differently: In this case the window would freeze for a few seconds at a time while being resized. The cursor then also froze, requiring use of CtrlAltDel and Task Manager to kill the process. However, R didn't crash and exit by itself. It's maybe worth pointing out that the problem can be removed (at least in Win2000) by going to Control Panel > Display Properties > Effects and deselecting "Show window contents while dragging". Gavin>Duncan, the bug still persists in R-1.7.0 Patched (2003-05-13) which I >just got via rsync. > >Uwe >* * Dr Gavin D. Alexander Department of Statistics Mathematics Building University Gardens University of Glasgow GLASGOW G12 8QW SCOTLAND Tel: 0141-330-4852 email: gavin@stats.gla.ac.uk
On Tue, 13 May 2003 15:57:36 +0100, you wrote:>I tried R-1.7.0 Patched too and the problem hasn't changed.I can reproduce this, and I'm close to having a patch to put in for it. However, I'm finding lots of oddities in Graphapp; I'm not sure which of them is to blame! - GETHDC is being passed a null object, and is trying to dereference it. This is likely the immediate cause of the crash. But where is that null object coming from? - The reference counting code will only decrease the reference count if the count is exactly 1, but it will increase any positive count. This is probably causing memory leaks. - There's an array that caches "device contexts". It's being handled in a very strange way. Duncan Murdoch