Bug 151089 - Formula with underbrace blocks slide display (when the formula contains more than 17 characters) (Cairo & FreeType?)
Summary: Formula with underbrace blocks slide display (when the formula contains more ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
7.3.5.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Formula
  Show dependency treegraph
 
Reported: 2022-09-20 15:09 UTC by Dominique
Modified: 2023-04-03 21:00 UTC (History)
3 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 Dominique 2022-09-20 15:09:52 UTC
Description:
Problem with math formula

LibreOffice 7.3.5.2
Linux 5.15 (Xubuntu 22.04.1)

On libreoffice impress, some formula with underbrace block libreoffice

Examples:

The two following formula works fine:
color green{ {vec d = -(Ze² vec E_0 over {m_e ω²}) } underbrace {toto}}
color green{ {vec d = cos[ωt] } underbrace {toto}}

The following one fails and block libreoffice in diaporama mode. Unpredictable graphic behaviour in edition mode, have to close libreoffice.
color green{ {vec d = -(Ze² vec E_0 over {m_e ω²}) cos[ωt] } underbrace {toto}}

The following formula works fine:
color green{ { aaaaaaaaaaaaaaaaa } underbrace {toto}}

The following one fails and block libreoffice in diaporama mode. Unpredictable graphic behaviour in edition mode, have to close libreoffice.
color green{ { aaaaaaaaaaaaaaaaaa } underbrace {toto}}

The formula that do not work on linux work well on Libreoffice 7.3.5.2 running on Mac OS X 11.6.8

Steps to Reproduce:
1. open impress on a new document
2. insert / object / object formula
3. type: color green{ {vec d = -(Ze² vec E_0 over {m_e ω²}) cos[ωt] } underbrace {toto}}
4. go back to the slide

Actual Results:
Impossible to continue to work with libreoffice. One have to quit and restart.

Expected Results:
Display the formula


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
The problem only occurs on Linux (Xubuntu 22.04.1, tested on two computers) with 7.3.5.2 version of libreoffice.
Works fine with the same libreoffice version on Mac OS X 11.6.8
Comment 1 Rafael Lima 2022-09-20 18:11:12 UTC
Not repro with

Version: 7.3.6.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 12; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 1:7.3.6-0ubuntu0.22.04.1
Calc: threaded

The formula works as expected in Linux. Is it maybe a MacOS-only issue?
Comment 2 V Stuart Foote 2022-09-21 11:19:08 UTC
no issue on Windows builds recent master
Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: a3bbdfab809609bec3475613a918eda699fbdc29
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 3 Dominique 2022-09-21 11:59:10 UTC
Dear Bugzilla staff,

Thanks for your quick reply. The problem I have is on Linux, not on Mac OS (it works on Mac OS with the same libreoffice version):

Detailed version info (it differs from the one you have tested):

Version: 7.3.5.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 6; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-US (fr_FR.UTF-8); UI: fr-FR
Ubuntu package version: 1:7.3.5-0ubuntu0.22.04.1
Calc: threaded

May be I should update, but I am using the latest update available with ubuntu.

Thanks a lot in advance for your help,

Best
Dominique
Comment 4 Rafael Lima 2022-09-21 14:13:46 UTC
(In reply to Dominique from comment #3)
> May be I should update, but I am using the latest update available with
> ubuntu.

The version you're using is recent enough.

The problem is that I cannot reproduce the bug. I'm on Kubuntu 22.04 and I tested both with kf5 and gtk3, but the formulas are inserted as expected and when I return to the slide, everything is fine.

Let's wait and see if anyone else can reproduce this issue.

Do you have another PC to test this bug?
Comment 5 Jean-Baptiste Faure 2022-09-30 15:30:17 UTC
Not reproducible for me with Version: 7.4.3.0.0+ / LibreOffice Community
Build ID: 316549de11552a6e719b3d7231fcc4adbfda27f3
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Ubuntu_20.04_x86-64
Calc: threaded

Best regards. JBF
Comment 6 Buovjaga 2023-02-15 14:24:43 UTC
I reproduce a non-catastrophic result on my main system Arch Linux. The slide is not shown, the screen is black. 

This seems to be about some change in our dependencies because I can not reproduce in a container with Fedora 30 testing 7.3, 7.4, 7.5. I see these warnings in the console of my debug build:

warn:vcl:102291:102291:vcl/unx/generic/gdi/cairotextrender.cxx:391: rendering text failed with stretch ratio of: 65, error occurred in libfreetype
warn:vcl:102291:102291:vcl/unx/generic/gdi/cairotextrender.cxx:391: rendering text failed with stretch ratio of: 10, error occurred in libfreetype
warn:canvas.cairo:102291:102291:canvas/source/cairo/cairo_canvashelper.cxx:1196: cairo_paint() failed: error occurred in libfreetype
warn:canvas.cairo:102291:102291:canvas/source/cairo/cairo_canvashelper.cxx:1196: cairo_paint() failed: error occurred in libfreetype
warn:vcl:102291:102291:vcl/unx/generic/gdi/cairotextrender.cxx:391: rendering text failed with stretch ratio of: 65, error occurred in libfreetype
warn:vcl:102291:102291:vcl/unx/generic/gdi/cairotextrender.cxx:391: rendering text failed with stretch ratio of: 10, error occurred in libfreetype

Arch Linux 64-bit, X11
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 9ee1b714c13db308c199172ffa0199405ca3d9c3
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 14 February 2023

Arch Linux 64-bit, X11
Version: 7.5.0.3 (X86_64) / LibreOffice Community
Build ID: 50(Build:3)
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
7.5.0-1
Calc: threaded