Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

Categories

Bug report - yEd has encountered the following error: Could not import file

0 votes
Hi,
 
I recently added few images into my yEd diagram,
and there was no problem, until I tried to open the file again.
 
(I'm using the newest yEd ver 3.12.2)
 
This is very important to me as now I can't open the file at all.
 
Best regards,
Wojciech Makowiecki
 
Please find the error details below (note that I shortened the data:image/png;base64
as it was far too long to paste in here, but can send you that to email etc. if needed)
 
java.io.IOException
at B.A.A.B.S.ă(Unknown Source)
at B.A.A.B.S.ā(Unknown Source)
at B.A.A.J.A.ā(Unknown Source)
at B.A.A.J.A.ā(Unknown Source)
at B.A.A.J.A$A.ā(Unknown Source)
at B.A.A.J.A.ā(Unknown Source)
at B.A.A.K.D.ā(Unknown Source)
at B.A.A.K.j.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at com.jidesoft.plaf.basic.BasicJideButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
at java.awt.Component.processMouseEvent(Component.java:6505)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:729)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:688)
at java.awt.EventQueue$3.run(EventQueue.java:686)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:702)
at java.awt.EventQueue$4.run(EventQueue.java:700)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:699)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: org.apache.batik.bridge.BridgeException: file:///1395597744986:0
The URI "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAFuIAAA8fCAYAAABKF29xAAAACXBIWXMAAC4jAAAuIwF4pT92AAAA GXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAB1UJJREFUeNrs3Olu4zAWoFHSMZD3 f1wD1dEgPe0ZFYvLpAAAAAAAAAAAAAAAAAAAAAABLIm4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkTcAAAAAAAAAAAAAAAA AAAAAAAAAADwCP8HK5iAY5OazJ4AAAAASUVORK5CYII="
on element <image> can't be opened because:
PNG URL is corrupt or unsupported variant
at org.apache.batik.bridge.UserAgentAdapter.getBrokenLinkDocument(Unknown Source)
at C.A.A.F$F.getBrokenLinkDocument(Unknown Source)
at org.apache.batik.bridge.SVGImageElementBridge.createRasterImageNode(Unknown Source)
at org.apache.batik.bridge.SVGImageElementBridge.createImageGraphicsNode(Unknown Source)
at org.apache.batik.bridge.SVGImageElementBridge.buildImageGraphicsNode(Unknown Source)
at org.apache.batik.bridge.SVGImageElementBridge.createGraphicsNode(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
at C.A.A.F.ā(Unknown Source)
at C.A.A.F.Ă(Unknown Source)
at C.A.A.F.Ă(Unknown Source)
at C.A.A.F.ā(Unknown Source)
at C.A.A.F.<init>(Unknown Source)
at C.A.D.I$B.Ă(Unknown Source)
at C.A.D.I$B.ā(Unknown Source)
at y.H.B.D.i$B.ā(Unknown Source)
at C.A.D.I.Ă(Unknown Source)
at C.A.D.I.ā(Unknown Source)
at C.A.D.E.ā(Unknown Source)
at y.H.B.D.i$12.ā(Unknown Source)
at y.H.B.A.Ă(Unknown Source)
at y.H.B.A.ā(Unknown Source)
at y.H.B.A$37.ā(Unknown Source)
at y.H.B.B._.ā(Unknown Source)
at y.H.B.B._.ā(Unknown Source)
at y.H.B.B._$A.ā(Unknown Source)
at y.H.B.B.Q.ā(Unknown Source)
at y.H.B.B.Q.ā(Unknown Source)
at y.H.B.B.Q.ā(Unknown Source)
at y.H.B.B.Q.ā(Unknown Source)
at y.H.B.D.d.Ă(Unknown Source)
at y.H.B.B.X.ā(Unknown Source)
at y.H.B.B.Y.ā(Unknown Source)
at y.H.B.B.Y.Ă(Unknown Source)
at y.H.B.B.Y.ā(Unknown Source)
at y.H.B.B.Y.ā(Unknown Source)
at y.H.B.B.Y.Ć(Unknown Source)
at y.H.B.B.Y.ā(Unknown Source)
at y.H.B.B.Y.Ą(Unknown Source)
at y.H.B.B.Y.ā(Unknown Source)
at y.H.B.B._.ā(Unknown Source)
at y.H.B.B._.ā(Unknown Source)
at y.H.B.A$13.ā(Unknown Source)
at y.H.B.A.ā(Unknown Source)
at y.H.B.A.ā(Unknown Source)
at y.H.Q.ā(Unknown Source)
at B.A.A.B.G.A.F.ā(Unknown Source)
at B.A.A.B.G.A.D.ā(Unknown Source)
at y.H.G.ā(Unknown Source)
at y.B.A.M.Đ(Unknown Source)
at y.B.X.č(Unknown Source)
at y.B.X.ā(Unknown Source)
at y.B.X.ă(Unknown Source)
... 46 more
 
in Help by

1 Answer

0 votes
Seems to be a problem with one of the images...
I would suggest the following: GraphML files are plain text files. Open your file in your favorite text editor, then replace the problematic Base64-encoded image/png data with something shorter** and see if you can open the file after that. Maybe the current data got corrupted, or is simply too much.

**To get "something shorter" you can create a new minimal GraphML (one node) that uses a small PNG image (that you know works without problems) and copy this image's image/png data over to your broken file.

Hope this helps.
by [yWorks] (23.7k points)
Thank you for your quick answer, I deleted the problematic part of the file.
I'm interested in the root of the problem (so it won't happend again):
Is there any limit on the yEd file size or the number of nodes?
I have 3000 nodes and the file size is aprox. 18 MB.
Well, if you can host your file somewhere and post a download link here, I would be willing to diagnose the exact problem. Unfortunately, it is not possible to determine the exact cause without your file.
Legal Disclosure | Privacy Policy
...