here’s an odd bug.
I’m trying to load a bunch of data stored in binary files via an Xdmf wrapper file.
I’ve been doing this for quite some time without much trouble, but here’s an Xdmf file that just won’t load and I have no Idea why.
B.xmf are loaded just fine, but
A+B.xmf won’t load, although both
B.xmf are contained in
A+B.xmf ParaView crashes:
/home/some/path/A+B.xmf:5645: parser error : Detected an entity reference loop <DataItem Dimensions="&Nx;" NumberType="Float" Precision="4" Format="XML">&xst; ^
Test: vary number of fields and grids
A+B.xmf contains five fields on four grids for roughly 100 times.
The number of data does not appear to be problematic, because all of the following files load fine:
- centered_02_fields.xmf (199.1 KB) with 2 fields on 1 grid
- centered_16_fields.xmf (592.1 KB) with 16 fields on 1 grid
staggered_03_fields.xmf (390.1 KB) with 3 fields on 3 grids that are not contained in
- staggered_24_fields.xmf (1.4 MB) with 24 fields on 3 grids
Test: switch the order in which grids are written to the file
Here I switch the order in which grids are written to the file.
Interestingly, the error message points at the same line (5645) as before which is now a totally different entity. switched.xmf (500.5 KB)
/some/path/switched.xmf:5645: parser error : Detected an entity reference loop <DataItem Dimensions="&Nx;" NumberType="Float" Precision="4" Format="XML">&xce; ^
Test: without custom entities
Finally, a version identical to
A+B.xmf but where grid data is explicitly written to file instead of using custom entities:
This file works just fine
The handling of custom entities appears to be broken.