Crash with Sweep

About the development of the Part Design module/workbench. PLEASE DO NOT POST HELP REQUESTS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
vectro
Posts: 32
Joined: Fri Jun 30, 2017 1:55 am

Re: Crash with Sweep

Post by vectro »

User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Crash with Sweep

Post by Kunda1 »

kkremitzki wrote:ping
Can you weigh in on this PDN issue #3146 ?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
toughkrua
Posts: 11
Joined: Mon Jan 22, 2018 9:06 pm

Re: Crash with Sweep

Post by toughkrua »

Hello!
I have crash with sweep tool in another case. When I use FCSpring script with several pitch (distance between spire), sweep tool call crash in two version of FreeCAD if frenet option is disable. Another configuration of helix, for example, with different diameters, work well.

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
#0  /lib/x86_64-linux-gnu/libc.so.6(+0x354b0) [0x7f4bf40614b0]
#1  /usr/lib/x86_64-linux-gnu/libTKBool.so.7(+0x347aeb) [0x7f4b5ee27aeb]
#2  0x7f4b5ee3011d in BRepFill_PipeShell::MakeSolid() from /usr/lib/x86_64-linux-gnu/libTKBool.so.7+0x1bd
#3  0x7f4b64651544 in BRepOffsetAPI_MakePipeShell::MakeSolid() from /usr/lib/x86_64-linux-gnu/libTKOffset.so.7+0x24
#4  0x7f4b67264f50 in Part::Sweep::execute() from /usr/lib/freecad-daily/lib/Part.so+0x1150
#5  0x7f4bf65a91ed in App::DocumentObject::recompute() from /usr/lib/freecad-daily/lib/libFreeCADApp.so+0x6d
#6  0x7f4b672691bb in Part::Feature::recompute() from /usr/lib/freecad-daily/lib/Part.so+0xb
#7  0x7f4bf657339c in App::Document::_recomputeFeature(App::DocumentObject*) from /usr/lib/freecad-daily/lib/libFreeCADApp.so+0xac
#8  0x7f4bf657c190 in App::Document::recompute() from /usr/lib/freecad-daily/lib/libFreeCADApp.so+0x1f0
#9  0x7f4b5c47a07f in PartGui::SweepWidget::accept() from /usr/lib/freecad-daily/lib/PartGui.so+0x6ef
#10  0x7f4bf6e8b963 in Gui::TaskView::TaskView::accept() from /usr/lib/freecad-daily/lib/libFreeCADGui.so+0x53
#11  0x7f4bf4b2d010 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x4d0
#12  0x7f4bf4b2d010 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x4d0
#13  0x7f4bf56ead12 in QAbstractButton::clicked(bool) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x42
#14  /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x59f2b3) [0x7f4bf54202b3]
#15  /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x5a0664) [0x7f4bf5421664]
#16  0x7f4bf5421774 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x74
#17  0x7f4bf509c8d0 in QWidget::event(QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x2a0
#18  0x7f4bf5045fdc in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x8c
#19  0x7f4bf504d0d6 in QApplication::notify(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x476
#20  0x7f4bf6ca9824 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib/freecad-daily/lib/libFreeCADGui.so+0x54
#21  0x7f4bf4b1890d in QCoreApplication::notifyInternal(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x8d
#22  0x7f4bf504c6dd in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x14d
#23  /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x2493f2) [0x7f4bf50ca3f2]
#24  0x7f4bf50c9c83 in QApplication::x11ProcessEvent(_XEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x16b3
#25  /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x272542) [0x7f4bf50f3542]
#26  /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x2a7) [0x7f4bed781197]
#27  /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x4a3f0) [0x7f4bed7813f0]
#28  /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2c) [0x7f4bed78149c]
#29  0x7f4bf4b492ae in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x7e
#30  /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x272616) [0x7f4bf50f3616]
#31  0x7f4bf4b1718f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x3f
#32  0x7f4bf4b174f5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x1b5
#33  0x7f4bf4b1d4b9 in QCoreApplication::exec() from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x99
#34  0x7f4bf6c62600 in Gui::Application::runApplication() from /usr/lib/freecad-daily/lib/libFreeCADGui.so+0x15b0
#35  freecad-daily(main+0x8b4) [0x403834]
#36  /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f4bf404c830]
#37  freecad-daily(_start+0x29) [0x404a79]

Code: Select all

OS: Ubuntu 16.04.3 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13125 (Git)
Build type: None
Branch: master
Hash: 59dedd12751a3f5730734741ae6258a4ea4f5745
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: Ukrainian/Ukraine (uk_UA)

Code: Select all

OS: Ubuntu 16.04.3 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6712 (Git)
Build type: None
Branch: releases/FreeCAD-0-16
Hash: da2d364457257a7a8c6fb2137cea12c45becd71a
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
Must i place bug report to mantis?
Attachments
break-MainPiston.v2.fcstd
(46.36 KiB) Downloaded 81 times
chrisb
Veteran
Posts: 54207
Joined: Tue Mar 17, 2015 9:14 am

Re: Crash with Sweep

Post by chrisb »

toughkrua wrote: Fri Jan 26, 2018 9:09 pm I have crash with sweep tool in another case. When I use FCSpring script
...
Must i place bug report to mantis?
Can you validate this behaviour without using FCSpring? If it is a problem with that Macro - which isn't even listed in the Addon manager - it seems to be wrong to create a FreeCAD ticket.
Yet it should be discussed if FreeCAD should be robust enough so that any crash of FreeCAD justifies a ticket.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
toughkrua
Posts: 11
Joined: Mon Jan 22, 2018 9:06 pm

Re: Crash with Sweep

Post by toughkrua »

Can you validate this behaviour without using FCSpring? If it is a problem with that Macro - which isn't even listed in the Addon manager - it seems to be wrong to create a FreeCAD ticket.
It is very difficult to create 2D view such a form without the macro, but the file which has been added to my first message, contains the finished 2D view object with B-spline.
Yet it should be discussed if FreeCAD should be robust enough so that any crash of FreeCAD justifies a ticket.
Last edited by toughkrua on Fri Jan 26, 2018 11:18 pm, edited 1 time in total.
chrisb
Veteran
Posts: 54207
Joined: Tue Mar 17, 2015 9:14 am

Re: Crash with Sweep

Post by chrisb »

It crashes here with solid=true frenet=false. All other combinations are ok.
As a side remark: the diameter of the section is too big, but FreeCAD crashes even with a smaller one.

OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13156 (Git)
Build type: Release
Branch: (HEAD detached at 2e049fd)
Hash: 2e049fd5e83cc736db043ee5b971410c78229ed0
Python version: 2.7.14
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: German/Germany (de_DE)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 54207
Joined: Tue Mar 17, 2015 9:14 am

Re: Crash with Sweep

Post by chrisb »

Perhaps it's worth to mention: No crashes if I do the sweep in PartDesign!
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
toughkrua
Posts: 11
Joined: Mon Jan 22, 2018 9:06 pm

Re: Crash with Sweep

Post by toughkrua »

chrisb wrote: Fri Jan 26, 2018 11:22 pm Perhaps it's worth to mention: No crashes if I do the sweep in PartDesign!
I can`t do it at all with the elements from the file:( "TopoDS::Wire"
chrisb
Veteran
Posts: 54207
Joined: Tue Mar 17, 2015 9:14 am

Re: Crash with Sweep

Post by chrisb »

toughkrua wrote: Fri Jan 26, 2018 11:46 pm
chrisb wrote: Fri Jan 26, 2018 11:22 pm Perhaps it's worth to mention: No crashes if I do the sweep in PartDesign!
I can`t do it at all with the elements from the file:( "TopoDS::Wire"
Only some of the "Orientation mode"s actually work, others yield errors, but FreeCAD doesn't crash. The errors seem due to OCC issues. You can see it, if you select Frenet and display in wireframe mode: The helix is distorted in the 2nd layer.
Attachments
Bildschirmfoto 2018-01-27 um 01.09.32.png
Bildschirmfoto 2018-01-27 um 01.09.32.png (8.86 KiB) Viewed 2096 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
toughkrua
Posts: 11
Joined: Mon Jan 22, 2018 9:06 pm

Re: Crash with Sweep

Post by toughkrua »

Hello again!
I cannot do anything with sweep by PartDesign.
Attachments
Зняток екрану з 2018-01-28 00-06-25.png
Зняток екрану з 2018-01-28 00-06-25.png (168.31 KiB) Viewed 2063 times
Зняток екрану з 2018-01-27 23-58-22.png
Зняток екрану з 2018-01-27 23-58-22.png (179.7 KiB) Viewed 2063 times
Зняток екрану з 2018-01-27 23-57-30.png
Зняток екрану з 2018-01-27 23-57-30.png (180.04 KiB) Viewed 2063 times
Post Reply