0.19.18686 -> 0.19.19311: file(s) broken?! TechDraw?

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
IngoMeier
Posts: 29
Joined: Mon Sep 30, 2019 12:51 pm

0.19.18686 -> 0.19.19311: file(s) broken?! TechDraw?

Post by IngoMeier »

Hi!
Not sure, if this is TechDraw specific, or a more common problem.
Just wanted to open an "old" file created in FreeCAD_0.19.18686_x64_LP_12.1.2_PY3QT5-WinVS2015 with FreeCAD_0.19.19311_x64_LP_12.1.2_PY3QT5-WinVS2015 and I get empty TechDraw pages and the following output:

Code: Select all

Thread size out of range
[color=#FF8000]=> This one is not nice, but deleting it, will break the drawings due to component renaming[/color]
Invalid Document.xml: End of document reached
[color=#FF8000]=> What to do here?[/color]
Enumeration index -1 is out of range, ignore it
Enumeration index -1 is out of range, ignore it
Enumeration index -1 is out of range, ignore it
Enumeration index -1 is out of range, ignore it
DVP::execute - No Sources (but document is restoring) - ProjItem
DVP::execute - No Sources (but document is restoring) - ProjItem001
DVP::execute - No Sources (but document is restoring) - ProjItem002
DVP::execute - No Sources (but document is restoring) - ProjItem004
DVD::execute - No BaseView (but document is restoring) - Detail
0 <App> Document.cpp(3462): Failed to recompute FILE#Section: BaseView object not found
DVD::execute - No BaseView (but document is restoring) - Detail001
DVP::execute - No Sources (but document is restoring) - ProjItem
DVP::execute - No Sources (but document is restoring) - ProjItem001
DVP::execute - No Sources (but document is restoring) - ProjItem002
DVP::execute - No Sources (but document is restoring) - ProjItem004
DVD::execute - No BaseView (but document is restoring) - Detail
0.0005696 <App> Document.cpp(3462): Failed to recompute FILE#Section: BaseView object not found
DVD::execute - No BaseView (but document is restoring) - Detail001
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
Warning - no numeric format in formatSpec  - Dimension
Warning - no numeric format in formatSpec  - Dimension
Warning - no numeric format in formatSpec  - Dimension001
Warning - no numeric format in formatSpec  - Dimension001
Warning - no numeric format in formatSpec  - Dimension002
Warning - no numeric format in formatSpec  - Dimension002
Warning - no numeric format in formatSpec  - Dimension003
Warning - no numeric format in formatSpec  - Dimension003
Warning - no numeric format in formatSpec  - Dimension004
Warning - no numeric format in formatSpec  - Dimension004
Warning - no numeric format in formatSpec  - Dimension006
Warning - no numeric format in formatSpec  - Dimension006
Warning - no numeric format in formatSpec  - Dimension007
Warning - no numeric format in formatSpec  - Dimension007
Warning - no numeric format in formatSpec  - Dimension008
Warning - no numeric format in formatSpec  - Dimension008
Warning - no numeric format in formatSpec  - Dimension009
Warning - no numeric format in formatSpec  - Dimension009
Warning - no numeric format in formatSpec  - Dimension010
Warning - no numeric format in formatSpec  - Dimension010
Warning - no numeric format in formatSpec  - Dimension011
Warning - no numeric format in formatSpec  - Dimension011
Warning - no numeric format in formatSpec  - Dimension012
Warning - no numeric format in formatSpec  - Dimension012
Warning - no numeric format in formatSpec  - Dimension013
Warning - no numeric format in formatSpec  - Dimension013
Warning - no numeric format in formatSpec  - Dimension014
Warning - no numeric format in formatSpec  - Dimension014
Warning - no numeric format in formatSpec  - Dimension015
Warning - no numeric format in formatSpec  - Dimension015
Warning - no numeric format in formatSpec  - Dimension016
Warning - no numeric format in formatSpec  - Dimension016
Warning - no numeric format in formatSpec  - Dimension017
Warning - no numeric format in formatSpec  - Dimension017
Warning - no numeric format in formatSpec  - Dimension018
Warning - no numeric format in formatSpec  - Dimension018
Warning - no numeric format in formatSpec  - Dimension019
Warning - no numeric format in formatSpec  - Dimension019
Warning - no numeric format in formatSpec  - Dimension020
Warning - no numeric format in formatSpec  - Dimension020
Warning - no numeric format in formatSpec  - Dimension021
Warning - no numeric format in formatSpec  - Dimension021
Warning - no numeric format in formatSpec  - Dimension023
Warning - no numeric format in formatSpec  - Dimension023
Warning - no numeric format in formatSpec  - Dimension024
Warning - no numeric format in formatSpec  - Dimension024
Warning - no numeric format in formatSpec  - Dimension025
Warning - no numeric format in formatSpec  - Dimension025
Warning - no numeric format in formatSpec  - Dimension028
Warning - no numeric format in formatSpec  - Dimension028
Warning - no numeric format in formatSpec  - Dimension029
Warning - no numeric format in formatSpec  - Dimension029
Warning - no numeric format in formatSpec  - Dimension030
Warning - no numeric format in formatSpec  - Dimension030
Warning - no numeric format in formatSpec  - Dimension137
Warning - no numeric format in formatSpec  - Dimension137
Warning - no numeric format in formatSpec  - Dimension138
Warning - no numeric format in formatSpec  - Dimension138
Warning - no numeric format in formatSpec  - Dimension139
Warning - no numeric format in formatSpec  - Dimension139
Warning - no numeric format in formatSpec  - Dimension140
Warning - no numeric format in formatSpec  - Dimension140
Warning - no numeric format in formatSpec  - Dimension141
Warning - no numeric format in formatSpec  - Dimension141
When I open the file with FreeCAD_0.19.18686_x64_LP_12.1.2_PY3QT5-WinVS2015 I get the following output:

Code: Select all

Thread size out of range
[color=#FF8000]=> This one is not nice, but deleting it, will break the drawings due to component renaming[/color]
Enumeration index -1 is out of range, ignore it
Enumeration index -1 is out of range, ignore it
Enumeration index -1 is out of range, ignore it
Enumeration index -1 is out of range, ignore it
[color=#FF8000]=> can't remember this (I believe, in November it was ok)[/color]
Dimension089 has invalid 2D References
Dimension094 has invalid 2D References
Dimension095 has invalid 2D References
Dimension096 has invalid 2D References
Dimension097 has invalid 2D References
Dimension105 has invalid 2D References
Dimension106 has invalid 2D References
[color=#FF8000]=> can't remember this (I believe, in November it was ok)[/color]
DVD::getDimValue - Dimension089 - 2D references are corrupt (5)
DVD::getDimValue - Dimension089 - 2D references are corrupt (5)
DVD::getDimValue - Dimension094 - 2D references are corrupt (5)
DVD::getDimValue - Dimension094 - 2D references are corrupt (5)
DVD::getDimValue - Dimension095 - 2D references are corrupt (5)
DVD::getDimValue - Dimension095 - 2D references are corrupt (5)
DVD::getDimValue - Dimension096 - 2D references are corrupt (5)
DVD::getDimValue - Dimension096 - 2D references are corrupt (5)
DVD::getDimValue - Dimension097 - 2D references are corrupt (5)
DVD::getDimValue - Dimension097 - 2D references are corrupt (5)
DVD::getDimValue - Dimension105 - 2D references are corrupt (5)
DVD::getDimValue - Dimension105 - 2D references are corrupt (5)
DVD::getDimValue - Dimension106 - 2D references are corrupt (5)
DVD::getDimValue - Dimension106 - 2D references are corrupt (5)
[color=#FF8000]=> can't remember this (I believe, in November it was ok)[/color]
I further noticed, when I move FreeCAD_0.19.18686_x64_LP_12.1.2_PY3QT5-WinVS2015 to a different location, start it again and load the file, I get errors like:
DrawGeomHatch::getDecodedSpecsFromFile not able to open ............./data/Mod/TechDraw/PAT/FCPAT.pat!
Under normal circumstances there shouldn't be full absolute file pathes in the FCStd file, right?
FreeCAD_0.19.19311_x64_LP_12.1.2_PY3QT5-WinVS2015 seem to ignore these absolute file pathes.

Thank you very much in advance for any help!

I will try to create a small test case to show the problem.

Best regards,
Ingo

Additional information:
FreeCAD_0.19.18760_x64_LP_12.1.2_PY3QT5-WinVS2015 shows the same behaviour.
=> Where can I download versions between FreeCAD_0.19.18686_x64_LP_12.1.2_PY3QT5-WinVS2015 and FreeCAD_0.19.18760_x64_LP_12.1.2_PY3QT5-WinVS2015 for testing to narrow down to the break?

Even more information:
the Document.xml has 2.5 MB. How can I find the "End of document reached" point?
Can I activate any extra logging or additional debug information?

More:
Can't create a test case so far. I have only the large 60 MB FCStd . Will try to strip it down.

More:
I was able to strip off a lot of things: 187kB
BU2__4.FCStd
(186.4 KiB) Downloaded 20 times
Last edited by IngoMeier on Mon Jan 20, 2020 3:19 pm, edited 1 time in total.
User avatar
wandererfan
Veteran
Posts: 6309
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: 0.19.18686 -> 0.19.19311: file(s) broken?! TechDraw?

Post by wandererfan »

IngoMeier wrote: Mon Jan 20, 2020 9:13 am Invalid Document.xml: End of document reached

DVP::execute - No Sources (but document is restoring) - ProjItem
DVP::execute - No Sources (but document is restoring) - ProjItem001
DVP::execute - No Sources (but document is restoring) - ProjItem002
DVP::execute - No Sources (but document is restoring) - ProjItem004
DVD::execute - No BaseView (but document is restoring) - Detail

DVD::execute - no DVP!
DVD::execute - no DVP!
DVD::execute - no DVP!
[/code]
The first line above is the most important one. It says that only part of the Document was restored. This is probably the cause of all the rest of the messages.
I further noticed, when I move FreeCAD_0.19.18686_x64_LP_12.1.2_PY3QT5-WinVS2015 to a different location, start it again and load the file, I get errors like:
DrawGeomHatch::getDecodedSpecsFromFile not able to open ............./data/Mod/TechDraw/PAT/FCPAT.pat!
Under normal circumstances there shouldn't be full absolute file pathes in the FCStd file, right?
Until quite recently, hatch file locations were stored as absolute file paths. The hatch files are now embedded in the document.
the Document.xml has 2.5 MB. How can I find the "End of document reached" point?
Can I activate any extra logging or additional debug information?

Not that I know off. I've only seen this once before and it took a lot of digging to find.
Can't create a test case so far. I have only the large 60 MB FCStd . Will try to strip it down.
going to be hard to fix without a file. Dropbox? GoogleDrive?
IngoMeier
Posts: 29
Joined: Mon Sep 30, 2019 12:51 pm

Re: 0.19.18686 -> 0.19.19311: file(s) broken?! TechDraw?

Post by IngoMeier »

I have attached a stripped file in the meantime to my first post.

0.19.18686 does not report the end of the document.xml, only newer versions
User avatar
wandererfan
Veteran
Posts: 6309
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: 0.19.18686 -> 0.19.19311: file(s) broken?! TechDraw?

Post by wandererfan »

IngoMeier wrote: Mon Jan 20, 2020 9:13 am Not sure, if this is TechDraw specific
TD problem for sure. There is a glitch in save/restore of Centerlines. Here is your file without Centerlines, it should save/restore fine in current versions.

More when I figure out what's up with CLs.
Attachments
BU2__4_fixCL.FCStd
(186.01 KiB) Downloaded 15 times
User avatar
wandererfan
Veteran
Posts: 6309
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: 0.19.18686 -> 0.19.19311: file(s) broken?! TechDraw?

Post by wandererfan »

If you go into Tools>Edit Parameters... and add/set Preferences/Mod/TechDraw/General/restoreCosmetic = false, you should be able to load other files with this problem.

You will lose your CosmeticVertexes and Centerlines, but the file should load everything else.
IngoMeier
Posts: 29
Joined: Mon Sep 30, 2019 12:51 pm

Re: 0.19.18686 -> 0.19.19311: file(s) broken?! TechDraw?

Post by IngoMeier »

@wandererfan
Thank you very much!
(Now I have to be patient and wait for the next version)

@mod
Thread can be shifted to TechDraw
IngoMeier
Posts: 29
Joined: Mon Sep 30, 2019 12:51 pm

Re: 0.19.18686 -> 0.19.19311: file(s) broken?! TechDraw?

Post by IngoMeier »

@wandererfan
Changing the setting works, but ...
Sorry to bother you again. Have you seen the difference between 0.19.18686 and 0.19.19311:
FC_TD_error.png
FC_TD_error.png (95.82 KiB) Viewed 778 times
Top half is ok (0.19.18686), but bottom is not ok:
The section A-A in the top right and (therefor) the detailview 2 is wrong
User avatar
wandererfan
Veteran
Posts: 6309
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: 0.19.18686 -> 0.19.19311: file(s) broken?! TechDraw?

Post by wandererfan »

IngoMeier wrote: Mon Jan 20, 2020 3:49 pm Sorry to bother you again. Have you seen the difference between 0.19.18686 and 0.19.19311:

The section A-A in the top right and (therefor) the detailview 2 is wrong
I think your document originated before the changes outlined here: https://www.forum.freecadweb.org/viewto ... 35&t=41231.

Flipping section A-A is easy, just change the XDirection property from -Z to +Z.
You should be able to do that with the detail too, but it looks like there is something wrong there. I'll have to look into that.
Post Reply