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

Help with corrupted file

0 votes

Problem file

I seem to have a valid file but partway into the file I get this:

     </y:Resource>

<y:Resource id="22">

<yed:ScaledIcon xScale="0.44715447154471544" yScale="0.44715447154471544">

<yed:ImageIcon image="44"/>

</yed:ScaledIcon>

</y:Resource>

<y:Resource id="23" type="java.awt.image.BufferedImage">iVBORw0KGgoAAAANSUhEUgAAA/EAAAL1CAYAAACPJ2Q3AACAAElEQVR42sy9dXsjWban21/hwjzT&#13;

fU73NBUnmdmWJQtsi5mZGWyZGZI5K7Oq+szcr7rub63QDssuZ7p6+swz88f7hCJEoVDAfmOtvfbv&#13;

TEYvGZddtLzkoMX5VZqfWaHZ8UWaGpmjqUfT9M2DSeG7+xo/PJii+/en6ME9jfFHixqjSxrjBhqb&#13;

 

This solid block of alphanumeric goes on until I reach this:

Z3TPAXrj3/V0HY2vcErnQ+bvZ9+LfdAz02Noe8mwGo2ThWWV4HdbcLyJS8nNpeasRN+Co99Zhlsd&#13;
Z4HD/21+oThtGaIiDNbkSgHKYTBgLiUIkG6uYZNFC56+a/sLYLsxRv5taTYAAAAASUVORK5CYII=</y:Resource>
    </y:Resources>
  </data>
</graphml>
 
I'm assuming that the block of alphanumeric are the photographs I added last session. Is there a way of recovering everything except the photographs?
in Help by

1 Answer

0 votes

Please explain what you mean by recovering. After all, you state yourself that your file is valid.

For me "recovering" is usually extracting the remaining data from a broken/corrupted file. Since your file is not broken, you can access all its data by opening the file in yEd.

by [yWorks] (160k points)
I can open the file as a text file; however, it will not open in yEd. I'm assuming that there is a "bad" text string somewhere in the file that prevents yEd from opening it.

The file you have linked to in your original post (named Family Tree - Copy.graphml) opens without problems in yEd 3.14.4 for me.

If that is not the case for you, please post the error message here.

I'm getting the an error message on loading
yEd has encountered the following error: Could not import file Family Tree.graphml.

When I select the Details button I get:

java.io.IOException
    at B.A.A.B.W.ă(Unknown Source)
    at B.A.A.B.W.ā(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(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.AbstractButton.doClick(Unknown Source)
    at com.jidesoft.plaf.vsnet.VsnetMenuItemUI.doClick(Unknown Source)
    at com.jidesoft.plaf.vsnet.VsnetMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
    at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$500(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOfRange(Unknown Source)
    at java.lang.String.<init>(Unknown Source)
    at java.lang.StringBuilder.toString(Unknown Source)
    at com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl.getNodeValueString(Unknown Source)
    at com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl.getNodeValueString(Unknown Source)
    at com.sun.org.apache.xerces.internal.dom.DeferredTextImpl.synchronizeData(Unknown Source)
    at com.sun.org.apache.xerces.internal.dom.CharacterDataImpl.getNodeValue(Unknown Source)
    at com.sun.org.apache.xerces.internal.dom.ElementImpl.normalize(Unknown Source)
    at com.sun.org.apache.xerces.internal.dom.ElementImpl.normalize(Unknown Source)
    at com.sun.org.apache.xerces.internal.dom.ElementImpl.normalize(Unknown Source)
    at com.sun.org.apache.xerces.internal.dom.ElementImpl.normalize(Unknown Source)
    at com.sun.org.apache.xerces.internal.dom.ParentNode.normalize(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._.č(Unknown Source)
    at y.B._.ĺ(Unknown Source)
    at y.B._.ă(Unknown Source)
    at B.A.A.B.W.ă(Unknown Source)
    at B.A.A.B.W.ā(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)

Thank you very much for the additional information.

According to the stacktrace, the file is not corrupted at all. However, yEd has not enough memory available for opening said file. Post How can I prevent 'Out of Memory' errors in yEd? explains how to reserve more memory for yEd. Additionally, if you have a user-defined palette section with lots of and/or very large image templates, you can reduce yEd's memory requirement by removing said image templates from your palette.

Thank you... That did it.
By image templates, do you mean the the photographs I'm using under Properties View-->Label-->Icon Properties

Glad it works.

No, I did not mean Icon Properties. I thought you had added a user-defined palette section as explained in How can I use my own node symbols in yEd? for your photographs.

Legal Disclosure | Privacy Policy
...