Closed GoogleCodeExporter closed 8 years ago
Does it always happen or just sometimes? I could not found the problem
according above information. Sorry.
Original comment by limo...@gmail.com
on 9 Jun 2010 at 4:48
I think I misdiagnosed the problem. It looks like Ulipad is segfaulting
immediately after startup now. Give me a minute
Original comment by zman...@gmail.com
on 9 Jun 2010 at 4:51
It seems like just opening a second tab is suddenly causing a segfault
Original comment by zman...@gmail.com
on 9 Jun 2010 at 4:54
It's too strange, I've never seen this problem before.
Original comment by limo...@gmail.com
on 9 Jun 2010 at 5:52
I ended up deleting my working directory and checking ulipad out from the repo
again and it fixed it.
Original comment by zman...@gmail.com
on 9 Jun 2010 at 7:50
Ok, that's good.
Original comment by limo...@gmail.com
on 9 Jun 2010 at 8:25
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()
Original comment by zman...@gmail.com
on 9 Jun 2010 at 11:22
Attachments:
I think the autocompletion of Ulipad is through executing the python code, so
some modules may break the execution of Ulipad, and the main reason is the
executing is in the same running environment of Ulipad. And I think it's not so
easy to fix now. Sorry.
Original comment by limo...@gmail.com
on 9 Jun 2010 at 11:57
No problem. just switch to another editor. Thought it would helpful to have a
record of actual problem
Original comment by zman...@gmail.com
on 9 Jun 2010 at 12:00
You are right. Thanks.
Original comment by limo...@gmail.com
on 9 Jun 2010 at 12:04
Original issue reported on code.google.com by
zman...@gmail.com
on 9 Jun 2010 at 4:41