[Rd] cpu usage high with windows change dir / winDialogString (PR#11045)

Gabor Grothendieck ggrothendieck at gmail.com
Sat Mar 29 17:47:07 CET 2008


On Sat, Mar 29, 2008 at 12:32 PM, Duncan Murdoch <murdoch at stats.uwo.ca> wrote:
>
> On 29/03/2008 12:23 PM, Gabor Grothendieck wrote:
> > On Sat, Mar 29, 2008 at 12:06 PM, Duncan Murdoch <murdoch at stats.uwo.ca> wrote:
> >> On 28/03/2008 12:05 PM, seanpor at acm.org wrote:
> >>> Good afternoon,
> >>>
> >>> This is possibly a windows only bug, definitely of comparatively low
> >>> importance - but for the sake of completeness here we go.  I've
> >>> searched http://bugs.R-project.org/ etc., but can find no mention.
> >>>
> >>> For RGui.exe, the CPU usage goes to 100% for certain dialog boxes for
> >>> the duration that the dialog box is visible, e.g.
> >>>
> >>> * check CPU usage is low
> >>> * On the RGui.exe menu chose File / Change dir...
> >>> * the CPU usage goes to 100%
> >>> * hit OK
> >>> * the CPU usage goes back down again
> >> What is the bug here?  I'd guess it's not R using the cpu, rather some
> >> other process hooked to the dialog, but even if it really is R, why is
> >> this a bug?
> >
> > Maybe R is sitting in a loop consuming all the resources of the system?
>
> It's a SHBrowseForFolder call, with a callback.  If there's a bug, it
> looks to me as though it's in Windows.
>
> Duncan Murdoch
>

I wonder if any of the numerous settings in the _browseinfo
structure might be impacting this such as looking for networking
folders and if the user's networking setup impacts this since it
could start performing some network functions to find files over
a network.



More information about the R-devel mailing list