View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002461 | PartDesign | Bug | public | 2016-03-02 11:10 | 2022-01-24 19:16 |
Reporter | taiyo_uk | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | confirmed | Resolution | open | ||
Platform | x86_64 | OS | Windows | OS Version | Windows 7 64 bit |
Product Version | 0.15 | ||||
Target Version | 0.20 | ||||
Summary | 0002461: Crash when creating loft between two sketches | ||||
Description | Crating a loft between two sketches causes FreeCAD to segfault in Fedora 23 x86_64, and to produce this error in Windows 7 64-bit: "ACCESS VIOLATION at address 0x00000010 during 'READ' operation" This only happens for certain sketches such as those included in the attached file. | ||||
Steps To Reproduce | 1. Open the attached file in FreeCAD 2. Create a loft using the two sketches 3. The crash happens when clicking the OK button in the loft dialog. | ||||
Additional Information | Changing the order of the two sketches has no effect. Selecting the closed option produces a different error in Windows: "TCollection_DataMap::ChangeFind" | ||||
Tags | #ready-for-migration, OCC 7.3, OCC Bug, upstream | ||||
FreeCAD Information | |||||
|
|
|
Version information: OS: Windows 7 Word size of OS: 64-bit Word size of FreeCAD: 64-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 OCC version: 6.8.0.oce-0.17 |
|
The same problem happens on the latest (at the time of writing) git build, this is what happens on Fedora: *** Abort *** an exception was raised, but no catch was found. ... The exception is:SIGSEGV 'segmentation violation' detected. Address 0 Version information: OS: Linux Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.16.6538 (Git) Build type: Release Branch: master Hash: 57c783e5b0f4da8611f5b1f26dc7499a5979e574 Python version: 2.7.10 Qt version: 4.8.7 Coin version: 3.1.3 |
|
I can confirm the problem here. OS: Ubuntu 14.04.4 LTS Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.16.6557 (Git) Build type: None Branch: master Hash: 948ccac021b15aff3c7a3b033c508e7ec9b123d6 Python version: 2.7.6 Qt version: 4.8.6 Coin version: 4.0.0a OCC version: 6.8.0.oce-0.17 But I suspect this is due to your sketches having a different number of segments - this is bound for trouble when creating lofts. This is probably an OCC issue (the geometric kernel FreeCAD uses) that the FreeCAD devs have no control of. A workaround is to add very short line segments to the second sketch so it has the same number of segments as the first sketch. Then the loft succeeds (see attached "loft-test_normandc1.fcstd" file). Another would be to create this model in two separate operations: first create a prism of the outer volume with a Pad, then create a loft representing the volume you want to be cut from the prism, and apply a boolean cut. This way the model will have planar faces rather than BSpline ones on which sketches cannot be mapped. Next time, please report modeling issues to the FreeCAD forum first, so to determine if it's a FreeCAD bug, or a bug in OCC which the devs can't do anything about. http://forum.freecadweb.org/viewtopic.php?f=3&t=5236 I wonder if the crash can be avoided, and an error thrown instead. |
|
|
|
Forum thread: https://forum.freecadweb.org/viewtopic.php?f=10&t=20258 |
|
@taiyo_uk do you still have the attachment for this ticket? Bugtracker shows it's missing. |
|
@taiyo_uk ping |
|
Ran into the same problem, apparently it still exists in 0.17. How to reproduce: Go to Part Design workbench, load attached file, create an additive loft, add sections from top to bottom. FreeCAD should crash with a segmentation fault. OS: "Manjaro Linux" Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.17.13522 (Git) AppImage Build type: None Branch: releases/FreeCAD-0-17 Hash: 3bb5ff4e70c0c526f2d9dd69b1004155b2f527f2 Python version: 2.7.6 Qt version: 4.8.6 Coin version: 4.0.0a OCC version: 7.2.0 Locale: English/UnitedKingdom (en_GB) Also tested on a friend's Mac, which crasches too: OS: Mac OS X Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.17.13519 (Git) Build type: Release Branch: (HEAD detached at 1a8b868) Hash: 1a8b868018f45ea486c0023fdbfeb06febc1fb89 Python version: 2.7.14 Qt version: 5.10.1 Coin version: 4.0.0a OCC version: 7.2.0 Locale: English/Austria (en_AT) |
|
@hirnsalat Thanks for testing. Can you also test with OCC7.3 when it becomes available ? Also please also report your findings to the dedicated forum thread |
|
That's a regression in OCCT 7.2. When using OCCT 7.0 it doesn't create a loft but reports an appropriate error message and does not crash. |
|
Is this issue resolved now? or is there another "exceptions in occt" ticket that can replace this? |
|
It was hirnsalat you said that it crashes with OCCT 7.2. But I've just tested it and I get it working when I also select the Ruled surface option. Without it an error message pops up but I don't get a crash. I have tested this with OCCT 7.0 and 7.2. |
|
I get a crash when I add the third section with the version below using OCC 7.3.0.
OS: Ubuntu 18.04.1 LTSWord size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.18.15816 (Git) Build type: Release Branch: master Hash: 7ee0e4d43909ec688299b8498b240cccf8362c47 Python version: 3.6.7 Qt version: 5.9.5 Coin version: 4.0.0a OCC version: 7.3.0 Locale: French/Canada (fr_CA) |
|
No crash with OCC 7.1.0 with this version. An error message appears in a pop up when pressing OK:BRepFill :: profiles are inconsistent OS: Ubuntu 18.04.1 LTS Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.17.13509 (Git) AppImage Build type: None Branch: master Hash: 0258808ccb6ba3bd5ea9312f79cd023f1a8671b7 Python version: 2.7.6 Qt version: 4.8.6 Coin version: 4.0.0a OCC version: 7.1.0 Locale: French/Canada (fr_CA) |
|
I don't have OCCT 7.3 to this but according to the call stack this anyway must be a bug in OCCT, then. |
|
This ticket has been migrated to GitHub as issue 5642. |
Date Modified | Username | Field | Change |
---|---|---|---|
2016-03-02 11:10 | taiyo_uk | New Issue | |
2016-03-02 11:10 | taiyo_uk | File Added: loft-test-1.FCStd | |
2016-03-02 11:20 | taiyo_uk | Note Added: 0006877 | |
2016-03-03 07:22 | taiyo_uk | Note Added: 0006879 | |
2016-03-06 20:04 | normandc | Note Added: 0006888 | |
2016-03-06 20:05 | normandc | Note Edited: 0006888 | |
2016-03-06 20:05 | normandc | File Added: loft-test_normandc1.FCStd | |
2017-01-26 21:53 | Kunda1 | Tag Attached: OCC Bug | |
2017-01-26 21:53 | Kunda1 | Tag Attached: upstream | |
2017-01-26 21:55 | Kunda1 | Note Added: 0008002 | |
2017-12-15 20:36 | Kunda1 | Note Added: 0010608 | |
2017-12-15 20:36 | Kunda1 | Status | new => feedback |
2018-01-18 14:25 | Kunda1 | Note Added: 0010789 | |
2018-06-08 23:53 | hirnsalat | File Added: loft-sigsegv.fcstd | |
2018-06-08 23:53 | hirnsalat | Note Added: 0011373 | |
2018-06-08 23:53 | hirnsalat | Note Edited: 0011373 | |
2018-06-08 23:58 | Kunda1 | Note Added: 0011374 | |
2018-06-08 23:58 | Kunda1 | Status | feedback => confirmed |
2018-06-08 23:58 | Kunda1 | Target Version | => 0.18 |
2018-06-08 23:59 | Kunda1 | Tag Attached: OCC 7.3 | |
2018-09-30 15:27 | wmayer | Note Added: 0011876 | |
2019-01-20 20:04 | maiden | Note Added: 0012473 | |
2019-01-20 21:01 | wmayer | Note Added: 0012474 | |
2019-02-09 20:16 | normandc | Note Added: 0012598 | |
2019-02-09 20:21 | normandc | Note Added: 0012599 | |
2019-02-14 21:33 | wmayer | Project | FreeCAD => PartDesign |
2019-02-23 20:29 | wmayer | Target Version | 0.18 => 0.19 |
2019-02-23 20:29 | wmayer | Note Added: 0012734 | |
2021-02-06 06:43 | abdullah | Target Version | => 0.20 |
2022-01-24 19:16 | Kunda1 | Tag Attached: #ready-for-migration |