[Solved] Draft/Annotation/Text crashed FC

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
johnwang
Veteran
Posts: 1382
Joined: Sun Jan 27, 2019 12:41 am

[Solved] Draft/Annotation/Text crashed FC

Post by johnwang »

With any text.

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22900 (Git)
Build type: Release
Branch: master
Hash: b7b4250b7fe5e98bcdbe2a7c7be256132b35cd3d
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United States (en_US)
Last edited by johnwang on Sat Nov 28, 2020 10:41 am, edited 1 time in total.
hfc series CAE workbenches for FreeCAD (hfcNastran95, hfcMystran, hfcFrame3DD, hfcSU2 and more)
chrisb
Veteran
Posts: 54311
Joined: Tue Mar 17, 2015 9:14 am

Re: Draft/Annotation/Text crashed FC

Post by chrisb »

No problem here. Please add a step by step description of what you have done. You can also try to reset the configuration with the button in the preferences. Another possibility is to delete your config files or to move them in case you want to restore them.

OS: macOS 10.15
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.23058 (Git)
Build type: Release
Branch: master
Hash: 6e60870ebcb2df018adb7a1281c00dde87750f11
Python version: 3.8.6
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: C/Default (C)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
johnwang
Veteran
Posts: 1382
Joined: Sun Jan 27, 2019 12:41 am

Re: Draft/Annotation/Text crashed FC

Post by johnwang »

chrisb wrote: Wed Nov 25, 2020 6:43 am No problem here. Please add a step by step description
Done the reset.

Just Start FC, New doc, change to Draft, Annotation/Text, then crash.

There is a message sometimes.
il.jpg
il.jpg (39.28 KiB) Viewed 1105 times
hfc series CAE workbenches for FreeCAD (hfcNastran95, hfcMystran, hfcFrame3DD, hfcSU2 and more)
chrisb
Veteran
Posts: 54311
Joined: Tue Mar 17, 2015 9:14 am

Re: Draft/Annotation/Text crashed FC

Post by chrisb »

That's how I did it. I have seen here Access violation issues before. Many, if not most, were related to graphics card/driver issues. Some of them are listed in the Known OS specific issues.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
johnwang
Veteran
Posts: 1382
Joined: Sun Jan 27, 2019 12:41 am

Re: Draft/Annotation/Text crashed FC

Post by johnwang »

I once have this message due to my code array indexing error.
Since Annotation/Lable works, so maybe there is some logical error in the Annotation/Text code.
hfc series CAE workbenches for FreeCAD (hfcNastran95, hfcMystran, hfcFrame3DD, hfcSU2 and more)
User avatar
yorik
Founder
Posts: 13665
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Draft/Annotation/Text crashed FC

Post by yorik »

No crash for me either... But indeed we've seen this before.
Do other Draft tools (line, rectangle...) work?
User avatar
johnwang
Veteran
Posts: 1382
Joined: Sun Jan 27, 2019 12:41 am

Re: Draft/Annotation/Text crashed FC

Post by johnwang »

yorik wrote: Thu Nov 26, 2020 12:52 pm No crash for me either... But indeed we've seen this before.
Do other Draft tools (line, rectangle...) work?
No, just switch to Draft and it crashs.

I found under my AppData/Roaming/FreeCAD folder, there is a crash.log file. Part of it is:

Code: Select all

Log: Id: 6468: D:\FreeCAD_0.19.21937_x64_LP_12.1.6_PY3QT5-WinVS2015\lib\PartGui.pyd:PartGui.pyd (00007FFEFB780000), size: 3248128 (result: 0), SymType: '-exported-', PDB: 'D:\FreeCAD_0.19.21937_x64_LP_12.1.6_PY3QT5-WinVS2015\lib\PartGui.pyd'
Log: Id: 6468: D:\Program Files\Graphviz 2.44.1\bin\fontconfig.DLL:fontconfig.DLL (0000000180000000), size: 856064 (result: 0), SymType: '-exported-', PDB: 'D:\Program Files\Graphviz 2.44.1\bin\fontconfig.DLL'
Log: Id: 6468: D:\Program Files\Graphviz 2.44.1\bin\expat.dll:expat.dll (00007FFEFB740000), size: 204800 (result: 0), SymType: '-exported-', PDB: 'D:\Program Files\Graphviz 2.44.1\bin\expat.dll'
Log: Id: 6468: ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFF504DB38D)
Log: Id: 6468: 00007FFF504DB38D (ntdll): (filename not available): RtlEnterCriticalSection
Log: Id: 6468: ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFF4E171D15)
Log: Id: 6468: 00007FFF4E171D15 (KERNELBASE): (filename not available): FindNextFileW
So I think maybe the problem is from Graphviz. I forgot for what I need to install it (Not related to FreeCAD). After uninstall it, Draft works again. And the Draft Grid and Human figure comes back. I lost them for a while. Don't know if I install Graphviz again, will the Grid gone.
hfc series CAE workbenches for FreeCAD (hfcNastran95, hfcMystran, hfcFrame3DD, hfcSU2 and more)
chrisb
Veteran
Posts: 54311
Joined: Tue Mar 17, 2015 9:14 am

Re: Draft/Annotation/Text crashed FC

Post by chrisb »

Graphviz is needed for the Dependency Graph.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: [Solved] Draft/Annotation/Text crashed FC

Post by Kunda1 »

Details are in Dependency Graph wiki page
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
chennes
Veteran
Posts: 3914
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: [Solved] Draft/Annotation/Text crashed FC

Post by chennes »

I have a solution that doesn't involve removing GraphViz here. The upshot is that you only need to replace the fontconfig.dll that comes with GraphViz.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
Post Reply