Bug 535449 - [All diagrams, SVG] NPE during SVG export
Summary: [All diagrams, SVG] NPE during SVG export
Status: NEW
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: 2.4   Edit
Hardware: All All
: P3 critical
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 522740
Blocks:
  Show dependency tree
 
Reported: 2018-06-01 07:51 EDT by Ansgar Radermacher CLA
Modified: 2020-02-20 11:18 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ansgar Radermacher CLA 2018-06-01 07:51:02 EDT
The SVG export in batik 1.9.1 is broken, see https://issues.apache.org/jira/browse/BATIK-1228
No ImageWriters are registered for image/png in the Eclipse version of batik.
If you export a diagram containing SVG images, an NPE will occur.

Sirius installed the workaround to explicitly register writers with patch https://git.eclipse.org/r/#/c/122769/1/plugins/org.eclipse.sirius.diagram.ui/src-gen/org/eclipse/sirius/diagram/ui/provider/DiagramUIPlugin.java

But the issue should be solved on the level of the batik integration in Eclipse.
Comment 1 Pierre-Charles David CLA 2020-02-20 11:18:31 EST
Moving out of 1.13, as the move to Batik 1.9.1 was aborted at the time, and I've not gotten around reboot the effort.

Note that there are parts of Batik 1.11 now in Orbit, but only the subset required by the platform, and there's even been a 1.12 release since then, so if GMF moves to a more recent Batik, it will not be 1.9, and this patch may or may not apply to the more recent versions.