Skip to content
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

Crashes when changing parameter #16653

Open
2 tasks done
ueli72 opened this issue Sep 19, 2024 · 3 comments
Open
2 tasks done

Crashes when changing parameter #16653

ueli72 opened this issue Sep 19, 2024 · 3 comments
Labels
Status: Needs example file Missing example file from user Status: Needs steps to reproduce Missing steps to reproduce or macro file Type: Crash For issues describing crashes or PRs fixing one

Comments

@ueli72
Copy link

ueli72 commented Sep 19, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Problem description

If I try to change a parameter early in the history of the construction, FreeCad crashes.

Example File: https://docs.bws-uster.ch/share/s/7nE51NRhQTG1NHBE6daEVw
Try to change length from 50 to 40 mm in Body "Box", Pad001.

This is the output of the terminal:

Program received signal SIGSEGV, Segmentation fault.
#0  /lib/x86_64-linux-gnu/libc.so.6( 0x42520) [0x79b1867a5520]
#1  0x79b188e0b460 in Data::ElementNameComparator::operator()(Data::MappedName const&, Data::MappedName const&) const from /snap/freecad/1142/usr/lib/libFreeCADApp.so 0x20
#2  0x79b14871105d in std::_Rb_tree<Data::MappedName, std::pair<Data::MappedName const, Part::NameInfo>, std::_Select1st<std::pair<Data::MappedName const, Part::NameInfo> >, Data::ElementNameComparator, std::allocator<std::pair<Data::MappedName const, Part::NameInfo> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<Data::MappedName const, Part::NameInfo> >, Data::MappedName const&) from /snap/freecad/1142/usr/lib/Part.so 0x5d
#3  0x79b1486ebd3b in Part::TopoShape::makeShapeWithElementMap(TopoDS_Shape const&, Part::TopoShape::Mapper const&, std::vector<Part::TopoShape, std::allocator<Part::TopoShape> > const&, char const*) from /snap/freecad/1142/usr/lib/Part.so 0x531b
#4  0x79b1486ed899 in Part::TopoShape::makeElementShape(BRepBuilderAPI_MakeShape&, std::vector<Part::TopoShape, std::allocator<Part::TopoShape> > const&, char const*) from /snap/freecad/1142/usr/lib/Part.so 0x129
#5  0x79b1486ed994 in Part::TopoShape::makeElementShape(BRepBuilderAPI_MakeShape&, Part::TopoShape const&, char const*) from /snap/freecad/1142/usr/lib/Part.so 0x84
#6  0x79b1486eef13 in Part::TopoShape::makeElementFillet(Part::TopoShape const&, std::vector<Part::TopoShape, std::allocator<Part::TopoShape> > const&, double, double, char const*) from /snap/freecad/1142/usr/lib/Part.so 0x113
#7  0x79b12db8b7dc in PartDesign::Fillet::execute() from /snap/freecad/1142/usr/lib/_PartDesign.so 0x20c
#8  0x79b188b861ca in App::DocumentObject::recompute() from /snap/freecad/1142/usr/lib/libFreeCADApp.so 0xba
#9  0x79b148489b1d in Part::Feature::recompute() from /snap/freecad/1142/usr/lib/Part.so 0xd
#10  0x79b188b204dd in App::Document::_recomputeFeature(App::DocumentObject*) from /snap/freecad/1142/usr/lib/libFreeCADApp.so 0x38d
#11  0x79b188b27e0b in App::Document::recompute(std::vector<App::DocumentObject*, std::allocator<App::DocumentObject*> > const&, bool, bool*, int) from /snap/freecad/1142/usr/lib/libFreeCADApp.so 0x65b
#12  0x79b1899cd0bf in Gui::PropertyEditor::PropertyEditor::recomputeDocument(App::Document*) from /snap/freecad/1142/usr/lib/libFreeCADGui.so 0x7f
#13  0x79b1899cd193 in Gui::PropertyEditor::PropertyEditor::closeTransaction() from /snap/freecad/1142/usr/lib/libFreeCADGui.so 0x93
#14  0x79b1899ceb20 in Gui::PropertyEditor::PropertyEditor::closeEditor(QWidget*, QAbstractItemDelegate::EndEditHint) from /snap/freecad/1142/usr/lib/libFreeCADGui.so 0x50
#15  /snap/freecad/1142/kf5/usr/lib/x86_64-linux-gnu/libQt5Core.so.5( 0x2f4928) [0x79b186eec928]
#16  0x79b187cebec4 in QAbstractItemDelegate::closeEditor(QWidget*, QAbstractItemDelegate::EndEditHint) from /snap/freecad/1142/kf5/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 0x54
#17  0x79b186ee239e in QObject::event(QEvent*) from /snap/freecad/1142/kf5/usr/lib/x86_64-linux-gnu/libQt5Core.so.5 0x2ae
#18  0x79b187a4e763 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /snap/freecad/1142/kf5/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 0x83
#19  0x79b18962aec8 in Gui::GUIApplication::notify(QObject*, QEvent*) from /snap/freecad/1142/usr/lib/libFreeCADGui.so 0x98
#20  0x79b186eb4e4a in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /snap/freecad/1142/kf5/usr/lib/x86_64-linux-gnu/libQt5Core.so.5 0x13a
#21  0x79b186eb7f47 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) from /snap/freecad/1142/kf5/usr/lib/x86_64-linux-gnu/libQt5Core.so.5 0x187
#22  /snap/freecad/1142/kf5/usr/lib/x86_64-linux-gnu/libQt5Core.so.5( 0x316ce7) [0x79b186f0ece7]
#23  /snap/freecad/1142/kf5/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch 0x26b) [0x79b184964d3b]
#24  /snap/freecad/1142/kf5/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0( 0xab258) [0x79b1849ba258]
#25  /snap/freecad/1142/kf5/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration 0x33) [0x79b1849623e3]
#26  0x79b186f0e338 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /snap/freecad/1142/kf5/usr/lib/x86_64-linux-gnu/libQt5Core.so.5 0x68
#27  0x79b186eb376b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /snap/freecad/1142/kf5/usr/lib/x86_64-linux-gnu/libQt5Core.so.5 0x12b
#28  0x79b186ebbd14 in QCoreApplication::exec() from /snap/freecad/1142/kf5/usr/lib/x86_64-linux-gnu/libQt5Core.so.5 0x94
#29  0x79b189566608 in Gui::Application::runApplication() from /snap/freecad/1142/usr/lib/libFreeCADGui.so 0x6c8
#30  /snap/freecad/1142/usr/bin/FreeCAD( 0xa781) [0x61b59f6f5781]
#31  /lib/x86_64-linux-gnu/libc.so.6( 0x29d90) [0x79b18678cd90]
#32  /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main 0x80) [0x79b18678ce40]
#33  /snap/freecad/1142/usr/bin/FreeCAD( 0xab45) [0x61b59f6f5b45]

Full version info

OS: Ubuntu Core 22 (X-Cinnamon/cinnamon)
Word size of FreeCAD: 64-bit
Version: 1.1.0dev.38774 (Git) Snap 1142
Build type: Release
Branch: main
Hash: 27ca64a2019f2018cb0b720a252329fdcfe0892d
Python 3.10.12, Qt 5.15.10, Coin 4.0.0, Vtk 7.1.1, OCC 7.7.1
Locale: German/Switzerland (de_CH)
Stylesheet/Theme/QtStyle: unset/FreeCAD Classic/Qt default

Subproject(s) affected?

PartDesign

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ueli72 ueli72 added the Status: Needs triage Missing triage label Sep 19, 2024
@ueli72
Copy link
Author

ueli72 commented Sep 19, 2024

I did the whole process again with the same underlying sketch (but probably with a slightly different order) and now it works flawlessly...

Working file: https://docs.bws-uster.ch/share/s/GN_d3wELT_W94tRylQJ6fA

@luzpaz
Copy link
Contributor

luzpaz commented Sep 20, 2024

@ueli72 The link 403s. Can you zip up the file and drag/drop it into github textfield (which auto-attaches it to this ticket)

@luzpaz luzpaz added Type: Crash For issues describing crashes or PRs fixing one Status: Needs example file Missing example file from user Status: Needs steps to reproduce Missing steps to reproduce or macro file and removed Status: Needs triage Missing triage labels Sep 20, 2024
@ueli72
Copy link
Author

ueli72 commented Sep 23, 2024

RFID_crashing_and_working.FCStd.zip
Sorry. Geoblocking....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs example file Missing example file from user Status: Needs steps to reproduce Missing steps to reproduce or macro file Type: Crash For issues describing crashes or PRs fixing one
Projects
None yet
Development

No branches or pull requests

2 participants