[solved] osx: Sketcher: reference dimension: reproducible crash

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

[solved] osx: Sketcher: reference dimension: reproducible crash

Post by looo »

Using:

Code: Select all

OS: macOS 13.1
Word size of FreeCAD: 64-bit
Version: 0.21.0.31633 (Git)
Build type: Release
Branch: master
Hash: e6eb20863974c24256a58e15e341821a94d2418c
Python 3.11.0, Qt 5.15.6, Coin 4.0.0, Vtk 9.2.2, OCC 7.6.3
Locale: German/Austria (de_AT)
Installed mods: 
  * Plot 2022.4.17
  * AirPlaneDesign 0.4.0
  * CurvedShapes 1.0.4
and

Code: Select all

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.21.0.31625 (Git)
Build type: Release
Branch: master
Hash: 72df7997700062b6a02f2f208e6291f64073fb88
Python 3.10.8, Qt 5.15.6, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: German/Austria (de_AT)
Installed mods: 
  * Plot 2022.4.17
  * AirPlaneDesign 0.4.0
  * CurvedShapes 1.0.4
no crash with these versions:

Code: Select all

OS: Ubuntu 22.04.1 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31625 (Git)
Build type: Release
Branch: master
Hash: 72df7997700062b6a02f2f208e6291f64073fb88
Python 3.10.8, Qt 5.15.6, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: German/Austria (de_AT)
Installed mods: 
  * Assembly4 0.12.5
  * Assembly3 0.11.3
and

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.0.31625 (Git)
Build type: Release
Branch: master
Hash: 72df7997700062b6a02f2f208e6291f64073fb88
Python 3.10.8, Qt 5.15.6, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: German/Austria (de_AT)
Installed mods: 
  * freecad.gears 1.0.0
  * Plot

I get a crash when using reference constraints.

To reproduce:
1. create a sketch (xy)
2. add a line
3. toggle driving/reference dimensioning
4. add a reference dimension for the created line --> crash


the crash report:

Code: Select all

Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread
0   libc++.1.0.dylib              	       0x1008f59c8 std::__1::moneypunct<char, false>::do_curr_symbol() const + 0
1   libc++.1.dylib                	       0x192e8652c std::__1::basic_ostream<char, std::__1::char_traits<char> >::operator<<(unsigned long) + 404
2   SketcherGui.so                	       0x29f19ed9c void boost::io::detail::put<char, std::__1::char_traits<char>, std::__1::allocator<char>, boost::io::detail::put_holder<char, std::__1::char_traits<char> > const&>(boost::io::detail::put_holder<char, std::__1::char_traits<char> > const&, boost::io::detail::format_item<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, boost::basic_format<char, std::__1::char_traits<char>, std::__1::allocator<char> >::string_type&, boost::basic_format<char, std::__1::char_traits<char>, std::__1::allocator<char> >::internal_streambuf_t&, std::__1::locale*) + 596
3   SketcherGui.so                	       0x29f19ea44 void boost::io::detail::distribute<char, std::__1::char_traits<char>, std::__1::allocator<char>, boost::io::detail::put_holder<char, std::__1::char_traits<char> > const&>(boost::basic_format<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, boost::io::detail::put_holder<char, std::__1::char_traits<char> > const&) + 148
4   SketcherGui.so                	       0x29f19e948 boost::basic_format<char, std::__1::char_traits<char>, std::__1::allocator<char> >& boost::io::detail::feed_impl<char, std::__1::char_traits<char>, std::__1::allocator<char>, boost::io::detail::put_holder<char, std::__1::char_traits<char> > const&>(boost::basic_format<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, boost::io::detail::put_holder<char, std::__1::char_traits<char> > const&) + 248
5   SketcherGui.so                	       0x29f1d68ac void Gui::cmdAppObjectArgs<unsigned long, char const (&) [6]>(App::DocumentObject const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long&&, char const (&) [6]) + 196
6   SketcherGui.so                	       0x29f1d9df4 CmdSketcherConstrainDistance::activated(int) + 3108
7   libFreeCADGui.dylib           	       0x101721184 Gui::Command::_invoke(int, bool) + 520
8   libFreeCADGui.dylib           	       0x101720f40 Gui::Command::invoke(int, Gui::Command::TriggerSource) + 356
9   libQt5Core.5.15.6.dylib       	       0x103931ff8 0x1037ec000 + 1335288
10  libQt5Core.5.15.6.dylib       	       0x10391559c QCoreApplication::notifyInternal2(QObject*, QEvent*) + 176
11  libQt5Core.5.15.6.dylib       	       0x10391559c QCoreApplication::notifyInternal2(QObject*, QEvent*) + 176
Last edited by looo on Sat Nov 18, 2023 3:21 pm, edited 2 times in total.
chrisb
Veteran
Posts: 54197
Joined: Tue Mar 17, 2015 9:14 am

Re: osx: Sketcher: reference dimension: reproducible crash

Post by chrisb »

looo wrote: Sat Jan 21, 2023 7:20 pm The crash does not occure with:
Something missing or do you mean the versions mentioned above?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: osx: Sketcher: reference dimension: reproducible crash

Post by looo »

chrisb wrote: Sat Jan 21, 2023 9:34 pm
looo wrote: Sat Jan 21, 2023 7:20 pm The crash does not occure with:
SOmething missing or do you mean the versions mentioned above?
you are right, this was wrong. corrected the post.
User avatar
jnxd
Posts: 951
Joined: Mon Mar 30, 2015 2:30 pm
Contact:

Re: osx: Sketcher: reference dimension: reproducible crash

Post by jnxd »

@looo is the stack trace using a debug version? That might give the line where things fail. This might be failing due to some nullptr dereferencing which is only manifested in the macos implementation. I don't have a mac so can't reproduce.
My latest (or last) project: B-spline Construction Project.
User avatar
FBXL5
Posts: 988
Joined: Sat Aug 03, 2019 8:45 pm

Re: osx: Sketcher: reference dimension: reproducible crash

Post by FBXL5 »

I cannot reproduce this chrash on this MacBook. Everything works like expected.

Code: Select all

OS: macOS 10.15
Word size of FreeCAD: 64-bit
Version: 0.21.0.31625 (Git)
Build type: Release
Branch: master
Hash: 72df7997700062b6a02f2f208e6291f64073fb88
Python 3.10.8, Qt 5.15.6, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: C/Default (C)
Installed mods: 
  * Reinforcement
  * fcgear 1.0.0
  * Render 2022.4.0
  * fcgear.backup1662890180.767765
  * fasteners 0.4.52
  * CurvedShapes 1.0.4
  * sheetmetal 0.2.60
  * Help 1.0.3
  * Curves 0.6.5
  * Assembly3 0.11.4
chrisb
Veteran
Posts: 54197
Joined: Tue Mar 17, 2015 9:14 am

Re: osx: Sketcher: reference dimension: reproducible crash

Post by chrisb »

I cannot reproduce the crash, but I have seen something similar when I wanted to show an angle between external references. I even had sometimes a crash. Those are too added as driven constraints.
In your case I see in report view the same message (as far as I can remember):

Code: Select all

Recompute failed! Please check report view.
23:25:28  <class 'SyntaxError'>: ('invalid syntax', ('<string>', 1, 59, "App.getDocument('Unnamed').getObject('Sketch').setDriving(,False)\n", 1, 60))
23:25:28  App.getDocument('Unnamed').getObject('Sketch').setDriving(,False)

Code: Select all

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.21.0.31625 (Git)
Build type: Release
Branch: master
Hash: 72df7997700062b6a02f2f208e6291f64073fb88
Python 3.10.8, Qt 5.15.6, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: C/Default (C)
Installed mods: 
  * FC_SU
  * DynamicData 2.46.0
  * freecad.gears 1.0.0
  * FeedsAndSpeeds 0.5.0
  * dxf-library
  * fcgear 1.0.0
  * fasteners 0.4.54
  * sheetmetal 0.2.60
  * ExplodedAssembly
  * Curves 0.6.5
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 54197
Joined: Tue Mar 17, 2015 9:14 am

Re: osx: Sketcher: reference dimension: reproducible crash

Post by chrisb »

When creating an angle for the two external references in Sketch001 I get a slightly different error message:

Code: Select all

<class 'SyntaxError'>: ('invalid syntax', ('<string>', 1, 62, "App.getDocument('Unnamed').getObject('Sketch001').setDriving(,False)\n", 1, 63))
23:31:54  App.getDocument('Unnamed').getObject('Sketch001').setDriving(,False)
To reproduce:
- Edit Sketch001 from the attached file
- select both external references
- add an angle constraint

(on second test FreeCAD crashed)
Attachments
extRef.FCStd
(5.9 KiB) Downloaded 63 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
abdullah
Veteran
Posts: 4935
Joined: Sun May 04, 2014 3:16 pm
Contact:

Re: osx: Sketcher: reference dimension: reproducible crash

Post by abdullah »

Most likely it is in this line:
https://github.com/FreeCAD/FreeCAD/blob ... .cpp#L2221

The output suggests something might be wrong with the geoid of the geometry.

I do not have a Mac. But setting a debug point in that line should allow to check which string is being provided to the function...
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: osx: Sketcher: reference dimension: reproducible crash

Post by looo »

thanks for the help.

I now compiled freecad in debug mode and get this crash report with lldb:

Code: Select all

* thread #1, name = 'CrBrowserMain', queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=2, address=0x1001dd9c8)
  * frame #0: 0x00000001001dd9c8 libc++.1.dylib`std::__1::moneypunct<char, false>::do_curr_symbol() const
    frame #1: 0x0000000192e8652c libc++.1.dylib`std::__1::basic_ostream<char, std::__1::char_traits<char> >::operator<<(unsigned long) + 404
    frame #2: 0x00000002a3fcc720 SketcherGui.so`void boost::io::detail::put<char, std::__1::char_traits<char>, std::__1::allocator<char>, boost::io::detail::put_holder<char, std::__1::char_traits<char> > const&>(boost::io::detail::put_holder<char, std::__1::char_traits<char> > const&, boost::io::detail::format_item<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, boost::basic_format<char, std::__1::char_traits<char>, std::__1::allocator<char> >::string_type&, boost::basic_format<char, std::__1::char_traits<char>, std::__1::allocator<char> >::internal_streambuf_t&, std::__1::locale*) [inlined] void boost::io::detail::put_last<char, std::__1::char_traits<char> >(os=<unavailable>, t=0x000000016fdf8ea0) at feed_args.hpp:149:9 [opt]
    frame #3: 0x00000002a3fcc710 SketcherGui.so`void boost::io::detail::put<char, std::__1::char_traits<char>, std::__1::allocator<char>, boost::io::detail::put_holder<char, std::__1::char_traits<char> > const&>(x=0x000000016fdf8ea0, specs=0x0000600003d1f2a0, res="", buf=0x000000016fdf8fa0, loc_p=0x0000000000000000) at feed_args.hpp:197:13 [opt]
    frame #4: 0x00000002a3fcc3d8 SketcherGui.so`void boost::io::detail::distribute<char, std::__1::char_traits<char>, std::__1::allocator<char>, boost::io::detail::put_holder<char, std::__1::char_traits<char> > const&>(self=0x000000016fdf8f40, x=0x000000016fdf8ea0) at feed_args.hpp:291:17 [opt]
    frame #5: 0x00000002a402a38c SketcherGui.so`std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Gui::FormatString::toStr<unsigned long, char const (&) [6]>(boost::basic_format<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, unsigned long&&, char const (&) [6]) [inlined] boost::basic_format<char, std::__1::char_traits<char>, std::__1::allocator<char> >& boost::io::detail::feed_impl<char, std::__1::char_traits<char>, std::__1::allocator<char>, boost::io::detail::put_holder<char, std::__1::char_traits<char> > const&>(self=0x000000016fdf8f40, x=0x000000016fdf8ea0) at feed_args.hpp:301:9 [opt]
    frame #6: 0x00000002a402a370 SketcherGui.so`std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Gui::FormatString::toStr<unsigned long, char const (&) [6]>(boost::basic_format<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, unsigned long&&, char const (&) [6]) [inlined] boost::basic_format<char, std::__1::char_traits<char>, std::__1::allocator<char> >& boost::io::detail::feed<char, std::__1::char_traits<char>, std::__1::allocator<char>, unsigned long const&>(self=0x000000016fdf8f40, x=<unavailable>) at feed_args.hpp:313:16 [opt]
    frame #7: 0x00000002a402a358 SketcherGui.so`std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Gui::FormatString::toStr<unsigned long, char const (&) [6]>(boost::basic_format<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, unsigned long&&, char const (&) [6]) [inlined] boost::basic_format<char, std::__1::char_traits<char>, std::__1::allocator<char> >& boost::basic_format<char, std::__1::char_traits<char>, std::__1::allocator<char> >::operator%<unsigned long>(this=0x000000016fdf8f40, x=<unavailable>) at format_class.hpp:64:22 [opt]
    frame #8: 0x00000002a402a358 SketcherGui.so`std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Gui::FormatString::toStr<unsigned long, char const (f=0x000000016fdf8f40, t=<unavailable>, args={j\xd34\xa4\x02\0\0\0}) [6]>(boost::basic_format<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, unsigned long&&, char const (&) [6]) at CommandT.h:69:24 [opt]
    frame #9: 0x00000002a4004a68 SketcherGui.so`void Gui::cmdAppObjectArgs<unsigned long, char const (&) [6]>(obj=0x000000017a29ce00, cmd="setDriving(%i,%s)", args=0x000000016fdf90a0, args={j\xd34\xa4\x02\0\0\0}) [6]) at CommandT.h:383:16 [opt]
    frame #10: 0x00000002a40090ac SketcherGui.so`CmdSketcherConstrainDistance::applyConstraint(this=0x0000600003375180, selSeq=<unavailable>, seqIndex=<unavailable>) at CommandConstraints.cpp:2383:17 [opt]
    frame #11: 0x00000002a40283a0 SketcherGui.so`DrawSketchHandlerGenConstraint::releaseButton(this=0x0000600003520a50, onSketchPos=<unavailable>) at CommandConstraints.cpp:766:30 [opt]
    frame #12: 0x00000002a40afb40 SketcherGui.so`SketcherGui::ViewProviderSketch::mouseButtonPressed(this=0x000000017a785600, Button=1, pressed=<unavailable>, cursorPos=0x0000600000de44f0, viewer=0x000000017a2b2600) at ViewProviderSketch.cpp:894:43 [opt]
    frame #13: 0x000000010198b39c libFreeCADGui.dylib`Gui::ViewProvider::eventCallback(ud=0x000000017a785600, node=0x0000600003b502a0) at ViewProvider.cpp:259:23 [opt]
    frame #14: 0x00000001046d1188 libCoin.80.dylib`SoEventCallback::handleEvent(SoHandleEventAction*) + 200
    frame #15: 0x00000001044e4b30 libCoin.80.dylib`SoAction::traverse(SoNode*) + 124
    frame #16: 0x000000010468d9f0 libCoin.80.dylib`SoChildList::traverse(SoAction*, int, int) + 148
    frame #17: 0x00000001046da2dc libCoin.80.dylib`SoGroup::doAction(SoAction*) + 116
    frame #18: 0x00000001046f4c60 libCoin.80.dylib`SoSeparator::handleEvent(SoHandleEventAction*) + 44
    frame #19: 0x00000001044e4b30 libCoin.80.dylib`SoAction::traverse(SoNode*) + 124
    frame #20: 0x000000010468d9f0 libCoin.80.dylib`SoChildList::traverse(SoAction*, int, int) + 148
    frame #21: 0x00000001046da2dc libCoin.80.dylib`SoGroup::doAction(SoAction*) + 116
    frame #22: 0x00000001046f4c60 libCoin.80.dylib`SoSeparator::handleEvent(SoHandleEventAction*) + 44
    frame #23: 0x00000001044e4b30 libCoin.80.dylib`SoAction::traverse(SoNode*) + 124
    frame #24: 0x00000001044ee2e0 libCoin.80.dylib`SoHandleEventAction::beginTraversal(SoNode*) + 168
    frame #25: 0x00000001044e485c libCoin.80.dylib`SoAction::apply(SoNode*) + 376
    frame #26: 0x00000001046a5678 libCoin.80.dylib`SoEventManager::actuallyProcessEvent(SoEvent const*) + 104
    frame #27: 0x0000000101929050 libFreeCADGui.dylib`SIM::Coin3D::Quarter::QuarterWidget::processSoEvent(this=<unavailable>, event=<unavailable>) at QuarterWidget.cpp:1016:36 [opt]
    frame #28: 0x000000010192fdf8 libFreeCADGui.dylib`SIM::Coin3D::Quarter::SoQTQuarterAdaptor::processSoEvent(this=0x000000017a2b2600, event=0x0000600000de44e0) at SoQTQuarterAdaptor.cpp:717:49 [opt]
    frame #29: 0x000000010195f568 libFreeCADGui.dylib`Gui::View3DInventorViewer::processSoEventBase(this=<unavailable>, ev=<unavailable>) at View3DInventorViewer.cpp:2263:23 [opt]
    frame #30: 0x000000010193b024 libFreeCADGui.dylib`Gui::NavigationStyle::processSoEvent(this=0x0000000296fa55e0, ev=0x0000600000de44e0) at NavigationStyle.cpp:1520:29 [opt]
    frame #31: 0x0000000101941654 libFreeCADGui.dylib`Gui::TouchpadNavigationStyle::processSoEvent(this=0x0000000296fa55e0, ev=0x0000600000de44e0) at TouchpadNavigationStyle.cpp:267:32 [opt]
    frame #32: 0x000000010193ad88 libFreeCADGui.dylib`Gui::NavigationStyle::processEvent(this=0x0000000296fa55e0, ev=0x0000600000de44e0) at NavigationStyle.cpp:1491:23 [opt]
    frame #33: 0x000000010195f528 libFreeCADGui.dylib`Gui::View3DInventorViewer::processSoEvent(this=0x000000017a2b2600, ev=0x0000600000de44e0) at View3DInventorViewer.cpp:0:31 [opt]
    frame #34: 0x0000000101920550 libFreeCADGui.dylib`SIM::Coin3D::Quarter::EventFilter::eventFilter(this=0x0000600000347dc0, obj=<unavailable>, qevent=0x000000016fdfa000) at EventFilter.cpp:167:50 [opt]
    frame #35: 0x0000000103a79854 libQt5Core.5.dylib`QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) + 188
    frame #36: 0x0000000100fd023c libQt5Widgets.5.dylib`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 204
    frame #37: 0x0000000100fd2028 libQt5Widgets.5.dylib`QApplication::notify(QObject*, QEvent*) + 4460
    frame #38: 0x0000000101640cec libFreeCADGui.dylib`Gui::GUIApplication::notify(this=0x000000016fdfc5d8, receiver=0x00006000058e9540, event=0x000000016fdfa470) at GuiApplication.cpp:85:34 [opt]
    frame #39: 0x0000000103a7959c libQt5Core.5.dylib`QCoreApplication::notifyInternal2(QObject*, QEvent*) + 176
    frame #40: 0x0000000100fd098c libQt5Widgets.5.dylib`QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) + 672
    frame #41: 0x0000000101008c84 libQt5Widgets.5.dylib`___lldb_unnamed_symbol13541 + 888
    frame #42: 0x00000001010082e8 libQt5Widgets.5.dylib`___lldb_unnamed_symbol13535 + 248
    frame #43: 0x0000000100fd0258 libQt5Widgets.5.dylib`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 232
    frame #44: 0x0000000100fd10bc libQt5Widgets.5.dylib`QApplication::notify(QObject*, QEvent*) + 512
    frame #45: 0x0000000101640cec libFreeCADGui.dylib`Gui::GUIApplication::notify(this=0x000000016fdfc5d8, receiver=0x0000600002658480, event=0x000000016fdfaaa0) at GuiApplication.cpp:85:34 [opt]
    frame #46: 0x0000000103a7959c libQt5Core.5.dylib`QCoreApplication::notifyInternal2(QObject*, QEvent*) + 176
    frame #47: 0x0000000103169344 libQt5Gui.5.dylib`QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) + 1236
    frame #48: 0x000000010315a6ec libQt5Gui.5.dylib`QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 108
    frame #49: 0x0000000106d79930 libqcocoa.dylib`___lldb_unnamed_symbol3698 + 44
    frame #50: 0x0000000193004a18 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
    frame #51: 0x00000001930049ac CoreFoundation`__CFRunLoopDoSource0 + 176
    frame #52: 0x000000019300471c CoreFoundation`__CFRunLoopDoSources0 + 244
    frame #53: 0x0000000193003320 CoreFoundation`__CFRunLoopRun + 836
    frame #54: 0x0000000193002888 CoreFoundation`CFRunLoopRunSpecific + 612
    frame #55: 0x000000019c6d7fa0 HIToolbox`RunCurrentEventLoopInMode + 292
    frame #56: 0x000000019c6d7c30 HIToolbox`ReceiveNextEventCommon + 236
    frame #57: 0x000000019c6d7b2c HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 72
    frame #58: 0x0000000196284424 AppKit`_DPSNextEvent + 632
    frame #59: 0x00000001962835b4 AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 728
    frame #60: 0x00000001962779e4 AppKit`-[NSApplication run] + 464
    frame #61: 0x0000000106d78bb4 libqcocoa.dylib`___lldb_unnamed_symbol3674 + 968
    frame #62: 0x0000000103a77428 libQt5Core.5.dylib`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 312
    frame #63: 0x0000000103a79a80 libQt5Core.5.dylib`QCoreApplication::exec() + 120
    frame #64: 0x000000010158e520 libFreeCADGui.dylib`Gui::Application::runApplication() at Application.cpp:2265:9 [opt]
    frame #65: 0x00000001000055a0 freecad`main(argc=<unavailable>, argv=<unavailable>) at MainGui.cpp:270:13 [opt]
    frame #66: 0x0000000192bfbe50 dyld`start + 2544
trying to set a breakpoint I get this:

Code: Select all

(lldb) breakpoint set --file CommandConstraints.cpp --line 2221
Breakpoint 1: no locations (pending).
WARNING:  Unable to resolve breakpoint to any actual locations.
So I am not sure this is a proper debug build.

the cmake summary reports that it is a debug build:

Code: Select all

==============
Summary report
==============

-- Build type:          Debug
...
User avatar
jnxd
Posts: 951
Joined: Mon Mar 30, 2015 2:30 pm
Contact:

Re: osx: Sketcher: reference dimension: reproducible crash

Post by jnxd »

looo wrote: Sun Jan 22, 2023 8:53 am
trying to set a breakpoint I get this:

Code: Select all

(lldb) breakpoint set --file CommandConstraints.cpp --line 2221
Breakpoint 1: no locations (pending).
WARNING:  Unable to resolve breakpoint to any actual locations.
So I am not sure this is a proper debug build.
Usually in gdb there's a "pending" breakpoint put up if the program isn't run. Recently my debug builds have stopped breaking at the points, though. A build with "RelWithDebugInfo", however, is working.
My latest (or last) project: B-spline Construction Project.
Post Reply