Bug 138110 - LibreOffice crashes on OpenSuse 15.1 with python-base-2.7.17-lp152.3.3.1
Summary: LibreOffice crashes on OpenSuse 15.1 with python-base-2.7.17-lp152.3.3.1
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.5.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-10 10:44 UTC by victor gabriel MARIAN
Modified: 2021-07-07 23:43 UTC (History)
2 users (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 victor gabriel MARIAN 2020-11-10 10:44:42 UTC
Description:
LibreOffice crashes when I open Writer. The message is: Due to an error, LibreOffice crashed. All the files you were working on will.....
I reinstalled without success. Reseting user profile and others in safe mode does not work.
I have OpenSuse Leap 15.1.

In terminal I become following message

Fatal Python error: Py_Initialize: Unable to get the locale encoding
  File "/usr/lib64/python/encodings/__init__.py", line 123
    raise CodecRegistryError,\
                            ^
SyntaxError: invalid syntax

Current thread 0x00007ffaefb03400 (most recent call first):
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.


Steps to Reproduce:
1.Open Libreoffice Writer
2.
3.

Actual Results:
Following message appears : Due to an error, LibreOffice crashed

Expected Results:
Opening LibreOffice Writer


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
On terminal I introduce
libreoffice --safe-mode

After I start in normal mode it appears:

Fatal Python error: Py_Initialize: Unable to get the locale encoding
  File "/usr/lib64/python/encodings/__init__.py", line 123
    raise CodecRegistryError,\
                            ^
SyntaxError: invalid syntax

Current thread 0x00007ffaefb03400 (most recent call first):
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
Comment 1 Xisco Faulí 2020-11-10 11:11:04 UTC
Thank you for reporting the bug.
it seems you're using an old version of LibreOffice.
Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Comment 2 [REDACTED] 2020-11-10 16:18:30 UTC
The message is thrown by a Python script which is part of package python-base-2.7.17-lp152.3.3.1.x86_64 (on openSUSE 15.2 - no sure about the version on openSUSE 15.1)

user@system:> rpm -qf /usr/lib64/python/encodings/__init__.py
python-base-2.7.17-lp152.3.3.1.x86_64

Hence it does not look like a problem with LibreOffice but on python-package provided by the distribution.


BTW: No repro on (all on OpenSUSE 15.2):

Version: 7.0.3.1, Build ID: d7547858d014d4cf69878db179d326fc3483e082
CPU threads: 8; OS: Linux 5.3; UI render: default; VCL: kf5
Locale: en-US (en_US.UTF-8); UI: en-US, Calc: threaded

Version: 6.4.7.2, Build ID: 639b8ac485750d5696d7590a72ef1b496725cfb5
CPU threads: 8; OS: Linux 5.3; UI render: default; VCL: kf5; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US, Calc: threaded

Version: 6.3.6.2, Build ID: 2196df99b074d8a661f4036fca8fa0cbfa33a497
CPU threads: 8; OS: Linux 5.3; UI render: default; VCL: kde5; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US, Calc: threaded
Comment 3 victor gabriel MARIAN 2020-11-11 13:36:18 UTC
Hello

The latest official LibreOffice for OpenSuse Leap 15.1 is 6.4.5.2.
I also added the http://download.opensuse.org/repositories/LibreOffice:/Factory/openSUSE_Leap_15.1/
repository.

I cannot install a newer version.

Kind regards
Victor MARIAN
Comment 4 victor gabriel MARIAN 2020-11-11 13:42:33 UTC
I also checked and python-base-2.7.17-lp152.3.3.1.x86_64 is installed and there is no other newer version on yast.
The version Leap 15.1 was obtained by upgrading from 15.0.
On another laptop with fresh install I don't have this problem.
I also did an upgrade from DVD today but without success.

Kind regards
Victor MARIAN
Comment 5 QA Administrators 2020-11-12 04:54:34 UTC Comment hidden (obsolete)
Comment 6 Kevin Suo 2020-11-13 01:03:38 UTC
We certainly need someone from opensuse to investigate this issue.
Comment 7 Kevin Suo 2020-11-13 01:10:35 UTC
Victor MARIAN: May I ask do you have a reason to stick on openSuse Leap 15.1 without upgrading to 15.2?

Python 2.7 is End of Life anyway.
Comment 8 Xisco Faulí 2021-07-07 10:53:25 UTC
Hello Victor,
Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Comment 9 victor gabriel MARIAN 2021-07-07 19:09:29 UTC
I upgraded OpenSuse and now everything is fine.