<font size="2">
<div>The number of points (numPts, on line 2502) returned by vtkEnSightGoldBinaryReader::ReadInt(</div></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">int</font></font><font size="2"> *result) is of type int, whereas the file size (2.2GB) is beyond the valid range. I will fix it. </font>
<div><font size="2"></font> </div>
<div><font size="2">Thanks.</font></div>
<div><font size="2">-Zhanping</font></div><br><br>
<div class="gmail_quote">On Thu, Sep 3, 2009 at 2:40 PM, <a href="mailto:Bastil2001@yahoo.de">Bastil2001@yahoo.de</a> <span dir="ltr"><<a href="mailto:Bastil2001@yahoo.de">Bastil2001@yahoo.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Zhanping, all:<br><br>I have gone forward with this problem today. Uncommenting all the checks<br>in vkEnSightGoldBinaryReader.cxx makes paraview reading the file without<br>
any problem. I think the problem with the checks are related to a 64Bit<br>issue. It seems to me as this->FileSize is incorrect for this case. The<br>*.geo file uses 2.2GB of discspace and the function seem to report wrong<br>
(negative?) filesize.<br>How can this 64Bit issue be solved? I have compiled paraview on a x86_64<br>machine as usual. Do I have to do something special for compiling with<br>64 Bit? Otherwise the file is read without problems it cannot be totally<br>
wrong. What is the best was to debug/solve this problem? Thanks.<br>
<div class="im"><br>Regards BastiL<br><br><br><br>Zhanping Liu schrieb:<br></div>
<div class="im">> Hi BastiL:<br>><br>> As you know, Line #2502 (see below) is used to check whether or not<br>> the (total) number of points is valid in relation to the file size. I<br>> feel that this is a reasonable as well as necessary check. A valid<br>
> EnSight file is supposed to pass this check. Is your Ensight dataset<br>> divided into multiple files such that the total number of points is<br>> greater than the size of any of those files?<br>><br>> Thanks.<br>
><br>> -Zhanping<br>><br>> ----------<br>> if (numPts < 0 || numPts > this->FileSize || numPts * (int)sizeof(int)<br>> > this->FileSize)<br>> {<br>> vtkErrorMacro("Invalid number of unstructured points read; check that<br>
> ByteOrder is set correctly.");<br>> return -1;<br>> }<br>> ---------<br>><br>><br>><br>> On Tue, Sep 1, 2009 at 1:50 PM, <a href="mailto:Bastil2001@yahoo.de">Bastil2001@yahoo.de</a><br></div>
> <mailto:<a href="mailto:Bastil2001@yahoo.de">Bastil2001@yahoo.de</a>> <<a href="mailto:Bastil2001@yahoo.de">Bastil2001@yahoo.de</a><br>
<div class="im">> <mailto:<a href="mailto:Bastil2001@yahoo.de">Bastil2001@yahoo.de</a>>> wrote:<br>><br>> Hi all,<br>><br>> I get this error when reading in a (large) Ensight binary case<br>
> that can<br>> be read by Ensight. ens_checker also reports no errors.<br>><br>> The problem is reported from line 2502 from<br>> vkEnSightGoldBinaryReader.cxx (revision 1.83). It seems that Ensight<br>
> Cases can be ok even if this check fails....<br>><br>> I wanted to try running it without this check but failed to build a<br>> custom Ensight reader as a plugin for various reasons. What can be<br>
> done<br>> to find the problem. Thanks.<br>><br>> Regards BastiL<br>><br>><br>> _______________________________________________<br></div>> Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a> <<a href="http://www.kitware.com/" target="_blank">http://www.kitware.com/</a>><br>
<div>
<div></div>
<div class="h5">><br>> Visit other Kitware open-source projects at<br>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>> Please keep messages on-topic and check the ParaView Wiki at:<br>> <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>><br>> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>><br>><br>><br>><br>> --<br>> Zhanping Liu, PhD<br>> Kitware, Inc.<br>
> 28 Corporate Drive<br>> Clifton Park, NY 12065-8662<br>> Phone: 518-371-3971 x 138<br>> <a href="http://www.zhanpingliu.org/" target="_blank">http://www.zhanpingliu.org</a><br><br></div></div></blockquote></div>
<br><br clear="all">
<div></div><br>-- <br>Zhanping Liu, PhD<br>Kitware, Inc.<br>28 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-371-3971 x 138<br><a href="http://www.zhanpingliu.org">http://www.zhanpingliu.org</a><br>