I have contacted support, CASE:4075709 UPDATE I have received reply from wolfram support. They have confirmed that this is indeed a bug. There are lots of sets of data that can cause the Kernel to crash in this situation.
I was trying to solve a complex problem, in which I have to take some random points and calculate the minimum distance for the tour around the points:
SeedRandom[100];
FindShortestTour[RandomReal[100, {35, 2}]]
This works fine if I run it for only a few times, however, if I use something that calculates this for more than a few times, like the following, I run into trouble.
RepeatedTiming[FindShortestTour[RandomReal[100, {35, 2}]], 3]
This would run fine for the first time or so, but running it for the second time without restarting the Kernel would cause the Kernel to crash, turning every In[]
and Out[]
into In[*]
and Out[*]
, erasing every variable assigned, and gives out no result.
Since this stuff crashes, there is no tracing available for my situation. But since FindShortestTour
works for as many as 10000 points, this shouldn't happen for merely 35 points. Why does my kernel crash?
So I have tried it again and again. The CPU load and memory usage rises during calculation, but not more than 10%. And sometimes the program actually runs. I have been unable to find a way to solve this-reinstalling Mathematica didn't seem to help.
Opening the Kernel directly and running this code would cause the program to exit.
Update
My solution to this problem is to install an older version of Mathematica, 11.0 works fine on my computer. I suppose there is a better solution for this-as @Kuba has suggested, installing an older version is not really a good way, as it does not solve the problem, but to escape from it.
I am using Mathematica 11.3.0 on Windows 10.
SeedRandom
value. You can report it to Wolfram Support (they may have more insight), but I am not sure that we can help you further. $\endgroup$[bugs]
tag. I think 3 confirmed crashes is enough. $\endgroup$