Bug 149168 - Assertion failed: (pNode == pStartNode ? pMergedPara->pFirstNode->GetIndex() <= pNode->GetIndex() : pMergedPara->pFirstNode == pNode), function UpdateFramesForRemoveDeleteRedline, file DocumentRedlineManager.cxx, line 323.
Summary: Assertion failed: (pNode == pStartNode ? pMergedPara->pFirstNode->GetIndex() ...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.0.1 rc
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2022-05-19 06:57 UTC by Telesto
Modified: 2023-01-12 14:09 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (1.73 MB, application/vnd.oasis.opendocument.text)
2022-05-19 06:58 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2022-05-19 06:57:56 UTC
Description:
Freeze at undo (caused by Image anchor) + track changes enabled & hidden

Steps to Reproduce:
1. Open the attached file
2. Make sure show track changes being disabled
3. Select the highlighted text on page 1 & 2
4. Press yet again 2-4 times delete (it will skip the image, and jump to next page)
5. Press UNDO

Actual Results:
Freeze

Expected Results:
No freeze


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.4.0.0.alpha1+ (x64) / LibreOffice Community
Build ID: b2467d6c7af988f8ed4e090ebf9472be6c84fb06
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: nl-NL
Calc: CL
Comment 1 Telesto 2022-05-19 06:58:32 UTC
Created attachment 180211 [details]
Example file
Comment 2 Telesto 2022-05-19 07:02:31 UTC
Also in
Version: 7.1.8.0.0+ (x64) / LibreOffice Community
Build ID: a94b58277c7aeaa83ce14347cd0b8f7137969d03
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL

No freeze but number of additional empty pages
Version: 6.4.0.0.beta1+ (x64)
Build ID: e75dd1fc992f168f24d66595265a978071cdd277
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win; 
Locale: nl-NL (nl_NL); UI-Language: en-US
Calc: CL
Comment 3 Rangarajan 2022-05-27 02:24:43 UTC
Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 465c3ad95059f0efa13c8027f7383c4d20a5b2ff
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-IN (en_IN); UI: en-US
Calc: threaded


Actual Results:
No freeze


Expected Results:
No freeze

No reproduce
Comment 4 Telesto 2022-05-27 06:29:26 UTC
 frame #4: 0x000000016fc00f57 libswlo.dylib`sw::UpdateFramesForRemoveDeleteRedline(rDoc=0x0000000168244b40, rPam=0x000000016829db30) at DocumentRedlineManager.cxx:321:21
   318 	                if (auto const pMergedPara = pFrame->GetMergedPara())
   319 	                {
   320 	                    pLast = const_cast<SwTextNode*>(pMergedPara->pLastNode);
-> 321 	                    assert(pNode == pStartNode
   322 	                        ? pMergedPara->pFirstNode->GetIndex() <= pNode->GetIndex()
   323 	                        : pMergedPara->pFirstNode == pNode);
   324 	                    // clear old one first to avoid DelFrames confusing updates & asserts...
Comment 5 Buovjaga 2023-01-12 12:04:53 UTC
I get a freeze with oldest of linux-64-7.4, but not with latest -> WFM
Comment 6 Telesto 2023-01-12 13:02:46 UTC
(In reply to Buovjaga from comment #5)
> I get a freeze with oldest of linux-64-7.4, but not with latest -> WFM

Did you use debug version to check for the assert too? Or only for a freeze in non-debug build?
Comment 7 Buovjaga 2023-01-12 14:09:41 UTC
(In reply to Telesto from comment #6)
> (In reply to Buovjaga from comment #5)
> > I get a freeze with oldest of linux-64-7.4, but not with latest -> WFM
> 
> Did you use debug version to check for the assert too? Or only for a freeze
> in non-debug build?

Yes, first I checked with debug build, sorry.