Message Boards Message Boards

0
|
8510 Views
|
9 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Mathematica 10 freezes on Plot function's suggestion

Posted 10 years ago

version: Mathematica 10 OS: Windows 7, 64-bit

After I create a simple plot, Mathematica puts a click-able menu at the bottom with things like "theme ..", "labels ..", "axes", "image size" etc.

If I then click "labels ..", Mathematica stops working. Windows says that the program is not responding. Task Manager shows that CPU usage is maxed by the process Mathematica.exe. It never recovers. I have waited as long as 10 minutes, but the Mathematica window remains faded out and not responsive. Moving the cursor over it simply turns it into the hourglass/circle working cursor. The only option is to use Task Manager to close Mathematica and restart it.

This problem is repeatable. I have tried several times and got the exact same result.

Does anyone know why this might be happening?

9 Replies
POSTED BY: Bruce Miller

Thanks, I appreciate your help. I hope they fix this bug soon. For now, I will turn off the suggestions bar, but I really hate to do so since I am a new Mathematica user and have found the suggestions bar useful.

Does it happen for all notebooks, or a subset?

Do any of the Text cells in the notebook have Inline Cells with code?

It might be a known problem for which a fix is being worked on.

POSTED BY: Bruce Miller

I am not sure what Inline Cells are, but here's an experiment I just did after reading your reply:

I created a new notebook, and copy/pasted one of the examples of the Plot function from the Mathematica documentation directly into my notebook, and used it to create a plot. I then clicked the "themes" and "labels" buttons, and everything worked fine, the program did not hang.

Then I went back to the notebook where I was having this problem. I confirmed that the problem still exists in that notebook - clicking themes or labels or axes causes the program to hang.

Then I made a another new notebook. I copied ONLY the function I was having problems from my old notebook into this new notebook. It was very simple, something along the lines:

v[a_] := ((u * m)/(r + a))^0.5

Plot[v[a], {a, 100, 100000}]

where u/m/r are variables that have already been initialized with appropriate values. In my old notebook, they had values that had been calculated earlier, but for the test, I just initialized them with sample values.

This time when I clicked on themes/plot/axes, it worked, there was no program hang.

So there is something in my original notebook that is causing the problem. It's a pretty large notebook. I'd like to troubleshoot it and see if I can find the problem, but I'm not sure where to begin.

Like I said, I don't know what Inline Cells are, but there are certainly a lot of text cells in the notebook - I like to add text commentary everywhere to document what I'm doing and sometimes even copy/paste from textbooks or the web directly into the notebook. Some of the text has formulas embedded, I wonder if those might be what you're referring to as "Inline Cells". Of course, I never use Text cells for any calculations, they are for my record keeping and documentation only, but they are indeed interspersed throughout the notebook.

Posted 10 years ago

The buttons should work. Someone else may have insight into that. But you can manage all of the options explicitly, without the buttons.You can even make the buttons go away, as Bruce points out.

For example:

Plot[Sin[x], {x, 0, 4 Pi}, PlotTheme -> "Scientific", 
 PlotRange -> {-.5, .5}]
POSTED BY: David Keith

Thanks. I understand that I can use all the options programmatically, but I would like to be able to use the buttons, which present a visual depiction of all themes, styles, etc. and make it easier to choose what I want.

Any ideas why the buttons are not working and are hanging the program?

Just in case Mathematica started up in an odd state due to a damaged initialization file, try resetting the initialization files by holding down the SHIFT and CONTROL keys as Mathematica starts. (See http://support.wolfram.com/kb/12464.)

If the problem comes from the Suggestions Bar, it can be disabled in the Preferences window.
See http://support.wolfram.com/kb/12406 .

POSTED BY: Bruce Miller

I tried resetting like you said, by holding down ctrl-shift while starting. It reset all my preferences, but the problem still persists.

I have included screenshots showing what is going on. The first shows a graph with the Mathematica buttons below it. I have circled in red the buttons that are causing the problem. Clicking any of them causes Mathematica to become unresponsive. CPU usage maxes out, the Mathematica window fades if I click on it, and the cursor becomes a circle (the standard Windows cursor when Windows is busy) and remains like that indefinitely (I've waited as long as 10 minutes) until Mathematica is forced to shut down.

The second image shows what happens when I force Mathematica to shut down. It gives me an application hang window.

This means that I cannot change themes, or labels or change the axes on any of my graphs because clicking those buttons causes Mathematica to hang.

Any other suggestions why this might be happening?

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

Group Abstract Group Abstract