Hello,<div><br></div><div>I&#39;m not sure whether I should be emailing the ParaView or VTK lists (or maybe both?), as the problem crashes ParaView but the error is thrown from line 348 of VTK/IO/vtkXMLStructuredDataReader.cxx,</div>
<div><br></div><div><div>    vtkErrorMacro(&quot;Error reading extent &quot;</div><div>                  &lt;&lt; this-&gt;SubExtent[0] &lt;&lt; &quot; &quot; &lt;&lt; this-&gt;SubExtent[1] &lt;&lt; &quot; &quot;</div><div>
                  &lt;&lt; this-&gt;SubExtent[2] &lt;&lt; &quot; &quot; &lt;&lt; this-&gt;SubExtent[3] &lt;&lt; &quot; &quot;</div><div>                  &lt;&lt; this-&gt;SubExtent[4] &lt;&lt; &quot; &quot; &lt;&lt; this-&gt;SubExtent[5]</div>
<div>                  &lt;&lt; &quot; from piece &quot; &lt;&lt; this-&gt;Piece);</div></div><div><br></div><div>After some extensive tests, I have noticed that the error only occurs when the floating point data in an ASCII ImageData file has entries with exponents less than or equal to -309 (I am using Float64 as the datatype). In case it helps, the meta data for the file is</div>
<div><br></div><div><div>&lt;?xml version=&quot;1.0&quot;?&gt;</div><div>&lt;VTKFile type=&quot;ImageData&quot; version=&quot;0.1&quot;&gt;</div><div> &lt;ImageData WholeExtent=&quot;0 40 0 40 0 1&quot; Origin=&quot;0 0 0.487805&quot; Spacing=&quot;0.0243902 0.0243902 0.0243902&quot;&gt;</div>
<div>  &lt;Piece Extent=&quot;0 40 0 40 0 1&quot;&gt;</div><div>    &lt;CellData Scalars=&quot;cell_scalars&quot;&gt;</div><div>     &lt;DataArray type=&quot;Float64&quot; Name=&quot;cell_scalars&quot; format=&quot;ascii&quot;&gt;</div>
</div><div>...</div><div><div>    &lt;/DataArray&gt;</div><div>   &lt;/CellData&gt;</div><div>  &lt;/Piece&gt;</div><div> &lt;/ImageData&gt;</div><div>&lt;/VTKFile&gt;</div></div><div><br></div><div>The DataArray contained 40 lines of 40 floating point values, and I was experimenting with changing the exponent on the first entry. For exponents equal to -308 or greater, the file opens without an error. When I change it to -309 or less, an error is thrown when clicking &quot;Apply&quot; and ParaView quickly crashes (thus I haven&#39;t been able to easily write down the full error...).</div>
<div><br></div><div>I dug into the VTK code for a few minutes but was not able to locate the exact source of the problem. Perhaps there is an overflow in the ASCII parsing due to an assumption of a smaller exponent?<br><br>
I can easily avoid this problem by thresholding my output to zero when it is sufficiently small, but I though I would report the problem anyway.</div><div><br></div><div>Best Regards,<br>Jack Poulson</div>