-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReadVTK.jl is breaking #49
Comments
I can reproduce the error with a fresh installation of the package. |
LightXML.jl has not been updated in over three years, but the underlying XML2_jll package (providing the libxml2 binaries) was just updated to v2.12 just yesterday. Could you please try to force your installation to use XML2_jll v2.11.5 to verify that this has been caused by the update of libxml2? Also, does this error only occur for the referenced file or for other example files as well? |
The same error occurs with files generated by WriteVTK.jl. MWE in a fresh environment: (jl_h7aCcK) pkg> st
Status `/tmp/jl_h7aCcK/Project.toml`
[dc215faf] ReadVTK v0.2.0
[64499a7a] WriteVTK v1.18.1
julia> using ReadVTK, WriteVTK
julia> savedir = mktempdir()
"/tmp/jl_zxRx3U"
julia> filepath = joinpath(savedir, "test.vti")
"/tmp/jl_zxRx3U/test.vti"
julia> vtk_grid(filepath, 0:10, 0:10) do vtk
vtk["data", VTKCellData()] = rand(100)
end
1-element Vector{String}:
"/tmp/jl_zxRx3U/test.vti"
julia> vtk = VTKFile(filepath)
Entity: line 13: parser error : Extra content at the end of the document
</VTKFile>
^
ERROR: LightXML.XMLParseError{String}("Failure in parsing an XML file.")
Stacktrace:
[1] _check_result
@ ~/.julia/packages/LightXML/g6rbQ/src/document.jl:88 [inlined]
[2] parse_string(s::String)
@ LightXML ~/.julia/packages/LightXML/g6rbQ/src/document.jl:99
[3] VTKFile(filename::String)
@ ReadVTK ~/.julia/packages/ReadVTK/XpdR0/src/ReadVTK.jl:106
[4] top-level scope
@ REPL[8]:1 |
|
I can reproduce the error: julia> versioninfo()
Julia Version 1.9.4
Commit 8e5136fa297 (2023-11-14 08:46 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 8 × Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-14.0.6 (ORCJIT, skylake)
Threads: 8 on 8 virtual cores
Environment:
JULIA_NUM_THREADS = 8
julia> st -m XML2_jll
Status `/tmp/jl_ASS4qI/Manifest.toml`
[02c8fc9c] XML2_jll v2.12.0+0 |
With the new version 0.9.1 of LightXML.jl, ReadVTK.jl is working again!
Closing the issue. |
I believe this may have occurred after the LightXML.jl update, but I can't say for sure.
MWE:
The text was updated successfully, but these errors were encountered: