Support for huge (>10 MB) svg files

Create issue
Issue #51 resolved
Tomáš Kafka created an issue

Hi, am using Gapplin to view huge SVG files (it's a proprietary data analysis, so I can't send sample, sorry), and I get the following error:

This page contains the following errors:
error on line 42 at column 139412: internal error: Huge input lookup
Below is a rendering of the page up to the first error.

From what I've looked up, it's just a matter of passing one extra flag to xml parser:

"For libxml2 2.9.0 and greater (lxml uses libxml2), there is a default XML document max size of roughly 9.5mb (10,000,000 bytes)[1]. In order to process XML larger than the minimum, users have to specify the XML_PARSE_HUGE option [1]. For those using lxml (many Python users, including libtaxii), you must set huge_tree=True in the constructor of the XMLParser object [2] to bypass the libxml2 XML size limit."

Could you please do a quick fix for me?

Thanks, Gapplin is awesome!!!

Comments (5)

  1. 1024 repo owner

    Thank you for your feedback.

    Since this issue is not so easy as I thought, I can't promise unfortunately that it will be fix soon. Because this is a matter out side of the WebKit framework which Apple presents. However I'll try, and I'll submit new Gapplin (or a beta version) as soon as it is resolved.

  2. Tomáš Kafka reporter

    Looking forward to try that! For now, since I don't know of similarly awesome tool (I use zooming and png export all the time), I've managed to simplify the charts down a bit to keep under 9 MB...


  3. 1024 repo owner

    Sorry for my late update. WebKit seems to be improved since then, and the Current Gapplin (1.5.4) can render an SVG file that is more than 10 MB. So I close this issue.

  4. Log in to comment