Summary: | Assertion failure on clicking to edit an RTL header (debug) | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | Hossein <hossein> |
Component: | Writer | Assignee: | Hossein <hossein> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aron.budea |
Priority: | medium | Keywords: | haveBacktrace |
Version: | 24.2.0.0 alpha0+ | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | target:24.2.0 | ||
Crash report or crash signature: | Regression By: | ||
Bug Depends on: | |||
Bug Blocks: | 43808, 105537 | ||
Attachments: |
ODT file containing a right to left header
Backtrace Minimal file that causes crash |
Description
Hossein
2023-08-01 06:38:36 UTC
Created attachment 188690 [details]
Backtrace
Backtrace, created using Visual Studio 2022:
swlo.dll!SwPageFrame::GetSubsidiaryLinesPolygons(const SwViewShell & rViewShell) Line 7082
at sw\source\core\layout\paintfrm.cxx(7082)
swlo.dll!SwPageFrame::AddSubsidiaryLinesBounds(const SwViewShell & rViewShell, std::vector<tools::Rectangle,std::allocator<tools::Rectangle>> & rRects) Line 7132
at sw\source\core\layout\paintfrm.cxx(7132)
swlo.dll!SwViewShell::InvalidatePageAndHFSubsidiaryLines() Line 140
at sw\source\core\view\viewsh.cxx(140)
swlo.dll!SwViewShell::ToggleHeaderFooterEdit() Line 130
at sw\source\core\view\viewsh.cxx(130)
swlo.dll!SwFEShell::ToggleHeaderFooterEdit() Line 1329
at sw\source\core\frmedt\fews.cxx(1329)
swlo.dll!SwEditWin::MouseButtonDown(const MouseEvent & _rMEvt) Line 3017
at sw\source\uibase\docvw\edtwin.cxx(3017)
vcllo.dll!ImplHandleMouseEvent(const VclPtr<vcl::Window> & xWindow, NotifyEventType nSVEvent, bool bMouseLeave, __int64 nX, __int64 nY, unsigned __int64 nMsgTime, unsigned short nCode, MouseEventModifiers nMode) Line 709
at vcl\source\window\winproc.cxx(709)
vcllo.dll!ImplHandleSalMouseButtonDown(vcl::Window * pWindow, const SalMouseEvent * pEvent) Line 2340
at vcl\source\window\winproc.cxx(2340)
vcllo.dll!ImplWindowFrameProc(vcl::Window * _pWindow, SalEvent nEvent, const void * pEvent) Line 2691
at vcl\source\window\winproc.cxx(2691)
vcllo.dll!SalFrame::CallCallback(SalEvent nEvent, const void * pEvent) Line 310
at vcl\inc\salframe.hxx(310)
vclplug_winlo.dll!ImplHandleMouseMsg(HWND__ * hWnd, unsigned int nMsg, unsigned __int64 wParam, __int64 lParam) Line 3292
at vcl\win\window\salframe.cxx(3292)
vclplug_winlo.dll!SalFrameWndProc(HWND__ * hWnd, unsigned int nMsg, unsigned __int64 wParam, __int64 lParam, bool & rDef) Line 5688
at vcl\win\window\salframe.cxx(5688)
vclplug_winlo.dll!SalFrameWndProcW(HWND__ * hWnd, unsigned int nMsg, unsigned __int64 wParam, __int64 lParam) Line 6043
at vcl\win\window\salframe.cxx(6043)
Created attachment 188739 [details]
Minimal file that causes crash
The structure of one of the headers (header4.xml) in the attachment is like this:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<w:hdr ...>
<w:p ...>
<w:pPr>
<w:pStyle w:val="Header"/>
<w:bidi w:val="0"/>
</w:pPr>
</w:p>
</w:hdr>
It contains an extra <w:bidi> tag compared to other headers.
Hossein committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/a99a63287f96290f5641a4216432f7b637402ea6 tdf#156560 Fix assertion failure editing RTL header It will be available in 24.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. |