FreeCAD / FreeCAD

This is the official source code of FreeCAD, a free and opensource multiplatform 3D parametric modeler.
https://www.freecad.org
Other
21.34k stars 4.15k forks source link

[Bug] [Sketcher] Periodic BSpline calculation hangs #8143

Closed Bernard-19 closed 1 year ago

Bernard-19 commented 1 year ago

Is there an existing issue for this?

Version

0.21 (Development)

Full version info

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.0.31432 (Git)
Build type: Release
Branch: master
Hash: 63a2855751d638bf27ed969dc60654bda2b54baf
Python 3.10.8, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: French/France (fr_FR)

Subproject(s) affected?

Sketcher

Problem description

Hello, I defining the degree of a Periodic BSpline with the shortcut by the D key, I enter the value 8 for example with 6 points and FreeCAD enters an infinite calculation.

I tested with a BSpline by control points and the result is correct. The degree displayed is 8.

Anything else?

No response

Code of Conduct

luzpaz commented 1 year ago

@AjinkyaDahale assigning this to you initially just to get the ball rolling.

AjinkyaDahale commented 1 year ago

@luzpaz I'm aware of this issue. I had asked the poster to make this issue.

AjinkyaDahale commented 1 year ago

As of the following version, the infinite loop no longer happens. Haven't confirmed but this might have been fixed by https://github.com/FreeCAD/FreeCAD/pull/8109.

However, instead the entire system is marked underconstrained and cannot be moved.

OS: Ubuntu Core 20 (GNOME/gnome)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31529 (Git) Snap 540
Build type: Release
Branch: master
Hash: a1e295e92ddbf10d0c42bf5b6e6f8ceb5f282e77
Python 3.8.10, Qt 5.15.5, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.3
Locale: English/United States (en_US)
OS: Manjaro Linux (GNOME/gnome)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31535 (Git)
Build type: Release
Branch: sketcher-fix-8143
Hash: 0439b4dca94b308b22f0f42ae8f0317d12888a9f
Python 3.10.8, Qt 5.15.7, Coin 4.0.1, Vtk 9.1.0, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * Curves 0.5.12
  * Curves.backup1662220878.4365516 0.4.4
  * ExtremeProDark 2.5.3
  * ProDarkThemePreferencePack 1.0.0
  * ProDarkThemePreferencePack.backup1662220881.5889003 1.0.0

The behavior is slightly different between the above versions, possibly because of https://github.com/FreeCAD/FreeCAD/commit/b7945b6a1500fee0d67c776c12f24e250784e1dd.