Bug 160334 - Crash: Undoing a paste in Writer that creates a Return character and then undoing twice with Command-Z
Summary: Crash: Undoing a paste in Writer that creates a Return character and then und...
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.1.2 release
Hardware: x86-64 (AMD64) macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-24 02:43 UTC by Peter
Modified: 2024-04-02 03:11 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter 2024-03-24 02:43:47 UTC
I selected a lower-case letter 'e' in a word while copy-editing a book in Writer. The Tracking feature was activated at the time. Then I pasted a 'é' with a grave French accent for spelling reasons in an otherwise English language book. 

The paste replaced the character as expected, but surprisingly introduced a Return character. When I clicked Command-z twice to both undo the Return and the accented 'e', LO crashed. 

It's not the first time doing a double undo has caused the application to crash, but it was the first time I was able to reconstruct what happened.
Comment 1 Stéphane Guillou (stragu) 2024-03-24 07:09:11 UTC
Not reproduced in:

Version: 24.2.1.2 (X86_64) / LibreOffice Community
Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

Copying and pasting the accented character in comment 0 did introduce a paragraph break (along with a bookmark coming from the default HTML paste) but 2 × Ctrl + Z did not crash.

No repro on Windows either:

Version: 24.2.1.2 (X86_64) / LibreOffice Community
Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac
CPU threads: 4; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

Are you able to share a minimal, sanitised document in which the crash happens? Or are you able to reproduce the issue from scratch in an empty document?
Comment 2 Peter 2024-03-24 17:41:04 UTC
Mac OS 14.4 ; Format opened and saved: .docx
Comment 3 QA Administrators 2024-03-25 03:13:36 UTC Comment hidden (obsolete)
Comment 4 wjsim 2024-03-25 14:54:25 UTC
Thank you for reporting the bug. I cannot reproduce the bug in:

Version: 24.2.1.2 (X86_64) / LibreOffice Community
Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac
CPU threads: 16; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

and

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6a064b1967e06e40be40817deff99d00c1a8554f
CPU threads: 16; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: ko-KR (en_US); UI: en-US
Calc: CL threaded
Comment 5 Peter 2024-03-26 19:51:39 UTC
It just happened to me again--paste, undo, undo, hang. Different document and some different circumstances but application version and OS are the same as for this bug report. I generated a detailed and lengthy Apple Problem Report from the resulting crash and I can provide it (in part or its entirety if you wish). 

Does Apple provide LibreOffice with a copy of the diagnostic report at some point? Should I detail the circumstances here, or create new bug report for the new instance?
Comment 6 Stéphane Guillou (stragu) 2024-03-27 06:10:16 UTC
(In reply to Peter from comment #5)
> It just happened to me again--paste, undo, undo, hang. Different document
> and some different circumstances but application version and OS are the same
> as for this bug report. I generated a detailed and lengthy Apple Problem
> Report from the resulting crash and I can provide it (in part or its
> entirety if you wish). 
> 
> Does Apple provide LibreOffice with a copy of the diagnostic report at some
> point? Should I detail the circumstances here, or create new bug report for
> the new instance?
Please share the report here as an attachment. Thank you!
Comment 7 Stéphane Guillou (stragu) 2024-04-02 03:11:09 UTC
Peter commented via email that he uses the app "Copy'Em" by AppryWhere.
Peter, if you are able to, please do try to reproduce the issue when AppryWhere is off.
Comment 8 Stéphane Guillou (stragu) 2024-04-02 03:11:40 UTC
(In reply to Stéphane Guillou (stragu) from comment #7)
> ...when AppryWhere is off.
I meant "when Copy'Em is off".