All the tasks and relationships beetween them dissapear

Hi
I was working with the project when suddenly the Avast antivirus jumped up and told me that there was a virus on my pc, the file was related to Gantt Project. After closing the antivirus all the tasks dissapear and the following message was display by the app:

Something went wrong
Character reference “” is an invalid XML character.

I tried to use the recovery tool but I wasnt able to go back, also ctrl+z didnt work

Here is the log window:
C:\Users\cgbri\ganttproject.log

GanttProject 3.1.3100
Settings file:
location: C:\Users\cgbri.ganttproject
size:5445
is readable: true
java.class.path: eclipsito.jar;C:\Users\cgbri\GanttProject-3.1
java.home: C:\Users\cgbri\GanttProject-3.1\runtime
java.ext.dirs: null
java.io.tmpdir: C:\Users\cgbri\AppData\Local\Temp
java.runtime.version: 11.0.11+9-LTS
java.vendor: BellSoft
java.vm.name: OpenJDK 64-Bit Server VM
java.vm.vendor: BellSoft
java.vm.version: 11.0.11+9-LTS
os.arch: amd64
os.name: Windows 10
os.version: 10.0
sun.java.command: com.bardsoftware.eclipsito.Launch --verbosity 1 --version-dirs plugins;~/.ganttproject.d/updates --app net.sourceforge.ganttproject.GanttProject C:\Users\cgbri\Dropbox\grupo2\Gantt Dispenser.gan
user.country: US
user.dir: C:\Users\cgbri\GanttProject-3.1
user.home: C:\Users\cgbri
user.language: en
user.timezone: America/Buenos_Aires

[Fatal Error] :96:105: Character reference “&#28” is an invalid XML character.
AppClassName (needed on Linux to show app name in the top panel)
Jul 30, 2021 8:09:49 PM net.sourceforge.ganttproject.GPLogger log
INFO: Deleting old auto-save files
Jul 30, 2021 8:09:51 PM biz.ganttproject.LoggerImpl debug
FINE: Creating main frame…
Jul 30, 2021 8:09:51 PM biz.ganttproject.LoggerImpl debug
FINE: 1. loading look’n’feels
Jul 30, 2021 8:09:53 PM biz.ganttproject.LoggerImpl debug
FINE: 2. loading options
Jul 30, 2021 8:09:53 PM biz.ganttproject.LoggerImpl debug
FINE: 3. creating menus…
Jul 30, 2021 8:09:53 PM biz.ganttproject.LoggerImpl debug
FINE: 4. creating views…
Jul 30, 2021 8:09:53 PM biz.ganttproject.LoggerImpl debug
FINE: 5. calculating size and packing…
Jul 30, 2021 8:09:54 PM biz.ganttproject.LoggerImpl debug
FINE: 6. changing language …
Jul 30, 2021 8:09:54 PM biz.ganttproject.LoggerImpl debug
FINE: 7. first attempt to restore bounds
Jul 30, 2021 8:09:54 PM biz.ganttproject.LoggerImpl debug
FINE: 8. finalizing…
Jul 30, 2021 8:09:57 PM net.sourceforge.ganttproject.GPLogger logToLogger
WARNING: Character reference “&#28” is an invalid XML character.
org.xml.sax.SAXParseException; lineNumber: 96; columnNumber: 105; Character reference “&#28” is an invalid XML character.
at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown Source)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLScanner.scanCharReferenceValue(Unknown Source)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)
at java.xml/javax.xml.parsers.SAXParser.parse(Unknown Source)
at net.sourceforge.ganttproject.io.XmlParser.parse(XmlParser.java:119)
at net.sourceforge.ganttproject.io.GanttXMLOpen.doLoad(GanttXMLOpen.java:99)
at net.sourceforge.ganttproject.io.GanttXMLOpen.load(GanttXMLOpen.java:93)
at net.sourceforge.ganttproject.document.ProxyDocument$ParsingState.enter(ProxyDocument.java:370)
at net.sourceforge.ganttproject.document.ProxyDocument.read(ProxyDocument.java:188)
at net.sourceforge.ganttproject.importer.ImporterFromGanttFile.run(ImporterFromGanttFile.java:108)
at net.sourceforge.ganttproject.importer.ImporterFromGanttFile$2.run(ImporterFromGanttFile.java:95)
at net.sourceforge.ganttproject.undo.UndoableEditImpl.(UndoableEditImpl.java:48)
at net.sourceforge.ganttproject.undo.UndoManagerImpl.undoableEdit(UndoManagerImpl.java:72)
at net.sourceforge.ganttproject.importer.ImporterFromGanttFile.run(ImporterFromGanttFile.java:92)
at net.sourceforge.ganttproject.gui.CommandLineProjectOpenStrategy.tryImportDocument(ProjectOpenStrategy.kt:501)
at net.sourceforge.ganttproject.gui.CommandLineProjectOpenStrategy.access$tryImportDocument(ProjectOpenStrategy.kt:460)
at net.sourceforge.ganttproject.gui.CommandLineProjectOpenStrategy$openStartupDocument$2.invokeSuspend(ProjectOpenStrategy.kt:477)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

Jul 30, 2021 8:09:57 PM net.sourceforge.ganttproject.GPLogger logToLogger
WARNING: Character reference “&#28” is an invalid XML character.
java.io.IOException: Character reference “&#28” is an invalid XML character.
at net.sourceforge.ganttproject.io.XmlParser.parse(XmlParser.java:124)
at net.sourceforge.ganttproject.io.GanttXMLOpen.doLoad(GanttXMLOpen.java:99)
at net.sourceforge.ganttproject.io.GanttXMLOpen.load(GanttXMLOpen.java:93)
at net.sourceforge.ganttproject.document.ProxyDocument$ParsingState.enter(ProxyDocument.java:370)
at net.sourceforge.ganttproject.document.ProxyDocument.read(ProxyDocument.java:188)
at net.sourceforge.ganttproject.importer.ImporterFromGanttFile.run(ImporterFromGanttFile.java:108)
at net.sourceforge.ganttproject.importer.ImporterFromGanttFile$2.run(ImporterFromGanttFile.java:95)
at net.sourceforge.ganttproject.undo.UndoableEditImpl.(UndoableEditImpl.java:48)
at net.sourceforge.ganttproject.undo.UndoManagerImpl.undoableEdit(UndoManagerImpl.java:72)
at net.sourceforge.ganttproject.importer.ImporterFromGanttFile.run(ImporterFromGanttFile.java:92)
at net.sourceforge.ganttproject.gui.CommandLineProjectOpenStrategy.tryImportDocument(ProjectOpenStrategy.kt:501)
at net.sourceforge.ganttproject.gui.CommandLineProjectOpenStrategy.access$tryImportDocument(ProjectOpenStrategy.kt:460)
at net.sourceforge.ganttproject.gui.CommandLineProjectOpenStrategy$openStartupDocument$2.invokeSuspend(ProjectOpenStrategy.kt:477)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

Thanks

Please share the project file.

Gantt Dispenser.gan (24,0 KB)

I have fixed the structure. It opens fine now. You may want to inspect the task notes to check if everything is okay (I don’t know if that strange character #28 replaced some other valid symbol or not)

Gantt Dispenser.gan (23.9 KB)

1 Like

Thank you so much for your help!
Have a nice day