On 11/2/12 6:26 PM, Brandon Curtis wrote:
Whether I use plot(y,x,-2,2), plot(y,(x,-2,2)), plot(y,x,(-2,2)),
plot(y,(-2,2)), or plot(y,-2,2), the Notebook happily produces the same
plot and the Cell Server unhappily throws errors.

Okay.  I can't reproduce the error (yet) with my config.


var('x y')
y = x
plot(y)

In addition to the IPython sys.excepthook error:

{{{
File
"/opt/sage/sage-5.4.rc1/local/lib/python2.7/site-packages/ipython-0.14.dev-py2.7.egg/IPython/core/ultratb.py",
line 754, in structured_traceback
}}}

{{{
Traceback (most recent call last):
   File "/opt/sage/sage-5.4.rc1/devel/sagecell-main/receiver.py", line
181, in <module>
     receiver.start()
   File "/opt/sage/sage-5.4.rc1/devel/sagecell-main/receiver.py", line
36, in start
     response = handler(msg["content"])
   File "/opt/sage/sage-5.4.rc1/devel/sagecell-main/receiver.py", line
127, in start_kernel
     reply_content = self.km.start_kernel(resource_limits=resource_limits)
   File
"/opt/sage/sage-5.4.rc1/devel/sagecell-main/untrusted_kernel_manager.py", line
11, in start_kernel
     x = self.fkm.start_kernel(resource_limits=resource_limits)
   File
"/opt/sage/sage-5.4.rc1/devel/sagecell-main/forking_kernel_manager.py",
line 79, in start_kernel
     proc.start()
   File
"/opt/sage/sage-5.4.rc1/local/lib/python/multiprocessing/process.py",
line 130, in start
     self._popen = Popen(self)
   File
"/opt/sage/sage-5.4.rc1/local/lib/python/multiprocessing/forking.py",
line 125, in __init__
     code = process_obj._bootstrap()
   File
"/opt/sage/sage-5.4.rc1/local/lib/python/multiprocessing/process.py",
line 274, in _bootstrap
     sys.stderr.write('Process %s:\n' % self.name <http://self.name>)
MemoryError
}}}

Check the memory limits in the config. It looks like the default memory limit is 512MB, which actually seems a little low:

https://github.com/sagemath/sagecell/blob/master/config_default.py#L39

Can you try increasing that to see if that solves your problem? Increasing it to 1 or 2 GB may help.

"RLIMIT_AS": 1024*(2**20) # 1GB memory

This may also be the difference in our systems---I'm running on OS X, where the RLIMIT_AS is not a hard limit, but a suggestion.




sagecell.log repeats these two lines many times over, which I assume
have to do with forking to allow multiple users to access it simultaneously:
{{{
8d22e437: 2012-11-02 15:58:58,239 To connect another client to this
kernel, use:
8d22e437: 2012-11-02 15:58:58,239 --existing kernel-5637.json
}}}

Those messages appear when IPython forks a new kernel.


Is there an indication whether this is an error specific to IPython or
to Sage Cell?  What other logs should I look through?

Try increasing the memory. I notice that the one linux installation I have of the sage cell, I have the memory limit set at 2GB, not 512MB like the default is. My development setup is on OS X, where the memory limit doesn't mean anything.

I know this is still under heavy development, but I'd really like to get
a Cell Server working to demo in my class.
I will build sage-5.0 and attempt to install the older Cell Server
(https://github.com/sagemath/sagecell/blob/master/README.rst) while I
continue to troubleshoot this in parallel.


I'd suggest not spending time on the old sage cell server since it is essentially dead code at this point. But of course, that's up to you.

Thanks,

Jason


--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/sage-support?hl=en.


Reply via email to