Bug 140884 - LO fails to parse a <prop> node in an Addons.xcu file
Summary: LO fails to parse a <prop> node in an Addons.xcu file
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: console-noise
  Show dependency treegraph
 
Reported: 2021-03-08 14:19 UTC by Eyal Rozenberg
Modified: 2021-03-08 22:13 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Addons.xcu file triggering the messages (18.80 KB, application/xml)
2021-03-08 21:29 UTC, Eyal Rozenberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2021-03-08 14:19:32 UTC
When I start a recent daily build of LO, I get:

warn:configmgr:28259:28259:configmgr/source/xcuparser.cxx:159: bad set node <prop> member in "file:///home/eyalroz/.config/libreofficedev/4/user/uno_packages/cache/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/lu8080g1ofb.tmp/Addons.xcu"


on the console. I don't believe this is due to some add-on I installed myself, so - it's LO itself that's responsible for putting that Addons.xcu files there.

Thus - either the file format is fine, in which case there's a parsing bug; or the parse is fine, in which case LO is deploying an invalid file.

Version info:

Version: 7.2.0.0.alpha0+ / LibreOffice Community
Build ID: c1659be6ff0e0c91e0c7d1e6acb6ab18821e2bf7
CPU threads: 4; OS: Linux 5.9; UI render: default; VCL: gtk3
Locale: en-US (en_IL); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-03-02_06:18:34
Comment 1 Julien Nabet 2021-03-08 18:57:30 UTC
Could you give a try at https://wiki.documentfoundation.org/QA/FirstSteps#Corrupted_user_profile ?
Comment 2 Eyal Rozenberg 2021-03-08 20:38:06 UTC
(In reply to Julien Nabet from comment #1)
> Could you give a try at
> https://wiki.documentfoundation.org/QA/FirstSteps#Corrupted_user_profile ?

I might, but - I don't believe my profile is corrupted. LO works well enough. Would you like me to attach that file?
Comment 3 Eyal Rozenberg 2021-03-08 20:46:30 UTC
(In reply to Julien Nabet from comment #1)

I looked at the instructions, and they're just about using a new profile. But I see the bug with my current profile. If I remove the file, the bug will not manifest. So I don't see how that would help.
Comment 4 Maxim Monastirsky 2021-03-08 21:11:38 UTC
LO doesn't create Addons.xcu files on its own. This file is likely coming from an extension you tried to install, and it has a wrong format there.
Comment 5 Eyal Rozenberg 2021-03-08 21:27:26 UTC
(In reply to Maxim Monastirsky from comment #4)
> LO doesn't create Addons.xcu files on its own. This file is likely coming
> from an extension you tried to install, and it has a wrong format there.

But the error is not from a package, it's from the cache; plus, the "package" in question is:

com.sun.star.comp.deployment.configuration.PackageRegistryBackend

so AFAICT it doesn't come from a third-party source.
Comment 6 Eyal Rozenberg 2021-03-08 21:29:18 UTC
Created attachment 170352 [details]
Addons.xcu file triggering the messages
Comment 7 Maxim Monastirsky 2021-03-08 22:13:02 UTC
OK, so the extension in question is TexMaths 0.48.2. I downloaded it from https://extensions.libreoffice.org/en/extensions/show/texmaths-1, and could reproduce the same log. Try to disable this extension, and see how that warning goes away.

I looked at the Addons.xcu file of this extension, and it indeed has invalid format. It seems that this extension tries to keep working also with AOO, which changed how toolbars are defined in Addons.xcu, and there was a decision on the LO side to not follow this incompatible change. So LO is complaining about the AOO-specific definition that it doesn't understand.