Build of master fails pdfExport unit test

Marc timepilot3000 at gmail.com
Mon Jul 7 22:32:07 UTC 2025


I'm building LibreOffice master (commit 4092e92f787f) on Windows 10 using
Visual Studio 2019.
Normal build succeeds and runs, but unit test vcl_pdfexport fails. There's
1,300 lines of warnings in the log but no error cause listed:

[build CUT] vcl_pdfexport
... [1300 lines omitted] ...
[_RUN_____] `anonymous namespace'::testTdf66597_2::TestBody
warn:vcl:18372:12828:vcl/win/window/salframe.cxx:1072:
WinSalFrame::SetIcon(): Could not load large icon !
warn:vcl:18372:12828:vcl/win/window/salframe.cxx:1073:
WinSalFrame::SetIcon(): Could not load small icon !

Error: a unit test failed, please do one of:
make CppunitTest_vcl_pdfexport CPPUNITTRACE=TRUE # which is a shortcut for
the following line
make CppunitTest_vcl_pdfexport
CPPUNITTRACE="'C:/PROGRA~2/MIB055~1/2019/COMMUN~1/Common7/IDE/devenv.exe'
/debugexe" # for interactive debugging in Visual Studio
make CppunitTest_vcl_pdfexport CPPUNITTRACE="drmemory -free_max_frames 20"
# for memory checking (install Dr.Memory first, and put it to your PATH)

You can limit the execution to just one particular test by:

make CppunitTest_vcl_pdfexport CPPUNIT_TEST_NAME="testXYZ" ...above
mentioned params...

make[1]: ***
[C:/cygwin/home/Marc/lode/dev/core/solenv/gbuild/CppunitTest.mk:130:
C:/cygwin/home/Marc/lode/dev/core/workdir/CppunitTest/vcl_pdfexport.test]
Error 1
make: *** [Makefile:178: CppunitTest_vcl_pdfexport] Error 2

Debugging in VS shows a crash from a NULL pointer in
vcl\qa\cppunit\pdfexport\pdfexport.cxx: 1720. In the previous line
  pObject->Lookup("BaseFont"_ostr)
fails because there's no "BaseFont" element, resulting in pName = NULL,
then the crash in 1720. I don't have any local changes, and the unit test
uses a file from the repo "vcl\qa\cppunit\pdfexport\data\tdf66597-2.odt".

Any ideas how to troubleshoot this?

Thanks,
Marc Mondesir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20250707/3475607c/attachment.htm>


More information about the LibreOffice mailing list