Liviu Andronic
2009-Nov-19 12:22 UTC
[Rd] strange crashes caused by 'cairoDevice' and 'tcltk' dialogues
Dear developers I get some strange crashes when 'cairoDevice' and 'tcltk' are both loaded in the same R vanilla session. When executing the following in that order require(relimp) require(cairoDevice) showData (iris) I get a crash with the following message (see R-relimp-cairoDevice.txt): The program 'R' received an X Window System error. This probably reflects a bug in the program. The error was 'BadWindow (invalid Window parameter)'. (Details: serial 2832 error_code 3 request_code 15 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) When I inverse the order of calls, I no longer seem to get issues. (See R-cairoDevice-relimp.txt) require(cairoDevice) require(relimp) showData (iris) Initially I got issues with 'playwith' and 'Rcmdr', but managed to pin down to 'cairoDevice' and 'tcltk' (although it could still be something else). At this point I'm stuck. I tried R -d gdb --vanilla but> require(relimp)Loading required package: relimp Loading Tcl/Tk interface ... [Thread debugging using libthread_db enabled] Cannot find new threads: generic error (gdb) quit I get the same error when trying to load Rcmdr in gdb. Could someone point me to the right direction of investigating these crashes? Thank you Liviu liviu at debian-liv:~$ uname -a Linux debian-liv 2.6.30-1-amd64 #1 SMP Sat Aug 15 18:09:19 UTC 2009 x86_64 GNU/Linux liviu at debian-liv:~$ cat /etc/apt/sources.list | grep cran2deb deb http://debian.cran.r-project.org/cran2deb/debian-amd64/ testing/> sessionInfo()R version 2.10.0 (2009-10-26) x86_64-pc-linux-gnu locale: [1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_GB.UTF-8 LC_COLLATE=en_GB.UTF-8 [5] LC_MONETARY=C LC_MESSAGES=en_GB.UTF-8 [7] LC_PAPER=en_GB.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] relimp_1.0-1 cairoDevice_2.10 loaded via a namespace (and not attached): [1] tcltk_2.10.0 -------------- next part -------------- liviu at debian-liv:~$ R --vanilla R version 2.10.0 (2009-10-26) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.> require(relimp)Loading required package: relimp Loading Tcl/Tk interface ... done> showData (iris) > require(cairoDevice)Loading required package: cairoDevice Warning message: package 'cairoDevice' was built under R version 2.9.0 and help may not work correctly> > showData (iris) > The program 'R' received an X Window System error.This probably reflects a bug in the program. The error was 'BadWindow (invalid Window parameter)'. (Details: serial 2832 error_code 3 request_code 15 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) -------------- next part -------------- liviu at debian-liv:~$ R --vanilla R version 2.10.0 (2009-10-26) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.> require(cairoDevice)Loading required package: cairoDevice Warning message: package 'cairoDevice' was built under R version 2.9.0 and help may not work correctly> require(relimp)Loading required package: relimp Loading Tcl/Tk interface ... done> showData(iris) > sessionInfo()R version 2.10.0 (2009-10-26) x86_64-pc-linux-gnu locale: [1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_GB.UTF-8 LC_COLLATE=en_GB.UTF-8 [5] LC_MONETARY=C LC_MESSAGES=en_GB.UTF-8 [7] LC_PAPER=en_GB.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] relimp_1.0-1 cairoDevice_2.10 loaded via a namespace (and not attached): [1] tcltk_2.10.0> quit()