View Issue Details

IDProjectCategoryView StatusLast Update
0002842PartDesignBugpublic2017-02-01 23:22
ReporterOutsourcedGuru 
Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status feedbackResolutionopen 
PlatformMacBook ProOSMac OS XOS Version10.11.6
Product Version0.17 
Target VersionFixed in Version 
Summary0002842: Crash on "Face from Edges"
DescriptionWas working through online tutorial https://www.youtube.com/watch?v=fxKxSOGbDYs
"FreeCAD: How to make threads"

Steps To ReproduceAt the 4:14 offset of the video(https://youtu.be/fxKxSOGbDYs?t=4m14s), this is the sequence which consistently crashes the program.

* Advanced utility to create shapes
* Face from edges
* Left-mouse click circle
* Click the Create button
* Watch program crash and window close immediately
Additional InformationOS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.9586 (Git)
Build type: Release
Branch: (detached from 0e2cf2e)
Hash: 0e2cf2ebcaaa50723de608cf030af740cb6ad548
Python version: 2.7.13
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 7.0.0
TagsMacOSX

Relationships

Activities

Kunda1

2017-01-12 15:46

manager   ~0007674

@OutsourcedGuru Can you provide a backtrace? http://www.freecadweb.org/wiki/index.php?title=Debugging
I think on OSX you can use lldb

Kunda1

2017-01-17 20:25

manager   ~0007851

@OutsourcedGuru please respond

Kunda1

2017-01-25 12:51

manager   ~0007982

Posted to forum: https://forum.freecadweb.org/viewtopic.php?f=10&t=20215

Kunda1

2017-01-25 21:15

manager   ~0007986

@OutsourcedGuru Please respond to https://forum.freecadweb.org/viewtopic.php?f=10&t=20215&p=155927#p155927

OutsourcedGuru

2017-02-01 03:33

reporter   ~0008142

Sorry for the delay. There's your crash dump, per your instructions.

Kunda1

2017-02-01 23:19

manager  

CrashDump.txt (8,016 bytes)
macbook:/ justincase$ cd /Applications/FreeCAD.app/Contents/bin
macbook:bin justincase$ lldb FreeCAD
(lldb) target create "FreeCAD"
Current executable set to 'FreeCAD' (x86_64).
(lldb) run
Process 11527 launched: '/Applications/FreeCAD.app/Contents/bin/FreeCAD' (x86_64)
FreeCAD 0.17, Libs: 0.17R9835 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2016
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

Coin warning in cc_glglue_instance(): Error when setting up the GL context. This can happen if there is no current context, or if the context has been set up incorrectly.
Can't find Origin for "Body"
Can't find Origin for "Body"
Can't find Origin for "Body"
Can't find Origin for "Body"
Process 11527 stopped
* thread #1: tid = 0x4cade6, 0x0000000119ed57f1 libTKGeomBase.7.dylib`AdvApp2Var_ApproxF2var::mma2fnc_(int*, int*, int*, double*, AdvApp2Var_EvaluatorFunc2Var const&, double*, int*, int*, double*, int*, int*, int*, int*, int*, double*, int*, double*, int*, double*, double*, double*, double*, double*, double*, double*, int*) + 6579, queue = 'com.apple.main-thread', stop reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
    frame #0: 0x0000000119ed57f1 libTKGeomBase.7.dylib`AdvApp2Var_ApproxF2var::mma2fnc_(int*, int*, int*, double*, AdvApp2Var_EvaluatorFunc2Var const&, double*, int*, int*, double*, int*, int*, int*, int*, int*, double*, int*, double*, int*, double*, double*, double*, double*, double*, double*, double*, int*) + 6579
libTKGeomBase.7.dylib`AdvApp2Var_ApproxF2var::mma2fnc_:
->  0x119ed57f1 <+6579>: ud2    
    0x119ed57f3 <+6581>: jmp    0x119ed57cd               ; <+6543>
    0x119ed57f5 <+6583>: jmp    0x119ed57cd               ; <+6543>
    0x119ed57f7 <+6585>: ud2    


(lldb) bt
* thread #1: tid = 0x4cade6, 0x0000000119ed57f1 libTKGeomBase.7.dylib`AdvApp2Var_ApproxF2var::mma2fnc_(int*, int*, int*, double*, AdvApp2Var_EvaluatorFunc2Var const&, double*, int*, int*, double*, int*, int*, int*, int*, int*, double*, int*, double*, int*, double*, double*, double*, double*, double*, double*, double*, int*) + 6579, queue = 'com.apple.main-thread', stop reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
  * frame #0: 0x0000000119ed57f1 libTKGeomBase.7.dylib`AdvApp2Var_ApproxF2var::mma2fnc_(int*, int*, int*, double*, AdvApp2Var_EvaluatorFunc2Var const&, double*, int*, int*, double*, int*, int*, int*, int*, int*, double*, int*, double*, int*, double*, double*, double*, double*, double*, double*, double*, int*) + 6579
    frame #1: 0x0000000119edb538 libTKGeomBase.7.dylib`AdvApp2Var_Iso::MakeApprox(AdvApp2Var_Context const&, double, double, double, double, AdvApp2Var_EvaluatorFunc2Var const&, AdvApp2Var_Node&, AdvApp2Var_Node&) + 2528
    frame #2: 0x0000000119eca30f libTKGeomBase.7.dylib`AdvApp2Var_ApproxAFunc2Var::ComputeConstraints(AdvApprox_Cutting const&, AdvApprox_Cutting const&, AdvApp2Var_EvaluatorFunc2Var const&, AdvApp2Var_Criterion const&) + 569
    frame #3: 0x0000000119ec955f libTKGeomBase.7.dylib`AdvApp2Var_ApproxAFunc2Var::ComputePatches(AdvApprox_Cutting const&, AdvApprox_Cutting const&, AdvApp2Var_EvaluatorFunc2Var const&, AdvApp2Var_Criterion const&) + 447
    frame #4: 0x0000000119ec79ee libTKGeomBase.7.dylib`AdvApp2Var_ApproxAFunc2Var::AdvApp2Var_ApproxAFunc2Var(int, int, int, opencascade::handle<TColStd_HArray1OfReal> const&, opencascade::handle<TColStd_HArray1OfReal> const&, opencascade::handle<TColStd_HArray1OfReal> const&, opencascade::handle<TColStd_HArray2OfReal> const&, opencascade::handle<TColStd_HArray2OfReal> const&, opencascade::handle<TColStd_HArray2OfReal> const&, double, double, double, double, GeomAbs_IsoType, GeomAbs_Shape, GeomAbs_Shape, int, int, int, int, AdvApp2Var_EvaluatorFunc2Var const&, AdvApp2Var_Criterion const&, AdvApprox_Cutting&, AdvApprox_Cutting&) + 652
    frame #5: 0x0000000119ba9d59 libTKGeomAlgo.7.dylib`GeomPlate_MakeApprox::GeomPlate_MakeApprox(opencascade::handle<GeomPlate_Surface> const&, AdvApp2Var_Criterion const&, double, int, int, GeomAbs_Shape, double) + 921
    frame #6: 0x00000001193a452d libTKBool.7.dylib`BRepFill_Filling::Build() + 3873
    frame #7: 0x000000011ad3748d Part.so`Part::Module::makeFilledFace(Py::Tuple const&) + 1037
    frame #8: 0x000000011ad44a1a Part.so`Part::Module::invoke_method_varargs(void*, Py::Tuple const&) + 42
    frame #9: 0x0000000100d8fbaa libFreeCADBase.dylib`method_varargs_call_handler + 218
    frame #10: 0x0000000100f7e907 Python`PyEval_EvalFrameEx + 26252
    frame #11: 0x0000000100f78089 Python`PyEval_EvalCodeEx + 1583
    frame #12: 0x0000000100f77a54 Python`PyEval_EvalCode + 54
    frame #13: 0x0000000100f9b259 Python`run_mod + 53
    frame #14: 0x0000000100f9b416 Python`PyRun_StringFlags + 109
    frame #15: 0x0000000100db8295 libFreeCADBase.dylib`Base::InterpreterSingleton::runString(char const*) + 85
    frame #16: 0x000000010008d217 libFreeCADGui.dylib`Gui::Command::runCommand(Gui::Command::DoCmd_Type, QByteArray const&) + 87
    frame #17: 0x000000011b9a825c PartGui.so`PartGui::ShapeBuilderWidget::createFaceFromEdge() + 1148
    frame #18: 0x000000011b9a6ce9 PartGui.so`PartGui::ShapeBuilderWidget::on_createButton_clicked() + 105
    frame #19: 0x000000011b9a9839 PartGui.so`PartGui::ShapeBuilderWidget::qt_metacall(QMetaObject::Call, int, void**) + 73
    frame #20: 0x000000010488425d QtCore`QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 2101
    frame #21: 0x0000000103ffe8c6 QtGui`QAbstractButton::clicked(bool) + 64
    frame #22: 0x0000000103db16f4 QtGui`QAbstractButtonPrivate::emitClicked() + 52
    frame #23: 0x0000000103db15f5 QtGui`QAbstractButtonPrivate::click() + 207
    frame #24: 0x0000000103db1fa2 QtGui`QAbstractButton::mouseReleaseEvent(QMouseEvent*) + 88
    frame #25: 0x0000000103ae33eb QtGui`QWidget::event(QEvent*) + 683
    frame #26: 0x0000000103db1eaf QtGui`QAbstractButton::event(QEvent*) + 179
    frame #27: 0x0000000103aa0a7e QtGui`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 194
    frame #28: 0x0000000103aa2572 QtGui`QApplication::notify(QObject*, QEvent*) + 2460
    frame #29: 0x000000010006b07b libFreeCADGui.dylib`Gui::GUIApplication::notify(QObject*, QEvent*) + 75
    frame #30: 0x000000010486fa24 QtCore`QCoreApplication::notifyInternal(QObject*, QEvent*) + 118
    frame #31: 0x0000000103aa1330 QtGui`QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) + 448
    frame #32: 0x0000000103a58896 QtGui`qt_mac_handleMouseEvent(NSEvent*, QEvent::Type, Qt::MouseButton, QWidget*, bool) + 1227
    frame #33: 0x00007fff97ad9713 AppKit`-[NSWindow _handleMouseUpEvent:isDelayedEvent:] + 119
    frame #34: 0x00007fff97ada3ad AppKit`-[NSWindow _reallySendEvent:isDelayedEvent:] + 212
    frame #35: 0x00007fff97519539 AppKit`-[NSWindow sendEvent:] + 517
    frame #36: 0x0000000103a50e76 QtGui`-[QCocoaWindow sendEvent:] + 113
    frame #37: 0x00007fff97499a38 AppKit`-[NSApplication sendEvent:] + 2540
    frame #38: 0x0000000103a5530a QtGui`-[QNSApplication sendEvent:] + 97
    frame #39: 0x00007fff97300df2 AppKit`-[NSApplication run] + 796
    frame #40: 0x0000000103a5d5f4 QtGui`QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 1494
    frame #41: 0x000000010486d0f1 QtCore`QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 77
    frame #42: 0x000000010486d26c QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 366
    frame #43: 0x000000010486fe69 QtCore`QCoreApplication::exec() + 199
    frame #44: 0x00000001000248fb libFreeCADGui.dylib`Gui::Application::runApplication() + 7915
    frame #45: 0x0000000100009cc6 FreeCAD`main + 4070
    frame #46: 0x00007fff9b88c5ad libdyld.dylib`start + 1
(lldb) 
CrashDump.txt (8,016 bytes)

Kunda1

2017-02-01 23:21

manager   ~0008155

@OutsourcedGuru Thanks.
FYI please do not attach .rtf files to tickets. Instead use .txt or .log
I've uploaded a log file to replace the .rtf

Kunda1

2017-02-01 23:22

manager   ~0008156

@OutsourcedGuru
Also please respond to https://forum.freecadweb.org/viewtopic.php?f=10&t=20215&p=155927#p155927

Issue History

Date Modified Username Field Change
2017-01-12 03:04 OutsourcedGuru New Issue
2017-01-12 15:46 Kunda1 Note Added: 0007674
2017-01-17 20:25 Kunda1 Note Added: 0007851
2017-01-17 20:25 Kunda1 Status new => feedback
2017-01-17 20:25 Kunda1 Priority urgent => normal
2017-01-19 13:00 Kunda1 Tag Attached: MacOSX
2017-01-19 13:01 Kunda1 Steps to Reproduce Updated View Revisions
2017-01-25 12:51 Kunda1 Note Added: 0007982
2017-01-25 21:15 Kunda1 Note Added: 0007986
2017-02-01 03:31 OutsourcedGuru File Added: CrashDump.rtf
2017-02-01 03:33 OutsourcedGuru Note Added: 0008142
2017-02-01 03:33 OutsourcedGuru Status feedback => new
2017-02-01 23:19 Kunda1 File Added: CrashDump.txt
2017-02-01 23:19 Kunda1 File Deleted: CrashDump.rtf
2017-02-01 23:21 Kunda1 Note Added: 0008155
2017-02-01 23:22 Kunda1 Note Added: 0008156
2017-02-01 23:22 Kunda1 Status new => feedback