
spinchak (Customer) asked a question.
I recently updated Productivity Suite to version 4.1.0 (69). I was copying and pasting some sub-rungs and pressed the undo button. This caused the software to display a completely different task. I saved the file I was editing after this event. It now appears that the file is corrupted. Several strange things are happening in the file.
- A bunch of tags that I recently added were removed.
- These removed tags caused CMP contacts and CPD instructions to have "blank" spots where these tags once were located.
- A task that I had recently added disappeared from the Task list, but is still contained in the file.
- Pressing the compile button will bring up errors in this task related to the issues of #1 and #2 above
- Looking into the program.prj file inside the .adpro save file I see this task listed only once, where as the other non-corrupted tasks have two separate sections in this file
I am very concerned about spending more time editing a potentially irredeemably corrupt file.
Is there any tool to check the integrity of the .adpro file?
Is there any tool to fix a corrupt .adpro file?
How can I be certain that my previous save files are not also corrupted? I have been using the new version of the software for over a week and have days of edits on this file and the other backups of this file.
Example of Corruption in program.prj
Working task has two sections as follow
<paths>
<folder>false</folder>
<nodeName>Zone9SM_BC</nodeName>
<path>~Project~Tasks~Run Every Scan~</path>
</paths>
AND
<tasks>
<author>REDACTED</author>
<backgroundRGB>16777215</backgroundRGB>
<comment/>
<createTime>2023-07-13T08:18:53.515-07:00</createTime>
<execOption>0</execOption>
<localTags>
<tags xsi:type="group">
<type>java.util.ArrayList</type>
</tags>
</localTags>
<protection>false</protection>
<scanOption>0</scanOption>
<taskName>Zone9SM_BC</taskName>
<taskNumber>102</taskNumber>
<taskSeqNum>7</taskSeqNum>
<taskType>0</taskType>
<wireRGB>0</wireRGB>
</tasks>
The broken task which is missing from the Task List shows only one section in this file
<tasks>
<author>REDACTED</author>
<backgroundRGB>16777215</backgroundRGB>
<comment/>
<createTime>2023-07-13T08:18:53.515-07:00</createTime>
<execOption>0</execOption>
<localTags>
<tags xsi:type="group">
<type>java.util.ArrayList</type>
</tags>
</localTags>
<protection>false</protection>
<scanOption>0</scanOption>
<taskName>Zone10SM_BC</taskName>
<taskNumber>103</taskNumber>
<taskSeqNum>7</taskSeqNum>
<taskType>0</taskType>
<wireRGB>0</wireRGB>
</tasks>
The broken task appears to be missing a <paths> entry in the <projectTaskPaths> section of the file.
FYI I have an even more corrupt version of this file that I saved after an additional undo "glitch". This file is so broken that there are two conflicting copies of a broken task in the task/*.rll files inside the .adpro file. This broken task is visible in the Task List, but it does not bring up a task edit screen when I click on it. I can not "save as" or save this file until I delete this task from the task list. The resulting save file after deleting the task from the task list still contains the task (as the compile command brings up errors in it).
The newest version of adpro_chk was able to get this corrupt file into a state that allowed me to salvage my work.