[Solved] Freecad crash with TD preferences edit

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
balrobs
Posts: 449
Joined: Fri Apr 24, 2020 8:58 pm

[Solved] Freecad crash with TD preferences edit

Post by balrobs »

Steps to reproduce:
  1. Open the attached file myTest01.FCStd
  2. Goto Edit/Preferences/Techdraw/Colors and change the Vertex color value (I used #0055ff)
  3. Exit the Preference dialog with OK
  4. sometimes the crash happens here, if not go on with this
  5. Save the document
  6. Close the page using the x in the Page tab
  7. Repeat step 2 using another color value (I used #ff0000)
  8. Repeat step 3
  9. Here Freecad always crashes for me

    Can someone else confirm?
    Cheers

    Edit:
    Step 5 can be omitted!

Code: Select all

OS: Ubuntu 20.04.4 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.21.30193 (Git) AppImage
Build type: Release
Branch: master
Hash: a8cb4e744483ce2c4b0770b948105a766330a4b2
Python 3.10.6, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: English/United States (en_US)
Installed mods: 
  * BIM 2021.12.0
  * Plot 2022.4.17
  * Reinforcement
  * CfdOF 1.14.5
  * FreeCAD_SketchArch
  * dodo
  * Curves 0.3.0
Attachments
myTest01.FCStd
(43.92 KiB) Downloaded 21 times
Last edited by balrobs on Sun Aug 28, 2022 12:43 pm, edited 2 times in total.
User avatar
ragohix769
Posts: 565
Joined: Sat Jul 18, 2020 7:04 am
Location: Rome - Italy

Re: Freecad crash with TD preferences edit

Post by ragohix769 »

I confirm the problem here, even without saving, but I have to close the TD page with X e then reopen it: changing color for vertex in t TD preferences => crash.

Code: Select all

OS: Ubuntu 20.04.5 LTS (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.21.
Build type: Release
Branch: unknown
Hash: 65b22c2f513e9afe50a8d1bd85962f32066302e1
Python 3.8.10, Qt 5.12.8, Coin 4.0.0, Vtk 7.1.1, OCC 7.5.2
Locale: Italian/Italy (it_IT)
Installed mods: 
  * BIM 2021.12.0
After #ElonMuskBuyTwitter I'm no more on Twitter, that's really enough :-(
=> Now you can find me here on #Mastodon: https://mastodon.uno/@opensoul - I hope more people do the same :-)
balrobs
Posts: 449
Joined: Fri Apr 24, 2020 8:58 pm

Re: Freecad crash with TD preferences edit

Post by balrobs »

ragohix769 wrote: Sat Aug 27, 2022 9:26 am I confirm the problem here, even without saving ..
Thanks @ragohix769 for confirming.
I changed my first post accordingly :)
User avatar
wandererfan
Veteran
Posts: 6268
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Freecad crash with TD preferences edit

Post by wandererfan »

balrobs wrote: Sat Aug 27, 2022 9:14 am [*] Here Freecad always crashes for me
I have seen this, but never been able to reproduce it on demand. Now we might be able to fix it. Thanks for reporting.

I think it has something to do with the navigation styles which monitor preference changes.

as documentation...

Code: Select all

1 Base::Subject<const char *>::Notify             Observer.h               175 0x7fccda324ceb 
2 ParameterGrp::SetInt                            Parameter.cpp            497 0x7fccd7d9ddd3 
3 Gui::Dialog::DlgSettings3DViewImp::saveSettings DlgSettings3DViewImp.cpp 72  0x7fccda464406 
4 Gui::Dialog::DlgPreferencesImp::applyChanges    DlgPreferencesImp.cpp    432 0x7fccda45a82d 
5 Gui::Dialog::DlgPreferencesImp::accept          DlgPreferencesImp.cpp    305 0x7fccda459e5a 

chrisb
Veteran
Posts: 53945
Joined: Tue Mar 17, 2015 9:14 am

Re: Freecad crash with TD preferences edit

Post by chrisb »

I saw this too without being able to nail it down. FWIW: I use Gesture navigation style.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
wandererfan
Veteran
Posts: 6268
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Freecad crash with TD preferences edit

Post by wandererfan »

Should be fixed by git commit dd95969695.
User avatar
ragohix769
Posts: 565
Joined: Sat Jul 18, 2020 7:04 am
Location: Rome - Italy

Re: Freecad crash with TD preferences edit

Post by ragohix769 »

wandererfan wrote: Sat Aug 27, 2022 7:52 pm Should be fixed by git commit dd95969695.
FreeCAD dev guys are always the best team in the world 8-) Really thanks for your incredible contribution.
After #ElonMuskBuyTwitter I'm no more on Twitter, that's really enough :-(
=> Now you can find me here on #Mastodon: https://mastodon.uno/@opensoul - I hope more people do the same :-)
balrobs
Posts: 449
Joined: Fri Apr 24, 2020 8:58 pm

Re: Freecad crash with TD preferences edit

Post by balrobs »

wandererfan wrote: Sat Aug 27, 2022 7:52 pm Should be fixed by git commit dd95969695.
Today I compiled on Ubuntu and can confirm the issue is fixed :D
ragohix769 wrote: Sat Aug 27, 2022 9:13 pm Really thanks for your incredible contribution.
+1
You are the reason why such a great project is possible at all.
Together we all rock :P
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: [Solved] Freecad crash with TD preferences edit

Post by uwestoehr »

@wandererfan , is the fix also needed for FC 0.20?
User avatar
wandererfan
Veteran
Posts: 6268
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: [Solved] Freecad crash with TD preferences edit

Post by wandererfan »

uwestoehr wrote: Mon Sep 12, 2022 12:35 am @wandererfan , is the fix also needed for FC 0.20?
No. It was related to the parameter observer added as part of implementing navigation styles for v0.21.
Post Reply