Group Abstract Group Abstract

Message Boards Message Boards

0
|
12.7K Views
|
12 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Mathematica closing kernels

Posted 5 years ago

Mathematica has been closing the kernel mid-way through evaluating a notebook, exactly as if I had done Evaluate > Quit Kernel. This happens seemingly at random every 3 hours or so and if I re-evaluate the notebook it usually runs fine.

It has been happening ever since version 11.2 and now I am trying 12.1, but this still has the same problem.

It has affected installations on several different Windows PCs and on many different notebooks, but never happened in 11.1 and prior.

It has been the subject of numerous technical support inquiries, but its random nature means it is not repeatable.

Has anyone else had this problem and found a solution?

POSTED BY: roger 567
12 Replies
Posted 5 years ago

Thanks for your comments, but I fear you are barking up the wrong tree. This has happened on dozens of notebooks, on 4 different PCs and on 4 different versions of Mathematica (11.2-12.1). Yet it has never happened in exactly the same place twice and every time I recalculated or closed and reloaded, it either worked fine or failed somewhere else in the notebook. It has never happened on 11.1, which is the only version that I can use, so I use it all the time. None of that would be the case for a syntax error or two.

The simplest example I have ever seen it happen on was a single cell

x=5;
x

which replied x once and 5 every other time. I agree that tracing errors can be difficult, but even I could manage with that example.

I don't know if I have a pre-release version of 12.1 - it was what Wolfram sent me to evaluate, but it has been the same for 11.2,11.3 and 12.0.

This has been going on for years (when did 11.2 come out? 2017?) and I was hoping that there was someone who had experienced the same, who had got further in finding a solution.

POSTED BY: roger 567

Has anyone else had this problem and found a solution?

This is not a general problem, but a crash bug triggered by something specific you do. Wolfram will only be able to fix this if you can identify the specific command, or sequence of commands, that causes the crash. Sometimes crashes are not fully deterministic, but there is still one specific evaluation that causes them (just not 100% of the time).

In short, the only thing that can be done is to track down the offending evaluation (which, admittedly, is often a lot of work). Once you do, report it, and hopefully Wolfram will fix it. You can also ask here (or on https://mathematica.stackexchange.com/) for an alternative way to perform the same operation without a crash.

POSTED BY: Szabolcs Horvát
Posted 5 years ago
POSTED BY: roger 567
Posted 5 years ago
POSTED BY: David Keith
Posted 5 years ago

It may well be a hardware/OS issue, but it has happened on 4 different PCs. All had very different hardware in terms of processors, motherboards, graphics cards etc., but all were running Windows 10 Pro and all were on the same network. The PC I am currently trying it on has not hosted Mathematica before, but is exhibiting the same symptoms as the others.

I have not noticed any commonality in the calculation types that fail and even if x=5; is an anomaly (it is certainly not typical), failures often happen early in an evaluating notebook and those that use little RAM or other resources.

The most recent technical support case number was 4266662.

POSTED BY: roger 567
POSTED BY: Daniel Lichtblau
Posted 5 years ago
POSTED BY: roger 567
POSTED BY: Daniel Lichtblau
Posted 5 years ago

I am not aware of frequent updates on drivers or Windows.

It has been an issue on 4 different PCs at different times, each with different graphics cards and motherboards.

The PC I am currently using defers Windows updates for as long as possible and I have removed all non-critical start-up programmes. It is possible that something is still updating in the background, but I have tried to prevent it.

I should also make it clear that when I say it happens every 3 hours on average, that is a long-run average with a very high standard deviation. It is not a regular event. It can happen twice in 5 minutes for not at all for a couple of days.

POSTED BY: roger 567

Since people start to comment on this, it is good to point out that Roger may be using an early prerelease of 12.1, see my comment on https://community.wolfram.com/groups/-/m/t/1934409

POSTED BY: Szabolcs Horvát

Is there any chance you can pare down to a smallish example? It is likely to be something along the lines suggested by Szabolcs Horvat. So the smaller the MCE ("minimal crashing example") the better, in terms of likelihood we might track it down.

POSTED BY: Daniel Lichtblau
Anonymous User
Anonymous User
Posted 5 years ago

Mathematica Kernel will quit due to "a malformed program" and or "syntax error" in the case your running several expressions: it stops to prevent mis-use of the kernel - which could effect "other things" if it were to continue wildly (the kernel by default has access, via your code, to your disk - you wouldn't want a stray program messing your files up).

New users also tend to have problems with Context[] and "already defined variables". (they try to evaluate expressions using "x" but it is already defined, and they become confused that the result isn't what they expected)

Also - installing "malware" or poorly conceived 3rd party software can effect your OS Desktop libraries, causing unexpected closures of applications.

I will not prescribe to 12.1 has new bugs until one has been identified. We have not identified a bug nor shown it to be repeatable, here, yet.

"This happens seemingly at random every 3 hours or so and if I re-evaluate the notebook it usually runs fine."

This is the strongest clue Mathematica has nothing to do with what is going on. I strongly suspect the Mathematica app isn't the only software on your PCs that is effected.

Let me ask: do you have video drivers that update every 3 hours? your using windows10 and have enabled continual updates for drivers maybe?

POSTED BY: Anonymous User
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard