FC crash when closing sketch
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: FC crash when closing sketch
I should have mentioned earlier; I never got a crash under any circumstances.
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.9841 (Git)
Build type: Release
Branch: master
Hash: fa4b5d29b52b576335897d8b3436f8a847191b2e
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.0.0
Gene
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.9841 (Git)
Build type: Release
Branch: master
Hash: fa4b5d29b52b576335897d8b3436f8a847191b2e
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.0.0
Gene
Re: FC crash when closing sketch
Does gdb give further hints about what kind of crash it is?
Re: FC crash when closing sketch
Linking issue #2741 to this thread since @wmayer thinks there is a connection (thread link).
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
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
Re: FC crash when closing sketch
Unfortunately not. The trace is endless and doesn't seem to change, it's the same loop of invocations over and over again.wmayer wrote:Does gdb give further hints about what kind of crash it is?
Re: FC crash when closing sketch
When running FreeCAD with --write-log it creates the file FreeCAD.log in $HOME/.FreeCAD. Can you have a look inside it if there are further relevant information?
And when closing the sketch panel programmatically does it still crash?
And when closing the sketch panel programmatically does it still crash?
Code: Select all
Gui.ActiveDocument.resetEdit()
Re: FC crash when closing sketch
Not sure what I'm looking for, attached.wmayer wrote:When running FreeCAD with --write-log it creates the file FreeCAD.log in $HOME/.FreeCAD. Can you have a look inside it if there are further relevant information?
No it doesn't crash - interesting. In case that makes a difference, in the attached log are both, programmatic close first and then pressing the Close button.And when closing the sketch panel programmatically does it still crash?Code: Select all
Gui.ActiveDocument.resetEdit()
- Attachments
-
- FreeCAD.log
- (15.43 KiB) Downloaded 69 times
Re: FC crash when closing sketch
Another attempt: when you are sketcher edit mode then first switch manually back to Part Design and then press Close. What happens?
Re: FC crash when closing sketch
I don't know what you are drinking - but I want some of that stuff. The moment I select the Part Design WB I get the segfault.wmayer wrote:Another attempt: when you are sketcher edit mode then first switch manually back to Part Design and then press Close. What happens?
I tried with other WBs and they seem fine. I checked the stack trace, it's identical to the one I posted above.
Re: FC crash when closing sketch
That's what I have not expected. I thought this maybe even avoids the crash since I guessed that directly performing the workbench switch in Command::assureWorkbench is causing problems and that it would be better to delay it by using a signal/slot connection.The moment I select the Part Design WB I get the segfault.
And does this also only happen when the Body feature is active?
OK, then let's have a closer look to see if we are on the right track. When you comment out the line
Code: Select all
Gui::Command::assureWorkbench(oldWb.c_str());
That would have been my next question. Now can you figure out what is the stack trace before it starts this infinite loop? You have to go down to the beginning.I checked the stack trace, it's identical to the one I posted above.
That's really weird. So it must be something PartDesign specific. I hope that the above stack trace information will shed some light on it.I tried with other WBs and they seem fine.
Re: FC crash when closing sketch
No, FC crashes regardless of the Body's activity state.wmayer wrote:That's what I have not expected. I thought this maybe even avoids the crash since I guessed that directly performing the workbench switch in Command::assureWorkbench is causing problems and that it would be better to delay it by using a signal/slot connection.The moment I select the Part Design WB I get the segfault.
And does this also only happen when the Body feature is active?
Yes it does, no more crashing on close regardless of Body's activity state.When you comment out the linein ViewProviderSketch::unsetEdit does it solve the crash when you then press the Close button?Code: Select all
Gui::Command::assureWorkbench(oldWb.c_str());
Oh boy, this is gonna take a while - curses on these machines and their ram sizes .... as it turns out you can specify a negative number for gdb's bt command, neat. Last 1000 frames attached.Now can you figure out what is the stack trace before it starts this infinite loop? You have to go down to the beginning.
- Attachments
-
- zero.bt-1000.txt
- (129.23 KiB) Downloaded 65 times