From murdoch at stats.uwo.ca  Tue Sep 19 04:03:47 2006
From: murdoch at stats.uwo.ca (murdoch at stats.uwo.ca)
Date: Tue, 19 Sep 2006 04:03:47 +0200 (CEST)
Subject: [Rd] Rgui.exe plot device "Save as" crash (PR#9237)
Message-ID: <20060919020347.D8E4E4BE66@slim.kubism.ku.dk>

On 9/18/2006 9:39 PM, murdoch at stats.uwo.ca wrote:
> On 9/18/2006 8:32 PM, mwtoews at sfu.ca wrote:
>> Full_Name: Michael Toews
>> Version: 2.3.1
>> OS: WindowsXP Home/Proffesional SP2
>> Submission from: (NULL) (142.58.206.114)
>>
>>
>> Hi,
>> I have a bug that I can reproduce on two different MS Windows platforms
>> (1:AMD64x2/WinXP SP2 Home; 2:P4/WinXP SP2 Prof.) which is triggered by the "Save
>> as" dialog when saving a plot from a Windows device onto the Desktop. This bug
>> is difficult to reproduce, but here are some instructions to attempt a crash:
>> 1) Start R from Start menu
>> 2) Plot something simple, such as "plot(1:5)"
>> 3) Choose "File > Save as PDF"
>> 4) In the dialog, click the "Save in:" drop-down menu at the top, and select
>> "Desktop"
>> 5) Type "boohoo" in the "File name:" field, and click "Save"
>> 6) Repeat steps 3 and 4, but try to not hover the mouse over any files or window
>> controls, except for "boohoo.pdf" (although this isn't always the case). If you
>> don't crash, repeat steps 3 to 5 again until a crash.
>> 7) *crash*; Windows will display the default crash dialog; Rgui.exe will appear
>> in the Windows Task Manager (ctrl-alt-del in Processes tab) using about 0 of
>> CPU.
> 
> Thanks for the detailed instructions.  I can reproduce this in 2.3.1, 
> and a fairly recent (but not today's) R-patched build.  I'm just 
> building a current Alpha build to test it there.

I do see the crash in R version 2.4.0 alpha (2006-09-17 r39373), with
this stack dump:


Call stack:
7CA5158E  SHELL32.dll:7CA5158E  SHCreateQueryCancelAutoPlayMoniker
7CB2FE26  SHELL32.dll:7CB2FE26  CallCPLEntry16
7CB2FF6A  SHELL32.dll:7CB2FF6A  CallCPLEntry16
7CB295B5  SHELL32.dll:7CB295B5  Ordinal211
7C9F208D  SHELL32.dll:7C9F208D  ILFindChild
75F81B9A  browseui.dll:75F81B9A  Ordinal113
77F69498  SHLWAPI.dll:77F69498  Ordinal120
7C927545  ntdll.dll:7C927545  RtlUpcaseUnicodeString
7C927583  ntdll.dll:7C927583  RtlUpcaseUnicodeString
7C927645  ntdll.dll:7C927645  RtlUpcaseUnicodeString
7C92761C  ntdll.dll:7C92761C  RtlUpcaseUnicodeString
7C80B683  kernel32.dll:7C80B683  GetModuleFileNameA

I really don't know where to go to start looking for this.  It would be
nice if we had something like valgrind for Windows, but we don't.

Duncan Murdoch




[Rd] Rgui.exe plot device "Save as" crash (PR#9237)
murdoch at stats.uwo.ca