[Paraview] Ensight Reader: Invalid number of unstructured points read; check that ByteOrder is set correctly
Zhanping Liu
zhanping.liu at kitware.com
Tue Sep 1 14:13:31 EDT 2009
Hi BastiL:
As you know, Line #2502 (see below) is used to check whether or not the
(total) number of points is valid in relation to the file size. I feel that
this is a reasonable as well as necessary check. A valid EnSight file is
supposed to pass this check. Is your Ensight dataset divided into multiple
files such that the total number of points is greater than the size of any
of those files?
Thanks.
-Zhanping
----------
if (numPts < 0 || numPts > this->FileSize || numPts * (int)sizeof(int) >
this->FileSize)
{
vtkErrorMacro("Invalid number of unstructured points read; check that
ByteOrder is set correctly.");
return -1;
}
---------
On Tue, Sep 1, 2009 at 1:50 PM, Bastil2001 at yahoo.de <Bastil2001 at yahoo.de>wrote:
> Hi all,
>
> I get this error when reading in a (large) Ensight binary case that can
> be read by Ensight. ens_checker also reports no errors.
>
> The problem is reported from line 2502 from
> vkEnSightGoldBinaryReader.cxx (revision 1.83). It seems that Ensight
> Cases can be ok even if this check fails....
>
> I wanted to try running it without this check but failed to build a
> custom Ensight reader as a plugin for various reasons. What can be done
> to find the problem. Thanks.
>
> Regards BastiL
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
--
Zhanping Liu, PhD
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x 138
http://www.zhanpingliu.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090901/848da6b7/attachment.htm>
More information about the ParaView
mailing list