Bug 155779 - Startup errors when starting with empty profile
Summary: Startup errors when starting with empty profile
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: framework (show other bugs)
Version:
(earliest affected)
7.6.0.0 alpha1+
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-11 23:13 UTC by Jim Avera
Modified: 2023-11-07 00:29 UTC (History)
1 user (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 2023-06-11 23:13:27 UTC
Description:
Beginning some time after 7.5.3, if LibreOffice began throwing some error/warnings to the terminal when started with a new,empty profile:

warn:desktop.app:3811788:3811788:unotools/source/ucbhelper/localfilehelper.cxx:87: error removing directory file:///tmp/tprof/user/extensions
warn:opencl:3811804:3811804:desktop/source/app/opencl.cxx:206: Failed to initialize OpenCL for test

(/tmp/tprof is the new empty profile directory, specified as described at https://wiki.documentfoundation.org/UserProfile#Quick_test_for_corrupted_profiles:_use_a_temporary,_new_user_profile)

This occurs with 7.6.0.0alpha1 (an older master build) and today's master build (which is marked as v24.2.0.0.alpha0, strangely), but does not occur with 7.5.3 or 7.3.7.2, so it is probably a regression.

Steps to Reproduce:
1. rm -rf /tmp/tprof
2. mkdir /tmp/tprof
3. UserInstallation=file:///tmp/tprof /path/to/soffice

Actual Results:
Errors as shown above

Expected Results:
No output


Reproducible: Always


User Profile Reset: No

Additional Info:
.
Comment 1 Jim Avera 2023-06-12 00:09:29 UTC
Ok, it looks seriously broken, not just some warning noise.

Using arguments --convert-to ods file.csv it aborts with many errors when started with an empty profile.

Here is a shell script to reproduce (works with earlier versions):

#!/bin/sh
set -e -u

#soffice_path=/usr/bin/soffice
#soffice_path=/lotest/7.5.3/opt/libreoffice7.5/program/soffice
#soffice_path=/home/admin/lotest/7.6.0.0.alpha1/opt/libreofficedev7.6/program/soffice
soffice_path=/lotest/24.2.0.0.alpha0/opt/libreofficedev24.2/program/soffice

tdir=/tmp/test.dir; rm -rf $tdir; mkdir $tdir

# Set up a new empty LibreOffice profile
profdir=$tdir/newprofile; mkdir $profdir
uri="file://$profdir"

# Create test.csv
csvpath=$tdir/test.csv
echo "TitleA,Title B,Title C" >$csvpath
echo "100,200,300" >>$csvpath

# Import the csv into a spreadsheet
set -x
UserInstallation=$uri $soffice_path --convert-to ods --outdir $tdir $csvpath

--------RESULTS--------
warn:desktop.app:3828096:3828096:unotools/source/ucbhelper/localfilehelper.cxx:87: error removing directory file:///tmp/test.dir/newprofile/user/extensions
warn:opencl:3828113:3828113:desktop/source/app/opencl.cxx:206: Failed to initialize OpenCL for test
warn:legacy.tools:3828113:3828113:sfx2/source/appl/appuno.cxx:454: invalid type for Stream
convert /tmp/test.dir/test.csv as a Calc document -> /tmp/test.dir/test.ods using filter : calc8
warn:xmloff:3828113:3828113:xmloff/source/text/XMLTextListAutoStylePool.cxx:163: getStyleFamilies() from XModel failed for export!
warn:xmloff:3828113:3828113:xmloff/source/text/XMLTextListAutoStylePool.cxx:163: getStyleFamilies() from XModel failed for export!
warn:editeng:3828113:3828113:editeng/source/uno/unofield.cxx:375: Id service unknown: 5
warn:editeng:3828113:3828113:editeng/source/uno/unofield.cxx:375: Id service unknown: 2
warn:editeng:3828113:3828113:editeng/source/uno/unofield.cxx:375: Id service unknown: 5
warn:editeng:3828113:3828113:editeng/source/uno/unofield.cxx:375: Id service unknown: 10
warn:editeng:3828113:3828113:editeng/source/uno/unofield.cxx:375: Id service unknown: 2
warn:editeng:3828113:3828113:editeng/source/uno/unofield.cxx:375: Id service unknown: 3
warn:editeng:3828113:3828113:editeng/source/uno/unofield.cxx:375: Id service unknown: 5
warn:editeng:3828113:3828113:editeng/source/uno/unofield.cxx:375: Id service unknown: 2
warn:editeng:3828113:3828113:editeng/source/uno/unofield.cxx:375: Id service unknown: 5
warn:editeng:3828113:3828113:editeng/source/uno/unofield.cxx:375: Id service unknown: 10
warn:editeng:3828113:3828113:editeng/source/uno/unofield.cxx:375: Id service unknown: 2
warn:editeng:3828113:3828113:editeng/source/uno/unofield.cxx:375: Id service unknown: 3
warn:xmloff:3828113:3828113:xmloff/source/text/XMLTextListAutoStylePool.cxx:163: getStyleFamilies() from XModel failed for export!
warn:legacy.osl:3828113:3828113:sc/source/core/data/document.cxx:5606: Wrong index in AttrArray
warn:xmloff:3828113:3828113:xmloff/source/text/XMLTextListAutoStylePool.cxx:163: getStyleFamilies() from XModel failed for export!
warn:legacy.osl:3828113:3828113:xmloff/source/core/SettingsExportHelper.cxx:176: this type is not implemented now
Comment 2 Stéphane Guillou (stragu) 2023-10-30 23:33:51 UTC
I could not reproduce. A simple CSV was converted fine after deleting the user profile, using a recent trunk build:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 31fb3045dabdb27d913712f3abcade315e3ea9bd
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Warnings I get:

warn:legacy.tools:139875:139875:sfx2/source/appl/appuno.cxx:454: invalid type for Stream
convert /home/stragu/Downloads/acsv.csv as a Calc document -> /home/stragu/Downloads/acsv.ods using filter : calc8
warn:xmloff:139875:139875:xmloff/source/text/XMLTextListAutoStylePool.cxx:163: getStyleFamilies() from XModel failed for export!
warn:xmloff:139875:139875:xmloff/source/text/XMLTextListAutoStylePool.cxx:163: getStyleFamilies() from XModel failed for export!
warn:xmloff:139875:139875:xmloff/source/text/XMLTextListAutoStylePool.cxx:163: getStyleFamilies() from XModel failed for export!
warn:legacy.osl:139875:139875:sc/source/core/data/document.cxx:5504: Wrong index in AttrArray
warn:xmloff:139875:139875:xmloff/source/text/XMLTextListAutoStylePool.cxx:163: getStyleFamilies() from XModel failed for export!
warn:legacy.osl:139875:139875:xmloff/source/core/SettingsExportHelper.cxx:176: this type is not implemented now

No warnings in 7.5.7.1.

Can you still reproduce, Jim?
Comment 3 Jim Avera 2023-11-07 00:29:49 UTC
> Can you still reproduce, Jim?

No, the problem seems to be gone now.

Like Stéphane, it worked silently for me with 7.5.7.

However many warnings (errors?) occur with a later release, 7.6.3.0.0, although the conversion succeeded:

warn:opencl:556846:556846:desktop/source/app/opencl.cxx:206: Failed to initialize OpenCL for test
warn:legacy.tools:556846:556846:sfx2/source/appl/appuno.cxx:454: invalid type for Stream
convert /tmp/test.dir/test.csv as a Calc document -> /tmp/test.dir/test.ods using filter : calc8
warn:xmloff:556846:556846:xmloff/source/text/XMLTextListAutoStylePool.cxx:163: getStyleFamilies() from XModel failed for export!
warn:xmloff:556846:556846:xmloff/source/text/XMLTextListAutoStylePool.cxx:163: getStyleFamilies() from XModel failed for export!
warn:editeng:556846:556846:editeng/source/uno/unofield.cxx:375: Id service unknown: 5
[repeated many times with different Id numbers]
warn:xmloff:556846:556846:xmloff/source/text/XMLTextListAutoStylePool.cxx:163: getStyleFamilies() from XModel failed for export!
warn:legacy.osl:556846:556846:sc/source/core/data/document.cxx:5606: Wrong index in AttrArray
warn:xmloff:556846:556846:xmloff/source/text/XMLTextListAutoStylePool.cxx:163: getStyleFamilies() from XModel failed for export!
warn:legacy.osl:556846:556846:xmloff/source/core/SettingsExportHelper.cxx:176: this type is not implemented now


And with master downloaded today:

warn:opencl:556970:556970:desktop/source/app/opencl.cxx:206: Failed to initialize OpenCL for test
warn:legacy.tools:556970:556970:sfx2/source/appl/appuno.cxx:454: invalid type for Stream
convert /tmp/test.dir/test.csv as a Calc document -> /tmp/test.dir/test.ods using filter : calc8
warn:xmloff:556970:556970:xmloff/source/text/XMLTextListAutoStylePool.cxx:163: getStyleFamilies() from XModel failed for export!
warn:xmloff:556970:556970:xmloff/source/text/XMLTextListAutoStylePool.cxx:163: getStyleFamilies() from XModel failed for export!
warn:xmloff:556970:556970:xmloff/source/text/XMLTextListAutoStylePool.cxx:163: getStyleFamilies() from XModel failed for export!
warn:legacy.osl:556970:556970:sc/source/core/data/document.cxx:5504: Wrong index in AttrArray
warn:xmloff:556970:556970:xmloff/source/text/XMLTextListAutoStylePool.cxx:163: getStyleFamilies() from XModel failed for export!
warn:legacy.osl:556970:556970:xmloff/source/core/SettingsExportHelper.cxx:176: this type is not implemented now


I'll set this ticket to resolved WFM, but if the above messages indicate something specific to the CSV input filter, please re-open.