Bug 147643 - EDITING Loss of OLE objects (Math formulas) in Libreoffice Writer when using experimental visual editor
Summary: EDITING Loss of OLE objects (Math formulas) in Libreoffice Writer when using ...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Formula Editor (show other bugs)
Version:
(earliest affected)
7.0.0.3 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-24 17:48 UTC by Dmitry
Modified: 2024-03-21 15:52 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
a good file (150.49 KB, application/vnd.oasis.opendocument.text)
2022-02-24 18:09 UTC, Dmitry
Details
broken file after bug (33.08 KB, application/vnd.oasis.opendocument.text)
2022-02-24 18:10 UTC, Dmitry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry 2022-02-24 17:48:32 UTC
Description:
Sometimes while editing odt document, Math formulas get lost. If you save the document and re-open it, you can:  
1)see a puzzle piece icon and label object 1 (object [number of object]) in many of written formulas (I suppose after editing them in visual mode (when edited not in text field in the bottom))
2) try to copy a formula and paste, nothing pastes and if you try to double-click and edit copied formula, appears dialog about OLE error
3) after re-open file formula looks deformed and when clicked, there is nothing in the editor
4) if you unpack a broken file, there is no object folders with numbers under puzzle, not damaged only

Steps to Reproduce:
1.make a writer file in odt (1.3 extended)
2.write a formula
3.try to edit in visual mode
4.try to copy an object and paste
5.if nothing pasted, it is a bug
6.if it's OLE error on double-click on formula, it's that bug

Actual Results:
Sometimes i get OLE error and lost formulas in files

Expected Results:
Formulas have to be saved without errors


Reproducible: Sometimes


User Profile Reset: No



Additional Info:
[Information automatically included from LibreOffice]
Locale: ru
Module: TextDocument
[Information guessed from browser]
OS: Linux (All)

Pasted info:
OS is 64bit: yes
Version: 7.1.7.2 / LibreOffice Community
Build ID: 10(Build:2)
CPU threads: 12; OS: Linux 5.13; UI render: default; VCL: gtk3
Locale: ru-RU (ru_RU.UTF-8); UI: ru-RU
Ubuntu package version: 1:7.1.7-0ubuntu0.21.04.1~bpo20.04.1
Calc: threaded

P.S. I tried in many versions: from ubuntu repo (this) (in this version, bug is less often), 7.3.0, 7.2.5 rc 2
Comment 1 Dmitry 2022-02-24 18:09:24 UTC
Created attachment 178517 [details]
a good file

a good file
Comment 2 Dmitry 2022-02-24 18:10:29 UTC
Created attachment 178518 [details]
broken file after bug
Comment 3 Jean-Baptiste Faure 2022-02-24 21:04:17 UTC
Do not forget that visual Math editor is still an experimental feature.

That said I can't confirm the described behavior.

Best regards. JBF
Comment 4 Dmitry 2022-02-24 21:13:08 UTC
found a new way to reproduce bug:

1.make a writer file in odt (1.3 extended)
2.write a formula
3.try to edit in visual mode
4.try to copy an object and paste
5.edit pasted formula
6.if it's OLE error on double-click on one of others formulas, it's that bug (or save and re-open a file)
Comment 5 Dmitry 2022-02-24 21:22:28 UTC
and the main problem is that OTHER formulas are lost
(not the one what was edited)
Comment 6 QA Administrators 2022-02-25 03:34:43 UTC Comment hidden (obsolete)
Comment 7 raal 2022-07-30 14:01:48 UTC
No repro with Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: fe2d59a0730e60c0196baa46af12440afd343878
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded
Comment 8 Buovjaga 2023-01-25 13:42:06 UTC
(In reply to Dmitry from comment #4)
> found a new way to reproduce bug:
> 
> 1.make a writer file in odt (1.3 extended)
> 2.write a formula
> 3.try to edit in visual mode
> 4.try to copy an object and paste
> 5.edit pasted formula
> 6.if it's OLE error on double-click on one of others formulas, it's that bug
> (or save and re-open a file)

I tried this with your good file and the other formulas are not lost. I did not understand it first, but visual editing means you focus the cursor inside the formula object itself.

Arch Linux 64-bit, X11
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 4172fcb7514ff8a9e9740ff0939e9a2f611edbce
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 25 January 2023

Set to NEEDINFO.
Change back to UNCONFIRMED, if the problem persists. Change to RESOLVED WORKSFORME, if the problem went away.
Comment 9 QA Administrators 2023-07-25 03:16:17 UTC Comment hidden (obsolete)
Comment 10 QA Administrators 2023-08-25 03:05:43 UTC Comment hidden (obsolete)
Comment 11 Łukasz 2024-03-21 11:21:41 UTC
Same problem, Debian 12 using 24.2.0.3 release in Polish on KDE. It's relatively hard to reproduce, but the Math component on it's own also fails to save .odt files. Seems to be file manipulation issue regarding formula editor component. If any further information is needed, please update the thread.
Comment 12 Buovjaga 2024-03-21 15:30:24 UTC
(In reply to Łukasz from comment #11)
> Same problem, Debian 12 using 24.2.0.3 release in Polish on KDE. It's
> relatively hard to reproduce, but the Math component on it's own also fails
> to save .odt files. Seems to be file manipulation issue regarding formula
> editor component. If any further information is needed, please update the
> thread.

You say it's hard to reproduce, but it would be good to have steps for how it can happen.
Comment 13 Łukasz 2024-03-21 15:52:50 UTC
(In reply to Buovjaga from comment #12)
> (In reply to Łukasz from comment #11)
> > Same problem, Debian 12 using 24.2.0.3 release in Polish on KDE. It's
> > relatively hard to reproduce, but the Math component on it's own also fails
> > to save .odt files. Seems to be file manipulation issue regarding formula
> > editor component. If any further information is needed, please update the
> > thread.
> 
> You say it's hard to reproduce, but it would be good to have steps for how
> it can happen.

Currently it's almost permament on my system, by which I mean I am usually unable to save any files using formula editor. Same thing goes for the OLE objects in Writer, as long as the file I'm editing is opened I can see the equations, but saved file lacks the embedded objects. I tried resetting the suite to default settings, opening in safe mode, installing Flatpak package and try using that: same result. It seems to happen at random, sometimes it works when, for example, I put machine to sleep and then wake it back up, but reboot doesn't usually fix the issue. The only clue is that when standalone Math window fails to save a file I get the following error in the logs:

kf.kio.core: Malformed JSON protocol file for protocol: "trash" , number of the ExtraNames fields should match the number of ExtraTypes fields