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.)?
RegionQ
is the problem $\endgroup$