https://bugs.documentfoundation.org/show_bug.cgi?id=158107
--- Comment #2 from [email protected] --- Trying to just comment out the calls to null pointer does fix the immediate crash, but the next crash is at: (gdb) where #0 (anonymous namespace)::ResourceMenuController::updatePopupMenu() (this=0x7fffe21f6cd0) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/framework/source/uielement/resourcemenucontroller.cxx:228 #1 0x00007ffff6ff865a in framework::MenuBarManager::Activate(Menu*) (this=0x7fffdfa49980, pMenu=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/framework/source/uielement/menubarmanager.cxx:705 #2 framework::MenuBarManager::LinkStubActivate(void*, Menu*) (instance=0x7fffdfa49980, data=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/framework/source/uielement/menubarmanager.cxx:552 #3 0x00007ffff460ec4a in Link<Menu*, bool>::Call(Menu*) const (this=0x7fffe22405e0, data=0x7fffe22405b0) at include/tools/link.hxx:111 #4 Menu::Activate() (this=0x7fffe22405b0) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/window/menu.cxx:266 #5 0x00007ffff4617328 in Menu::HandleMenuActivateEvent(Menu*) const (this=0x7fffe223f790, pMenu=0x7fffe22405b0) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/window/menu.cxx:2546 #6 0x00007ffff0de51c4 in GtkSalMenu::ActivateAllSubmenus(Menu*) (this=0x7fffe21dbcc0, pMenuBar=0x7fffe223f790) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/unx/gtk3/gtksalmenu.cxx:1449 #7 0x00007ffff0de51fd in GtkSalMenu::ActivateAllSubmenus(Menu*) (this=0x7fffe223bfc0, pMenuBar=0x7fffe223f790) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/unx/gtk3/gtksalmenu.cxx:1455 #8 0x00007ffff0de51fd in GtkSalMenu::ActivateAllSubmenus(Menu*) (this=0x7fffe223bcb0, pMenuBar=0x7fffe223f790) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/unx/gtk3/gtksalmenu.cxx:1455 #9 0x00007ffff0de34d8 in GtkSalMenu::UpdateFull() (this=0x7fffe223bcb0) at vcl/inc/unx/gtk/gtksalmenu.hxx:119 #10 GtkSalMenu::SetFrame(SalFrame const*) (this=0x7fffe223bcb0, pFrame=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/unx/gtk3/gtksalmenu.cxx:1162 #11 0x00007ffff461bcc1 in MenuBarWindow::SetMenu(MenuBar*) (this=0x7fffe223e790, pMen=0x7fffe223f790) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/window/menubarwindow.cxx:191 #12 0x00007ffff4617032 in MenuBar::ImplCreate(vcl::Window*, vcl::Window*, MenuBar*) (pParent=0x7fffe8b76710, pWindow=0x7fffe223e790, pMenu=0x7fffe223f790) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/window/menu.cxx:2454 #13 0x00007ffff4654a3f in SystemWindow::SetMenuBar(MenuBar*) (this=0x7fffe300f3c0, pMenuBar=0x7fffe223f790) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/window/syswin.cxx:874 #14 0x00007ffff6f315c6 in framework::LayoutManager::implts_createMenuBar(rtl::OUString const&) (this=0x7fffedbf1ba0, rMenuBarName=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/framework/source/layoutmanager/layoutmanager.cxx:191 #15 0x00007ffff6f391a3 in framework::LayoutManager::createElement(rtl::OUString const&) (this=0x7fffedbf1ba0, aName=...) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/framework/source/layoutmanager/layoutmanager.cxx:1444 #16 0x00007ffff677bea5 in SfxDispatcher::SetMenu_Impl() (this=0x7fffe4ad9930) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/sfx2/source/control/dispatch.cxx:1028 #17 SfxDispatcher::Update_Impl(bool) (this=0x7fffe4ad9930, bForce=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/sfx2/source/control/dispatch.cxx:1093 #18 0x00007ffff66ea2fa in SfxApplication::SetViewFrame_Impl(SfxViewFrame*) (this=<optimized out>, pFrame=0x7fffeda44cd0) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/sfx2/source/appl/app.cxx:280 #19 0x00007ffff69ef97e in SfxViewFrame::SetViewFrame(SfxViewFrame*) (pFrame=0x7fffeda44cd0) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/sfx2/source/view/viewfrm.cxx:3576 #20 SfxViewFrame::MakeActive_Impl(bool) (this=0x7fffeda44cd0, bGrabFocus=true) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/sfx2/source/view/viewfrm.cxx:2181 #21 0x00007ffff4628ba6 in vcl::Window::ImplGrabFocus(GetFocusFlags) (this=0x7fffe8b87820, nFlags=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/window/mouse.cxx:384 #22 0x00007ffff50dfffb in VCLXWindow::setFocus() (this=0x7fffeb93e790) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/toolkit/source/awt/vclxwindow.cxx:1023 #23 0x00007ffff6f852bd in (anonymous namespace)::XFrameImpl::focusGained(com::sun::star::awt::FocusEvent const&) (this=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/framework/source/services/frame.cxx:2460 #24 0x00007ffff5243068 in FocusListenerMultiplexer::focusGained(com::sun::star::awt::FocusEvent const&) (this=<optimized out>, evt=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/toolkit/source/helper/listenermultiplexer.cxx:58 #25 0x00007ffff50dc77c in VCLXWindow::ProcessWindowEvent(VclWindowEvent const&) (this=0x7fffeda3c6d0, rVclWindowEvent=...) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/toolkit/source/awt/vclxwindow.cxx:591 #26 0x00007ffff45f3aee in Link<VclWindowEvent&, void>::Call(VclWindowEvent&) const (this=<optimized out>, data=<optimized out>) at include/tools/link.hxx:111 #27 vcl::Window::CallEventListeners(VclEventId, void*) (this=<optimized out>, nEvent=<optimized out>, pData=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/window/event.cxx:262 #28 0x00007ffff45f3910 in vcl::Window::PreNotify(NotifyEvent&) (this=0x7fffe300f3c0, rNEvt=...) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/window/event.cxx:77 #29 0x00007ffff4628b8c in vcl::Window::ImplGrabFocus(GetFocusFlags) (this=0x7fffe300f3c0, nFlags=<optimized out>) --Type <RET> for more, q to quit, c to continue without paging-- at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/window/mouse.cxx:383 #30 0x00007ffff4694211 in Link<void*, void>::Call(void*) const (this=0x7fffee47dcb8, data=0x0) at include/tools/link.hxx:111 #31 ImplHandleUserEvent(ImplSVEvent*) (pSVEvent=0x7fffee47dcb0) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/window/winproc.cxx:2287 #32 0x00007ffff4691e84 in ImplWindowFrameProc(vcl::Window*, SalEvent, void const*) (_pWindow=0x7fffedd71310, nEvent=SalEvent::UserEvent, pEvent=0x7fffee47dcb0) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/window/winproc.cxx:2857 #33 0x00007ffff49ddc5e in SalUserEventList::DispatchUserEvents(bool)::$_0::operator()() const (this=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/app/salusereventlist.cxx:119 #34 SalUserEventList::DispatchUserEvents(bool) (this=0x7fffef021fb0, bHandleAllCurrentEvents=false) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/app/salusereventlist.cxx:120 #35 0x00007ffff0d64cea in call_userEventFn(void*) (data=0x7ffff302c480) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/unx/gtk3/gtkdata.cxx:824 #36 0x00007ffff32ae17a in () at /usr/lib/libglib-2.0.so.0 #37 0x00007ffff330f4c7 in () at /usr/lib/libglib-2.0.so.0 #38 0x00007ffff32ac47e in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0 #39 0x00007ffff0d63ee2 in GtkSalData::Yield(bool, bool) (this=0x7ffff302c480, bWait=true, bHandleAllCurrentEvents=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/unx/gtk3/gtkdata.cxx:405 #40 0x00007ffff4a356e6 in ImplYield(bool, bool) (i_bWait=true, i_bAllEvents=false) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/app/svapp.cxx:369 #41 Application::Yield() () at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/app/svapp.cxx:453 #42 0x00007ffff4a354e2 in Application::Execute() () at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/app/svapp.cxx:347 #43 0x00007ffff7e1f84a in desktop::Desktop::Main() (this=0x7fffffffe6e0) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/desktop/source/app/app.cxx:1592 #44 0x00007ffff4a403a9 in ImplSVMain() () at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/vcl/source/app/svmain.cxx:204 #45 0x00007ffff7e4d0b1 in soffice_main() () at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/desktop/source/app/sofficemain.cxx:94 #46 0x000055555555518d in sal_main () at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/desktop/source/app/main.c:51 #47 main (argc=<optimized out>, argv=<optimized out>) at /home/tteras/aports/community/libreoffice/src/libreoffice-7.6.2.1/desktop/source/app/main.c:49 Probably the callers need to be updated to not pass objects of wrong type in the first place. -- You are receiving this mail because: You are the assignee for the bug.
