ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 28 Mar 2015 17:28:39 +0100parametric_plot3d fails with floating-point parameterhttps://ask.sagemath.org/question/26329/parametric_plot3d-fails-with-floating-point-parameter/The following code
u,v = var('u,v')
X = u * cos(v) - (1/3)* u^3 * cos(v*3)
Y = - u * sin(v) - (1/3) *u^3 * sin(3*v)
Z = u^2 *cos(2*v)
p = parametric_plot3d([X,Y,Z], (u,0,1),(v,0,2*pi),frame=False, color="blue")
works but with 0.9 in place of 1 in range of u produces an error. Namely,
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().
Sage will now terminate.
Wed, 25 Mar 2015 19:28:58 +0100https://ask.sagemath.org/question/26329/parametric_plot3d-fails-with-floating-point-parameter/Comment by dazedANDconfused for <p>The following code</p>
<pre><code>u,v = var('u,v')
X = u * cos(v) - (1/3)* u^3 * cos(v*3)
Y = - u * sin(v) - (1/3) *u^3 * sin(3*v)
Z = u^2 *cos(2*v)
p = parametric_plot3d([X,Y,Z], (u,0,1),(v,0,2*pi),frame=False, color="blue")
</code></pre>
<p>works but with 0.9 in place of 1 in range of u produces an error. Namely,</p>
<pre><code>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().
Sage will now terminate.
</code></pre>
https://ask.sagemath.org/question/26329/parametric_plot3d-fails-with-floating-point-parameter/?comment=26330#post-id-26330Keeping all the code the same but changing the last line to: parametric_plot3d([X,Y,Z], (u,0,.9),(v,0,2*pi),frame=False, color="blue") and then running the code in a [Sage Cell server ](https://sagecell.sagemath.org/) results in working output. You should include details about the version of Sage that you're using.Wed, 25 Mar 2015 20:46:21 +0100https://ask.sagemath.org/question/26329/parametric_plot3d-fails-with-floating-point-parameter/?comment=26330#post-id-26330Comment by beeson for <p>The following code</p>
<pre><code>u,v = var('u,v')
X = u * cos(v) - (1/3)* u^3 * cos(v*3)
Y = - u * sin(v) - (1/3) *u^3 * sin(3*v)
Z = u^2 *cos(2*v)
p = parametric_plot3d([X,Y,Z], (u,0,1),(v,0,2*pi),frame=False, color="blue")
</code></pre>
<p>works but with 0.9 in place of 1 in range of u produces an error. Namely,</p>
<pre><code>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().
Sage will now terminate.
</code></pre>
https://ask.sagemath.org/question/26329/parametric_plot3d-fails-with-floating-point-parameter/?comment=26332#post-id-26332I am using version 6.5 downloaded today (as this code, which used to run in 4.8, won't run in 4.8 under Mac OS 10.9)Wed, 25 Mar 2015 21:54:04 +0100https://ask.sagemath.org/question/26329/parametric_plot3d-fails-with-floating-point-parameter/?comment=26332#post-id-26332Comment by tmonteil for <p>The following code</p>
<pre><code>u,v = var('u,v')
X = u * cos(v) - (1/3)* u^3 * cos(v*3)
Y = - u * sin(v) - (1/3) *u^3 * sin(3*v)
Z = u^2 *cos(2*v)
p = parametric_plot3d([X,Y,Z], (u,0,1),(v,0,2*pi),frame=False, color="blue")
</code></pre>
<p>works but with 0.9 in place of 1 in range of u produces an error. Namely,</p>
<pre><code>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().
Sage will now terminate.
</code></pre>
https://ask.sagemath.org/question/26329/parametric_plot3d-fails-with-floating-point-parameter/?comment=26335#post-id-26335It works for me too.Thu, 26 Mar 2015 00:06:22 +0100https://ask.sagemath.org/question/26329/parametric_plot3d-fails-with-floating-point-parameter/?comment=26335#post-id-26335Comment by eric_g for <p>The following code</p>
<pre><code>u,v = var('u,v')
X = u * cos(v) - (1/3)* u^3 * cos(v*3)
Y = - u * sin(v) - (1/3) *u^3 * sin(3*v)
Z = u^2 *cos(2*v)
p = parametric_plot3d([X,Y,Z], (u,0,1),(v,0,2*pi),frame=False, color="blue")
</code></pre>
<p>works but with 0.9 in place of 1 in range of u produces an error. Namely,</p>
<pre><code>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().
Sage will now terminate.
</code></pre>
https://ask.sagemath.org/question/26329/parametric_plot3d-fails-with-floating-point-parameter/?comment=26340#post-id-26340It works for me too, with Sage 6.5.Thu, 26 Mar 2015 11:05:13 +0100https://ask.sagemath.org/question/26329/parametric_plot3d-fails-with-floating-point-parameter/?comment=26340#post-id-26340Comment by beeson for <p>The following code</p>
<pre><code>u,v = var('u,v')
X = u * cos(v) - (1/3)* u^3 * cos(v*3)
Y = - u * sin(v) - (1/3) *u^3 * sin(3*v)
Z = u^2 *cos(2*v)
p = parametric_plot3d([X,Y,Z], (u,0,1),(v,0,2*pi),frame=False, color="blue")
</code></pre>
<p>works but with 0.9 in place of 1 in range of u produces an error. Namely,</p>
<pre><code>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().
Sage will now terminate.
</code></pre>
https://ask.sagemath.org/question/26329/parametric_plot3d-fails-with-floating-point-parameter/?comment=26344#post-id-26344Which Mac OS are you guys running? Maybe it works with 10.10 but not with 10.9 ?Thu, 26 Mar 2015 16:44:00 +0100https://ask.sagemath.org/question/26329/parametric_plot3d-fails-with-floating-point-parameter/?comment=26344#post-id-26344Comment by beeson for <p>The following code</p>
<pre><code>u,v = var('u,v')
X = u * cos(v) - (1/3)* u^3 * cos(v*3)
Y = - u * sin(v) - (1/3) *u^3 * sin(3*v)
Z = u^2 *cos(2*v)
p = parametric_plot3d([X,Y,Z], (u,0,1),(v,0,2*pi),frame=False, color="blue")
</code></pre>
<p>works but with 0.9 in place of 1 in range of u produces an error. Namely,</p>
<pre><code>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().
Sage will now terminate.
</code></pre>
https://ask.sagemath.org/question/26329/parametric_plot3d-fails-with-floating-point-parameter/?comment=26346#post-id-26346From a terminal session, using "attach" to load the file, this plot command does not work even with parameter 1. In the console one can find some error messages:
3/26/15 9:32:43.876 AM com.apple.appkit.xpc.openAndSavePanelService[1061]: assertion failed: 13F34: liblaunch.dylib + 25164 [A40A0C7B-3216-39B4-8AE0-B5D3BAF1DA8A]: 0x25
3/26/15 9:32:43.896 AM com.apple.appkit.xpc.openAndSavePanelService[1061]: assertion failed: 13F34: liblaunch.dylib + 25164 [A40A0C7B-3216-39B4-8AE0-B5D3BAF1DA8A]: 0x25
3/26/15 9:32:43.931 AM com.apple.appkit.xpc.openAndSavePanelService[1061]: Bogus event received by listener connection:
<error: 0x7fff78af4b50> { count = 1, contents =
"XPCErrorDescription" => <string: 0x7fff78af4e60> { length = 18, contents = "Connection invalid" }
}
3/26/15 9:32:46.948 AM com.apple.IconServicesAgent[303]: main Failed to composit image for binding VariantBinding [0x3e5] flags: 0x8 binding: FileInfoBinding [0x5bf] - extension: eps, UTI: com.adobe.encapsulated-postscript, fileType: ????.
3/26/15 9:32:46.949 AM quicklookd[1064]: Warning: Cache image returned by the server has size range covering all valid image sizes. Binding: VariantBinding [0x203] flags: 0x8 binding: FileInfoBinding [0x103] - extension: eps, UTI: com.adobe.encapsulated-postscript, fileType: ???? request size:16 scale: 1
3/26/15 9:32:46.953 AM com.apple.IconServicesAgent[303]: main Failed to composit image for binding VariantBinding [0x4c9] flags: 0x8 binding: FileInfoBinding [0x6c1] - extension: gif, UTI: com.compuserve.gif, fileType: ????.
3/26/15 9:32:46.953 AM quicklookd[1064]: Warning: Cache image returned by the server has size range covering all valid image sizes. Binding: VariantBinding [0x603] flags: 0x8 binding: FileInfoBinding [0x503] - extension: gif, UTI: com.compuserve.gif, fileType: ???? request size:16 scale: 1
3/26/15 9:32:54.321 AM Preview[1059]: Failed to read a font collection file at /Users/beeson/Library/FontCollections/com.apple.Recents.collection. Recommend manually removing the file.
3/26/15 9:32:55.043 AM Preview[1059]: It does not make sense to draw an image when [NSGraphicsContext currentContext] is nil. This is a programming error. Break on void _NSWarnForDrawingImageWithNoCurrentContext() to debug. This will be logged only once. This may break in the future.
3/26/15 9:32:55.097 AM Preview[1059]: view service marshal for <NSRemoteView: 0x7fe60ac13dc0> failed to forget accessibility connection due to Error Domain=NSCocoaErrorDomain Code=4099 "Couldnâ€™t communicate with a helper application." (The connection was invalidated from this process.) UserInfo=0x608000276c80 {NSDebugDescription=The connection was invalidated from this process.}
timestamp: 09:32:55.097 Thursday 26 March 2015
process/thread/queue: Preview (1059) / 0x10479c000 / com.apple.NSXPCConnection.user.endpoint
code: line 2972 of /SourceCache/ViewBridge/ViewBridge-46.2/NSRemoteView.m in __57-[NSRemoteView viewServiceMarshalProxy:withErrorHandler:]_block_invoke
domain: communications-failureThu, 26 Mar 2015 17:36:38 +0100https://ask.sagemath.org/question/26329/parametric_plot3d-fails-with-floating-point-parameter/?comment=26346#post-id-26346Comment by kcrisman for <p>The following code</p>
<pre><code>u,v = var('u,v')
X = u * cos(v) - (1/3)* u^3 * cos(v*3)
Y = - u * sin(v) - (1/3) *u^3 * sin(3*v)
Z = u^2 *cos(2*v)
p = parametric_plot3d([X,Y,Z], (u,0,1),(v,0,2*pi),frame=False, color="blue")
</code></pre>
<p>works but with 0.9 in place of 1 in range of u produces an error. Namely,</p>
<pre><code>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().
Sage will now terminate.
</code></pre>
https://ask.sagemath.org/question/26329/parametric_plot3d-fails-with-floating-point-parameter/?comment=26351#post-id-26351Presumably the title of the binary should have the version number in it?Thu, 26 Mar 2015 18:43:33 +0100https://ask.sagemath.org/question/26329/parametric_plot3d-fails-with-floating-point-parameter/?comment=26351#post-id-26351Comment by kcrisman for <p>The following code</p>
<pre><code>u,v = var('u,v')
X = u * cos(v) - (1/3)* u^3 * cos(v*3)
Y = - u * sin(v) - (1/3) *u^3 * sin(3*v)
Z = u^2 *cos(2*v)
p = parametric_plot3d([X,Y,Z], (u,0,1),(v,0,2*pi),frame=False, color="blue")
</code></pre>
<p>works but with 0.9 in place of 1 in range of u produces an error. Namely,</p>
<pre><code>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().
Sage will now terminate.
</code></pre>
https://ask.sagemath.org/question/26329/parametric_plot3d-fails-with-floating-point-parameter/?comment=26348#post-id-26348This works fine for me in OS X 10.7. However, I'm wondering which binary you downloaded. If you downloaded the 10.10 binary and you are on 10.9, you should expect strange errors of this kind.Thu, 26 Mar 2015 17:58:51 +0100https://ask.sagemath.org/question/26329/parametric_plot3d-fails-with-floating-point-parameter/?comment=26348#post-id-26348Comment by beeson for <p>The following code</p>
<pre><code>u,v = var('u,v')
X = u * cos(v) - (1/3)* u^3 * cos(v*3)
Y = - u * sin(v) - (1/3) *u^3 * sin(3*v)
Z = u^2 *cos(2*v)
p = parametric_plot3d([X,Y,Z], (u,0,1),(v,0,2*pi),frame=False, color="blue")
</code></pre>
<p>works but with 0.9 in place of 1 in range of u produces an error. Namely,</p>
<pre><code>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().
Sage will now terminate.
</code></pre>
https://ask.sagemath.org/question/26329/parametric_plot3d-fails-with-floating-point-parameter/?comment=26349#post-id-26349I downloaded the correct binary, according to my memory. I don't know how to verify that.Thu, 26 Mar 2015 18:00:14 +0100https://ask.sagemath.org/question/26329/parametric_plot3d-fails-with-floating-point-parameter/?comment=26349#post-id-26349Answer by beeson for <p>The following code</p>
<pre><code>u,v = var('u,v')
X = u * cos(v) - (1/3)* u^3 * cos(v*3)
Y = - u * sin(v) - (1/3) *u^3 * sin(3*v)
Z = u^2 *cos(2*v)
p = parametric_plot3d([X,Y,Z], (u,0,1),(v,0,2*pi),frame=False, color="blue")
</code></pre>
<p>works but with 0.9 in place of 1 in range of u produces an error. Namely,</p>
<pre><code>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().
Sage will now terminate.
</code></pre>
https://ask.sagemath.org/question/26329/parametric_plot3d-fails-with-floating-point-parameter/?answer=26369#post-id-26369I installed Mac OS 10 and the corresponding version of Sage. Then it worked fine.
Also, I followed the instruction that says you can answer first and then log in. But after logging in, my answer seemed to disappear, so this is the second time I answered. If two answers turn out to appear, that's why.Sat, 28 Mar 2015 17:28:39 +0100https://ask.sagemath.org/question/26329/parametric_plot3d-fails-with-floating-point-parameter/?answer=26369#post-id-26369