36

Bug introduced in 11.1.1 and fixed in 11.1.1

Bug was caused by a paclet update and fixed by a paclet update.


I downloaded Mathematica this morning to do an implicit polar plot. I attempt to run the code

Manipulate[
ContourPlot[ 
Evaluate@With[{r = Sqrt[x^2 + y^2], \[Theta] = ArcTan[x, y]}, 
{r Cos[Pi \[Theta]/(Pi - 2 chi)] - Exp[1/(r^2 Sin[Pi \[Theta]/(Pi - 2 chi)]^2- 1)] == 0, 
r^2 == 1}], {x, -2, 2}, {y, -2, 2}],
{chi, 0, Pi/4}]

This worked fine. I also wanted to plot the line y==Tan(chi) x, so I added that to the list (right after r^2==1). It did not work, and I got a strange plot. I closed that notebook, and opened a new one, to run the old code that did work. It no longer worked. After that, I started getting the following for every single calculation I attempt:

enter image description here

It just says "running" at the top, and never completes the calculation. It's not frozen. One time I got the following message:

enter image description here

I closed Mathematica, restarted the computer, and tried 1+1 again, and it doesn't work. Next, I followed the instructions on this page. When I try $BaseDirectory and $UserBaseDirectory, I get the same running issue. That didn't work, so I uninstalled Mathematica and reinstalled it. That fixed the issue, but then I went to run my code again and it did the same thing! So somehow this code completely breaks Mathematica to the point where I must reinstall? I'm at a loss.

Michael E2
  • 235,386
  • 17
  • 334
  • 747
Ryan Unger
  • 461
  • 1
  • 4
  • 7
  • 6
    I had similar problems today with MMA 11.1.1 and Windows 10. Then I disabled internet connection, deleted all files from the last few days in $UserBasePacletsDirectory, followed the advice to disable MMA internet connectivity given in this answer and re-enabled my internet connection. Now MMA seems to work and FrontEnd doesn't get frozen any more. But I consider this is only as a temporary workaround. – Pinti May 14 '17 at 17:52
  • In case reinstalling doesn't solve the issue, try uninstalling and then deleting your $UserBaseDirectory (default locations in that link, click on Details) before reinstalling. – Emilio Pisanty May 14 '17 at 22:56
  • 1
    It appears that Wolfram, Inc. has introduced a serious bug in MMA 11.1.1, which I first encountered late Saturday afternoon, US Central Time. I reported it to Wolfram, Inc this morning. Interestingly, 10.4.1 still works fine, at least on Windows 10 (64 bit). The more people reporting this problem, the better. – bbgodfrey May 14 '17 at 23:10
  • 1
    Easier solution seems to be installing the previous version until they release an update fixing the bug. – user5615 May 17 '17 at 11:16
  • I have the same problem with 11.3 Student edition. Even in 1+1 I am getting running! – Eyup Jan 17 '19 at 05:31

2 Answers2

20

For a workaround, launch a standalone kernel and evaluate

PacletSiteUpdate /@ PacletSites[]

PacletUpdate["EntityFramework"]

More detailed instructions can be found here (except substitute "CloudObject" with "EntityFramework").

Please see also this post on Wolfram Community for step by step instructions on all platforms.

ilian
  • 25,474
  • 4
  • 117
  • 186
8

I have a similar problem this morning. I open a new notebook and as soon as there is an attempt to start the kernel Mathematica freezes with the cell that is evaluating highlighted and "running."

I did a clean start and that did not fix the problem. I uninstalled and reinstalled Mathematica. Starting Mathematica, opening a new notebook, and evaluating 2+2 produces the same result -- frozen in the running state.

In this state Mathematica does not respond to an abort. So I am without Mathematica right now.

Is it possible Wolfram has done a paclet update that as broken Mathematica?

EDIT:

I moved the paclets directory (In win 7: c:/users/user/appdata/roaming/mathematica/paclets) to the desktop so Mathematic couldn't find it. Then turned off internet access at the OS, and started Mathematica. It starts normally and the kernel loads and returns instantly. Now, how to live without the internet?

This is cross posted here

David Keith
  • 4,340
  • 1
  • 12
  • 28
  • Interesting, so it's a waiting game? Should I email Wolfram? – Ryan Unger May 14 '17 at 16:28
  • 1
    @0celouvskyopoulo7 Definitely, YES! The more reports - the more chances this problem will be finally resolved. Notice that it isn't the first time we face such thing - it was in the past and was resolved, BUT apparently the fundamental cause of this still isn't fixed. So definitely report this to the tech support. – Alexey Popkov May 14 '17 at 16:40
  • The problem above was on my laptop. I also have MMA on my workstation. I tried it there but disabled dynamic updating first and 2+2 worked normally. I then enabled dynamic updating and tried again. It is now also frozen. Both of these computers are running Win7 x64. – David Keith May 14 '17 at 16:53
  • @DavidKeith Turning off dynamic updating after the freeze doesn't fix it for me. I'm running OSX Yosemite. Writing a support letter now... – Ryan Unger May 14 '17 at 17:08
  • @Shadowray I can't find anything like that (Base Directory) in the path they suggest it should be in, and I can't use MMA to check for it (because it freezes). – Ryan Unger May 14 '17 at 17:10
  • @Shadowray When I search in Finder, I can only find ~/Library/Mathematica. The file /Library/Mathematica cannot be found. The contents of the ~ folder are here. I did the Option + Shift restart, and turned off my wifi. MMA froze on start. – Ryan Unger May 14 '17 at 17:15
  • @Shadowray Ok, deleting the whole folder worked. Should I try to rerun the code a third time? – Ryan Unger May 14 '17 at 17:23
  • @Shadowray Exact same issue. – Ryan Unger May 14 '17 at 17:29
  • @Shadowray I tried but when I delete the file I have to put in my product code again, this gives me an error unless I connect to wifi. – Ryan Unger May 14 '17 at 17:36
  • I figured out how to do what I wanted another way, but this is still a very strange bug. – Ryan Unger May 14 '17 at 17:38
  • @Shadowray This continues to evolve. I do a clean start and I can't even open new notebook. It just freezes. If I disconnect internet in the OS then I can open a new notebook, but if I try to edit preferences it freezes. Now I am getting kernel failed to start due to licensing issues. It may think thee are too many kernels running, but task manager does not show any. I will restart. I think this will need a WRI fix. I have reported it. – David Keith May 14 '17 at 17:53
  • @0celouvskyopoulo7, DavidKeith I agree, this should be adressed by WRI support. I'm deleting my confusing comments. – Ray Shadow May 14 '17 at 17:56
  • @shadowray - Not confusing but helpful. There is a thread now running on this at the Wolfram Forum: http://community.wolfram.com/groups/-/m/t/1093186 – David Keith May 14 '17 at 18:01
  • I found that abort with the first evaluation is only possible if MM had a connection to the "wolfram cloud". With or without signing in. Also it seems that when you don't evaluate a cell but try to first goto preferences the MM session hangs and I need to kill it with taskmanager – Lou May 14 '17 at 19:32
  • 1
    @0celouvskyopoulo7 I updated my answer with a fix that is working so far. – David Keith May 14 '17 at 19:38
  • @DavidKeith Well, I got my curve smoothing program to work, so I don't think I need to do this. And living without internet on my laptop is certainly not an option :). If you hear back from tech support, please let me know though! – Ryan Unger May 14 '17 at 19:55