On Sat, Aug 3, 2013 at 5:56 AM, Scott Kostyshak <skostysh at
princeton.edu> wrote:> I don't know if this is a bug. I can reproduce the following on Ubuntu
> 12.04.2 and 13.04 64-bit with R version 3.0.1 and with r63479. There
> is no difference if R is patched with the fix for PR#15407 or not,
> although without the fix there are more ways to trigger this.
>
> I can reproduce with the following:
>
> 1. Open R in gnome-terminal or xterm
>
> 2. Run 'library(tcltk)'
>
> 3. Run 'trace(tk_select.list, edit = TRUE)'
> and put "browser()" at the beginning of the onOK body (e.g. in
Vim run
> <<:g/onOK/put ='browser()'>>). That is, transform
>
> onOK <- function() {
> res <- 1L + as.integer(tkcurselection(box))
> cat("res is: ", res)
> ans.select_list <<- choices[res]
> tkgrab.release(dlg)
> tkdestroy(dlg)
> }
>
> to:
>
> onOK <- function() {
> browser()
> res <- 1L + as.integer(tkcurselection(box))
> cat("res is: ", res)
> ans.select_list <<- choices[res]
> tkgrab.release(dlg)
> tkdestroy(dlg)
> }
>
> 4. Run 'install.packages()'
>
> 5. Double-click on a package
>
> R becomes unresponsive and I have to kill it.
>
>> sessionInfo()
> R Under development (unstable) (2013-08-02 r63479)
> Platform: x86_64-unknown-linux-gnu (64-bit)
>
> locale:
> [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
> [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
> [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
> [7] LC_PAPER=en_US.UTF-8 LC_NAME=C
> [9] LC_ADDRESS=C LC_TELEPHONE=C
> [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
>
> attached base packages:
> [1] stats graphics grDevices utils datasets methods base
>
> Scott
>
>
> --
> Scott Kostyshak
> Economics PhD Candidate
> Princeton University
This might be related to PR#14730. I will add this info there unless
someone suggests otherwise.
Scott
--
Scott Kostyshak
Economics PhD Candidate
Princeton University