Ticket #4207 - loft crashes on my machine

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Posts: 1
Joined: Wed Nov 27, 2019 8:10 pm

Ticket #4207 - loft crashes on my machine

Postby idobox » Wed Nov 27, 2019 8:56 pm

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.4 (GitTag)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 980bf9060e28555fecd9e3462f68ca74007b70f8
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: French/France (fr_FR)
CPU/GPU : AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx CPU (integrated GPU).

When trying to use loft in the part design WB, either additive or substractive, the view does not update to show the loft operation happened.
If I then try to change anything to the view, like the viewing angle or scale, the software freezes indefinetely, and the only way out is to get windows to force close it.

This only happens on my new laptop, which uses a new generation AMD Ryzen CPU with integrated GPU. Not on my 'main' computer, with an I5 and a GTX 1060.

How to reproduce the bug.

1. Create a new file
2. Go to part design workbench
3. Draw a simple sketch on XY plane, ie a rectangle
4. Draw another simple sketch either on a different plane, or on a parrallel plane
5. select one sketch
6. click additive loft
7. Click add section
8. click on the second sketch
9. try to do anything except ctrl+S

I have found that saving the file quickly after validating the loft operation works. I can then close the file, open it again, and the part will be updated, showing the loft operation went well. It's a usable workaround, but a really annoying one.
I have also tried to change the sketches once the whole loft/save/close/reopen routine is done, and the software reacts normally.

To me, it looks like an issue when the software tries to display the curved suface for the first time. Since it only happens on my laptop, which uses a pretty recent generation of integrated GPU, I imagine it could be caused by hardware taht is supported less than ideally.
But what do I know? :)

Anyway, I'm joining two files.
One with two sketches before running the loft operation.
The other one, saved just after the loft operation.
loft test pre.FCStd
(6.65 KiB) Downloaded 19 times
loft test post.FCStd
(11.78 KiB) Downloaded 16 times
Last edited by Kunda1 on Sat Jan 11, 2020 12:52 pm, edited 1 time in total.
Reason: Added ticket number to thread title
Posts: 25190
Joined: Tue Mar 17, 2015 9:14 am

Re: bug: loft crashes on my machine

Postby chrisb » Wed Nov 27, 2019 10:39 pm

Hi and welcome to the forum!

Please retry with a current 0.19 version.
Posts: 1
Joined: Fri Dec 06, 2019 1:10 pm

Re: bug: loft crashes on my machine

Postby cycore » Fri Dec 06, 2019 2:02 pm

I can confirm this crash in 0.18.4. Its not only the loft operation, but also the additive and subtractive primitives that crash in the same way.
It works in the most recent 0.19 version (FreeCAD_0.19.18831_x64_Conda_Py3QT5-WinVS2015).
User avatar
Posts: 7501
Joined: Thu Jan 05, 2017 9:03 pm

Re: Ticket #4207 - loft crashes on my machine

Postby Kunda1 » Sat Jan 11, 2020 12:54 pm

idobox wrote::bell:
Looks like it's fixed in 0.19. Can you reproduce on the latest 0.19pre and report back?

Ref: issue #4207
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features