Bug 144118 - FILEOPEN: Unable to open .odt, .ods, .odp files
Summary: FILEOPEN: Unable to open .odt, .ods, .odp files
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.2.0.4 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-27 07:14 UTC by lostbits
Modified: 2022-05-19 12:58 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 lostbits 2021-08-27 07:14:24 UTC
Description:
Failure to open any file.


Steps to Reproduce:
1.executed any of load <odt, ods, odg> against the appropriate document type
2.All fail to load - immediately
3.Execute load for any document
  a. On load a message prompt asks if an untitled file is to be reloaded.
  b. Pressing "Discard" produces a blank screen which must be aborted by the OS
  c. Pressing Start then finish causes an immediate exit

Actual Results:
See above.

Expected Results:
To load the document and begin editing


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Win 7-64
Version: 7.2.0.4 (x64) / LibreOffice Community
Build ID: 85f04e9f809797b8199d13c421bd8a2b025d52b5
CPU threads: 8; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

Diagnostic Messages:
====>.odg
  PYTHONHOME = 'C:\Program Files\LibreOffice\program\python-core-3.8.8'
  PYTHONPATH = 'C:\Program Files\LibreOffice\program\python-core-3.8.8\lib;C:\Program Files\LibreOffice\program\python-core-3.8.8\lib\site-packages;C:\Program Files\LibreOffice\program'
  program name = 'python'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = 'C:\\Program Files\\LibreOffice\\program\\soffice.bin'
  sys.base_prefix = 'C:\\Program Files\\LibreOffice\\program\\python-core-3.8.8'
  sys.base_exec_prefix = 'C:\\Program Files\\LibreOffice\\program\\python-core-3.8.8'
  sys.executable = 'C:\\Program Files\\LibreOffice\\program\\soffice.bin'
  sys.prefix = 'C:\\Program Files\\LibreOffice\\program\\python-core-3.8.8'
  sys.exec_prefix = 'C:\\Program Files\\LibreOffice\\program\\python-core-3.8.8'
  sys.path = [
    'C:\\Program Files\\LibreOffice\\program\\python-core-3.8.8\\lib',
    'C:\\Program Files\\LibreOffice\\program\\python-core-3.8.8\\lib\\site-packages',
    'C:\\Program Files\\LibreOffice\\program',
    'C:\\Program Files\\LibreOffice\\program\\python38.zip',
    'C:\\Program Files\\LibreOffice\\program\\python-core-3.8.8\\DLLs',
    'C:\\Program Files\\LibreOffice\\program\\python-core-3.8.8\\lib',
    'C:\\Program Files\\LibreOffice\\program',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00000914 (most recent call first):
<no Python frame>

====>.ods
  PYTHONHOME = 'C:\Program Files\LibreOffice\program\python-core-3.8.8'
  PYTHONPATH = 'C:\Program Files\LibreOffice\program\python-core-3.8.8\lib;C:\Program Files\LibreOffice\program\python-core-3.8.8\lib\site-packages;C:\Program Files\LibreOffice\program'
  program name = 'python'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = 'C:\\Program Files\\LibreOffice\\program\\soffice.bin'
  sys.base_prefix = 'C:\\Program Files\\LibreOffice\\program\\python-core-3.8.8'
  sys.base_exec_prefix = 'C:\\Program Files\\LibreOffice\\program\\python-core-3.8.8'
  sys.executable = 'C:\\Program Files\\LibreOffice\\program\\soffice.bin'
  sys.prefix = 'C:\\Program Files\\LibreOffice\\program\\python-core-3.8.8'
  sys.exec_prefix = 'C:\\Program Files\\LibreOffice\\program\\python-core-3.8.8'
  sys.path = [
    'C:\\Program Files\\LibreOffice\\program\\python-core-3.8.8\\lib',
    'C:\\Program Files\\LibreOffice\\program\\python-core-3.8.8\\lib\\site-packages',
    'C:\\Program Files\\LibreOffice\\program',
    'C:\\Program Files\\LibreOffice\\program\\python38.zip',
    'C:\\Program Files\\LibreOffice\\program\\python-core-3.8.8\\DLLs',
    'C:\\Program Files\\LibreOffice\\program\\python-core-3.8.8\\lib',
    'C:\\Program Files\\LibreOffice\\program',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00001280 (most recent call first):
<no Python frame>

====>.odt
<unknown>
Comment 1 Roman Kuznetsov 2021-08-27 08:09:16 UTC
do you have some installed Python extensions in LibreOffice?

Please try reset your User profile and delete all user extensions using Safe mode dialog from menu Help->Restart in Safe mode
Comment 2 lostbits 2021-08-27 16:09:15 UTC
As far as I know, I do not have any User (Python) Extensions. But I do seem to have a DMath option. I don't know if this an extension or part of the normal distribution. Sigh. About 10-years ago I tried to do something with DMath and some other math extensions. Could this be the issue?

I have done the following:
[1] Help->Restart in Safe Mode
    a. Initially, I was able to load .odt, .ods, and .odg files.
    b. Tools->Options->Advances and the system crashed. Unable to restart.
[2] Downloaded and reinstalled 7.2.04
    a. I was able to load .odt, .ods, and .odg files.
    b. "Recent Files" correctly showed the loaded files.
    c. I was able to scan (arrow down key) all options in Tools->Options.

It appears to work but, there is a "Help->Restart in Safe Mode" but not "Help->Restart in Unsafe Mode". How do I return to normal mode to see if the issues has resolved?

If the problem reoccurs in "Unsafe" mode, how can I isolate the issue further; to a Python extension or other.

PS: A superficial look seems to say "Great Job", indeed, outstanding!
Comment 3 QA Administrators 2021-08-28 03:55:14 UTC Comment hidden (obsolete)
Comment 4 Buovjaga 2022-05-19 12:58:31 UTC
(In reply to lostbits from comment #2)
> As far as I know, I do not have any User (Python) Extensions. But I do seem
> to have a DMath option. I don't know if this an extension or part of the
> normal distribution. Sigh. About 10-years ago I tried to do something with
> DMath and some other math extensions. Could this be the issue?
> 
> I have done the following:
> [1] Help->Restart in Safe Mode
>     a. Initially, I was able to load .odt, .ods, and .odg files.
>     b. Tools->Options->Advances and the system crashed. Unable to restart.
> [2] Downloaded and reinstalled 7.2.04
>     a. I was able to load .odt, .ods, and .odg files.
>     b. "Recent Files" correctly showed the loaded files.
>     c. I was able to scan (arrow down key) all options in Tools->Options.
> 
> It appears to work but, there is a "Help->Restart in Safe Mode" but not
> "Help->Restart in Unsafe Mode". How do I return to normal mode to see if the
> issues has resolved?

You return to normal mode just by closing LibreOffice and running it normally. Safe mode is an exceptional mode.

> If the problem reoccurs in "Unsafe" mode, how can I isolate the issue
> further; to a Python extension or other.

Regarding isolation, possibly by moving the extensions directory out from your user profile:
https://wiki.documentfoundation.org/UserProfile#User_profile_content

If you won't miss any customisations and extensions, you can remove the user profile completely to have a new one generated. You can also do it by restarting into Safe Mode and in the dialog, selecting Reset to factory settings - Reset entire user profile.

Let's close as it seems to be related to profile issues.