Bug 525506 - VSM : stroke basic shape usage raises an exception
Summary: VSM : stroke basic shape usage raises an exception
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 5.0.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard: svg
Keywords: triaged
: 545310 (view as bug list)
Depends on: 525362
Blocks:
  Show dependency tree
 
Reported: 2017-10-03 09:47 EDT by Laurent Fasani CLA
Modified: 2020-05-04 11:57 EDT (History)
3 users (show)

See Also:


Attachments
Bug_SVG_BundleImage.zip (3.09 KB, application/x-zip-compressed)
2017-10-03 09:47 EDT, Laurent Fasani CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Fasani CLA 2017-10-03 09:47:08 EDT
Created attachment 270800 [details]
Bug_SVG_BundleImage.zip

Steps to reproduce:
* import and open attached project Bug_SVG_BundleImage
* open diagram
=> An exception is raised

 org.apache.batik.transcoder.TranscoderException: null
Enclosed Exception:
Unable to transform src image
	at org.eclipse.sirius.diagram.ui.tools.internal.figure.svg.SimpleImageTranscoder.transcode(SimpleImageTranscoder.java:117)
	at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source)
	at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source)
	at org.eclipse.sirius.diagram.ui.tools.internal.figure.svg.SimpleImageTranscoder.updateImage(SimpleImageTranscoder.java:162)
	at org.eclipse.sirius.diagram.ui.tools.internal.figure.svg.SimpleImageTranscoder.getBufferedImage(SimpleImageTranscoder.java:179)
	at org.eclipse.sirius.diagram.ui.tools.internal.figure.svg.SimpleImageTranscoder.render(SimpleImageTranscoder.java:138)
	at org.eclipse.sirius.diagram.ui.tools.api.figure.SVGFigure$ImageCache.getImage(SVGFigure.java:118)

It is due to the usage of "Basic shape" stroke. All others Basic shape work correctly.

Note that this issue may be solved with Bug: 525362 which aims to upgrade batik version
Comment 1 Pierre-Charles David CLA 2020-05-04 11:57:09 EDT
*** Bug 545310 has been marked as a duplicate of this bug. ***