You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The fix: Before each xmlpp::DomParser is used to parse_stream(), call set_parser_options with the flag [XML_PARSE_BIG_LINES](https://gnome.pages.gitlab.gnome.org/libxml2/devhelp/libxml2-parser.html#xmlParserOption).
DomParsers are created in six places in Synfig. I can make a PR to fix this, but I don't know my way around your code very well, so I might need to ask a few questions.
The text was updated successfully, but these errors were encountered:
Describe the bug
All XML line numbers beyond 65535 are reported in warnings and errors as being line 65535.
To Reproduce
Steps to reproduce the behavior:
wheel.png
.wheel.png
to something else, so that renderingginormous.sif
will cause a warning.ginormous.sif
(either from the commandline or from Studio).synfig(261538) [20:11:50] warning: ginormous.sif:<string>:65535: Layer 'import' rejected value for parameter 'filename'
Expected behavior
The warning should show the correct line, thus:
System information:
Additional comments
This is an upstream issue with libxml2. (Presumably in the past someone at libxml2 decided that 64K was enough for anybody.)
The fix: Before each
xmlpp::DomParser
is used toparse_stream()
, callset_parser_options
with the flag[XML_PARSE_BIG_LINES](https://gnome.pages.gitlab.gnome.org/libxml2/devhelp/libxml2-parser.html#xmlParserOption)
.DomParser
s are created in six places in Synfig. I can make a PR to fix this, but I don't know my way around your code very well, so I might need to ask a few questions.The text was updated successfully, but these errors were encountered: