Comment #7 on issue 250 by zmanian: Copy Paste between tabs cause
segmentation fault
http://code.google.com/p/ulipad/issues/detail?id=250
Okay new diagnosis.
When I have the file below open, and I open second tab. Ulipad crashes.
Only seems to happen with this particular file.
import numpy
import rpy2.robjects.numpy2ri
import rpy2.robjects.packages
import rpy2.robjects
import rpy2.rinterface as rinterface
import time
#Requires rpy2 from debian squeeze
http://packages.debian.org/squeeze/python-rpy2 and "sudo apt-get install
r-cran-rggobi ggobi"
def r_refresh(interval = 0.03):
"""Prevents ggobi from freezing after called"""
# Ctrl-C to interrupt
while True:
rinterface.process_revents()
time.sleep(interval)
def ggobi(data):
"""Takes a numpy array and displays it in ggobi. """
rggobi=rpy2.robjects.packages.importr("rggobi")
immediaData=rpy2.robjects.numpy2ri.numpy2ri(data)
rpy2.rinterface.baseenv["ImmediaData"]=immediaData
rpy2.robjects.r("g <- ggobi(ImmediaData)")
r_refresh()
Attachments:
ggobi.py 764 bytes