-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sketcher: Crash when creating B-spline #16729
Comments
I went back to 1.0.0RC1 and the same problem exists. OS: macOS 14.6.1
|
Trying to find a work around, I clicked several points and then clicked the "close" button. The sketch closed and FreeCAD did not crash but there was no b-spline rendered in the sketch. The control points were in the sketch when I reopened it but there was no b-spline. |
Build 0.22.0dev.38495 crashes. |
I disabled auto constraints and the crash still occurs so I believe the problem is not related to auto constraints per PR #14954 The original fix in PR #14951 appears to exempt the special case when there is only one control point. If you only have one control point there is no crash. When there are two or more control points, the crash occurs. |
It appears this issue appears to be related to the machine. I attempted creating a BSpline on the same OS (macOS 14.6.1) but different architecture (arm64 M2 Max MBP) and creating the BSpline does not crash FreeCAD. So, this issue appears to be specific to the x86 version. |
@JohnOCFII could you reproduce on macOS ? TIA! |
No crash with my M1/arm Mac. As @sslupsky mentioned, this might be an architecture-related crash and only impacting the Intel Macs.
|
No crash on my Intel Mac:
|
My Mac is a MP 6,1. Could it be compiler related? Compiler settings maybe using AVX2 instructions? |
I tried it on two other Intel machines (MBP 10,1 and MacMini 6,1) running 14.6.1 and OCLP and it works fine. So it appears to be something to do with the MP 6,1. Seems like it could be a QT related issue:
I'll look into compiling it on the MP and see what that does. But, this appears to be a very specific machine issue. |
@chennes I am running into a problem with installation of one of the dependencies (netgen) when I follow the instructions you linked to. Is there some way to work around this dependency? I get an error when cmake attempts to link Mod/Fem/Fem.so:
|
Honestly for now I'd just disable building FEM (e.g. -DBUILD_FEM=Off if you are using cMake on the command line). |
Yeah, I turned off BUILD_FEM_NETGEN in the CMakePresets.json file. I was able to compile and there is no crash.
I noticed a new build (38827) was posted to the bundle repo a few minutes ago so I downloaded that build and it still crashes.
I compiled today so I am not sure why the dependency versions are different. |
Crash is still occurring in build 38946. I found a work around of sorts by drawing a line or arc in the sketch and then converting the arc to a bspline. I can then edit and manipulate the bspline without crashing FreeCAD. |
No crash for me -- a 13" 2018 Intel MacBook Pro with 16gb RAM, Sonoma.
Screen.Recording.2024-10-21.at.23.02.11.mov |
I downloaded build 38991 (same build as @depthoffocus) and it is still crashing for me. |
@sslupsky you're using OCLP, right? So this could be something to do with that. AVX2 maybe (not sure if I understand that). Or Legacy Metal? Have you tried "use Software OpenGL" to see if that solves it? The only other thing I wonder is if it crashes without KiCad StepUp installed. That's the only add-on you list, and none of us above appear to be using it. |
@depthoffocus Yes, I am running OCLP. I tried it on a couple other machines running OCLP and didn't have a problem. So uncertain if it is OCLP related or something specific to the MP 6,1. I have D500 GPU's. I removed KiCad StepUp but it did not make a difference. I also tried the "use Software OpenGL" preference but that didn't make a difference either. When I compiled FreeCAD from source on the MP 6,1, it did not crash. It might have something to do with a compiler flag and AVX2. But, I think I would have seen the same problem on the Mini 6,1 and MBP 10,1 since those CPU's do not support AVX2 either? |
Are the weekly builds archived somewhere? If I could download older builds, I might be able to zero in on the build where the problem started. |
Is there an existing issue for this?
Problem description
B-Splines are crashing in 1.0.0RC1.38642 and 1.1.0dev.38794:
Might be a regression of the problem reported here #14945 ?
To reproduce:
create a sketch,
click first point in b-spline (anywhere, does not need to be origin)
click second point (anywhere),
right click
FreeCAD crashes at this point.
Full version info
OS: macOS 14.6.1 Word size of FreeCAD: 64-bit Version: 1.1.0dev.38794 (Git) Build type: Release Branch: main Hash: a47800d9ccd7d7a7cdb1779d56de03d3c64cd76e Python 3.11.9, Qt 5.15.13, Coin 4.0.3, Vtk 9.2.6, OCC 7.7.2 Locale: C/Default (C) Stylesheet/Theme/QtStyle: FreeCAD Dark.qss/FreeCAD Dark/Qt default Installed mods: * kicadStepUpMod 11.3.2
Subproject(s) affected?
Sketcher
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: