Hi  Michael,
 
On 5 December 2006 at 11:34, Michael Hanke wrote:
| Package: python-rpy
| Version: 1.0~rc1-2
| Severity: normal
| 
| Hi,
| 
| when I use rpy to plot data with R I get a segfault when the plot output
| window is moved slighly outside the visible screen or is hidden by other 
| windows. Here is an example session that I could use to reproduce the error:
| 
|       [EMAIL PROTECTED]:~$ python
|       Python 2.4.4c0 (#2, Jul 30 2006, 15:43:58)
|       [GCC 4.1.2 20060715 (prerelease) (Debian 4.1.1-9)] on linux2
|       Type "help", "copyright", "credits" or "license" for more information.
|       >>> from rpy import *
|       RHOME= /usr/lib/R
|       RVERSION= 2.4.0
|       RVER= 2040
|       RUSER= /home/hanke
|       Loading Rpy version 2040 .. Done.
|       Creating the R object 'r' ..  Done
|       >>> x = range(0, 10)
|       >>> y = [ 2*i for i in x ]
|       >>> r.plot_default(x, y)
| 
| As long as the output window is in the foreground and not outside the
| visible screen everything is ok. But as soon as the window is (partly)
| covered by other windows and any action is done to it (move the window,
| put in foreground, ...) I get this:

Isn't that a window manager issue?

|       >>> Error during wrapup: C stack usage is too close to the limit
| 
|        *** caught segfault ***
|       address (nil), cause 'memory not mapped'
| 
|       Possible actions:
|       1: abort (with core dump)
|       2: normal R exit
|       3: exit R without saving workspace
|       4: exit R saving workspace
|       Selection:
| 
| And python dies :(

Not for me. Currnetly the R window is 'behind' Emacs and the (KDE) konsole
(xterm emulator) and I can happily replot:

[EMAIL PROTECTED]:~> python
Python 2.4.4 (#2, Oct 20 2006, 00:23:25)
[GCC 4.1.2 20061015 (prerelease) (Debian 4.1.1-16.1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from rpy import *
RHOME= /usr/lib/R
RVERSION= 2.4.0
RVER= 2040
RUSER= /home/edd
Loading Rpy version 2040 .. Done.
Creating the R object 'r' ..  Done
>>> x = range(0, 10)
>>> y = [ 2*i for i in x ]
>>> r.plot_default(x, y)
>>> r.plot_default(x, y)
>>> r.plot_default(x, y)
>>> r.plot_default(x, y)
>>> r.plot_default(x, y)
>>>                                 

All on testing too.  Not a bug in R as far I can tell (and the other way to
tell is to open a file device (png(), pdf(), .... in R, not sure what the RPy
way is) and plot there.

You may need to tweak your window manager, though....

Dirk
 
| 
| Best,
| 
| Michael
| 
| 
| -- System Information:
| Debian Release: 4.0
|   APT prefers testing
|   APT policy: (600, 'testing'), (200, 'unstable')
| Architecture: i386 (i686)
| Shell:  /bin/sh linked to /bin/bash
| Kernel: Linux 2.6.18-1-k7
| Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
| 
| Versions of packages python-rpy depends on:
| ii  libc6                   2.3.6.ds1-7      GNU C Library: Shared libraries
| ii  python                  2.4.3-11         An interactive high-level 
object-o
| ii  python-central          0.5.10           register and build utility for 
Pyt
| ii  python-numeric          24.2-7           Numerical (matrix-oriented) 
Mathem
| ii  r-base-core             2.4.0.20061103-1 GNU R core of statistical 
computin
| 
| python-rpy recommends no packages.
| 
| -- no debconf information
| 
| -- 
| GPG key:  1024D/3144BE0F Michael Hanke
| http://apsy.gse.uni-magdeburg.de/hanke
| ICQ: 48230050
| 

-- 
Hell, there are no rules here - we're trying to accomplish something. 
                                                  -- Thomas A. Edison


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to