1
$\begingroup$

I am curious if Mathematica stores a system log somewhere or if there is a way to set up my notebook such that it details why Mathematica silently kills an evaluation and clears all variables in the notebook.

For context, my problem is that I have a very large expression f[a,b,c,d,...] for which I am asking Mathematica to solve in terms of one variable:

sol = Solve[f[a,b,c,d,...]==0,b]

The notebook will state it is running for about 30 minutes, and then Mathematica silently terminates the evaluation and clears the variables.

$\endgroup$
8
  • $\begingroup$ Could it be a memory overflow? $\endgroup$ Sep 2, 2022 at 12:51
  • 2
    $\begingroup$ Usually for me this happens when the kernel crashes as it run out of memory etc, so check your memory consumption, eg with the Task Manager on Windows. $\endgroup$
    – Hans Olo
    Sep 2, 2022 at 13:07
  • $\begingroup$ Also, if you have a concrete example in mind, please post the relevant code, along with info on the OS and mathematica version :-) $\endgroup$
    – Hans Olo
    Sep 2, 2022 at 13:10
  • $\begingroup$ Mathematica keeps a history of all calculations which use up memory. One way to avoid this is to use $HistoryLength=0 at start of notebook or in an Initialization group. $\endgroup$
    – josh
    Sep 2, 2022 at 13:21
  • 1
    $\begingroup$ Just to confirm, this is almost certainly a kernel crash. As to why, impossible to say without testing the input. Out of memory would be the prime suspect though, as @HansOlo suggests. $\endgroup$ Sep 2, 2022 at 14:41

0

Browse other questions tagged or ask your own question.