https://bugs.documentfoundation.org/show_bug.cgi?id=173794
--- Comment #8 from Julien Nabet <[email protected]> --- After this patch: diff --git a/framework/source/uielement/generictoolbarcontroller.cxx b/framework/source/uielement/generictoolbarcontroller.cxx index d32807c2425a..61b31e2e114b 100644 --- a/framework/source/uielement/generictoolbarcontroller.cxx +++ b/framework/source/uielement/generictoolbarcontroller.cxx @@ -334,7 +334,8 @@ IMPL_STATIC_LINK( GenericToolbarController, ExecuteHdl_Impl, void*, p, void ) // Asynchronous execution as this can lead to our own destruction! // Framework can recycle our current frame and the layout manager disposes all user interface // elements if a component gets detached from its frame! - pExecuteInfo->xDispatch->dispatch( pExecuteInfo->aTargetURL, pExecuteInfo->aArgs ); + if (pExecuteInfo->xDispatch) + pExecuteInfo->xDispatch->dispatch( pExecuteInfo->aTargetURL, pExecuteInfo->aArgs ); } catch ( const Exception& ) I still reproduce this but this time with this bt: #0 rtl::Reference<ScPoolHelper>::operator-> (this=0xffa2a2a4eb7a7a8b) at include/rtl/ref.hxx:213 #1 0x00007f1d567948a9 in ScDocument::GetEditEnginePool (this=0xffa2a2a4eb7a7a7b) at /home/julien/lo/libreoffice/sc/source/core/data/documen2.cxx:513 #2 0x00007f1d5752e34f in ScTextWnd::InitEditEngine (this=0x5559e9ca8a60) at /home/julien/lo/libreoffice/sc/source/ui/app/inputwin.cxx:1549 #3 0x00007f1d5752e23a in ScTextWnd::GetEditView (this=0x5559e9ca8a60) at /home/julien/lo/libreoffice/sc/source/ui/app/inputwin.cxx:1352 #4 0x00007f1d5752dd8c in ScTextWnd::Paint (this=0x5559e9ca8a60, rRenderContext=..., rRect=...) at /home/julien/lo/libreoffice/sc/source/ui/app/inputwin.cxx:1308 #5 0x00007f1dd94267ed in weld::CustomWeld::DoPaint (this=0x5559e9cb6b60, aPayload={...}) at /home/julien/lo/libreoffice/vcl/source/app/customweld.cxx:60 Some gdb traces show there's something really wrong: (gdb) frame 1 #1 0x00007f1d567948a9 in ScDocument::GetEditEnginePool (this=0xffa2a2a4eb7a7a7b) at /home/julien/lo/libreoffice/sc/source/core/data/documen2.cxx:513 513 return mxPoolHelper->GetEditEnginePool(); (gdb) p mxPoolHelper ❌️ Cannot access memory at address 0xffa2a2a4eb7a7a8b (gdb) frame 2 #2 0x00007f1d5752e34f in ScTextWnd::InitEditEngine (this=0x5559e9ca8a60) at /home/julien/lo/libreoffice/sc/source/ui/app/inputwin.cxx:1549 1549 pNew = std::make_unique<ScFieldEditEngine>(&rDoc, rDoc.GetEditEnginePool()); (gdb) p rDoc $1 = (ScDocument &) <error reading variable: Cannot access memory at address 0xffa2a2a4eb7a7a7b> -- You are receiving this mail because: You are the assignee for the bug.
