When creating a really long line with strokeDashArray initialized to a nonempty value (a dashed line) the application freezes. When I try to draw a regular line from Float.NEGATIVE_INFINITY to Float.POSITIVE_INFINITY the line is never displayed. When I try to draw a dashed infinite line the application freezes. When I try to draw a really long dashed the application freezes and memory usage spikes (up to more than a gigabyte on my machine). When I try to draw a really long (but not infinite) regular line the line is displayed without any problems. Look at the attached files for examples. Thank you.