Bug 73292

Summary: FILESAVE: saving as .uot results in microscopic page size when re-opened (only when Inches used)
Product: LibreOffice Reporter: Jim Avera <jim.avera>
Component: filters and storageAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium CC: barta, momonasmon, mst.fdo
Version: 3.3.3 release   
Hardware: Other   
OS: All   
See Also: https://bugs.freedesktop.org/show_bug.cgi?id=50430
Whiteboard: BSA
i915 platform: i915 features:
Attachments: xx.uot - file which when opened you can't see any content
xx.doc - original content before save-as in Unified Office Format

Description Jim Avera 2014-01-05 01:23:50 UTC
Created attachment 91501 [details]
xx.uot - file which when opened you can't see any content

Problem description: If a text document is saved in Unified Office Format (.uot), then libreoffice can not open the resulting file; or rather it opens it but displays no text at all.

Steps to reproduce:
1. Create a writer document with a few words of text (or use the attached demo)
2. File->Save As -> Unified Office Format
3. File->Exit
4. lowrite <the create file.uot>

Current behavior:
A solidly-gray pane appears with rulers, but no document content

Expected behavior:
Content of the document would be accessible.

              
Operating System: Ubuntu
Version: 4.1.3.2 release
Comment 1 Jim Avera 2014-01-05 01:24:57 UTC
Created attachment 91502 [details]
xx.doc - original content before save-as in Unified Office Format
Comment 2 tommy27 2014-01-05 01:32:07 UTC
tested with LibO 4.1.4.2 under Win7 64bit

your test .uot document looks abnormal and matches your description, however I'm not able to reproduce your issue from scratch...

if I load the .doc test document and try to save it as .uot, the resulting file can be reopened with no issues in LibO.

maybe a Linux specific issue?
anyway I suggest to upgrade to 4.1.4.2 and tell us if bug is still present.
Comment 3 Jim Avera 2014-01-05 02:30:13 UTC
Hmm, maybe it is Linux-specific.  I tried LO 4.2.0.1 and the problem is the same.
Comment 4 Maxim Monastirsky 2014-01-05 12:00:23 UTC
I can confirm that it's Linux specific bug. A file created using the Linux version can't be opened even with the Windows version. But a file created using the Windows version can be opened even with the Linux version. So it's a bug in the saving procedure, not in opening. Tested with 4.1.4 under Ubuntu 13.10 and Windows 7. The test document is a new document with just "Hello World".
Comment 5 tommy27 2014-01-05 12:45:02 UTC
nice job Maxim
not it would be interesting to test Linux older LibO version to identify if the bug is a new regression or an old issue
Comment 6 Jim Avera 2014-01-06 06:36:20 UTC
LO 3.6.7.2 has the bug, so at least it isn't new in the 4.x series.
Comment 7 Maxim Monastirsky 2014-01-06 07:25:06 UTC
Seems like it's not Linux specific after all. I've compared the output from Win\Linux versions, and the settings of each version, and came to a conclusion that it depend on measurement unit that was used when saving (Tools->Options...->LibreOffice Writer->General->Measurement unit). When it set to Inch, the bug reproducible under Windows too, and when set to Centimeter it works under Linux too. (Initially I had Inch under Linux and Centimeter under Windows, due to different locale settings.)

@Jim: Can you also confirm that it works after setting to Centimeter?

(Also I changed the version to oldest known.)
Comment 8 tommy27 2014-01-06 08:29:13 UTC
good catch maxim, the inches thing is what trigger the bug

very old releases. reproducible at least in LibO 3.3.3 (but I suspect it has been there from 3.3.0)

the .uot file is not really empty... it's just it's page size which is turned  microscopic (0.2 x 0.2 inches) so you cannot see anything.

in LibO 3.3.3 you are able to temporarily restore normal page size with "Format/Page/Page/Height & Width) but when you close and reload, the page turn back to microcopic size

in LibO 4.1.4 if you load the microscopic .uot and hit "Format/Page" there is a crash.
Comment 9 tommy27 2014-01-06 08:38:46 UTC
(In reply to comment #8)
> ...
> in LibO 4.1.4 if you load the microscopic .uot and hit "Format/Page" there
> is a crash.

no "Format/Page" crash in 3.6.7
"Format/Page" crash presenti already in 4.0.4

not sure if I should file a separate bug report for this
Comment 10 tommy27 2014-01-06 08:42:35 UTC
added Writer expert to CC list.

@Micheal Stahl
most useful comments for you are Comment 0, Comment 7 and Comment 8
Comment 11 tommy27 2014-07-20 09:57:45 UTC
microscopic page loading and format page crash still present in 4.2.5.2 and 4.4.0.0.alpha0+
Build ID: b9dca968c6fd0ab5ca140c65b0e54d153cd34986
TinderBox: Win-x86@42, Branch:master, Time: 2014-07-18_22:51:20

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.