6
$\begingroup$

Bug introduced in 11.2


I am using RandomInteger to create sorted test data in the following way:

lists = Sort /@ RandomInteger[10000, {10, 200000}];

With Mathematica 11.3, the kernel crashes on me if I evaluate the line above in the front a couple of times. The crash occurs on both the Windows and OS X versions of Mathematica. I could not reproduce the bug with Mathematica 11.2.

$\endgroup$
  • $\begingroup$ I cannot reproduce that with version 11.3 on macOS. Maybe the dimension of lists were greater when you tried? Then it could be that both results were stored in the history and blast the amount of available memory. Try to set $HistoryLength = 0 or end your input cell with ;Null; instead of ;. The latter should store only Null instead of the value of lists in the history. $\endgroup$ – Henrik Schumacher May 5 '18 at 9:32
  • $\begingroup$ I cannot reproduce that with version 11.3 on Windows 8.1. $\endgroup$ – Mariusz Iwaniuk May 5 '18 at 9:48
  • $\begingroup$ I too cannot reproduce that crash with 11.3.0 for Mac OS X x86 (64-bit) (March 7, 2018) on OS X 10.11.6. $\endgroup$ – High Performance Mark May 5 '18 at 12:45
  • $\begingroup$ The ;Null; trick seems to fix it, so it is probably related to the history. $\endgroup$ – sakra May 5 '18 at 13:35
6
$\begingroup$

This is a bug that can be worked around by disabling the Suggestions bar.

Given the input, it tries several operations in the background (wrapped in TimeConstrained) and one of these -- a call to Flatten -- happens to crash when interrupted.

The reason $HistoryLength = 0 or ending the input cell with ;Null; works is that it prevents the Suggestions bar from seeing the input.

This is another instance of the same bug.

$\endgroup$
  • $\begingroup$ Disabling the suggestions bar fixed the problem for me. $\endgroup$ – sakra May 5 '18 at 15:43
  • 2
    $\begingroup$ Now that I have switched on the suggestion bar for the first time within 5 years, I can also reproduce the error... ^^ Many thanks for the clarification! $\endgroup$ – Henrik Schumacher May 5 '18 at 16:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.