Bug 146283 - Deletion of particular contents range of particular document refuses to work with recording track changes on
Summary: Deletion of particular contents range of particular document refuses to work ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.0.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: notBibisectable, regression
Depends on:
Blocks: Track-Changes
  Show dependency treegraph
 
Reported: 2021-12-17 18:27 UTC by Telesto
Modified: 2024-08-09 10:21 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (620.38 KB, application/vnd.oasis.opendocument.text)
2021-12-17 18:27 UTC, Telesto
Details
Example file (7.79 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2021-12-20 13:05 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2021-12-17 18:27:07 UTC
Description:
CTRL+A CTRL+X refuses to work with recording track changes on 

Steps to Reproduce:
1. Open the attached file
2. CTRL+A
3. CTRL+X -> Scroll to bottom without a change
4. Edit -> Track Changes -> Record (disable)
5. CTRL+A
6. CTRL+X -> working

Actual Results:
Refusal

Expected Results:
Should work?


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: deea3b7471c3dab0220eca6146c225a2d47681a2
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
Comment 1 Telesto 2021-12-17 18:27:26 UTC
Created attachment 176978 [details]
Example file
Comment 2 Telesto 2021-12-17 18:32:40 UTC
Also in
7.0
 
and in 
Versie: 4.4.7.2 
Build ID: f3153a8b245191196a4b6b9abd1d0da16eead600
Locale: nl_NL

and in
Versie: 4.2.0.4 
Build ID: 05dceb5d363845f2cf968344d7adab8dcfb2ba71

crash with
Versie: 4.1.0.4 
Build ID: 89ea49ddacd9aa532507cbf852f2bb22b1ace28

and 4.0

fine with
LibreOffice 3.5.0rc3 
Build ID: 7e68ba2-a744ebf-1f241b7-c506db1-7d53735
Comment 3 Rainer Bielefeld Retired 2021-12-18 07:15:38 UTC
Also crashes with Server Installation of Version:  4.0.0.3 WIN10
Build-ID  7545bee9c2a0782548772a21bc84a9dcc583b89;  Special devUserProfile

REPRODUCIBLE with  Installation of Version 7.2.4.1 (x64) / LibreOffice 
Build  27d75539669ac387bb498e35313b970b7fe9c4f9
CPU threads: 12; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win; Locale: de-DE (de_DE); UI: de-DE; Calc: threaded;  Elementary Theme; My normal User Profile

a) I did some more research concerning reasons and details, selected a range form 
Top of a page tobottom of page:
26-52	B
38-52	nb
32-52	nb
29-52	nb
28-52	B

28-40	nb
28-46	nb
28-49	nb
28-51	nb

nb means: no bug reproducible
B means:  Bug REPRODUCIBLE, <ctrl+x> will not delete page contents 

28-51,5	 nb
28-59,99 nb
It is necessary to include very last line of page contents to see "no deletion"

Finally I saw that it is necessary to include area from caret position behind Heading "Anglesey (AGY) Parishes" (page 28) to very last line to reproduce the problem.

b) For a test area where the bug is reproducible 
b1) The part "copy to clipboard" for <ctrl+x> works fine: you can
    paste highlighted contents to a different document
b2) but there is no deletion and so no visible change 
b3) Also  <ctrl+a> and then <del> will show the bug
b4 So it seems that the core of the bug is"Deletion of selected range with 
   pages 28 ... END of document does not work with enabled change tracking
c) Problem seems not related to active page header ad page footer.
   Bug is also reproducible with reporter's sample document with disabled 
   page footer and disabled page header
  
d) seems not to be a general problem, but related to some very particular
   properties of the sample document. I copied complete
   <https://en.wikipedia.org/wiki/United_States>
   to a blank new document: not reproducible
   
e) I don't know what exactly causes the problem.
Comment 4 Telesto 2021-12-20 13:05:08 UTC Comment hidden (obsolete)
Comment 5 Telesto 2021-12-20 13:15:06 UTC Comment hidden (obsolete)
Comment 6 Buovjaga 2024-08-09 10:21:33 UTC
The crash started happening in the range https://git.libreoffice.org/core/+log/27d3fc221d042decbd84b72719107547562d2e12..82c25249e624cb54ca6d3293d1c3d0d8ebc208e0

Commit ddd84d08c9bb6e00fbd9a73bd52a28688a8c1ba7
Convert SV_DECL_PTRARR_SORT_DEL(_SwRedlineTbl) to o3tl::sorted_vector

is about redlining, so change tracking, but I guess it's not very relevant for the current non-crashing situation.