Reading binary data in paraview broken by libexpat1 update

Bug #2058415 reported by Carsten Gräser
38
This bug affects 9 people
Affects Status Importance Assigned to Milestone
dune-grid (Ubuntu)
Confirmed
Undecided
Unassigned
expat (Ubuntu)
Confirmed
Undecided
Unassigned
paraview (Ubuntu)
Confirmed
Undecided
Unassigned
vtk7 (Ubuntu)
Confirmed
Undecided
Unassigned
vtk9 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The recent update of libexpat1 to version 2.5.0-2ubuntu0.1 broke Paraview.
In particular reading vtu files containing binary data fails since this update. When trying to open files that worked fine before, Paraview now reports a parsing error like this one:

ERROR: In vtkXMLParser.cxx, line 376
vtkXMLDataParser (0x5b0ac36fc970): Error parsing XML in stream at line 21, column 0, byte index 1036: not well-formed (invalid token)

ERROR: In vtkXMLReader.cxx, line 521
vtkXMLUnstructuredGridReader (0x5b0ac3d3b670): Error parsing input file. ReadXMLInformation aborting.

The problem disappears when reverting libexpat1 to version 2.5.0-2.

Revision history for this message
Carsten Gräser (graeser) wrote :
Revision history for this message
Carsten Gräser (graeser) wrote :
summary: - Reading binary date broken by libexpat1 update
+ Reading binary data in paraview broken by libexpat1 update
Revision history for this message
Carsten Gräser (graeser) wrote :

Here's a corresponding bug report for debian sid: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1064762

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in expat (Ubuntu):
status: New → Confirmed
Changed in paraview (Ubuntu):
status: New → Confirmed
Revision history for this message
Peter Heywood (peethwd) wrote :

On Jammy, the update from 2.4.7-1ubuntu0.2 to 2.4.7-1ubuntu0.3 causes simialr XML not well formed (invalid token) errors for files which contain binary data. Downgrading to 2.4.7-1 resolved the issue.

Revision history for this message
Carsten Gräser (graeser) wrote :

This also affects libdune-grid-dev by breaking the `subsamplingvtktest` test of the package. Steps to reproduce this locally:

1. Create a new dune module using `duneproject testvtk`, adding `dune-grid` as dependency.
2. Create subdirectory `dune/grid/io/file/test/` in `testvtk`
3. Copy the file `dune-grid/dune/grid/io/file/test/checkvtkfile.hh` from the dune-grid sources to `testvtk/dune/grid/io/file/test/`.
4. Overwrite file ´testvtk/src/testvtk.cc` by the test `dune-grid/dune/grid/io/file/test/subsamplingvtktest.cc` from the dune-grid sources.
5. Build the module using `dunecontrol all` and run `testvtk/build-cmake/src/testvtk`.

The same failure will probably show up when executing the tests while rebuilding the package `libdune-grid-dev`.

Revision history for this message
Peter Heywood (peethwd) wrote :

VTK has been patched upstream to correctly handle AppendedData elements in .vtu files with the updated/patched libexpat1:

https://gitlab.kitware.com/vtk/vtk/-/commit/db8f9efca220c9d16a30958e179abae3379d0011

https://gitlab.kitware.com/vtk/vtk/-/issues/19258

This will need backporting to older VTK releases on ubuntu's where libexpat1's fixes have been backported, which if I'm reading the ubuntu package release dates correctly is Jammy(security, updates), Mantic (security, updates) and potentially Noble (release).

Peter Heywood (peethwd)
no longer affects: vtk7
Revision history for this message
Fergus Cooper (fcooper8472) wrote :

This still affects at least vtk9 (Ubuntu 24.04 and 22.04) and vtk7 (Ubuntu 22.04).

Is there any prospect of the VTK patch being applied and these packages updated?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dune-grid (Ubuntu):
status: New → Confirmed
Changed in vtk7 (Ubuntu):
status: New → Confirmed
Changed in vtk9 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.