Bug 145266 - Writer crashes when inserting formula object
Summary: Writer crashes when inserting formula object
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.1.2 release
Hardware: All macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression, wantBacktrace
Depends on:
Blocks: Crash
  Show dependency treegraph
 
Reported: 2021-10-22 01:42 UTC by Panos Moisiadis
Modified: 2022-10-28 17:16 UTC (History)
9 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 Panos Moisiadis 2021-10-22 01:42:20 UTC
Description:
When in Writer, inserting an equation causes LibreOffice to crash (including other documents such as an impress presentation). This bug does not occur when inserting an equation into an impress presentation or drawing. I am also able to create formulas in Math with no problem. I tested and found this bug in 7.2.1.2 and 7.2.2.2

Steps to Reproduce:
1. In a Writer document, click Insert > Object > Formula Object.
2. Edit the formula in any way.
3. Click off the formula.

Actual Results:
LibreOffice will crash, closing all open documents.

Expected Results:
A formula should be inserted into the Writer document with no issue.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 7.2.2.2 / LibreOffice Community
Build ID: 02b2acce88a210515b4a5bb2e46cbfb63fe97d56
CPU threads: 8; OS: Mac OS X 10.16; UI render: default; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 Xisco Faulí 2021-10-22 08:55:33 UTC
Thank you for reporting the bug. To be certain the reported issue is not related to corruption in the user profile, could you please reset your Libreoffice profile ( https://wiki.documentfoundation.org/UserProfile ) and re-test?

I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the issue is still present
Comment 2 Regina Henschel 2021-10-22 09:48:53 UTC
This might be the problem reported in bug 144132.
Comment 3 Panos Moisiadis 2021-10-22 17:25:40 UTC
(In reply to Xisco Faulí from comment #1)
> Thank you for reporting the bug. To be certain the reported issue is not
> related to corruption in the user profile, could you please reset your
> Libreoffice profile ( https://wiki.documentfoundation.org/UserProfile ) and
> re-test?
> 
> I have set the bug's status to 'NEEDINFO'. Please change it back to
> 'UNCONFIRMED' if the issue is still present

I have tested with a reset user profile and was able to recreate the bug.
Comment 4 Roman Kuznetsov 2021-10-24 12:32:51 UTC
No problem in

Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: 273a25c796fca9afa0dfadac57dc3f336831221c
CPU threads: 4; OS: Mac OS X 10.16; UI render: default; VCL: osx
Locale: ru-RU (ru_RU.UTF-8); UI: en-US
Calc: threaded
Comment 5 psidiumcode 2021-10-24 15:24:29 UTC
I could not reproduce it in ver:

Version: 7.2.1.2 / LibreOffice Community
Build ID: 87b77fad49947c1441b67c559c339af8f3517e22
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

Version: 7.2.2.2 / LibreOffice Community
Build ID: 02b2acce88a210515b4a5bb2e46cbfb63fe97d56
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 6 Deep17 2021-11-13 02:47:56 UTC
I can't reproduce this in

Version: 7.2.2.2 (x64) / LibreOffice Community
Build ID: 02b2acce88a210515b4a5bb2e46cbfb63fe97d56
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded


Version: 7.3.0.0.alpha1+ (x64) / LibreOffice Community
Build ID: 73334560b2dd2d60ac58d2cc2b1a5295490b03e1
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 7 Buovjaga 2021-11-17 17:28:16 UTC
Panos: can you test with MacOSX-x86_64@tb81-TDF from https://dev-builds.libreoffice.org/daily/master/current.html ?

You have to follow this doc https://support.apple.com/guide/mac-help/open-a-mac-app-from-an-unidentified-developer-mh40616/11.0/mac/11.0
Comment 8 Panos Moisiadis 2021-12-14 05:54:13 UTC
I was able to reproduce the bug in MacOSX-x86_64@tb81-TDF as well

(In reply to Buovjaga from comment #7)
> Panos: can you test with MacOSX-x86_64@tb81-TDF from
> https://dev-builds.libreoffice.org/daily/master/current.html ?
> 
> You have to follow this doc
> https://support.apple.com/guide/mac-help/open-a-mac-app-from-an-unidentified-
> developer-mh40616/11.0/mac/11.0
Comment 9 tex.avery2 2022-02-08 10:21:09 UTC
I'have got exactly the same problem since libreoffice 7.2.1 version in all new version... so in 7.3.0 too.

But not in the 7.1.8 version... so I use this one at the moment.

I have got a macbook pro 2013 (end af the year) with big sur 11.6.3.

regards
Comment 10 tex.avery2 2022-02-08 10:30:55 UTC
There is the same problem in 7.4.0 alpha...
Comment 11 Buovjaga 2022-02-08 11:11:02 UTC
Moving to new as we have a confirmation.

For the ones who can reproduce: you can try to bibisect with the macOS 7.2 repository:
https://wiki.documentfoundation.org/QA/Bibisect
https://wiki.documentfoundation.org/QA/Bibisect/macOS
https://bibisect.libreoffice.org/mac64-7.2
Comment 12 tex.avery2 2022-02-09 13:41:39 UTC Comment hidden (obsolete)
Comment 13 tex.avery2 2022-02-09 13:42:37 UTC Comment hidden (obsolete)
Comment 14 tex.avery2 2022-08-29 13:17:27 UTC
Hello,

Same problem in 7.4.0.

Regards
Comment 15 tex.avery2 2022-09-25 21:30:17 UTC
Hello,

Same problem with the new Macbook pro 14 pouces, Monterey 12.6.

Please, try to correct this bug !

Regards
Comment 16 Buovjaga 2022-09-26 04:26:15 UTC
(In reply to tex.avery2 from comment #15)
> Hello,
> 
> Same problem with the new Macbook pro 14 pouces, Monterey 12.6.
> 
> Please, try to correct this bug !

Would be easier, if someone bisected it like I said in comment 11.
Comment 17 Christian Lohmaier 2022-10-17 11:27:29 UTC
cannot reproduce with 7.3.7 rc1 on macOS 12.6 trying the following:

1) create new text document
2) insert|Object → Formula
3) enter a+b=c into the formula window
4) click outside the formula-object frame into the page of the writer document

→ no crash, formula inserted and displayed as expected, can double-click it to edit it again, all without problem.

Can you reproduce as well if you use Help|Restart in safe mode and try it in safe-mode?
Comment 18 Alex Thurgood 2022-10-25 10:20:28 UTC
Is this a DUP of bug 146832 ?
That bug relates to aarch64 versions of LibreOffice on macOS Arm.

@Christian : were your tests with 7.3.7 rc1 done with aarch64 or x86_64?
Comment 19 tex.avery2 2022-10-25 17:24:27 UTC
Hi,
Arghhh. It's doesn't work, I h'he got same problem with 7.3.7.1  X86-64 on Mac OS Bigsur 11.7.1.

Do you want I test on Mac OS 12.6.1 on Arm ?

Regards,
Nicolas MORIN
Comment 20 tex.avery2 2022-10-25 17:34:14 UTC
Sorry, I don't have your skills, I don't know how to you use bibisect...

If you have a tutorial, I could try...

So I work with the 7.1.8...
Comment 21 Buovjaga 2022-10-25 17:52:08 UTC
(In reply to tex.avery2 from comment #20)
> Sorry, I don't have your skills, I don't know how to you use bibisect...
> 
> If you have a tutorial, I could try...
> 
> So I work with the 7.1.8...

Here is a tutorial:
https://wiki.documentfoundation.org/QA/Bibisect/Bibisecting_tutorial
Comment 22 tex.avery2 2022-10-27 08:59:00 UTC
I Hope I did everything well...
The result :
 8b3cc81bf81e8a79b21eccc3c50f3bb2c8bb780c is the first bad commit
commit 8b3cc81bf81e8a79b21eccc3c50f3bb2c8bb780c
Author: libreoffice <libreoffice@libreoffices-Mac-mini.local>
Date:   Sat Jun 12 05:50:01 2021 +0200

    source 8d485ec0cd35ee1ae7684f2b6ca96c0f0c6f9dac
    
    source 8d485ec0cd35ee1ae7684f2b6ca96c0f0c6f9dac

 LibreOffice.app/Contents/Frameworks/libvcllo.dylib | Bin 11450052 -> 11449876 bytes
 LibreOffice.app/Contents/Resources/setuprc         |   2 +-
 LibreOffice.app/Contents/Resources/versionrc       |   2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)
Comment 23 tex.avery2 2022-10-27 09:08:24 UTC
I did each time :

1) insert|Object → Formula
2) enter a+b=c into the formula window
3) click outside the formula-object frame into the page of the writer document.

Result :

 8b3cc81bf81e8a79b21eccc3c50f3bb2c8bb780c is the first bad commit
commit 8b3cc81bf81e8a79b21eccc3c50f3bb2c8bb780c
Author: libreoffice <libreoffice@libreoffices-Mac-mini.local>
Date:   Sat Jun 12 05:50:01 2021 +0200

    source 8d485ec0cd35ee1ae7684f2b6ca96c0f0c6f9dac
    
    source 8d485ec0cd35ee1ae7684f2b6ca96c0f0c6f9dac

 LibreOffice.app/Contents/Frameworks/libvcllo.dylib | Bin 11450052 -> 11449876 bytes
 LibreOffice.app/Contents/Resources/setuprc         |   2 +-
 LibreOffice.app/Contents/Resources/versionrc       |   2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)
Comment 24 Buovjaga 2022-10-27 13:52:52 UTC
Thanks. Would you be able to get debug info of the crash, using a normal release build: https://wiki.documentfoundation.org/QA/BugReport/Debug_Information#macOS
Comment 25 Buovjaga 2022-10-27 13:55:59 UTC
(In reply to Buovjaga from comment #24)
> Thanks. Would you be able to get debug info of the crash, using a normal
> release build:
> https://wiki.documentfoundation.org/QA/BugReport/Debug_Information#macOS

Sorry, I made a mistake: a release build does not have debug symbols that would help in this case
Comment 26 tex.avery2 2022-10-27 14:03:02 UTC
How can I help you easily ?
Noel Grandin asked me to try :

with specific instructions for building on macos here:
  https://wiki.documentfoundation.org/Development/BuildingOnMac

But I think I don't have enough computer skills for that...

I dont' understand why more people doesn't have the same problem.
My son with a new computer Macbook pro 14 M1 Pro has exactly the same problem.

Have you got au tutorial with the exact command to enter, like for bibisect ???

Regards,
Comment 27 tex.avery2 2022-10-27 14:25:12 UTC
(In reply to Buovjaga from comment #24)
> Thanks. Would you be able to get debug info of the crash, using a normal
> release build:
> https://wiki.documentfoundation.org/QA/BugReport/Debug_Information#macOS


Sorry, I made a mistake: a release build does not have debug symbols that would help in this case


Have-you got a non release build with debug symbols to test...
Comment 28 Buovjaga 2022-10-27 14:36:14 UTC
(In reply to tex.avery2 from comment #26)
> How can I help you easily ?
> Noel Grandin asked me to try :
> 
> with specific instructions for building on macos here:
>   https://wiki.documentfoundation.org/Development/BuildingOnMac
> 
> But I think I don't have enough computer skills for that...
> 
> I dont' understand why more people doesn't have the same problem.
> My son with a new computer Macbook pro 14 M1 Pro has exactly the same
> problem.
> 
> Have you got au tutorial with the exact command to enter, like for bibisect
> ???

You can email me for help. I can also advise you in a screensharing session.

1. Do the first steps from here, but ignore the Java: https://wiki.documentfoundation.org/Development/BuildingOnMac#Prerequisites
2. Continue with https://wiki.documentfoundation.org/Development/lode#Getting_Started
3. Note the step to adjust your shell profile:

echo "export LODE_HOME=$HOME/lode\nexport PATH=\"\${LODE_HOME}/opt/bin:\${PATH}\"" >> ~/.zshrc

4. After doing ./setup --dev --force, check in the lode/dev/core directory that it has an autogen.input file. Edit the file and check that it has --enable-dbgutil or --enable-debug. Also add --without-java
5. Finally, you can do in lode/dev/core

./autogen.sh
make

No need to run make check, which would also run tests.

Your built LibreOffice will be in

lode/dev/core/instdir/LibreOfficeDev.app
Comment 29 Buovjaga 2022-10-27 14:57:04 UTC
Wait a second: before going with the build, can you try taking that debug info from a normal release build after all? We should see, if it is enough.
Comment 30 tex.avery2 2022-10-27 15:34:52 UTC
When Libreoffice Crashes, I have only a window "LibreOffice 7.2 Document Recovery"

Due to an error, LibreOffice crashed. All the files you were working on will now be saved, The next time Libre Office is launched, your files will be recovered automatically.

I can recovered the file, I can edit but when I click somewhere else Libreoffice crashed again...

I haven't more information to debug,

I downloaded Xcode, no I unzip... it takes a long time...

After I will try with build...
Comment 31 Alex Thurgood 2022-10-28 11:05:31 UTC
That VCL commit 
 8d485ec0cd35ee1ae7684f2b6ca96c0f0c6f9dac

might be a candidate for investigation if it also applies to disposal of windows on macOS, see also bug 146571
Comment 32 Alex Thurgood 2022-10-28 11:42:34 UTC
(In reply to Buovjaga from comment #28)
> (In reply to tex.avery2 from comment #26)

LODE setup fails on macOS Ventura with error message:

Unknown kernel version 22.1.0
Comment 33 Buovjaga 2022-10-28 11:48:53 UTC
(In reply to Alex Thurgood from comment #32)
> (In reply to Buovjaga from comment #28)
> > (In reply to tex.avery2 from comment #26)
> 
> LODE setup fails on macOS Ventura with error message:
> 
> Unknown kernel version 22.1.0

https://gerrit.libreoffice.org/c/lode/+/141972
Comment 34 tex.avery2 2022-10-28 14:18:46 UTC
I Tried on 7.5.0 !!! 
There is no bug !!! Yes !!!

But it was without Java...

Now How can I desinstall everything ???

Regards,
Comment 35 tex.avery2 2022-10-28 14:36:49 UTC
Noel Grandin send me also, today, directly the dev of LO:

   https://dev-builds.libreoffice.org/daily/master/current.html

and It works !

We can only hope that version 7.5.0 is released as soon as possible for macOS users…

Regards
Comment 36 Buovjaga 2022-10-28 16:48:02 UTC
Panos: is the crash gone also for you with latest 7.5?
Comment 37 Panos Moisiadis 2022-10-28 17:13:12 UTC
(In reply to Buovjaga from comment #36)
> Panos: is the crash gone also for you with latest 7.5?

Yes I can confirm the crash is gone with 7.5
Thanks everyone!
Comment 38 Buovjaga 2022-10-28 17:16:50 UTC
Great to hear :) Let's go ahead and close this, then. 7.5 will be released in February 2023.