[Libreoffice-bugs] [Bug 131644] New: make CppunitTest_emfio_emf CPPUNIT_TEST_NAME=TestLinearGradient fails on Windows with UI scale 150%

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Mar 28 12:40:00 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=131644

            Bug ID: 131644
           Summary: make CppunitTest_emfio_emf
                    CPPUNIT_TEST_NAME=TestLinearGradient fails on Windows
                    with UI scale 150%
           Product: LibreOffice
           Version: 7.0.0.0.alpha0+ Master
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Keywords: bibisectNotNeeded, regression
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: mikekaganski at hotmail.com
                CC: gang65 at poczta.onet.pl

make CppunitTest_emfio_emf CPPUNIT_TEST_NAME=TestLinearGradient fails on
Windows with UI scale 150%.

> make CppunitTest_emfio_emf CPPUNIT_TEST_NAME=TestLinearGradient
> C:/cygwin/home/user/lode/opt/bin/make -j 4 -rs -f C:/cygwin/home/user/lode/dev/core/Makefile.gbuild CppunitTest_emfio_
> emf
> [CUT] emfio_emf
> warn:emfio:16536:21072:emfio/source/reader/emfreader.cxx:804:           unknown id: 0x50504e54
> warn:emfio:16536:21072:emfio/source/reader/emfreader.cxx:804:           unknown id: 0x50504e54
> C:/cygwin/home/user/lode/dev/core/test/source/xmltesttools.cxx:168:`anonymous namespace'::Test::TestLinearGradient
> equality assertion failed
> - Expected: m0 0.216110019646294h7615.75822989746v7610.21611001965h-7615.75822989746z
> - Actual  : m0 3805.32416502947h11423.6373448462v11415.3241650295h-11423.6373448462z
> - In <>, attribute 'path' of '/primitive2D/metafile/transform/mask/svglineargradient[1]/polypolygon' incorrect value.
> 
> `anonymous namespace'::Test::TestLinearGradient finished in: 91ms
> C:/cygwin/home/user/lode/dev/core/test/source/xmltesttools.cxx(168) : error : Assertion
> Test name: `anonymous namespace'::Test::TestLinearGradient
> equality assertion failed
> - Expected: m0 0.216110019646294h7615.75822989746v7610.21611001965h-7615.75822989746z
> - Actual  : m0 3805.32416502947h11423.6373448462v11415.3241650295h-11423.6373448462z
> - In <>, attribute 'path' of '/primitive2D/metafile/transform/mask/svglineargradient[1]/polypolygon' incorrect value.
> 
> Failures !!!
> Run: 1   Failure total: 1   Failures: 1   Errors: 0
> warn:fwk.desktop:16536:21072:framework/source/services/desktop.cxx:1065: Desktop disposed before terminating it
> warn:fwk.desktop:16536:21072:framework/source/services/desktop.cxx:179: Desktop not terminated before being destructed
> 
> Error: a unit test failed, please do one of:
> make CppunitTest_emfio_emf CPPUNITTRACE=TRUE # which is a shortcut for the following line
> make CppunitTest_emfio_emf CPPUNITTRACE="'C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/deve
> nv.exe' /debugexe" # for interactive debugging in Visual Studio
> make CppunitTest_emfio_emf CPPUNITTRACE="drmemory -free_max_frames 20" # for memory checking (install Dr.Memory first, a
> nd put it to your PATH)
> 
> You can limit the execution to just one particular test by:
> 
> make CppunitTest_emfio_emf CPPUNIT_TEST_NAME="testXYZ" ...above mentioned params...
> 
> make[1]: *** [C:/cygwin/home/user/lode/dev/core/solenv/gbuild/CppunitTest.mk:113: C:/cygwin/home/user/lode/dev/core/wo
> rkdir/CppunitTest/emfio_emf.test] Error 1
> make: *** [Makefile:166: CppunitTest_emfio_emf] Error 2

Regression after
https://git.libreoffice.org/core/+/1f540cc7613cdbc0048f4013efe43886d256f86b

Bartosz, do you have an idea how to exclude it from testing when DPI is not
default, or maybe pass some params to the function that will make gradient
handling DPI-independent?

(IMO each and every instance of DPI dependence that is not at the time of
actual screen output is a bug, so likely your test revealed an actual bug.)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200328/7e012d1a/attachment.htm>


More information about the Libreoffice-bugs mailing list