[Libreoffice-bugs] [Bug 141887] New: Crash on closing Writer via window decoration (X) with unmodified document and active IM

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Apr 25 09:03:49 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=141887

            Bug ID: 141887
           Summary: Crash on closing Writer via window decoration (X) with
                    unmodified document and active IM
           Product: LibreOffice
           Version: 7.2.0.0.alpha0+ Master
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: glogow at fbihome.de

Description:
Happens with kf5 and gtk3, but not gen. For whatever reason, gen doesn't
trigger the following codepath / bt:

#0  SwEditWin::Command (this=0x555559f5cd10, rCEvt=...)
    at sw/source/uibase/docvw/edtwin.cxx:5360
#1  ImplCallCommand (pChild=..., nEvt=nEvt at entry=<incomplete type>,
pData=pData at entry=0x7fffffff0400, bMouse=bMouse at entry=false,
pPos=pPos at entry=0x0)
#2  ImplHandleExtTextInput (nCursorFlags=<optimized out>, nCursorPos=<optimized
out>, pTextAttr=0x0, rText=..., pWindow=0x555556b992f0)
#3  ImplWindowFrameProc (_pWindow=0x555556b992f0, nEvent=<optimized out>,
pEvent=<optimized out>)
#4  SalFrame::CallCallback (pEvent=0x7fffffff07e0,
nEvent=SalEvent::ExtTextInput, this=<optimized out>) 
#5  GtkSalFrame::CallCallbackExc (this=<optimized out>,
nEvent=nEvent at entry=SalEvent::ExtTextInput, pEvent=pEvent at entry=0x7fffffff07e0)
#6  GtkSalFrame::IMHandler::sendEmptyCommit (this=this at entry=0x55555c77f3c0)
#7  GtkSalFrame::IMHandler::endExtTextInput (this=0x55555c77f3c0) 
#8  vcl::Window::dispose (this=this at entry=0x555559f5cd10)
    at vcl/source/window/window.cxx:403
#9  SwEditWin::dispose (this=0x555559f5cd10)

At this point m_rView.GetWrtShellPtr() is already gone, but SwEditWin::Command
relies on m_rView.GetWrtShell().

FWIW:
- Writer: with crash fix applied, just closes and no undo entry, so no crash on
Ctrl+Z while in pre-selection.
- Calc: closes IM and takes the current pre-selection => modified doc, so get
close modified dialog. Crash on undo.
- Impress: same as Calc.
- Draw: same as Impress, if you open a doc with a shape and start modifying its
text.
- Math: just closes. Creates undo object and crashes on Ctrl+Z while in
pre-selection.


Steps to Reproduce:
1. Start LO Writer
2. Activate some IM and type a character, to be in IM pre-selection
3. Close Writer via window decoration (X)

Actual Results:
crash

Expected Results:
no crash


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.2.0.0.alpha0+ / LibreOffice Community
Build ID: 30d7c5665ce71ce54dd3fab308bcd54d3290aeb0
CPU threads: 8; OS: Linux 4.19; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: en-US
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210425/818720bf/attachment.htm>


More information about the Libreoffice-bugs mailing list