View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013958ParaView(No Category)public2013-03-22 10:172013-05-18 20:00
ReporterSven Buijssen 
Assigned ToSebastien Jourdain 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version4.0 
Summary0013958: VisItBridge GMVReader and GMVReader plugin: incorrect handling of invalid GMV files
DescriptionParaView git/master, builtin mode

Attached are two (invalid) GMV input files with identical data, stored once in ASCII and binary form, with the exemplary flaw that they define 20 nodes and a point data array named "pressure" which should have length 20, too, but has merely length 0.

1) binary format:
VisItBridge-GMVReader and GMVReader plugin are caught in an endless loop while parsing the attached file in binary GMV format, "variable.definition.too.short.binary.gmv", while the following line keeps getting printed on stdout:

    I/O error while reading gmv input file.

In fact, both readers get stuck for any (invalid) binary GMV input file where
* an AMR grid's node definition or
* a polygonal mesh definition or
* a polyhedral cell definition or
* a point or cell data array
is shorter than it is expected to be.

2) ASCII format:
When importing the same data in ASCII format from "variable.definition.too.short.ascii.gmv", both VisItBridge-GMVReader and GMVReader plugin fail to detect that the point data array named "pressure" has invalid length 0 instead of the supposed 20. Given that the malloc'd memory does not get initialised, the data array imported into ParaView contains random values as a result.

Same issue when importing a polygonal mesh with an incomplete set of point coordinates ("polygonal.mesh.definition.too.short.ascii.gmv"): The missing coordinate values are completed using uninitialised memory.


VisIt 2.6.1 correctly detects the invalid files.

Patches attached to resolve the issue.
TagsNo tags attached.
ProjectTBD
Topic Namegmv_reader_contribution
Typeincorrect functionality
Attached Files? file icon variable.definition.too.short.binary.gmv [^] (692 bytes) 2013-03-22 10:17
? file icon variable.definition.too.short.ascii.gmv [^] (337 bytes) 2013-03-22 10:18
? file icon polygonal.mesh.definition.too.short.ascii.gmv [^] (210 bytes) 2013-03-22 10:18
patch file icon VisItBridge-0001-BUG-Correctly-null-terminate-strings-read-from-binar.patch [^] (5,536 bytes) 2013-03-22 10:22 [Show Content]
patch file icon VisItBridge-0002-BUG-13958-Detect-incompletely-defined-data-array-and.patch [^] (25,950 bytes) 2013-03-22 10:23 [Show Content]
patch file icon PV-0001-ENH-GMVABORT-has-become-obsolete-relying-on-GMVERROR.patch [^] (2,283 bytes) 2013-03-22 10:23 [Show Content]

 Relationships

  Notes
(0030681)
Utkarsh Ayachit (administrator)
2013-05-03 10:04


SUMMARY
---------------------------------------------
Topics merged into master:
        14040_add_save_animation_time_range
        gmv_reader_contribution
        pvw-add-jsduck-cmake-hints
        pvw-fix-lut-management-issue
        python_documentation_cleanup
(0030718)
Alan Scott (manager)
2013-05-07 20:40

Tested master, local server, Windows.

 Issue History
Date Modified Username Field Change
2013-03-22 10:17 Sven Buijssen New Issue
2013-03-22 10:17 Sven Buijssen File Added: variable.definition.too.short.binary.gmv
2013-03-22 10:18 Sven Buijssen File Added: variable.definition.too.short.ascii.gmv
2013-03-22 10:18 Sven Buijssen File Added: polygonal.mesh.definition.too.short.ascii.gmv
2013-03-22 10:22 Sven Buijssen File Added: VisItBridge-0001-BUG-Correctly-null-terminate-strings-read-from-binar.patch
2013-03-22 10:23 Sven Buijssen File Added: VisItBridge-0002-BUG-13958-Detect-incompletely-defined-data-array-and.patch
2013-03-22 10:23 Sven Buijssen File Added: PV-0001-ENH-GMVABORT-has-become-obsolete-relying-on-GMVERROR.patch
2013-05-02 13:18 Sebastien Jourdain Assigned To => Sebastien Jourdain
2013-05-02 13:18 Sebastien Jourdain Status backlog => todo
2013-05-02 13:18 Sebastien Jourdain Topic Name => gmv_reader_contribution
2013-05-02 13:18 Sebastien Jourdain Status todo => gatekeeper review
2013-05-02 13:18 Sebastien Jourdain Resolution open => fixed
2013-05-03 10:04 Utkarsh Ayachit Fixed in Version => git-master
2013-05-03 10:04 Utkarsh Ayachit Status gatekeeper review => customer review
2013-05-03 10:04 Utkarsh Ayachit Note Added: 0030681
2013-05-07 20:40 Alan Scott Note Added: 0030718
2013-05-07 20:40 Alan Scott Status customer review => closed
2013-05-18 20:00 Utkarsh Ayachit Fixed in Version git-master => 4.0


Copyright © 2000 - 2018 MantisBT Team