Ask Your Question
0

Sage 5.0 plot issue

asked 2012-05-17 14:56:50 +0100

calc314 gravatar image

updated 2015-01-13 20:46:10 +0100

FrédéricC gravatar image

Okay, so I've rebooted my Mac in 64 bit mode and am running Sage 5.0. When I do a plot3d and specify an opacity, I get the following error:

------------------------------------------------------------------------
Unhandled SIGILL: An illegal instruction occurred in Sage.
This probably occurred because a *compiled* component of Sage has a bug
in it and is not properly wrapped with sig_on(), sig_off(). You might
want to run Sage under gdb with 'sage -gdb' to debug this.
Sage will now terminate.
------------------------------------------------------------------------

I also get this on one simple interact that runs in the single cell server at sagemath.org/eval.html, which I assume is running Sage 5.0. Other interacts seem to run okay for me. The interact is:

var('x')
@interact
def test(a=slider(0,10,0.1,2),b=slider(-6,6,.1,0),c=slider(-3,3,1,1),d=slider(-4,4,1,0)):
   print 'Plot y = '+str(c)+'sin('+str(a)+'x + '+str(b)+') + '+str(d)
   p1=plot(c*sin(a*x+b)+d,(x,-6,6))
   show(p1)

I'm guessing that I don't have something set up right for Sage 5.0 to run correctly. Any ideas?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
3

answered 2012-05-17 15:20:15 +0100

kcrisman gravatar image

Do you have a middle-aged Mac? (Say, a Core Duo?)

Try

sage: int(2.4)

and if it crashes, you have the problem described at Trac 12954.

Building from scratch will make things fine, otherwise you may want to revert to 4.8 for now. Sadly.

edit flag offensive delete link more

Comments

That was it. Too bad. Thanks!

calc314 gravatar imagecalc314 ( 2012-05-17 15:34:39 +0100 )edit
0

answered 2012-12-06 10:57:23 +0100

stecher gravatar image

I'm having the exact same problem with Sage 5.4.1 on a Core 2 Duo Mac running OSX 10.7.5. Trac 12954 suggests the problem is fixed. Is this a new problem then? (The error output is the same as given above...)

edit flag offensive delete link more

Comments

It sounds like it might be a new problem. Did you build Sage from source, or did you download the binary?

Jason Grout gravatar imageJason Grout ( 2012-12-06 11:49:08 +0100 )edit

I downloaded the binary (Sage-5.4.1-OSX-64bit-10.7.app). Would it help if I tried to build it? Would I need anything other than Xcode for that?

stecher gravatar imagestecher ( 2012-12-06 12:24:39 +0100 )edit

Probably the problem is that you have a Core 2 Duo that is not 100% 64-bit; this has been a common issue lately with binaries. Xcode should be enough, or you might do well with a 10.6 binary. We're working on fixing this problem.

kcrisman gravatar imagekcrisman ( 2012-12-06 21:23:34 +0100 )edit
1

Thanks for that. The 64-bit 10.6 binary seems to work.

stecher gravatar imagestecher ( 2012-12-07 06:14:31 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2012-05-17 14:56:50 +0100

Seen: 843 times

Last updated: Dec 06 '12