[solved] Weekly 021-31527 TechDraw dimensions cause crashes

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
FBXL5
Posts: 988
Joined: Sat Aug 03, 2019 8:45 pm

[solved] Weekly 021-31527 TechDraw dimensions cause crashes

Post by FBXL5 »

Hello community!

TechDraw in the new weekly build 0.21-31527 gives me headaches: Dimensions let FreeCAD crash!

The menu of the dimension tools is reordered; this can be observed as long no dimension has been involved so far.

I still can open files with active TechDraw pages without dimensions.

Then I cannot
- use any dimensioning tool, FC crashes at the moment a tool is selected
- read a file containing at least one dimension; it opens and starts to display some views (if 2D is active), but when it comes to show dimensions FC crashes. :(

Can someone confirm this behaviour?

Code: Select all

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.21.0.31527 (Git)
Build type: Release
Branch: master
Hash: 664b2560adcd9c9ab012e4f8c0fb92143c202fe9
Python 3.10.8, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: C/Default (C)
Installed mods: 
  * freecad.gears 1.0.0
  * fcgear 1.0.0
  * Render 2022.4.0
  * Curves.backup1662374221.0929039
  * fasteners 0.4.52
  * sheetmetal 0.2.60
  * Curves 0.6.5
  * Assembly3 0.11.4
Last edited by FBXL5 on Mon Jan 23, 2023 7:40 am, edited 1 time in total.
User avatar
wandererfan
Veteran
Posts: 6317
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Weekly 021-31527 TechDraw dimensions cause crashes

Post by wandererfan »

FBXL5 wrote: Mon Jan 09, 2023 3:36 pm Can someone confirm this behaviour?
New and old dimensions work with this

Code: Select all

OS: Linux Mint 20.3 (X-Cinnamon/cinnamon)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31529 +1 (Git)
Build type: debug
Branch: removeLogMessages
Hash: bf35fbeebd4a904f1d575fca626a03b5b2f7fcc9
Python 3.8.10, Qt 5.12.8, Coin 4.0.0, Vtk , OCC 7.6.3
Locale: English/Canada (en_CA)
Installed mods: 
  * sheetmetal 0.2.59
  * FreeCAD_Electric
  * Assembly4 0.12.4
  * A2plus 0.4.56a
newAndOldDims.png
newAndOldDims.png (43.69 KiB) Viewed 1691 times
user1234
Veteran
Posts: 3502
Joined: Mon Jul 11, 2016 5:08 pm

Re: Weekly 021-31527 TechDraw dimensions cause crashes

Post by user1234 »

FBXL5 wrote: Mon Jan 09, 2023 3:36 pm Can someone confirm this behaviour?
No, opened 0.20 and 0.21.master files with dimensions, created dimensions. Created a complete new file and made dimensions, works all.

Code: Select all

OS: Debian GNU/Linux 11 (bullseye) (X-Cinnamon/lightdm-xsession)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31544 (Git)
Build type: Release
Branch: master
Hash: 297389acae715dedd59465afc9e0f90db1e53aa7
Python 3.9.2, Qt 5.15.2, Coin 4.0.0, Vtk 9.0.1, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * QuickMeasure 2022.10.28
  * CurvedShapes 1.0.4
  * Curves 0.6.5

Greetings
user1234
User avatar
FBXL5
Posts: 988
Joined: Sat Aug 03, 2019 8:45 pm

Re: Weekly 021-31527 TechDraw dimensions cause crashes

Post by FBXL5 »

wandererfan wrote: Mon Jan 09, 2023 5:14 pm New and old dimensions work with this
(0.21.0.31529 +1)
user1234 wrote: Mon Jan 09, 2023 6:12 pm No, opened 0.20 and 0.21.master files with dimensions, created dimensions. Created a complete new file and made dimensions, works all.
(0.21.0.31544)

Linux seems to be safe.

It looks like I have to wait for next build to get rid of a crashing TechDraw. (At least all versions up to 0.21.0.31513 still work fine)

In the meantime my other computer can open files containing TechDraw dimensions, but it is impossible to add new dimensions, instead FC crashes. :(

Code: Select all

OS: macOS 10.15
Word size of FreeCAD: 64-bit
Version: 0.21.0.31527 (Git)
Build type: Release
Branch: master
Hash: 664b2560adcd9c9ab012e4f8c0fb92143c202fe9
Python 3.10.8, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: C/Default (C)
Installed mods: 
  * Reinforcement
  * fcgear 1.0.0
  * Render 2022.4.0
  * fcgear.backup1662890180.767765
  * fasteners 0.4.52
  * CurvedShapes 1.0.4
  * sheetmetal 0.2.60
  * Help 1.0.3
  * Curves 0.6.5
  * Assembly3 0.11.4
At least I can have a look at the new Repair dimension references dialog to create sensible translations in Crowdin.
User avatar
wandererfan
Veteran
Posts: 6317
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Weekly 021-31527 TechDraw dimensions cause crashes

Post by wandererfan »

FBXL5 wrote: Mon Jan 09, 2023 6:46 pm
I'll try with a test file that crashes if you have one to share.
User avatar
FBXL5
Posts: 988
Joined: Sat Aug 03, 2019 8:45 pm

Re: Weekly 021-31527 TechDraw dimensions cause crashes

Post by FBXL5 »

wandererfan wrote: Mon Jan 09, 2023 11:55 pm I'll try with a test file that crashes if you have one to share.
Thanks. This file (without any magic features) was made with 0.21.0.31340 and can be opened with 0.21.0.31527 so far:
Snip macro screenshot-0db0e2.png
Snip macro screenshot-0db0e2.png (13.93 KiB) Viewed 1503 times
TechDrawCrash.FCStd
(19.2 KiB) Downloaded 36 times

I can select a line, but the moment I click any of the dimensioning tools (except extend dimensions) FC disappears completely.
User avatar
wandererfan
Veteran
Posts: 6317
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Weekly 021-31527 TechDraw dimensions cause crashes

Post by wandererfan »

FBXL5 wrote: Tue Jan 10, 2023 7:49 am
Same revision, but different OS, Python, Qt, Vtk and add-ons, so I'm not sure this tells us much. Do we have a mac developer? I can't think of one off hand.

Code: Select all

OS: Linux Mint 20.3 (X-Cinnamon/cinnamon)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31527 (Git)
Build type: Unknown
Branch: test527
Hash: 664b2560adcd9c9ab012e4f8c0fb92143c202fe9
Python 3.8.10, Qt 5.12.8, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.3
Locale: English/Canada (en_CA)
Installed mods: 
  * sheetmetal 0.2.59
  * FreeCAD_Electric
  * Assembly4 0.12.4
  * A2plus 0.4.56a
21.0.31527.png
21.0.31527.png (17.95 KiB) Viewed 1421 times
User avatar
FBXL5
Posts: 988
Joined: Sat Aug 03, 2019 8:45 pm

Re: Weekly 021-31527 TechDraw dimensions cause crashes

Post by FBXL5 »

wandererfan wrote: Tue Jan 10, 2023 7:18 pm
My hope is that the problem disappears with the next weekly build.

@chrisb, does your Mac crash, too if you try to set dimensions in TechDraw with version 0.21.0.31527 as described above?
domad
Veteran
Posts: 2094
Joined: Mon Jun 22, 2020 12:16 pm

Re: Weekly 021-31527 TechDraw dimensions cause crashes

Post by domad »

FBXL5 wrote: Tue Jan 10, 2023 7:49 am ....
Hello FBXL5, greetings to the Community!
@wandererfan I confirm no problem here:

Code: Select all

OS: Linux Mint 20.3 (X-Cinnamon/cinnamon)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31527 (Git) AppImage
Build type: Release
Branch: master
Hash: 664b2560adcd9c9ab012e4f8c0fb92143c202fe9
Python 3.10.8, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: Local
with the file "TechDrawCrash.FCStd"
I attach the file with an excess of 3D dimensioning.
Attachments
TechDraw_no_Crash.FCStd
(33.67 KiB) Downloaded 30 times
TechDraw_no_Crash.png
TechDraw_no_Crash.png (130.14 KiB) Viewed 1305 times
domad
Veteran
Posts: 2094
Joined: Mon Jun 22, 2020 12:16 pm

Re: Weekly 021-31527 TechDraw dimensions cause crashes

Post by domad »

domad wrote: Wed Jan 11, 2023 11:06 am ....
@wandererfan
....however if I open the file "SSDlx_3D_domad-2" (built with version "FreeCAD_weekly-builds-31513-2023-01-08-conda-Windows-x86_64-py310" with Windows10) FreeCad loads it correctly, reporting however errors in the report, after a few seconds to complete the loading it crashes closing immediately, event that doesn't happen with FC-0.21-31513 windows, however TechDraw becomes exaggeratedly slow.

I attach the file divided into two parts, due to "weight" (over one Mb).
Attachments
SSDlx_3D_domad-002.7z
(511.19 KiB) Downloaded 32 times
SSDlx_3D_domad-001.7z
(512.21 KiB) Downloaded 29 times
SSDlx_3D_domad-2_crash_FC.png
SSDlx_3D_domad-2_crash_FC.png (145.33 KiB) Viewed 1257 times
Post Reply