Bug 155762 - Writer Crashes when deleting a line if an image under a part of the line was selected prior
Summary: Writer Crashes when deleting a line if an image under a part of the line was ...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.7.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-10 08:01 UTC by matthewnote
Modified: 2023-06-11 16:45 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Writer file with one image and one line (3.81 MB, application/vnd.oasis.opendocument.text)
2023-06-10 08:01 UTC, matthewnote
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matthewnote 2023-06-10 08:01:36 UTC
Created attachment 187816 [details]
Writer file with one image and one line

Step 1.  Create new Writer document or use the attachment (one image, one line).
Step 2.  One image; either png or jpg is inserted.
Step 3.  One line; that passes partly over or entirely over the image.
Step 4.  Click on empty space of page (now nothing is selected).
Step 5.  Click on the image once (small green squares at corners indicate selected) but do nothing.  The cursor is now a cross of four small arrows.
Step 6.  Click somewhere on the line that is overlapping the image. The cursor is still in a cross of arrows when doing this. (Now the line is selected instead).  The cursor changes from four small arrows to normal single pointer.
Step 7.  On the keyboard tap DEL delete key.
Libreoffice crashes.

Restart Writer, reopen the file.
Step 8.  Click on the image once to select it.
Step 9.  Click on the line somewhere that is outside the area of the image, where the line is over white page area.  The cursor changes to normal simple arrow pointer when doing this. (the line is selected).
Step 10. On the keyboard tap DEL delete key.
The line is deleted and Libreoffice does not crash.

Step 11.  Undo delete.
Step 12.  Click on the image once to select it.
Step 13.  Click on white page free space.  Now nothing is selected.
Step 14.  Click anywhere on the line (in front of the image or in front of white space of the page doesn't matter).
Step 15.  On the keyboard tap DEL delete key.
The line is deleted and Libreoffice does not crash.

Libreoffice crashes using Writer if
    An image is selected immediately before selecting a line for deletion
    And that line overlays the image somewhere along it's length
    And the user selects that line by clicking on it's overlap part
    And keyboard delete is used (instead of mouse menu cut or other)

It's unknown if it's to do with the deletion process, the pointer symbol changes or the overlap circumstance.


Version: 7.3.7.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 12; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Ubuntu package version: 1:7.3.7-0ubuntu0.22.04.3
Calc: threaded
Comment 1 Julien Nabet 2023-06-10 11:30:53 UTC
Could you add https://launchpad.net/~libreoffice/+archive/ubuntu/ppa and give a try to LO 7.5.4 ?
Comment 2 matthewnote 2023-06-11 14:12:38 UTC
Done.  Bug cleared.   That was fast!

Tested:
Create new document, new images
Multiple layers, several images
Image arrange brought to front or sent to back
Line arrange brought to front or sent to back
Select on line overlaying image
Select on line beyond image intersection (on clear page)

No crash:
Works for me with ppa

Version: 7.5.4.2 (X86_64) / LibreOffice Community
Build ID: 50(Build:2)
CPU threads: 12; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Ubuntu package version: 4:7.5.4~rc2-0ubuntu0.22.04.1~lo1
Calc: threaded
Comment 3 Julien Nabet 2023-06-11 16:45:29 UTC
Thank you for the feedback, let's put this one to WFM then.