Bug#1039906: libreoffice: FTBFS on riscv64: uitest throws "index out of range"
Hi, Am 10.07.23 um 22:45 schrieb Rene Engelhard: [build UIT] cui_tabpages [...] Tests run: 2 Tests failed: 0 Tests errors: 0 Tests skipped: 0 That said, before that a make uicheck in cui or a make uicheck toplevel gets: [build ECH] CustomTarget/instsetoo_native/setup/setuprc /bin/sh: 1: git: not found [build ECH] CustomTarget/instsetoo_native/setup/versionrc /bin/sh: 1: git: not found [build LOC] top level modules: libreoffice [build CUS] instsetoo_native/setup [build PKG] instsetoo_native_setup [build BIN] instsetoo_native [build UIT] cui_dialogs [build UIT] cui_tabpages [build UIT] conditional_format testSvxCharEffectsPage (chardlg.Test.testSvxCharEffectsPage) ... testThemePage (themepage.Test.testThemePage) ... OfficeConnection: connecting to: uno:pipe,name=pytest60b76514-1f69-11ee-832a-70b3d592f466;urp;StarOffice.ComponentContext NoConnectException: sleeping... ERROR testSvxCharEffectsPageTheme (chardlg.Test.testSvxCharEffectsPageTheme) ... OfficeConnection: connecting to: uno:pipe,name=pytest61580f0a-1f69-11ee-832a-70b3d592f466;urp;StarOffice.ComponentContext NoConnectException: sleeping... ERROR testSvxCharEffectsPageWriter (chardlg.Test.testSvxCharEffectsPageWriter) ... OfficeConnection: connecting to: uno:pipe,name=pytest61f5ecac-1f69-11ee-832a-70b3d592f466;urp;StarOffice.ComponentContext NoConnectException: sleeping... ERROR testSvxCharEffectsPageWriterAutomatic (chardlg.Test.testSvxCharEffectsPageWriterAutomatic) ... OfficeConnection: connecting to: uno:pipe,name=pytest62935cda-1f69-11ee-832a-70b3d592f466;urp;StarOffice.ComponentContext NoConnectException: sleeping... ERROR test_tdf145978 (macroselectordlg.tdf145978.test_tdf145978) ... OfficeConnection: connecting to: uno:pipe,name=pytest6330c6c8-1f69-11ee-832a-70b3d592f466;urp;StarOffice.ComponentContext NoConnectException: sleeping... ERROR testGetFormat (pastedlg.Test.testGetFormat) ... OfficeConnection: connecting to: uno:pipe,name=pytest63ce3dea-1f69-11ee-832a-70b3d592f466;urp;StarOffice.ComponentContext NoConnectException: sleeping... ERROR == ERROR: testSvxCharEffectsPage (chardlg.Test.testSvxCharEffectsPage) -- Traceback (most recent call last): File "/home/rene/libreoffice-7.5.5~rc1/uitest/uitest/framework.py", line 25, in setUp self.connection.setUp() File "/home/rene/libreoffice-7.5.5~rc1/uitest/libreoffice/connection.py", line 175, in setUp conn.setUp() File "/home/rene/libreoffice-7.5.5~rc1/uitest/libreoffice/connection.py", line 56, in setUp self.xContext = self.connect(socket) File "/home/rene/libreoffice-7.5.5~rc1/uitest/libreoffice/connection.py", line 103, in connect raise Exception("soffice has stopped.") Exception: soffice has stopped. == ERROR: testSvxCharEffectsPageTheme (chardlg.Test.testSvxCharEffectsPageTheme) -- Traceback (most recent call last): File "/home/rene/libreoffice-7.5.5~rc1/uitest/uitest/framework.py", line 25, in setUp self.connection.setUp() File "/home/rene/libreoffice-7.5.5~rc1/uitest/libreoffice/connection.py", line 175, in setUp conn.setUp() File "/home/rene/libreoffice-7.5.5~rc1/uitest/libreoffice/connection.py", line 56, in setUp self.xContext = self.connect(socket) File "/home/rene/libreoffice-7.5.5~rc1/uitest/libreoffice/connection.py", line 103, in connect raise Exception("soffice has stopped.") Exception: soffice has stopped. == ERROR: testSvxCharEffectsPageWriter (chardlg.Test.testSvxCharEffectsPageWriter) -- Traceback (most recent call last): File "/home/rene/libreoffice-7.5.5~rc1/uitest/uitest/framework.py", line 25, in setUp self.connection.setUp() File "/home/rene/libreoffice-7.5.5~rc1/uitest/libreoffice/connection.py", line 175, in setUp conn.setUp() File "/home/rene/libreoffice-7.5.5~rc1/uitest/libreoffice/connection.py", line 56, in setUp self.xContext = self.connect(socket) File "/home/rene/libreoffice-7.5.5~rc1/uitest/libreoffice/connection.py", line 103, in connect raise Exception("soffice has stopped.") Exception: soffice has stopped. [...] so it's at least better than before (and this bug is fixed) but still it has problems :) (The UITests fwiw are not ran anymore on riscv64 per default) Regards, Rene
Bug#1039906: libreoffice: FTBFS on riscv64: uitest throws "index out of range"
Hi, forgot one sentence. Am 10.07.23 um 22:45 schrieb Rene Engelhard: So I had the idea to try a export DEB_BUILD_OPTIONS="noopt" build (resulting into -O0) and it looks better: So I guess I'll workaround this by building with -O0. (riscv64 isn't alone there, see https://salsa.debian.org/libreoffice-team/libreoffice/libreoffice/-/blob/master/rules#L746 (upto line 771) Regards, Rene
Bug#1039906: libreoffice: FTBFS on riscv64: uitest throws "index out of range"
tag 1039906 - moreinfo thanks Hi, Am 29.06.23 um 17:29 schrieb Rene Engelhard: It seems that the exception only throws in current Debian package. If I build LibreOffice (both 7.6 and 7.5 version) with external tarballs and upstream compiler flags, see below (that means, I pass parameters to autogen.sh as less as possible), this bug disappears. Therefore maybe some system-internal component are not configured correctly. > [...] It occurred to me that dpkg-buildflags forces -O2 whereas LO does rene@frodo:~/LibreOffice/git/libreoffice-7-6$ cat solenv/gbuild/platform/LINUX_RISCV64_GCC.mk # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- # # This file is part of the LibreOffice project. # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # #please make generic modifications to unxgcc.mk or linux.mk gb_COMPILEROPTFLAGS := -Os include $(GBUILDDIR)/platform/linux.mk # vim: set noet sw=4: rene@frodo:~/LibreOffice/git/libreoffice-7-6$ which probably was cargo-culted over when porting from other solenv/platform/*.mk, but anyways :) So I had the idea to try a export DEB_BUILD_OPTIONS="noopt" build (resulting into -O0) and it looks better: rene@debian-riscv64-porterbox-01 ~/libreoffice-7.5.5~rc1/cui % make UITest_cui_tabpages [build UIT] cui_tabpages S=/home/rene/libreoffice-7.5.5~rc1 && I=$S/instdir && W=$S/workdir && rm -rf $W/UITest/cui_tabpages/ && mkdir -p $W/UITest/cui_tabpages//user/user && cp $S/qadevOOo/qa/registrymodifications.xcu $W/UITest/cui_tabpages//user/user/ && rm -fr $W/UITest/cui_tabpages/done.core && mkdir -p $W/UITest/cui_tabpages/user/ && mkdir $W/UITest/cui_tabpages/done.core && cd $W/UITest/cui_tabpages/done.core && ( TEST_LIB=$W/LinkTarget/Library/libtest.so URE_BOOTSTRAP=vnd.sun.star.pathname:$I/program/fundamentalrc PYTHONPATH="$S/uitest:$S/unotest/source/python:$I/program:$S/cui/qa/uitest/tabpages/" TestUserDir="file://$W/UITest/cui_tabpages/" PYTHONDONTWRITEBYTECODE=0 MAX_CONCURRENCY=4 MOZILLA_CERTIFICATE_FOLDER=dbm: SAL_DISABLE_SYNCHRONOUS_PRINTER_DETECTION=1 SAL_USE_VCLPLUGIN=svp LIBO_LANG=C /usr/bin/python3 $S/uitest/test_main.py --soffice="path:$I/program/soffice" --userdir=file://$W/UITest/cui_tabpages/user --dir=$S/cui/qa/uitest/tabpages/ 2>&1) testThemePage (themepage.Test.testThemePage) ... OfficeConnection: connecting to: uno:pipe,name=pyteste5c58cc0-1f61-11ee-8c20-70b3d592f466;urp;StarOffice.ComponentContext NoConnectException: sleeping... NoConnectException: sleeping... NoConnectException: sleeping... NoConnectException: sleeping... NoConnectException: sleeping... NoConnectException: sleeping... NoConnectException: sleeping... NoConnectException: sleeping... NoConnectException: sleeping... NoConnectException: sleeping... NoConnectException: sleeping... NoConnectException: sleeping... NoConnectException: sleeping... NoConnectException: sleeping... NoConnectException: sleeping... NoConnectException: sleeping... NoConnectException: sleeping... NoConnectException: sleeping... NoConnectException: sleeping... NoConnectException: sleeping... ['OnNew'] OnCreate ['OnNew'] OnTitleChanged ['OnNew'] OnModifyChanged ['OnNew'] OnTitleChanged ['OnNew'] OnModifyChanged ['OnNew'] OnTitleChanged ['OnNew'] OnModifyChanged ['OnNew'] OnTitleChanged ['OnNew'] OnModifyChanged ['OnNew'] OnTitleChanged ['OnNew'] OnFocus ['OnNew'] OnViewCreated ['OnNew'] OnModeChanged ['OnNew'] DialogExecute ['DialogClosed'] OnModeChanged ['OnNew'] OnModeChanged ['OnNew'] DialogClosed ['OnNew'] OnTitleChanged ['OnNew'] OnModifyChanged ['DialogExecute'] OnModeChanged ['OnNew'] OnModeChanged ['OnNew'] DialogExecute ['DialogClosed'] OnModeChanged ['DialogExecute'] OnModeChanged ['OnNew'] OnModeChanged ['DialogExecute'] DialogClosed ['OnNew'] DialogClosed ['OnNew'] OnTitleChanged ['OnNew'] OnViewClosed ['OnNew'] OnUnload ['OnNew'] OnUnfocus Execution time for themepage.Test.testThemePage: 20.341 at ./framework/source/helper/ocomponentenumeration.cxx:83 tearDown: calling terminate()... ...done ok testSvxColorTabPageTheme (tpcolor.Test.testSvxColorTabPageTheme) ... OfficeConnection: connecting to: uno:pipe,name=pytestfe6faaa8-1f61-11ee-8c20-70b3d592f466;urp;StarOffice.ComponentContext NoConnectException: sleeping... NoConnectException: sleeping... NoConnectException: sleeping... NoConnectException: sleeping... NoConnectException: sleeping... NoConnectException: sleeping... ['OnNew'] OnCreate ['OnNew'] OnTitleChanged ['OnNew'] OnModifyChanged ['OnNew'] OnTitleChanged ['OnNew'] OnModifyChanged ['OnNew'] OnTitleChanged ['OnNew'] OnModifyChanged ['OnNew'] OnTitleChanged ['OnNew'] OnModifyChanged ['OnNew'] OnTitleChanged ['OnNew'] OnFocus ['OnNew'] OnViewCreated ['OnNew'] OnModeChanged ['OnNew'] DialogExecute ['DialogClosed'] OnModeChanged ['OnNew'] OnModeChanged ['OnNew'] DialogClosed ['OnNew'] OnTitleChanged
Bug#1039906: libreoffice: FTBFS on riscv64: uitest throws "index out of range"
Hi, Am 29.06.23 um 17:29 schrieb Rene Engelhard: Though that does not really matter, see [1]. We are supposed not to use Forgot to add that. https://www.debian.org/doc/debian-policy/ch-source.html#embedded-code-copies Regards, Rene
Bug#1039906: libreoffice: FTBFS on riscv64: uitest throws "index out of range"
tag 1039906 + moreinfo found 1039906 4:7.5.4-1 forwarded 1039906 https://bugs.documentfoundation.org/show_bug.cgi?id=155937 thanks Almost all the uitest cases throws such exception: My gut feeling points to python. I mean it's not really test specific but on "Almost all the uitest" (which all are python). ERROR: testThemePage (themepage.Test.testThemePage) -- Traceback (most recent call last): File "/<>/cui/qa/uitest/tabpages/themepage.py", line 19, in testThemePage with self.ui_test.create_doc_in_start_center("impress") as component: File "/usr/lib/python3.11/contextlib.py", line 144, in __exit__ next(self.gen) File "/<>/uitest/uitest/test.py", line 195, in create_doc_in_start_center self.close_doc() File "/<>/uitest/uitest/test.py", line 221, in close_doc frames[0].activate() ~~^^^ IndexError: index out of range I know, that's why I wrote https://lists.debian.org/debian-riscv/2023/06/msg0.html in the first place This exception is always throwed when closing the doc window. As I described in bugzilla[1], the bug should be located between c++ and python environment. Which is the bridges. Or python itself. I think. It seems that the exception only throws in current Debian package. If I build LibreOffice (both 7.6 and 7.5 version) with external tarballs (that means, I pass parameters to autogen.sh as less as possible), this bug disappears. Therefore maybe some system-internal component are not configured correctly. For reference: Which exact options? Though that does not really matter, see [1]. We are supposed not to use some random copies of libraries. Here in this case they also just build it using non-default build systems, thus even skipping their testsuite. (Which I or Debian or the respective upstream then fixed up) Anyway, even then it does not make sense at all to ship a obsolete (3.8!) python version since then anything using pyUNO then would need to build with that python, too. And there's stuff in Debian using pyUNO. I am building a debug version of LibreOffice with sbuild to debug uitest. Yes, please. Or try with a newer python? Unfortunately LibreOffice is not yet ready for python 3.12... Regards, Rene
Bug#1039906: libreoffice: FTBFS on riscv64: uitest throws "index out of range"
Source: libreoffice Version: 4:7.5.4-3 Severity: normal Tags: ftbfs User: debian-ri...@lists.debian.org Usertags: riscv64 X-Debbugs-Cc: debian-ri...@lists.debian.org Greetings, Almost all the uitest cases throws such exception: ERROR: testThemePage (themepage.Test.testThemePage) -- Traceback (most recent call last): File "/<>/cui/qa/uitest/tabpages/themepage.py", line 19, in testThemePage with self.ui_test.create_doc_in_start_center("impress") as component: File "/usr/lib/python3.11/contextlib.py", line 144, in __exit__ next(self.gen) File "/<>/uitest/uitest/test.py", line 195, in create_doc_in_start_center self.close_doc() File "/<>/uitest/uitest/test.py", line 221, in close_doc frames[0].activate() ~~^^^ IndexError: index out of range This exception is always throwed when closing the doc window. As I described in bugzilla[1], the bug should be located between c++ and python environment. It seems that the exception only throws in current Debian package. If I build LibreOffice (both 7.6 and 7.5 version) with external tarballs (that means, I pass parameters to autogen.sh as less as possible), this bug disappears. Therefore maybe some system-internal component are not configured correctly. I am building a debug version of LibreOffice with sbuild to debug uitest. From, Sakura286. [1] https://bugs.documentfoundation.org/show_bug.cgi?id=155937