Bug 145562 - crash very shortly after program start or when selecting text when using Copy 'Em macOS app
Summary: crash very shortly after program start or when selecting text when using Copy...
Status: RESOLVED DUPLICATE of bug 148435
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.2.2.2 release
Hardware: All macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-05 18:58 UTC by Thomas Studer
Modified: 2023-01-16 13:21 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Crash report LibreOffice 7.4 (1.47 MB, text/plain)
2022-10-24 10:00 UTC, Thomas Studer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Studer 2021-11-05 18:58:54 UTC
Description:
within 2to10 seconds after programm is started it crashes often.
Often when selecting text the programm crashes. This was much less in earlier versions.

Steps to Reproduce:
1.start the program
2.move the cursor -> some times this is enough
3.select some text -> some times this is enogh to crash
4.copy and select some other text

Actual Results:
crash

Expected Results:
continue to work


Reproducible: Sometimes


User Profile Reset: Yes



Additional Info:
Version: 7.2.2.2 / LibreOffice Community
Build ID: 02b2acce88a210515b4a5bb2e46cbfb63fe97d56
CPU threads: 8; OS: Mac OS X 10.14.6; UI render: default; VCL: osx
Locale: de-CH (de_CH.UTF-8); UI: de-DE
Calc: threaded
Comment 1 Dieter 2021-11-20 08:40:22 UTC
Does it happen in every component or only in wriiter?
Comment 2 Thomas Studer 2021-11-20 18:50:24 UTC
In the meantime I found out, it happens with the clipboard copying program "copy em".
The developer wrote what is below and made a suggestion for a workaraound.
Maybe it is interesting for you to improve LibreOffice in that respect.

Thanks for your work and for to continously improve libreoffice, which I appreciate very much.

Hi Thomas,
Thank you for reporting the issue. 
I don't know if this is due to an indirect interaction between Copy 'Em and LibreOffice. Whenever you copy an item in LibreOffice, Copy 'Em tries to read it from the clipboard and save it. This may trigger LibreOffice to provide the copied data in full to Copy 'Em. But if LibreOffice has a bug in its data-providing code, then it would crash. (Note that Copy 'Em does not talk to LibreOffice directly; it only reads new data from the clipboard, using the same code regardless of which app the data comes from. But the reading may trigger LibreOffice to provide the copied data in full.)
.
.
....
Regards,

Hoi Chang

​Developer of Copy 'Em
https://twitter.com/CopyEmApp
https://www.facebook.com/CopyEmPaste
Comment 3 Mike Little 2022-10-18 10:39:27 UTC
Version: 7.2.2.2 / LibreOffice Community
Build ID: 02b2acce88a210515b4a5bb2e46cbfb63fe97d56
CPU threads: 4; OS: Mac OS X 10.16; UI render: default; VCL: osx
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Hardware Overview:

  Model Name:	Mac mini
  Model Identifier:	Macmini8,1
  Processor Name:	Quad-Core Intel Core i3
  Processor Speed:	3.6 GHz
  Number of Processors:	1
  Total Number of Cores:	4
  L2 Cache (per Core):	256 KB
  L3 Cache:	6 MB
  Memory:	8 GB
  System Firmware Version:	1731.140.2.0.0 (iBridge: 19.16.16066.0.0,0)
  OS Loader Version:	540.120.3~19
  Serial Number (system):	C07DC0V5PJH7
  Hardware UUID:	CBC43DE6-B8C2-58F5-83D4-6CB60096203C
  Provisioning UDID:	CBC43DE6-B8C2-58F5-83D4-6CB60096203C
  Activation Lock Status:	Enabled



System Software Overview:

  System Version:	macOS 12.5.1 (21G83)
  Kernel Version:	Darwin 21.6.0
  Boot Volume:	Macintosh HD
  Boot Mode:	Normal
  Computer Name:	mlittle-macmini-20200921’s Mac mini
  Username:	mlittle-macmini-20200921 (mlittle-macmini-20200921)
  Secure Virtual Memory:	Enabled
  System Integrity Protection:	Enabled
  Time since boot:	1 day 2:52


I have had three crashes
1.	Started LibreOffice [used the ./soffice.sh] to start;
2.	Started Writer.
3.	LibreOffice crashed, not responding. 
[was not able to get the crash report, they are not showing in the Mac Applications Console].


Repeating for Calc:
1.	Started LibreOffice [used the ./soffice.sh] to start;
2.	Stated Calc
3.	Typed number down column A
4.	Copied column A acrss to the other columns
5.	Went to close the window, and Calc crashed, not responding

I will check for Impress Presentation, an Draw...
Comment 4 Buovjaga 2022-10-19 07:10:35 UTC
Mike: does it crash for you with 7.4 or 7.5?
Comment 5 Mike Little 2022-10-20 06:46:09 UTC
(In reply to Buovjaga from comment #4)
> Mike: does it crash for you with 7.4 or 7.5?

Thanks ilmari, will do... waitout... but I think I understand why MacOS is not producing crash reports in Console:
1. What is happening is a process, or resource is either locked or there is a conflict that does not prevent the LO application to stop operating, but it will not respond to UI operations. 
2. I am investigating what more detailsed diagnostic tools there are to capture what happens to cause the application to freeze and not respond... 
3. I will document my finding with the current version I have [7.2.2.2 rel], and then repeat with the releases from the 7.4, 7.5 versions... waitout... 

Mike L
Comment 6 Mike Little 2022-10-20 07:43:29 UTC
OK it looks I can use the MacOs terminal command "sysdiagnose" after obtaining super user access with sudo su... execute the command, and then filter the dump for the keyword "LibreOffice"...
Comment 7 Stéphane Guillou (stragu) 2022-10-22 22:03:25 UTC
Thomas : does this happen with Writer only or other components too?

Mike : what suggests the crashes in Writer and Calc come from the same issue?

Thomas and Mike : please both check if the latest 7.3 and 7.4 versions still crash on you, ideally also a recent master build from https://dev-builds.libreoffice.org/daily/master/current.html

Setting the bug status to "need info" until we have more information.
Comment 8 Mike Little 2022-10-24 01:06:50 UTC
(In reply to stragu from comment #7)
> Thomas : does this happen with Writer only or other components too?
> 
> Mike : what suggests the crashes in Writer and Calc come from the same issue?
> 
> Thomas and Mike : please both check if the latest 7.3 and 7.4 versions still
> crash on you, ideally also a recent master build from
> https://dev-builds.libreoffice.org/daily/master/current.html
> 
> Setting the bug status to "need info" until we have more information.


WILCO... I have taken the following action:

ACT01. Check the latest 7.3 to see if it crashes, from a recent Master build from https://dev-builds.libreoffice.org/daily/master/current.html;

ACT02: Check the latest 7.4 to see if it crashes, from a recent Master build from https://dev-builds.libreoffice.org/daily/master/current.html;

ACT03: Check the latest 7.5 to see if it crashes, from a recent Master build from https://dev-builds.libreoffice.org/daily/master/current.html and report to Buovjaga

WAITOUT... MikeLittle
Comment 9 Mike Little 2022-10-24 06:06:59 UTC
(In reply to Buovjaga from comment #4)
> Mike: does it crash for you with 7.4 or 7.5?

Just checked Version: 7.3.8.0.0, I will check for Version 7.4, and 7.5... waitout... Mike Little
Comment 10 Mike Little 2022-10-24 06:10:42 UTC
(In reply to stragu from comment #7)
> Thomas : does this happen with Writer only or other components too?
> 
> Mike : what suggests the crashes in Writer and Calc come from the same issue?
> 
> Thomas and Mike : please both check if the latest 7.3 and 7.4 versions still
> crash on you, ideally also a recent master build from
> https://dev-builds.libreoffice.org/daily/master/current.html
> 
> Setting the bug status to "need info" until we have more information.


Testing Procedure version 7.3 era [ [ Mike Little 2022-10-24   UTC]
Hardware Overview:

  Model Name:	Mac mini
  Model Identifier:	Macmini8,1
  Processor Name:	Quad-Core Intel Core i3
  Processor Speed:	3.6 GHz
  Number of Processors:	1
  Total Number of Cores:	4
  L2 Cache (per Core):	256 KB
  L3 Cache:	6 MB
  Memory:	8 GB
  System Firmware Version:	1731.140.2.0.0 (iBridge: 19.16.16066.0.0,0)
  OS Loader Version:	540.120.3~19
  Serial Number (system):	C07DC0V5PJH7
  Hardware UUID:	CBC43DE6-B8C2-58F5-83D4-6CB60096203C
  Provisioning UDID:	CBC43DE6-B8C

Ethernet:

  Type:	Ethernet
  Hardware:	Ethernet
  BSD Device Name:	en0
  IPv4:
  Configuration Method:	DHCP
  IPv6:
  Configuration Method:	Automatic
  Ethernet:
  MAC Address:	14:9d:99:82:a2:13
  Media Options:	
  Media Subtype:	none
  Proxies:
  Exceptions List:	*.local, 169.254/16
  FTP Passive Mode:	Yes
  Service Order:	0


System Software Overview:

  System Version:	macOS 12.5.1 (21G83)
  Kernel Version:	Darwin 21.6.0
  Boot Volume:	Macintosh HD
  Boot Mode:	Normal
  Computer Name:	mlittle-macmini-20200921’s Mac mini
  Username:	mlittle-macmini-20200921 (mlittle-macmini-20200921)
  Secure Virtual Memory:	Enabled
  System Integrity Protection:	Enabled
  Time since boot:	3:32


Version: 7.3.8.0.0+ / LibreOffice Community
Build ID: 0f7fb0a2decec3f8869098ae5e47ee6055545486
CPU threads: 4; OS: Mac OS X 12.5.1; UI render: default; VCL: osx
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded


1.	Downloaded version libreoffice 7.3.8.0 from https://dev-builds.libreoffice.org/daily/libreoffice-7-3/MacOSX-x86_64@tb81-TDF/current/LibreOfficeDev_7.3.8.0.0_MacOS_x86-64.dmg; 
2.	Rebooted my computer , I have the following applications running:

Activity Monitor
Console
Google Chrome
MS Word
Terminal
Finder

3.	Opened a terminal session, and sudo su to gain root access to run systdiagnose [SHFT+CONTRL+OPT+COMMAND+.]
4.	Starting LibreOfficeDev.app by choosing ‘Open’ from the right mouse context menu. 
5.	The LibreOffice document navigation window opens.
6.	Application starts [captured version information..see above]
7.	Opened Activity Monitor:

Real Memory Size: 86.1 MB
Virtual memorv size. 34.76 GB
Shared Memory Size: 36.4 MB
Private Memory Size: 27.9 MB


Threads: 4
Ports: 210
CPU Time: 4.58
Context Switches: 24808
Faults. 159384
Assertions: 0
Page Ins: 816
Mach Messages In:
Mach Messages Out:
Mach System Calls: 93038
Unix System Calls: 221769

Captured the open files and ports for this process [LibreOfficeDev]

Testing Writer
---------------------------------------
8.	Starting Writer, “Create Document” from the document navigator
9.	Copied text “Once more unto the breach, dear friends, once more..” [ https://www.poetryfoundation.org/poems/56972/speech-once-more-unto-the-breach-dear-friends-once-more].. 
10.	Chose  to save the created file, but application hung briefly, but only due to a permissions issue [ access to the /documents folder], but when  I granted the permission the hung stated cleared.
11.	Closinging Writer.
12.	I will repeat this two more times. 
13.	Restart Writer, “Create Writer document”…. Operated as specified.
14.	Restart Writer, “Create Writer document”…. Operated as specified


Testing Calc
---------------------------------------
15.	Starting Calc from the document navigator. 
16.	Calc starts.
17.	Typed 1-30 in Column A.
18.	Saved document as an *.ds file… operated as specified.
19.	I will repeat this two more times. 
20.	Restart calc “Create Spreadsheet..” … operated as specified.
21.	Restart calc “Create Spreadsheet..” … operated as specified.

The application appears to operate as expected... shall I test Impress, Draw, Maths Formula, and the Base Database applications as well..? 

For now, I will test Writer and Calc for Version 7.4 era, and Version 7.5 eras...  Waitout... MikeLittle
Comment 11 Buovjaga 2022-10-24 06:29:38 UTC
Thomas: do you get the crash with 7.3 or 7.4? If yes, can you get a crash report: https://wiki.documentfoundation.org/QA/BugReport/Debug_Information#macOS
Comment 12 Mike Little 2022-10-24 06:49:45 UTC
(In reply to Buovjaga from comment #11)
> Thomas: do you get the crash with 7.3 or 7.4? If yes, can you get a crash
> report:
> https://wiki.documentfoundation.org/QA/BugReport/Debug_Information#macOS

To get these diagnostics so these diagnostic windows appear for the Crash data, or when the application freezes or hangs, you will need to enable this in MacOS through...

System Preferences > Security & Privacy > Privacy tab > Diagnostics & Usage >  make sure "send diagnostic & usage data to Apple"

On this dialog, you You may have to click the lock on the bottom to authenticate with password for the options to work.
Comment 13 Thomas Studer 2022-10-24 10:00:15 UTC
Created attachment 183232 [details]
Crash report LibreOffice 7.4
Comment 14 Thomas Studer 2022-10-24 10:01:01 UTC
Hello

I tried 7.4. and it didn't crash at the beginning anymore.
Only when I copied something in Writer it did (see attachment). But this seems to be an issue with the helper app "Copy EM".

Thank you for your hard work! and continuing improving of Libre Office.
The longer I use it, the better I know it and therefore it's becoming more and more helpful.

Thanks and best regards
Thomas Studer
Comment 15 Dieter 2022-10-24 10:08:47 UTC
Thomas, if you change Assignee to yourself this indicates, that you're going to fix that bug. Since it doesn't look like a Lo bug I assume, that it was a misunderstanding. Feel free to change it back, if I'm wrong.
Comment 16 Mike Little 2022-10-25 02:43:08 UTC
(In reply to Thomas Studer from comment #14)
> Hello
> 
> I tried 7.4. and it didn't crash at the beginning anymore.
> Only when I copied something in Writer it did (see attachment). But this
> seems to be an issue with the helper app "Copy EM".
> 
> Thank you for your hard work! and continuing improving of Libre Office.
> The longer I use it, the better I know it and therefore it's becoming more
> and more helpful.
> 
> Thanks and best regards
> Thomas Studer

Version: 7.4.2.3 / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 4; OS: Mac OS X 12.5.1; UI render: default; VCL: osx
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded


1.	Downloaded version libreoffice-7.4.2.3//  from https://downloadarchive.documentfoundation.org/libreoffice/old/, MacOS,  x86_64/


2.	Rebooted my computer, and so I have the following applications running
a.	Activity monitor 
b.	Google Chrome
c.	MS Word
d.	Terminal 
3.	Starting Libreoffice from the ./soffice.sh script


Testing Writer
---------------------------------------
1.	Starting Writer, “Create Document” from the document navigator
2.	Copied text “Once more unto the breach, dear friends, once more..” [ https://www.poetryfoundation.org/poems/56972/speech-once-more-unto-the-breach-dear-friends-once-more].. 
3.	Chose  to save the created file… operated correctly. .
4.	Closinging Writer.
5.	I will repeat this two more times. 
6.	Restart Writer, “Create Writer document”…. Operated as specified.
7.	Restart Writer, “Create Writer document”…. Operated as specified


Testing Calc
---------------------------------------
8.	Starting Calc from the document navigator. 
9.	Calc starts.
10.	Typed 1-30 in Column A.
11.	Saved document as an *.ds file… operated as specified.
12.	I will repeat this two more times. 
13.	Restart calc “Create Spreadsheet..” … operated as specified.
14.	Restart calc “Create Spreadsheet..” … operated as specified.


I will check version 7.5
Comment 17 Mike Little 2022-10-25 02:46:09 UTC
(In reply to Thomas Studer from comment #14)
> Hello
> 
> I tried 7.4. and it didn't crash at the beginning anymore.
> Only when I copied something in Writer it did (see attachment). But this
> seems to be an issue with the helper app "Copy EM".
> 
> Thank you for your hard work! and continuing improving of Libre Office.
> The longer I use it, the better I know it and therefore it's becoming more
> and more helpful.
> 
> Thanks and best regards
> Thomas Studer

Thomas, when I copied the text  “Once more unto the breach, dear friends, once more..” [ https://www.poetryfoundation.org/poems/56972/speech-once-more-unto-the-breach-dear-friends-once-more]..  I did not use the helper app, "Copy EM".... I will check 7.5 and test for this... waitout. mikeLittle
Comment 18 Mike Little 2022-10-25 04:54:54 UTC
(In reply to Mike Little from comment #17)
> (In reply to Thomas Studer from comment #14)
> > Hello
> > 
> > I tried 7.4. and it didn't crash at the beginning anymore.
> > Only when I copied something in Writer it did (see attachment). But this
> > seems to be an issue with the helper app "Copy EM".
> > 
> > Thank you for your hard work! and continuing improving of Libre Office.
> > The longer I use it, the better I know it and therefore it's becoming more
> > and more helpful.
> > 
> > Thanks and best regards
> > Thomas Studer
> 
> Thomas, when I copied the text  “Once more unto the breach, dear friends,
> once more..” [
> https://www.poetryfoundation.org/poems/56972/speech-once-more-unto-the-
> breach-dear-friends-once-more]..  I did not use the helper app, "Copy
> EM".... I will check 7.5 and test for this... waitout. mikeLittle

Version: 7.5.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7cda0032806c214ecb998df3a777fd10403fd246
CPU threads: 4; OS: Mac OS X 12.5.1; UI render: Skia/Metal; VCL: osx
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Testing Writer
---------------------------------------
1.	Starting Writer, “Create Document” from the document navigator ... Libra office opened, and created a blank document.

2.	Copied text The Wikipedia article  “XPath” ].. as it contains complex formatting [ https://en.wikipedia.org/wiki/XPath. This appeared to have copied across correctly, and 19 pages of content cop it correctly.
3.	Chose  to save the created file… document says correctly as “WriterTest1.odt”.
4.	Closinging Writer.
5.	I will repeat this two more times. 
6.	Restart Writer, “Create Writer document”…. Operated as expected, “WriterTest2.odt” created.
7.	Restart Writer, “Create Writer document”…. Operated as specified, “WriterTest3.odt” created.


Testing Calc
---------------------------------------
1.	Starting Calc, “Calc spreadsheet” from the document navigator ... Libra office opened, and created a blank document.
2.	Copied the complex “hockey player data file: spreadsheet  from : https://www.contextures.com/tablesamples/sampledatahockey.zip” , “sampledatahockey.xlsx”, Player data tab to calc…. spreadsheet  copied correctly.
3.	Chose  to save the created file… document says correctly as “clc-test01.ods”.
4.	Closing calc.

5.	I will repeat this two more times. 
6.	Restart Calc, “Create Calc spreadsheet”…. Calc opened.
7.	Clicked cell A1… LibreOfficeDev not responding : FAIL
8.	[Unfortunately I was not able to capture any diagnostic information… ].

9.	Restart Calc, “Create Calc spreadsheet”…. Calc opened.
10.	Copied the complex “hockey player data file: spreadsheet  from : https://www.contextures.com/tablesamples/sampledatahockey.zip” , “sampledatahockey.xlsx”, Player data tab to calc…. spreadsheet  copied correctly.
11.	Chose  to save the created file… document says correctly as “clc-test03.ods”.
12.	Closing calc. Closed correctly.
Comment 19 Telesto 2023-01-16 13:21:38 UTC
This very likely the same as bug 148435 based on the crash-report. Should be fixed with LibreOffice 7.4.4.

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