google-code-export / ulipad

Automatically exported from code.google.com/p/ulipad
0 stars 0 forks source link

Copy Paste between tabs cause segmentation fault #250

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm on Ubuntu Lucid and operating from svn trunk.

Two .py files are open. One is blank. Copy text in left tab. Paste text in 
right tab. Segmentation fault on paste

Original issue reported on code.google.com by zman...@gmail.com on 9 Jun 2010 at 4:41

GoogleCodeExporter commented 9 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
It's too strange, I've never seen this problem before.

Original comment by limo...@gmail.com on 9 Jun 2010 at 5:52

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Ok, that's good.

Original comment by limo...@gmail.com on 9 Jun 2010 at 8:25

GoogleCodeExporter commented 9 years ago
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:

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
You are right. Thanks.

Original comment by limo...@gmail.com on 9 Jun 2010 at 12:04