Bug 163050 - Crash when manipulating equations (math) object on impress
Summary: Crash when manipulating equations (math) object on impress
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Formula Editor (show other bugs)
Version:
(earliest affected)
7.3.2.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: haveBacktrace
Depends on:
Blocks:
 
Reported: 2024-09-19 14:10 UTC by granjon laurent
Modified: 2024-09-20 08:17 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
the file saved a quater of hours before crash (479.77 KB, application/vnd.oasis.opendocument.presentation)
2024-09-19 14:12 UTC, granjon laurent
Details
bt (8.59 KB, text/plain)
2024-09-20 08:17 UTC, Julien Nabet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description granjon laurent 2024-09-19 14:10:18 UTC
Description:
when i copy / paste equation on impress (this time, it's sometimes the same with writer) libreoffice crash. 

It seems that a problem appears on the equation long time before the crash, and when i start to manipulate again the equation it make libreoffice crash (or equation disappear on writer) 

On the document of this crash, (i will join it), it has crashed when i try to copy / paste the equation on slide 12 (when pasting it on slide 13 in fact)/

On The .odp file saved a quater of hours before the crash  when trying to edit the equation libreoffice say to me on a splash screen (in french i'm french) 

"Erreur lors de l'activation de l'objet
Erreur OLE Générale."

Then equations doesn't appears anymore, or are unmodifiable before. 

crash report for this time

https://crashreport.libreoffice.org/stats/crash_details/0db3585a-5069-45bd-9313-c4bf02e19b9e

libreoffice version

Version: 7.3.2.2 (x64) / LibreOffice Community
Build ID: 49f2b1bff42cfccbd8f788c8dc32c1c309559be0
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: CL

Installed on an enterprise workstation, i can't change it easily
On a linux libreoffice 24 version i have the same problems 


Steps to Reproduce:
1. open the file joined 
2.try to manipulate equation on slide 12 (copy / paste it on slide 13 for example) or try to edit it.
3.

Actual Results:
"Erreur lors de l'activation de l'objet
Erreur OLE Générale." in the less severity case

crash of libreoffice (and bug report see above) on the worst

Expected Results:
possibility to copy  / paste and to edit equations 


Reproducible: Sometimes


User Profile Reset: Yes

Additional Info:
Version: 7.3.2.2 (x64) / LibreOffice Community
Build ID: 49f2b1bff42cfccbd8f788c8dc32c1c309559be0
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: CL

https://crashreport.libreoffice.org/stats/crash_details/0db3585a-5069-45bd-9313-c4bf02e19b9e

I dont find the place to download the .odp file, i put the bug "as it" and will complete later if the bugreport tools let me put a file (i think it's possible).
Comment 1 granjon laurent 2024-09-19 14:12:38 UTC
Created attachment 196545 [details]
the file saved a quater of hours before crash

It's the file i've been working whith, saved some minutes before crash. 
If i find an old sauvegarde of the file with equations working i will send it before
Comment 2 Julien Nabet 2024-09-19 14:37:27 UTC
7.3 is quite old, could you give a try to a recent LO version like 24.2.6 (see https://www.libreoffice.org/download/download-libreoffice/).

+ try https://wiki.documentfoundation.org/QA/FirstSteps#Corrupted_user_profile
Comment 3 granjon laurent 2024-09-19 18:28:33 UTC
hello

thank's for your return. 

I have tested on my personal computer lubuntu 24.04

 (the install on windows is on my society computer, i'm not admin and cannot install or update any software on it) 

on 

Version: 24.2.5.2 (X86_64) / LibreOffice Community
Build ID: 420(Build:2)
CPU threads: 8; OS: Linux 6.8; UI render: default; VCL: qt5 (cairo+xcb)
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Ubuntu package version: 4:24.2.5-0ubuntu0.24.04.2
Calc: threaded

the bug is exactly the same, copying and paste the formula on slide #12 on the slide #13 is crashing immediately libreoffice

but on linux there's no crash report generated, it only propose me to recover the crashed document (and the other documents opened if any that are also crashed at the same time). 

i imagine that there's a crash report somewhere but i don't know where on ubuntu. 

This bug is in fact, very similar to another I have already open (but i don't find it in "my bug", i've only find the number on my mail : bug 161297
Comment 4 granjon laurent 2024-09-19 18:32:56 UTC
the difference between this two bug is that the impress document has never been edited with a microsoft product (like powerpoint) 

for the bug 161297 i was thinking that the bug appears when the odt has been edited by a micro$oft word application and could have been corrupted by it

in this case, this document is only mine and i'm using only libreoffice.
Comment 5 Julien Nabet 2024-09-19 19:43:49 UTC
Formula in slide 12 corresponds to content.xml in subdir "Object 37" when you unzip the odp file (odp, like ods, odt, etc are just zip files with a specific structure) seems corrupted.
Indeed, there's not the end of xml in it.

I think you should delete the formula and recreate it.

Do you work locally on your hard disk/SSD or on a network share?
Comment 6 Julien Nabet 2024-09-19 20:01:10 UTC
(In reply to granjon laurent from comment #3)
>...
> This bug is in fact, very similar to another I have already open (but i
> don't find it in "my bug", i've only find the number on my mail : bug 161297

For this last part, I think it's because tdf#161297 has been put as RESOLVED/DUPLICATE
Anyway, we can put it in See also.
Comment 7 granjon laurent 2024-09-20 06:22:19 UTC
Thank's for your return

The documents are saved on my computer with a "sauvegarde" on onedrive of my organisation. 

this .odp are always opened with impress, never with micro$oft suite. 

It's difficult for me to understand how it's done in the file structure, i'm mechanicac engineering teacher, not computer science engineer, i know what is an xml file but not how to work with it. 


Some precisions about this bug : 

In fact i've start a bug report because libreoffice has crashed and had proposed to me to send a bug report, but this style of bug is relatively frequent

in the same document, used last year with my students, nothing wrong in presentation.

This year, when i start to open it, most (but not all) formulas on slide 9 to the end of the document was crashed (i've got a "smiley" to replace it). 

A bit difficult in the middle of the presentation.... by chance i've got a pdf of the document. 

yesterday when bug appears, i was about to type again formulas that have disappered. I have corrected about 10 to 15 formulas 

on the top of the #13 slide the formula is a copy / paste than one present on the back of the #12 slide (i was initially thinking this one is ok because she is displayed) and I start to copy / paste it in order to modify it later


To my mind there's two bug in the software

* when an object is corrupted, a copy paste can create an error message (normal working of the software) not crashing the software. 

* a problematic bug remaining from the ages in the formulas editor i think (it's the same problem with formulas in writer) that make sometimes formulas not correctly saved, it seems that the render is made before, so when the bug appears the formula is correctly displayed and nothing seems bad before you start to modify the formula) 

I will precise that i'm a massive user of formulas, 

if it will not work correctly with libreoffice i will have to switch to LaTex but the syntax is too heavy on latex to my mind (there's a plugin to writer in order to make svg inserted images with LaTex Formulas it could be a solution)
Comment 8 granjon laurent 2024-09-20 06:26:20 UTC
A little precision (could be important) 

i'm switching between libreoffice 7.3 (when i'm working on the windows session) and libreoffice 24.xxx (the one of lubuntu 24.04) when i'm working on linux (dual boot) 

switching from different compilations and versions of software should be the origin of the problem ?
Comment 9 Julien Nabet 2024-09-20 06:40:24 UTC
(In reply to granjon laurent from comment #8)
> A little precision (could be important) 
> 
> i'm switching between libreoffice 7.3 (when i'm working on the windows
> session) and libreoffice 24.xxx (the one of lubuntu 24.04) when i'm working
> on linux (dual boot) 
I think you should migrate towards 24.2.6 on Windows.
About Lubuntu, you may find some updates on LO ppa (see https://www.ubuntuupdates.org/ppa/libreoffice).

> 
> switching from different compilations and versions of software should be the
> origin of the problem ?
I don't know. But in general it's better to use last stable. I mean of course, you may find some regressions but version after version, there should be less bugs.
Comment 10 Julien Nabet 2024-09-20 06:45:48 UTC
(In reply to granjon laurent from comment #7)
> Thank's for your return
> 
> The documents are saved on my computer with a "sauvegarde" on onedrive of my
> organisation.
So a network share. Personnally, I would work the file on local then when finished, after having quitted LO, I'd copy the file on Onedrive.
...
> if it will not work correctly with libreoffice i will have to switch to
> LaTex but the syntax is too heavy on latex to my mind (there's a plugin to
> writer in order to make svg inserted images with LaTex Formulas it could be
> a solution)

I just know LaTex by name but IMHO it's the best for this type of work. If you're a teacher, I think it could worth it you learn about it.

BTW, I got no other question but don't reproduce the crash only the error popup so I put it back to UNCONFIRMED.
Comment 11 granjon laurent 2024-09-20 08:06:05 UTC
thank's for your return

On my side the bug is reproductible (crash) on 24.2 on lubuntu 24.04 up to date (if copy / paste). if i try to edit, an error message (OLE) appears. 

Idem on an old sauvegarde of the file, it seems that the formula is corrupted for a while. (it could be since the first save of it) 

thanks for your suggest (IMHO) it seems to not be "libre" software, for calculus we use GIAC / XCAS which is. It produces LaTeX syntax result if needed. 

to insert in an libreoffice writer document the extension TexMath
https://extensions.libreoffice.org/en/extensions/show/texmaths-1
is the good way to do it, but the formula module of libreoffice is more easier to use (and most of my documents, hundred of pages) are made with it. For the moment, the libreoffice tool is vital for me
Comment 12 Julien Nabet 2024-09-20 08:17:02 UTC
Created attachment 196554 [details]
bt

Sorry, I finally succeeded in reproducing the crash.

Here's a bt retrieved on pc Debian x86-64 with master sources updated today + gen rendering.