Bug 148638 - Hangs when opening ODF documents associated with a printer which is remote and unreachable
Summary: Hangs when opening ODF documents associated with a printer which is remote an...
Status: RESOLVED DUPLICATE of bug 42673
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.2.6.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-17 19:25 UTC by lysathor
Modified: 2025-05-04 18:17 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot when LibreOffice hangs. (46.05 KB, image/png)
2022-04-17 19:27 UTC, lysathor
Details
meta data of the odg document (inside odg archive) (1.07 KB, text/xml)
2022-04-17 19:42 UTC, lysathor
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lysathor 2022-04-17 19:25:22 UTC
Description:
When I open an old odg document (stored 2020), LibreOffice hangs. 
When I open a document I stored recently with a not too old version, it works.

Steps to Reproduce:
1. Open old odg document (created 2020)




Actual Results:
LibreOffice hangs (window freezes)



Expected Results:
LibreOffice opens the documuments.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Same happens with latest 7.2.6 release.

I also have seen that error with a write document.
Comment 1 lysathor 2022-04-17 19:27:13 UTC
Created attachment 179629 [details]
Screenshot when LibreOffice hangs.
Comment 2 lysathor 2022-04-17 19:42:39 UTC
Created attachment 179630 [details]
meta data of the odg document (inside odg archive)

This file seems to contain info about the LibreOffice version used to create the document. It seems it was LibreOffice/6.4.1.2 Windows_X86_64.
Comment 3 lysathor 2022-04-17 21:23:25 UTC
I think I found the reason of the hang/freeze. Within the odg document there are sub-documents, e.g. settings.xml. In settings.xml there are printer settings. When I saved the document I used a printer that was connected over network two years ago. But that printer does not exist anymore when I now open the document. After manually removing the printer settings from the settings.xml I could open the odg file again.
I removed from settings.xml:
<config:config-item config:name="PrinterName" config:type="string">\\mycomputer\HP-LaserJet-1020</config:config-item>

So please consider how to handle such printer settings. I think it is not acceptable that old outdated printer settings make it impossible to open old documents!
Perhaps at least in "Failsafe mode" it makes sense to skip such error prone settings?


I tried with various LibreOffice versions, but with all of them the orginal document could not be opened:
6.4.1.2 (the version the document was created with)
6.4.7.2 (the latest 6.x version)
7.1.8.1 (the latest 7.1.x version)
7.2.6 (the latest 7.2.x version)
7.3.2 (the latest version)

I have seen similar behavior also for Write documents, therefore I am quite sure it affects all the document types. Therefore I changed the affected component to "LibreOffice".
Comment 4 Julien Nabet 2022-04-18 08:25:18 UTC
See https://bugs.documentfoundation.org/show_bug.cgi?id=42673#c44 for a workaround.

*** This bug has been marked as a duplicate of bug 42673 ***
Comment 5 Philippe Cloutier 2025-05-04 18:15:54 UTC
Thank you very much for your report
Can you reproduce this with LO 25.2? If so, which Windows version do you use? If it's easy, it would help to provide an example of an affected document, but this is likely a duplicate of ticket #42673.
Comment 6 Philippe Cloutier 2025-05-04 18:17:38 UTC
And how long are the hangs?