FreeCAD hangs when using Draft Dimension

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Matt.Cross
Posts: 6
Joined: Sat Jun 20, 2015 11:21 pm

Re: FreeCAD hangs when using Draft Dimension

Post by Matt.Cross »

I have the same issue. Here are the steps I used.

1. Start FreeCAD, create a new file.
2. Create a 1x1x1 cube.
3. Open the Draft workbench and select the dimension tooll
4. Click the points at the ends of an edge, FreeCAD freezes.

The same occurs when the "edge" feature is used.

OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 32-bit
Version: 0.15.4671 (Git)
Branch: releases/FreeCAD-0-15
Hash: 244b3aef360841646cbfe80a1b225c8b39c8380c
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: FreeCAD hangs when using Draft Dimension

Post by yorik »

No crash for me... Can you check if any of the other Draft tools also fails (ex. Rectangle or BSpline)?
Matt.Cross
Posts: 6
Joined: Sat Jun 20, 2015 11:21 pm

Re: FreeCAD hangs when using Draft Dimension

Post by Matt.Cross »

yorik wrote:No crash for me... Can you check if any of the other Draft tools also fails (ex. Rectangle or BSpline)?
After some testing, all the other tools are working correctly without freezing, it seems to be the Dimension tool exclusively. Would video of the steps and subsequent behavior be helpful?
Matt.Cross
Posts: 6
Joined: Sat Jun 20, 2015 11:21 pm

Re: FreeCAD hangs when using Draft Dimension

Post by Matt.Cross »

Sorry for double posting, but the following text appears below the Python console in red:

Unhandled unknown exception caught in GUIApplication::notify

Also, I didn't clearly illustrate all the steps to reproduce the problem.

1. Start FreeCAD.
2. Select "Part" workbench.
3. Create parameterized cube.
4. Switch to "Draft" workbench.
5. Select Dimension tool and select corner points or hold Alt and select an edge.
6. FC freezes.

I will try it on geometry padded from a sketch and see if the behavior changes.

Edit: The behavior is exactly the same with geometry padded from sketches. I have submitted the bug to the bugtracker.
Attachments
FreeCAD.log
(14.99 KiB) Downloaded 40 times
Matt.Cross
Posts: 6
Joined: Sat Jun 20, 2015 11:21 pm

Re: FreeCAD hangs when using Draft Dimension

Post by Matt.Cross »

I figured out what was happening and how to make it work. The "Display Mode" property on the "View" tab has to be set to 3D. Otherwise, the viewport will freeze when you try to pan or rotate. The problem is easily fixed by making 3D mode the default in the Draft preferences.
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: FreeCAD hangs when using Draft Dimension

Post by yorik »

Can you try the following code in the python console of freecad and see if it crashes? It looks like an old problem that might have resurfaced...

Code: Select all

from pivy import coin
sg = Gui.ActiveDocument.ActiveView.getSceneGraph()
t1=coin.SoAsciiText()
t1.string = "Hello"
sg.addChild(t1)
# <-- should not crash
t2=coin.SoAsciiText()
sg.addChild(t2)
# <-- should crash here, if it is what I think
drei
Posts: 479
Joined: Sun May 11, 2014 7:47 pm
Location: Mexico
Contact:

Re: FreeCAD hangs when using Draft Dimension

Post by drei »

Just created a new document and ran the python script, looks pretty, but no crash.

Code: Select all

OS: Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.5172 (Git)
Build type: Debug
Branch: master
Hash: 3f4e55a4745b911aeed902cd0295ca3871aad884
Python version: 2.7.10
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.8.0.oce-0.17
Need help? Feel free to ask, but please read the guidelines first
Matt.Cross
Posts: 6
Joined: Sat Jun 20, 2015 11:21 pm

Re: FreeCAD hangs when using Draft Dimension

Post by Matt.Cross »

yorik wrote:Can you try the following code in the python console of freecad and see if it crashes? It looks like an old problem that might have resurfaced...

Code: Select all

from pivy import coin
sg = Gui.ActiveDocument.ActiveView.getSceneGraph()
t1=coin.SoAsciiText()
t1.string = "Hello"
sg.addChild(t1)
# <-- should not crash
t2=coin.SoAsciiText()
sg.addChild(t2)
# <-- should crash here, if it is what I think

I will test it ASAP.
Matt.Cross
Posts: 6
Joined: Sat Jun 20, 2015 11:21 pm

Re: FreeCAD hangs when using Draft Dimension

Post by Matt.Cross »

Ok, I tested the code and it didn't crash or freeze. It simply displayed "Hello" in the view.
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: FreeCAD hangs when using Draft Dimension

Post by yorik »

Okay then that's one culprit excluded... I'll keep looking.
Post Reply