Created attachment 115580 [details]
bt with debug symbols
On pc Debian x86-64 with master sources (enable-dbgutil) updated today, I got a "crash like" when doing:
1) open brand new file in Calc
2) click function wizard icon => dialog appears
3) click "cancel" button
It's not a real crash/segfault but I've got:
warn:legacy.osl:3927:1:vcl/source/window/window.cxx:271: Window ( 7VclVBox ()) with live children destroyed: N7formula7ParaWinE ()
Window ( 7VclVBox ()) with live children destroyed: N7formula7ParaWinE ()
Michael: I took a look into vcl/README.lifecycle and thought http://opengrok.libreoffice.org/xref/core/formula/source/ui/dlg/formula.cxx#355 was ok for the disposeAndClear calls order.
Then I noticed that the abort was before the call to FormulaDlg_Impl::~FormulaDlg_Impl()
Michael: I put tdf#90935 in See Also since I had the same logs on console.
Finally, here's a patch which prevents from the crash but I don't know if it's the good way or if it's just a wrong copycat from me of what you did on tdf#90935:
Julien Nabet committed a patch related to this issue.
It has been pushed to "master":
tdf#91273: Crash when closing formula wizard (cancel or ok)
It will be available in 5.0.0.
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
Julien - looks awesome ! =) thanks so much for chasing this down !