WARNING: The code in this post crashes the Front End on my computer, causing all unsaved work to be lost. Be sure to save your work before trying this out!
lines = Table[Line[{{i, 0}, {i, -1}}], {i, 0.1, 1, 0.1}];
Graphics[{lines}]
If, however, the outer set of braces are inadvertently omitted in the Line[]
as follows:
lines = Table[Line[{i, 0}, {i, -1}], {i, 0.1, 1, 0.1}];
Then Mma 12.2 crashes as soon as the Graphics command is executed. Can someone verify this? Please include your version info as well. Thanks.
$Version
"12.2.0 for Microsoft Windows (64-bit) (December 12, 2020)"
--------------------------------------------
Edit: To include InfiniteLine and HalfLine behavior with missing outer braces
(This doesn't crash my FrontEnd, but be careful on your systems)
lines2a = Table[InfiniteLine[{{i, 0}, {i, -1}}], {i, 0.1, 1, 0.1}];
lines2b = Table[InfiniteLine[{i, 0}, {i, -1}], {i, 0.1, 1, 0.1}];
lines2b has a missing set of braces.
g2a = Graphics[lines2a, Frame -> Automatic,
PlotRange -> {{-10, 10}, {-10, 10}}];
g2b = Graphics[lines2b, Frame -> Automatic,
PlotRange -> {{-10, 10}, {-10, 10}}];
GraphicsRow[{g2a, g2b}]
Also replacing the InfiniteLine
in the above experiment with HalfLine
results in the same behavior, so I won't add it again.
12.3.1 for Microsoft Windows (64-bit) (June 24, 2021)
. $\endgroup$