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

yEd could not import file

0 votes
I tried opening the file today on yEd and I received the following error. Is this due to the file being too large? I need to access this file as it has my notes for school. I included the link for the file as the original file could not be attached. Thank you. 
 
 
java.io.IOException
at com.yworks.A.B.W.ă(Unknown Source)
at com.yworks.A.B.W.ā(Unknown Source)
at com.yworks.A.J.A.ā(Unknown Source)
at com.yworks.A.J.A.ā(Unknown Source)
at com.yworks.A.J.A$A.Ă(Unknown Source)
at com.yworks.A.J.A.ā(Unknown Source)
at com.yworks.A.K.D.ā(Unknown Source)
at com.yworks.A.K.j.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
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:6533)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6298)
at java.awt.Container.processEvent(Container.java:2236)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
at java.awt.Container.dispatchEventImpl(Container.java:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:75)
at java.awt.image.Raster.createPackedRaster(Raster.java:467)
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1032)
at java.awt.image.BufferedImage.<init>(BufferedImage.java:333)
at sun.java2d.loops.GraphicsPrimitive.convertFrom(GraphicsPrimitive.java:557)
at sun.java2d.loops.GraphicsPrimitive.convertFrom(GraphicsPrimitive.java:541)
at sun.java2d.loops.MaskBlit$General.MaskBlit(MaskBlit.java:189)
at sun.java2d.loops.Blit$GeneralMaskBlit.Blit(Blit.java:204)
at sun.java2d.pipe.DrawImage.blitSurfaceData(DrawImage.java:959)
at sun.java2d.pipe.DrawImage.renderImageCopy(DrawImage.java:577)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:67)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:1014)
at sun.java2d.pipe.ValidatePipe.copyImage(ValidatePipe.java:186)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3318)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3296)
at y.H.B.D.l$C.ā(Unknown Source)
at y.H.B.D.l$C.ď(Unknown Source)
at y.H.B.D.l$C.ā(Unknown Source)
at y.H.B.D.l$B.ā(Unknown Source)
at y.H.B.D.y.Ă(Unknown Source)
at y.H.B.D.p.ā(Unknown Source)
at y.H.B.D.l$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)
 
in Help by (120 points)

1 Answer

0 votes

Thank you very much for your error report. However, if I try to open the linked file, I do not get the above error but an error complaining that
Target node id n1::n5::n15::n0 not defined in this graph!
In short, the file does not seem to be too large but is structurally invalid.

by [yWorks] (160k points)
https://drive.google.com/open?id=0B10IemXSUD9geW9oZXVyZWJ5X28

Try this file, it seems like I'm getting the java heap space error that has been mentioned before. I tried increasing this to 2 gigabytes by editing the Info.plist file but still has not worked. Is there a way to open a simplified version of this file? And how I can be sure this doesn't happen again (what should I limit my file size too?)
I was able to open that second file. My yEd installation used around 1.3GB of memory to open said file. This is mainly due to the many large images you embedded in the file. If you have all those images in the palette as well, you will probably need around twice as much memory to actually open the file.
What you can try to do is reverting yEd to its factory defaults (thereby removing all custom elements from your palette) and then opening your file. To do that, remove your yEd profile directory (see "Help" -> "About" for the profile directory location). Alternatively, move the profile directory to a different location. This way you can restore your settings after you are done extracting information from your file.

If you want to prevent problems like these for future documents, do not embed large raster images (i.e. GIF, JPG, PNG files) in your diagrams. Instead, created corresponding shape nodes with text labels in yEd.
Thanks for your help. I'll give this a try!

I didn't have them all stored in the palette, so I just went into the XML file and deleted a bunch of the images which allowed me to open the file and see the overall structure. More is not always better! Thanks again!
Legal Disclosure | Privacy Policy
...