https://bugs.documentfoundation.org/show_bug.cgi?id=152404
Julien Nabet <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #7 from Julien Nabet <[email protected]> --- I got only a crash with gtk3, I don't reproduce this with gen or kf5 rendering even if behavior is different between both. I'm on pc Debian x86-64 with master sources updated today + enable-dbgutil and use ibus-mozc with Japanese Hiragana. With this patch: diff --git a/vcl/source/window/mouse.cxx b/vcl/source/window/mouse.cxx index fe9e2b0f2444..db7fb835453e 100644 --- a/vcl/source/window/mouse.cxx +++ b/vcl/source/window/mouse.cxx @@ -292,7 +292,7 @@ void Window::ImplGrabFocus( GetFocusFlags nFlags ) // mark this windows as the last FocusWindow vcl::Window* pOverlapWindow = ImplGetFirstOverlapWindow(); - if (pOverlapWindow->mpWindowImpl) + if (pOverlapWindow && pOverlapWindow->mpWindowImpl) pOverlapWindow->mpWindowImpl->mpLastFocusWindow = this; mpWindowImpl->mpFrameData->mpFocusWin = this; I got: #0 0x00007fdc3d4d880b in vcl::Window::ImplGrabFocus(GetFocusFlags) (this=0x555e7d18b270, nFlags=GetFocusFlags::NONE) at vcl/source/window/mouse.cxx:297 #1 0x00007fdc3d5a6de7 in vcl::Window::GrabFocus() (this=0x555e7d18b270) at vcl/source/window/window.cxx:2985 #2 0x00007fdc17982a15 in SwPostItMgr::LayoutPostIts() (this=0x555e7cbc0e50) at sw/source/uibase/docvw/PostItMgr.cxx:796 297 mpWindowImpl->mpFrameData->mpFocusWin = this; (gdb) p mpWindowImpl $1 = std::unique_ptr<WindowImpl> = {get() = 0x0} Concerning EndExtTextInput, I added a trace just before: 288 // EndExtTextInput if it is not the same window 289 if (pSVData->mpWinData->mpExtTextInputWin 290 && (pSVData->mpWinData->mpExtTextInputWin.get() != this)) 291 pSVData->mpWinData->mpExtTextInputWin->EndExtTextInput(); and the line 291 is indeed called. Caolán: any idea here? perhaps the fix for gtk3 may help for Windows or at least provide some hints. -- You are receiving this mail because: You are the assignee for the bug.
