3
$\begingroup$

reported to WRI. ID [CASE:4950759]


I just found a very serious problem in V 13.1. Hoping someone will have a workaround.

I am able to reproduce this each time. V 13.1 on windows 10 pro. All from fresh new Mathematica session started new.

Integrate is called with timeout. Then the result is printed.

When print is directed to console, All of Mathematica shutdown (I do not mean kernel dies, but I mean all of Mathematica dies. The front end, all of it just closes). No error message, nothing. It just disappears from the screen.

When print is directed to the notebook, it works ! No crash.

Here is the code below. I also put a link to the notebook at the end.

Please make sure to SAVE all your work before trying this.

SetDirectory[NotebookDirectory[]]
CurrentValue[$FrontEnd, {"PrintAction"}] = {"PrintToConsole"}
CurrentValue[$FrontEnd, {"MessageOptions", "KernelMessageAction"}] = {"PrintToConsole", "Beep"}

integrand = Sqrt[a + b*Sin[e + f*x]]*Sqrt[c + d*Sin[e + f*x]];
Print["Before calling integrate on ", integrand];
res = AbsoluteTiming[ TimeConstrained[Integrate[integrand, x], 60*3]];
Print["Done! "];
(*Mathematica shuts down when issuing this command*)
Print[res]

Now replacing the above with

CurrentValue[$FrontEnd, {"PrintAction"}] = {"PrintToNotebook"}
CurrentValue[$FrontEnd, {"MessageOptions", "KernelMessageAction"}] = {"PrintToNotebook", "Beep"}

With the rest of the code same, Then it works and no crash

The question is: Why does this happen and is there a workaround? This never happened in 13.01.

Here is a movie

enter image description here

Here is also a link to the notebook

$\endgroup$
5
  • $\begingroup$ Wow! Definitely needs a report sent to tech support. $\endgroup$ Commented Jul 5, 2022 at 19:40
  • 1
    $\begingroup$ @CATrevillian I did. Was just waiting to get the CASE ID in email to post it. Thanks, I got it just now. $\endgroup$ Commented Jul 5, 2022 at 19:43
  • 4
    $\begingroup$ I’m voting to close this question because it's simply a bug report. $\endgroup$ Commented Jul 5, 2022 at 19:55
  • 1
    $\begingroup$ No crash on "13.1.0 for Mac OS X ARM (64-bit) (June 16, 2022)" $\endgroup$ Commented Jul 6, 2022 at 2:39
  • 3
    $\begingroup$ Why is your window title font size so big? $\endgroup$ Commented Jul 7, 2022 at 22:13

0

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.