11
$\begingroup$

Bug introduced in 7.0.1 or earlier and fixed in 10.0.1


I'm plotting a 3D function, which makes Mathematica V9 (running on Windows 7) crash all the time. Does this only happen for me or for somebody else as well?

Plot3D[(Sqrt[x^2 + y^2])^0, {x, -2, 2}, {y, -2, 2}]

(I know that this function alone is not useful, but I found it in a much more complex function, and tracked down the actual source). If I use a power of something other than 0, it works.

The error-message is:

Mathematica Kernel for Windows has stopped working

Windows can check online for a solution to the problem.

Can somebody confirm the problem?

$\endgroup$
15
  • 2
    $\begingroup$ confirmed, but so what? The workaround is "don't do that".. (Wrapping the expression in Evaluate fixes it.. ) $\endgroup$
    – george2079
    Commented Sep 16, 2014 at 20:42
  • 2
    $\begingroup$ Confirmed with V10 running on OS X. $\endgroup$
    – m_goldberg
    Commented Sep 16, 2014 at 20:52
  • 2
    $\begingroup$ @george2079 I know that one can workaround by not doing it. but the problem arose in a serios calculation where some terms cancled such that the problematic part appeared. For this question, I have tracked the problem down to reduce "noise" in the question. $\endgroup$ Commented Sep 16, 2014 at 21:05
  • 13
    $\begingroup$ @george2079 I'd argue that the kernel should never crash, and instances in which it does so in a reproducible way should be considered bugs. If this is really a "don't do that" situation, it should print an error message rather than taking down the entire kernel. $\endgroup$
    – Guillochon
    Commented Sep 16, 2014 at 21:13
  • 7
    $\begingroup$ completely agreed with previous commenters that "don't do that" is the wrong response. The kernel should NEVER crash, and for that it doesn't matter how the crash was produced. The crash itself is the problem. The existence of a work-around is never sufficient to accept a kernel crash. It's like saying "if a certain plane type repeatedly crashes, don't use the plane, drive by car". We can't acquit the faulty system just because we can adapt our behavior (how we cope with the problem). It's still a problem. $\endgroup$ Commented Sep 16, 2014 at 22:18

1 Answer 1

8
$\begingroup$

Glad to note this is fixed in 10.0.1.

$\endgroup$
7
  • $\begingroup$ Can anybody confirm this? (this comment is done by a newly unregistered user, who made his first comment. just to be sure.) $\endgroup$ Commented Sep 17, 2014 at 12:32
  • 2
    $\begingroup$ @NicoDean Yes, I can confirm this. $\endgroup$
    – rcollyer
    Commented Sep 17, 2014 at 12:39
  • 2
    $\begingroup$ Someone flagged this as not an answer. In some way I think it is the best answer, when true, other than perhaps a robust patch. I think Accepting this answer may be appropriate, therefore I do not wish to convert it to a comment. If anyone disagrees with this please consider making your argument on meta.mathematica.stackexchange.com so that the community can decide how this should be handled. $\endgroup$
    – Mr.Wizard
    Commented Sep 17, 2014 at 12:59
  • 2
    $\begingroup$ @Mr.Wizard I flagged it as such but did not downvote. Both "answers" seem to be simple comments to me but I can't say that I feel strongly enough to make a meta post. $\endgroup$ Commented Sep 17, 2014 at 14:05
  • $\begingroup$ @Mark I think a good case can be made for the first one being a comment as it can't possibly resolve the issue like a patch or a "this is fixed in ..." however as you can see this answer has been Accepted. I think that is a reasonable result. $\endgroup$
    – Mr.Wizard
    Commented Sep 17, 2014 at 14:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.