Bug 141722 - Calc, Writer, Impress, Draw: hangs when using copy paste (often copying is sufficient to trigger the hang)
Summary: Calc, Writer, Impress, Draw: hangs when using copy paste (often copying is su...
Status: RESOLVED DUPLICATE of bug 148435
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
7.2.0.0.alpha0+
Hardware: All macOS (All)
: high major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Crash
  Show dependency treegraph
 
Reported: 2021-04-17 11:07 UTC by steve
Modified: 2023-01-28 13:20 UTC (History)
7 users (show)

See Also:
Crash report or crash signature: https://bin.disroot.org/?0ff73cf50f766849#9pKgbGrG22wtfJLMGsy1azm9CyNN5QuaHCg6sGiiDcAi


Attachments
problematic document (deleted)
2021-04-17 11:25 UTC, steve
Details

Note You need to log in before you can comment on or make changes to this bug.
Description steve 2021-04-17 11:07:27 UTC
Description:
Working in calc in LO main build results in hang after a while.

Steps to Reproduce:
Sadly no clear reproduce steps. This rather happens after a while it seems. It happens fairly frequently (more often than not) while working in a calc document.

Actual Results:
Hang

Process Sample: https://bin.disroot.org/?032ddccc32dfaa94#31WKF9GPmf1DP4yknAVB8PzCFWdabNBLC3rFJJ7mAAeC
Spin Dump: https://bin.disroot.org/?8082d7514e7d310b#BNuHAz9EBKY6kQWjsWf8teERE4F9Wgdc6wS3n74ESRAY

Expected Results:
no Hang


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.2.0.0.alpha0+ / LibreOffice Community
Build ID: 2f509fce90a29b7c35910b670fb79a6e2b72ba7b
CPU threads: 8; OS: Mac OS X 10.16; UI render: default; VCL: osx
Locale: de-DE (de_DE.UTF-8); UI: en-US
Calc: threaded

happened in previous main builds as well for several days now.
Comment 1 steve 2021-04-17 11:24:42 UTC
Could this be related to copy pasting? Playing with sanatized version of document and also reproduce. Attaching test document.
Just copy and then paste like crazy a cell with checkmark all over the document.

Could as well be unrelated to copy paste and the file just needs to sit a certain time until the hang appears.

So this may take 3-5 minutes until the hang happens but it happens for me reliable.

I know, such repro steps are not fun, but this is a very strange bug and should not make it into stable ideally.
Comment 2 steve 2021-04-17 11:25:27 UTC
Created attachment 171252 [details]
problematic document
Comment 3 steve 2021-04-17 11:26:40 UTC
Even got a crash log this time around (did not happen for previous hangs where I had to force quit).
Comment 5 Xisco Faulí 2021-04-22 09:56:38 UTC
Hi Steve,
your build is a week old, is this still reproducible with a more recent master build ?
Comment 6 steve 2021-04-23 08:08:13 UTC
Instant crash with most recent main build:
https://bin.disroot.org/?52fce5879c6dc83a#DbENQF2cSvpHZFycYfsYV3cYzaaGQxzHQMzHTeHu7DY2

Just marking a field with the checkmark character was sufficient to trigger the crash twice. Third attempt trying to copy paste a random word worked as expected and then copy pasting the checkmark also worked. Next attempt directly copy pasting checknmark again works as expected.

Still at a loss what exactely triggers the crash :(


Could this be related to recent changes around copy pasting and a fix for that on windows platform?

Retested w Version: 7.2.0.0.alpha0+ 2021-04-22 / LibreOffice Community
Build ID: 41145efffe9d5af358a52b9e114bb01b98b3d7c2
CPU threads: 8; OS: Mac OS X 10.16 11.2.3; UI render: default; VCL: osx
Locale: de-DE (de_DE.UTF-8); UI: en-US
Calc: threaded
Comment 7 psidiumcode 2021-06-01 20:49:28 UTC
I could not reproduce it in latest stable ver.
 
Version: 7.0.6.2
Build ID: 144abb84a525d8e30c9dbbefa69cbbf2d8d4ae3b
CPU threads: 12; OS: Mac OS X 10.15.7; UI render: default; VCL: osx
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded


The bug appears in development ver. 

Version: 7.2.0.0.alpha1+ / LibreOffice Community
Build ID: 3b57ebb445df8a2bc3d916ea79f8af45e20e4e62
CPU threads: 12; OS: Mac OS X 10.15.7; UI render: default; VCL: osx
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded



Looking at the attached document. The text has checkmarks in it, which is not an ordinary character (not on the keyboard). 
I could not reproduce the bug using same steps mentioned (by copying and pasting). 
Although Calc did hang when inserting the checkmark symbol from the MacOS Character Viewer, in fact it hangs when inserting any symbol or emoji.

Steps to reproduce
1. Open new Calc document. 
2. Open Character viewer. (https://support.apple.com/en-gb/guide/mac-help/mchlp1560/mac)
3. Drag and drop any character or emoji. 
4. Insert at least 10 symbols or emoji (the number is not specific). 
Calc hangs and the Character viewer also get disabled for any other applications. Logging out and logging back in restores the Character viewer.
Comment 8 psidiumcode 2021-06-01 20:51:53 UTC Comment hidden (obsolete)
Comment 9 psidiumcode 2021-06-01 20:52:45 UTC Comment hidden (obsolete)
Comment 10 Xisco Faulí 2021-06-02 06:55:28 UTC
(In reply to psidiumcode from comment #8)
> bisect information:
> 
> 77c365df15e720860335fcaca3614a9198e28b87 is the first bad commit
> commit 77c365df15e720860335fcaca3614a9198e28b87
> Author: libreoffice <libreoffice@libreoffices-Mac-mini.local>
> Date:   Wed Mar 31 09:33:21 2021 +0200
> 
>     source d2d6e5c235f35bf3f2137e8dab4b9b32b72430a8
>     
>     source d2d6e5c235f35bf3f2137e8dab4b9b32b72430a8

Hi Psidiumcode,
The mentioned commit is about qtcreator, which doesn't seems related to calc at all
Comment 11 psidiumcode 2021-06-02 16:09:46 UTC
Hi Xisco Faulí, 

Indeed, I could reproduce this issue in Writer, Impress and Draw too.
Comment 12 Xisco Faulí 2021-06-04 16:21:45 UTC
(In reply to psidiumcode from comment #11)
> Hi Xisco Faulí, 
> 
> Indeed, I could reproduce this issue in Writer, Impress and Draw too.

Not reproducible in

Version: 7.1.0.0.beta1+
Build ID: d5e786d78d2f72a39f02746d6e0faa04da72c60a
CPU threads: 8; OS: Mac OS X 10.14.6; UI render: default; VCL: osx
Locale: en-US (en_ES.UTF-8); UI: en-US
Calc: threaded

in Mojave. I was able to insert many emojis in Writer.
@psidiumcode, a few questions:
1. Mac version?
2. LibreOffice version?
3. Do you reproduce it in safe mode ?
Comment 13 Noel Grandin 2021-06-04 16:25:52 UTC
When this hang occurs, does Activity Monitor show the LibreOffice process consuming any CPU?
Comment 14 steve 2021-06-05 12:04:55 UTC
Copy pasted one checkmark with latest master

Version: 7.2.0.0.alpha1+ / LibreOffice Community
Build ID: 3b57ebb445df8a2bc3d916ea79f8af45e20e4e62
CPU threads: 8; OS: Mac OS X 10.16; UI render: default; VCL: osx
Locale: de-DE (de_DE.UTF-8); UI: en-US
Calc: threaded

and instantly ran into the hang. No high CPU consumption happening. Interestingly not only LO is blocked but also Firefox which only again becomes usable once LO is shut down.
Comment 15 psidiumcode 2021-06-08 17:48:15 UTC
 
> in Mojave. I was able to insert many emojis in Writer.
> @psidiumcode, a few questions:
> 1. Mac version?
> 2. LibreOffice version?
> 3. Do you reproduce it in safe mode ?

Hi Xisco Faulí,

LO hangs both in normal and safe mode after dragging several symbols with this ver. 

macOS Catalina
Version: 7.2.0.0.alpha1+ / LibreOffice Community
Build ID: 3b57ebb445df8a2bc3d916ea79f8af45e20e4e62
CPU threads: 12; OS: Mac OS X 10.15.7; UI render: default; VCL: osx
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded
Comment 16 steve 2021-09-02 10:13:12 UTC
Persisting with Version: 7.2.0.4 / LibreOffice Community
Build ID: 9a9c6381e3f7a62afc1329bd359cc48accb6435b
CPU threads: 8; OS: Mac OS X 11.5.2; UI render: default; VCL: osx
Locale: de-DE (en_DE.UTF-8); UI: en-US
Calc: threaded

Not limited to specific document but happening with all documents in calc when copy pasting.

Often times sufficient to just copy a cell and LO hangs. macOS spit out a crash log which I am attaching:

crash log (1 year): https://bin.disroot.org/?0ff73cf50f766849#9pKgbGrG22wtfJLMGsy1azm9CyNN5QuaHCg6sGiiDcAi
Comment 17 steve 2021-09-02 10:15:27 UTC
Adjusting title as the hangs are not related to emoji or symbols. I ran into ~10 hangs yesterday working with a calc file with text.
Comment 18 Stéphane Guillou (stragu) 2021-10-20 00:12:46 UTC
Could you please test again with:

- LO 7.2.2: https://www.libreoffice.org/download/download/
- A recent master build: https://dev-builds.libreoffice.org/daily/master/current.html

And did anyone managed to get a crash report with a signature on https://crashreport.libreoffice.org ?

Cheers
Comment 19 steve 2021-10-20 08:34:31 UTC
Reproduced just yesterday with 
Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: 6cce3821ff14b41b704e279034680ce81d2b14ca
CPU threads: 8; OS: Mac OS X 10.16 aka 11.6; UI render: default; VCL: osx
Locale: de-DE (en_DE.UTF-8); UI: en-US
Calc: threaded

@stragu: From what I know there is no crash reporting mechanism in LO for macOS so this would have to be coming from win oder linux users.
Comment 20 Buovjaga 2021-10-24 12:11:00 UTC
(In reply to Xisco Faulí from comment #12)
> in Mojave. I was able to insert many emojis in Writer.
> @psidiumcode, a few questions:
> 1. Mac version?
> 2. LibreOffice version?
> 3. Do you reproduce it in safe mode ?

psidiumcode was not in Cc.
Comment 21 steve 2021-10-24 13:37:57 UTC
For what its worth I am now continuing my calc work in OpenOffice as a workaround until this problem is addressed in LO.
Comment 22 Buovjaga 2022-03-17 18:11:20 UTC
The content of attachment 171252 [details] has been deleted for the following reason:

not sanitised
Comment 23 steve 2022-03-17 19:18:25 UTC
bibisected, problematic commit:
https://git.libreoffice.org/core/+/d3b498cc4732f964919fecb265085cefcc422469%5E%21

Adding Luboš to cc:

Thanks buovjaga for assistance.
Comment 24 steve 2022-03-17 19:24:33 UTC
Unable to reproduce in 7.1.0.1
Don't think this is document related thus not re-attaching a file. One tester also reproduced in writer and presentation for which no document ever was provided.
Comment 25 steve 2022-04-03 12:38:00 UTC
Can we raise importance for this? It prevents work (random crashes) and results in data loss if the crash happens on unsaved state in the stable version of LibreOffice.
Comment 26 Alex Thurgood 2022-12-22 08:47:57 UTC
@steve: are you still experiencing this in 7.5beta or 7.6alpha ? It seems likely that the fix to 148435, or the fixes recently committed by Patrick Luby might have resolved this issue as well.
Comment 27 steve 2023-01-28 13:20:32 UTC
Alex, thanks for the ping.

These crashes no longer are happening in main build. This feels a lot as if the fix for https://bugs.documentfoundation.org/show_bug.cgi?id=148435 also resolved this issue here or that this issue here was a dupe which I am setting it to now.

*** This bug has been marked as a duplicate of bug 148435 ***