Crash with Sweep

About the development of the Part Design module/workbench. PLEASE DO NOT POST HELP REQUESTS HERE!
vectro
Posts: 32
Joined: Fri Jun 30, 2017 1:55 am

Re: Crash with Sweep

Postby vectro » Sun Jul 30, 2017 10:38 pm

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

Re: Crash with Sweep

Postby Kunda1 » Mon Aug 14, 2017 2:51 pm

kkremitzki wrote:ping
Can you weigh in on this PDN issue #3146 ?
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
toughkrua
Posts: 11
Joined: Mon Jan 22, 2018 9:06 pm

Re: Crash with Sweep

Postby toughkrua » Fri Jan 26, 2018 9:09 pm

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 37 times
chrisb
Posts: 18076
Joined: Tue Mar 17, 2015 9:14 am

Re: Crash with Sweep

Postby chrisb » Fri Jan 26, 2018 10:31 pm

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.
toughkrua
Posts: 11
Joined: Mon Jan 22, 2018 9:06 pm

Re: Crash with Sweep

Postby toughkrua » Fri Jan 26, 2018 10:55 pm

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
Posts: 18076
Joined: Tue Mar 17, 2015 9:14 am

Re: Crash with Sweep

Postby chrisb » Fri Jan 26, 2018 11:14 pm

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)
chrisb
Posts: 18076
Joined: Tue Mar 17, 2015 9:14 am

Re: Crash with Sweep

Postby chrisb » Fri Jan 26, 2018 11:22 pm

Perhaps it's worth to mention: No crashes if I do the sweep in PartDesign!
toughkrua
Posts: 11
Joined: Mon Jan 22, 2018 9:06 pm

Re: Crash with Sweep

Postby toughkrua » 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"
chrisb
Posts: 18076
Joined: Tue Mar 17, 2015 9:14 am

Re: Crash with Sweep

Postby chrisb » Sat Jan 27, 2018 12:09 am

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 664 times
toughkrua
Posts: 11
Joined: Mon Jan 22, 2018 9:06 pm

Re: Crash with Sweep

Postby toughkrua » Sat Jan 27, 2018 10:04 pm

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 631 times
Зняток екрану з 2018-01-27 23-58-22.png
Зняток екрану з 2018-01-27 23-58-22.png (179.7 KiB) Viewed 631 times
Зняток екрану з 2018-01-27 23-57-30.png
Зняток екрану з 2018-01-27 23-57-30.png (180.04 KiB) Viewed 631 times