Bug 144113 - "Optimizing could fail with beziers!"
Summary: "Optimizing could fail with beziers!"
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.3.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 145171 (view as bug list)
Depends on:
Blocks: console-noise
  Show dependency treegraph
 
Reported: 2021-08-27 00:53 UTC by Jim Avera
Modified: 2024-09-24 05:42 UTC (History)
4 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 Jim Avera 2021-08-27 00:53:43 UTC
At startup, libreoffice always emits warnings like this:

  warn:legacy.tools:42390:42390:tools/source/generic/poly.cxx:1033: Optimizing could fail with beziers!

(repeated 7 times)

STEPS TO REPRODUCE:

1. /path/to/libreofficedev7.3/program/soffice --safe-mode

RESULTS:

Warnings on the terminal

EXPECTED RESULTS:

Clean terminal (nothing output unless user intervention is needed)


Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: 282b2d8bfd6fb16f58fb177910427b031dc80066
CPU threads: 12; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-08-26_09:43:29
Calc: threaded
Comment 1 Jean-Baptiste Faure 2021-10-22 14:09:54 UTC
Not reproducible for me with Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: 5ab21caf603ba0a1c95bbc94a29eebe3483d1599
CPU threads: 8; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: en-US
Ubuntu_20.04_x86-64
Calc: threaded

Did you reset the user profile? 
Have you deleted all lock files left over from a previous crash?

Status has been set to NEEDINFO, please set it back to UNCONFIRMED once requested information has been provided.

Best regards. JBF
Comment 2 Jim Avera 2021-10-22 17:54:58 UTC
@JBF  It's still happening for me using master build from 2021-10-14.

Maybe this depends on the specific graphic driver or hardware (?)  
I'm running xorg, not Wayland, in case that makes a difference.


> Did you reset the user profile? 

I thought that's what --safe-mode does, but to eliminate all doubt I completely removed $HOME/.config/libreofficedev and tried again.  I also removed all environment variables.  The commands were:

rm -rf $HOME/.config/libreofficedev
env -i DISPLAY=$DISPLAY \
/lotest/7.3.0.0.alpha0/opt/libreofficedev7.3/program/soffice --safe-mode

> Have you deleted all lock files left over from a previous crash?

Not sure where to look.  Can you point me to where lock files are stored?
Note that no specific document is being opened; LO is just started without arguments (or with only --safe-mode; I get the messages either way).

Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: c998691e22ceda15c89d55cf7005201f0392dadb
CPU threads: 12; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-10-14_11:54:20
Calc: threaded
Comment 3 Jim Avera 2021-10-22 18:05:42 UTC
I haven't compile LO myself in ages; but grepping the code found that this message comes from tools/source/generic/poly.cxx  

void Polygon::Optimize( PolyOptimizeFlags nOptimizeFlags )
{
    DBG_ASSERT( !mpImplPolygon->mxFlagAry, "Optimizing could fail with beziers!" );
    ...
}
Comment 4 Jim Avera 2021-10-30 22:30:56 UTC
I attached a backtrace with symbols (from my own build from git).

It's tricky to get -- a hang occurs if gdb is running in a window in the same X session (I had to run gdb with XAUTHORITY and DISPLAY set from a vt to get it).

#0  0x00007fffeeeba010 in tools::Polygon::Optimize(PolyOptimizeFlags)@plt () at /home/jima/src/libreoffice/instdir/program/libvcllo.so
#1  0x00007fffefa7e212 in vcl::test::(anonymous namespace)::drawPolygonOffset(OutputDevice&, tools::Rectangle const&, int, int) (rDevice=..., rRect=..., nOffset=2, nFix=0)
    at /home/jima/src/libreoffice/vcl/backendtest/outputdevice/polygon.cxx:30
#2  0x00007fffefa7e323 in vcl::test::OutputDeviceTestPolygon::setupRectangle(bool) (this=0x7fffffffd340, bEnableAA=false) at /home/jima/src/libreoffice/vcl/backendtest/outputdevice/polygon.cxx:44
#3  0x00007fffefa87999 in GraphicsRenderTests::testDrawRectWithPolygon() (this=0x7fffffffd660) at /home/jima/src/libreoffice/vcl/backendtest/GraphicsRenderTests.cxx:119
#4  0x00007fffefab3394 in GraphicsRenderTests::runALLTests() (this=0x7fffffffd660) at /home/jima/src/libreoffice/vcl/backendtest/GraphicsRenderTests.cxx:2023
#5  0x00007fffefab3f09 in GraphicsRenderTests::run(bool) (this=0x7fffffffd660, storeResultBitmap=false) at /home/jima/src/libreoffice/vcl/backendtest/GraphicsRenderTests.cxx:2167
#6  0x00007ffff7c46282 in desktop::(anonymous namespace)::runGraphicsRenderTests() () at /home/jima/src/libreoffice/desktop/source/app/app.cxx:349
#7  0x00007ffff7c4b157 in desktop::Desktop::Main() (this=0x7fffffffdbd0) at /home/jima/src/libreoffice/desktop/source/app/app.cxx:1565
#8  0x00007fffef876c35 in ImplSVMain() () at /home/jima/src/libreoffice/vcl/source/app/svmain.cxx:199
#9  0x00007fffef876d62 in SVMain() () at /home/jima/src/libreoffice/vcl/source/app/svmain.cxx:231
#10 0x00007ffff7cb0f67 in soffice_main() () at /home/jima/src/libreoffice/desktop/source/app/sofficemain.cxx:98
#11 0x00005555555549ed in sal_main () at /home/jima/src/libreoffice/desktop/source/app/main.c:49
#12 0x00005555555549cf in main (argc=2, argv=0x7fffffffdf48) at /home/jima/src/libreoffice/desktop/source/app/main.c:47
Comment 5 sdc.blanco 2023-12-10 23:33:14 UTC
*** Bug 145171 has been marked as a duplicate of this bug. ***
Comment 6 BogdanB 2024-06-11 18:59:33 UTC
Could someone retest it?
Comment 7 Chris Sherlock 2024-09-24 05:42:44 UTC
This was considered to be a bogus warning and removed by Tor in patch 9dd38a0b4021aa942196babdd6406691c1638a2a

https://git.libreoffice.org/core/+/9dd38a0b4021aa942196babdd6406691c1638a2a%5E%21/