I am not sure if this would work with draw.io files but on other modelling software in the past I have used “filemon” which has been replaced by “Process Monitor” https://docs.microsoft.com/en-us/sysinternals/downloads/procmon . It looks at file system activity and if you are lucky it will point to the place in the file it is corrupt and you can manually fix it (or get it to an openable state). It should be as easy as setting the filter on the filename and watch what is happening. I have attached a screenshot of the filter for process and path I just used.
This is a generic trick from the “olden days”, hopefully someone else will have an easier solution.
Paul
--
You received this message because you are subscribed to the Google Groups "diagrams.net Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drawio+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/drawio/bbabef42-7ff4-492f-9789-969f2ba13952n%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/drawio/2f36f4fd-26ed-4396-b648-cad4c94cb2f4n%40googlegroups.com.
Ok – assuming it works the same as for UML model files, the offset and length will tell you where in the file it spat the dummy.
When I used it for debugging there were corrupt characters there and you could fix them in a text code editor…
Sorry I just looked at the file format and it doesn’t appear to be saved as xml, so this method might not work if it is compressed.
If you look at my screenshot, it does look for a ~$ yourfilename.drawio.bkp file. Maybe you have something like that on your file system?
To view this discussion on the web, visit https://groups.google.com/d/msgid/drawio/2f36f4fd-26ed-4396-b648-cad4c94cb2f4n%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/drawio/0f176a4c-6524-43b7-9f55-1efa936bb248n%40googlegroups.com.