Why does Mathematica frequently crash on Mac OS?

  • Context: Mathematica 
  • Thread starter Thread starter member 428835
  • Start date Start date
  • Tags Tags
    Mathematica
Click For Summary

Discussion Overview

The discussion revolves around issues experienced with Mathematica 10.1.0.0 on macOS High Sierra, specifically frequent crashes and graphical glitches. Participants explore potential causes, troubleshooting steps, and the implications of using an older version of the software.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Experimental/applied

Main Points Raised

  • One participant reports frequent crashes and graphical issues when using Mathematica, questioning whether their version is obsolete.
  • Another participant suggests enabling logging to diagnose the crashes, indicating that improper installation or settings might be the cause.
  • Some participants propose that generating a lot of data could lead to memory issues, while others argue that the crashes occur even with minimal data input.
  • A suggestion is made to check for error messages in log files using terminal commands, although one participant encounters issues with the command syntax.
  • There is a recommendation to upgrade to a newer version of Mathematica, as it may resolve existing problems.
  • One participant offers to replicate the issues on their own system to help diagnose the problem, noting that they did not experience the same crashes.
  • Another participant suggests creating a new user account on the Mac to determine if the issue is related to user-specific settings.
  • There is a discussion about the possibility of corrupt settings in the user's account affecting Mathematica's performance.

Areas of Agreement / Disagreement

Participants express differing views on the root cause of the crashes, with some attributing it to memory issues or corrupted settings, while others believe it may be related to the software version. No consensus is reached on the exact cause or solution.

Contextual Notes

Limitations include uncertainty about the specific differences between Mathematica versions and the potential impact of user account settings on application performance.

member 428835
Hi PF

I have Mathematica 10.1.0.0 Student version running on mac OS High Sierra 10.13.5.

Mathematica frequently crashes. Also, every time I minimize a sheet or "save selection as" it brings up a dark window that I either have to close, or if it doesn't let me close I have to quit the program or move the dark window to another desktop.

Very very frustrating. Is my version of Mathematica obsolete?

Edit: also, the latest bug, when I input
Code:
ListPlot[{\!\(\*
TagBox[
RowBox[{"(", "", GridBox[{
{"10", "0.166192219310699"},
{"30", "0.05854972757883798"},
{"50", "0.03872905766945772"},
{"70", "0.2180897711161198"},
{"110", "35.732521763600786"},
{"130", "153.67728343527116"},
{"150", "0.4"},
{"170", "10"}
},
GridBoxAlignment->{
        "Columns" -> {{Center}}, "ColumnsIndexed" -> {},
         "Rows" -> {{Baseline}}, "RowsIndexed" -> {}, "Items" -> {},
         "ItemsIndexed" -> {}},
GridBoxSpacings->{"Columns" -> {
Offset[0.27999999999999997`], {
Offset[0.7]},
Offset[0.27999999999999997`]}, "ColumnsIndexed" -> {}, "Rows" -> {
Offset[0.2], {
Offset[0.4]},
Offset[0.2]}, "RowsIndexed" -> {}, "Items" -> {},
         "ItemsIndexed" -> {}}], "", ")"}],
Function[BoxForm`e$,
MatrixForm[BoxForm`e$]]]\)},
 AxesLabel -> {"\[Alpha] (degrees)", "% Error"},
 PlotRange -> {{0, 180}, {0, 0.5}}, Filling -> Axis]
into Mathematica only the first four data points show the fill axis. The next 3 show nothing, and finally the last one does plot. Notice when the second to last data point changes from 0.4 to 0.5 it also does not plot...
 
Last edited by a moderator:
Physics news on Phys.org
Do you have logging enabled?
http://reference.wolfram.com/language/tutorial/LoggingMathLM.

If not, enable it. It sounds like the application is crashing. This can be the result of improper installation: bad settings, missing files, file permissions, and other ills.
Nobody here will likely be able to help until you have logs indicating problems. And we can see them, or mathematica support can see them. If you have support.

I cannot comment on whether your code is generating faults.
 
Thanks for your response. I tried following the link and instructions but I'm not sure how to proceed. Can you offer any additional info for a complete novice?
 
If you generate a lot of data, the history saving option will run out of memory. Try:

$HistoryLength = 0;
 
aheight said:
If you generate a lot of data, the history saving option will run out of memory. Try:

$HistoryLength = 0;
I don't think it's a memory issue, as I can crash Mathematica immediately after I open the program.
 
That is by no means proof that you did not run out of memory - ex: running a bad program with infinite recursion can crash a system in a few seconds - I accidentally started a fork bomb on a development box - all memory was used up and the system froze in about 2 seconds - the code was a less than 50 characters - 32GB HPUX 11i

We are going to be hard- pressed to help to diagnose your problem if you automatically discard possibilities on a hunch.

I have not used Mathematica for a long time, so any advice I can give would probably be close to useless. Since there are no other answers I give a shot below.

A priori it is something in your code, probably not mathematica.
Try this:
Get into bash - the command line interpreter by opening the terminal app.
Code:
find -f / -type f -name '*.log' -exec grep -i error  {} \;
Have lunch.
This works on older macs so I am guessing it works on yours. You are going find a file or two full of error messages. You can also try finder if you know it well.
 
jim mcnamara said:
That is by no means proof that you did not run out of memory - ex: running a bad program with infinite recursion can crash a system in a few seconds - I accidentally started a fork bomb on a development box - all memory was used up and the system froze in about 2 seconds - the code was a less than 50 characters - 32GB HPUX 11i

We are going to be hard- pressed to help to diagnose your problem if you automatically discard possibilities on a hunch.

I have not used Mathematica for a long time, so any advice I can give would probably be close to useless. Since there are no other answers I give a shot below.

A priori it is something in your code, probably not mathematica.
Try this:
Get into bash - the command line interpreter by opening the terminal app.
Code:
find -f / -type f -name '*.log' -exec grep -i error  {} \;
Have lunch.
This works on older macs so I am guessing it works on yours. You are going find a file or two full of error messages. You can also try finder if you know it well.
Thanks for your response. I say I don't think it's a memory issue since I can open Mathematica, save the file (with nothing written or executed), and Mathematica will get very buggy, i.e. open a blank black notebook, redirect my screen to a plain white screen, etc.

I typed what you suggested into terminal and it said

/: illegal option -- t
usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]

what do you think? Should I just upgrade Mathematica versions?
 
I really do not know. Plus, I think there may have been a typo as there is no -t in the command I gave you. To answer your question, upgrading to a current version often fixes problems. Not always.

https://www.wolfram.com/mathematica/quick-revision-history.html show 11.3 as the current version. Consider upgrading to that.
 
I just installed an old copy of Mathematica 10.1.0 I had lying around. My computer is running macOS 10.13.6. What specific steps will reproduce the problems you're seeing? I can try them out here. (I don't know if there's a difference between the version of 10.1.0 I have and the student version or if it's just a difference in licensing.) I tried minimizing a window as well as making a plot, selecting the graphic, and choosing Save Selection As... from the File menu. I didn't notice any weird behavior.

One thing you can try is reinstalling Mathematica in case the app somehow was corrupted.

Also, try creating a new user account and see if you can reproduce the problems there. If they don't occur, then you probably have corrupt settings somewhere in your regular user account.
 
  • Like
Likes   Reactions: member 428835
  • #10
vela said:
What specific steps will reproduce the problems you're seeing? I can try them out here. (I don't know if there's a difference between the version of 10.1.0 I have and the student version or if it's just a difference in licensing.) I tried minimizing a window as well as making a plot, selecting the graphic, and choosing Save Selection As... from the File menu. I didn't notice any weird behavior.
Bummer, because these things almost always cause errors. Additionally, if I'm trying to plot a group of vectors, say a = {2,1} and b = {4,3} and I plot via {a,b}, while I'm typing {a,b} it almost always shuts down without saving.

vela said:
One thing you can try is reinstalling Mathematica in case the app somehow was corrupted.

Also, try creating a new user account and see if you can reproduce the problems there. If they don't occur, then you probably have corrupt settings somewhere in your regular user account.

Good point! I'll give this a try. Hopefully it works! Will keep you all updated. So annoying!
 
  • #11
So I uninstalled and reinstalled and the problem persists. Any other ideas?
 
  • #12
Did you try the different user account on your Mac?
 
  • #13
vela said:
Did you try the different user account on your Mac?
I did not. Do you think that would matter since Mathematica initially worked very well?
 
  • #14
Yes, it definitely could. I've actually had that experience with other apps. If the problem goes away, you'll know the app basically works, and that the problem is likely a corrupt file in ~/Library. If the problem persists, that's a sign of a more serious problem.
 
  • #15
So when you say new user account, you're saying on my Mac and not on Mathematica, right?
 
  • #16
Right. You can delete the account afterward.
 
  • #17
Nothing ended up working so I deleted Mathematica 10 and installed 11 (only 20$ from my school so not a bad deal). Thanks so much for the help troubleshooting!
 
  • #18
vela said:
Right. You can delete the account afterward.
Sorry to bring this thread back, but as it turns out the solution was to both update Mathematica AND make a new user account. My question is, and I can repost this since it's different from my initial problem, should I just delete my previous user account on my Mac and make a new one?
 
  • #19
If you absolutely have to move to a new user account, you just want to copy over documents, music, data, etc. from your old account before you delete it. I think when you delete an account, the system will offer to make a disk image of the home directory before deleting the account. Or you could just leave the old account lying around, unused.
 

Similar threads

  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K