8
$\begingroup$

Bug introduced in 11.1.0 and fixed in 11.1.1


In version 11.1.0, applying RegionMeasure or Area to a region with packed coordinates crashes the Kernel:

coords = Developer`ToPackedArray@{{0., 0.}, {1., 1.}};
Area[Rectangle @@ coords]

In versions 11.0.1 and 10.4.1 there is no crash.

One workaround is to unpack the packed arrays manually, but it is tedious:

coords = Developer`FromPackedArray@coords;
Area[Rectangle @@ coords]
1.

Is there a better way (setting a system-wide option, fixing code of internal function, etc.)?

$\endgroup$
4
  • 1
    $\begingroup$ What is your question? It would seem best to report this behavior to Wolfram Support. $\endgroup$
    – MarcoB
    Mar 19 '17 at 16:10
  • $\begingroup$ No crash in 11.0 either. $\endgroup$
    – bobbym
    Mar 19 '17 at 16:18
  • $\begingroup$ @MarcoB Added a question. If you are in a position to report, please do it. $\endgroup$ Mar 19 '17 at 16:27
  • $\begingroup$ It looks like RegionQ is the problem $\endgroup$ Mar 19 '17 at 18:36
3
$\begingroup$

This bug has been fixed as of version 11.1.1.

coords = Developer`ToPackedArray@{{0., 0.}, {1., 1.}};
Through[{RegionQ, Area}[Rectangle @@ coords]]

(* {True, 1.} *)
$\endgroup$
4
  • $\begingroup$ Where did you download the 11.1.1? I only have 11.1.0 in my user portal. $\endgroup$ Apr 25 '17 at 17:18
  • $\begingroup$ It's being rolled out today. $\endgroup$
    – ilian
    Apr 25 '17 at 17:20
  • $\begingroup$ Will my Mathematica update automatically or I need to download the whole installer from user portal? $\endgroup$ Apr 25 '17 at 17:21
  • $\begingroup$ You would need the installer (as usual). $\endgroup$
    – ilian
    Apr 25 '17 at 17:25

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.