https://bz.apache.org/ooo/show_bug.cgi?id=126869

--- Comment #43 from John <john.h...@yahoo.co.uk> ---
Created attachment 87007
  --> https://bz.apache.org/ooo/attachment.cgi?id=87007&action=edit
File written when PC is powered off during the Save

I can confirm AOO does not prevent a shutdown taking place while AOO is writing
a file.  

I can confirm that AOO not issue a warning that AOO has not finished writing a 
file it is saving. (4.1.9, Windows 10).

I used a USB attached diskette drive and a 1.4MB diskette so I could slow down
the write process. I needed to format the diskette with a full, not quick,
format before the tests would work.  I then saved a 700kB fred.odt (text only,
no images) to the diskette. 

1.  The writing to the diskette only seems to start after the green bar has
finished crossing the screen.  The diskette carries on clicking for tens of
seconds until the entire file is written. During this time I was locked out of
AOO and I could not close AOO with the X at top right in the Title Bar.

Conclusion:  This is safe as the file cannot be damaged but counter-intuitive
that the green bar has stopped.

2.  I started a save and, while the file was being written, I went Start >
Power > Shutdown.  I was expecting AOO to prevent the shutdown, or at least to
give an error message that AOO was writing and asking if the shutdown should
continue, but I got nothing and the PC powered OFF. 

When I powered ON, the file was showing in Explorer to be 400kB, not 700kB
showing the save had not completed.  I opened it with 7-ZIP and it reported

Name                Size    Packed size

Configurations2      0         2
Thumbnails       5,021     5,021
content.xml          0         0
mimetype            49        39

Note that the total is only just over 5kB despite being reported as 400kB.  I
was able to extract each file so the ZIP container was well formed.  I have
uploaded this fred.odt file - note it reports as 400kB but is only about 5kB.

Conclusions: 

1.  Should AOO prevent the shutdown power off?  Should AOO give a warning to
the user and prevent the shutdown?

2.  I do not know at what stage in the Save process I issued the shutdown
command.  Note how a well formed ZIP file was created so this is not the "My
file is full of #####" problem.  It suggests that I need to do more testing
where I issue shutdown earlier to see if I can catch it.

Visual observation of File Explorer never showed the file to be 700kB in size
suggesting that when a file is full of null characters it has some other cause. 

I will repeat the test with a laptop and investigate hibernate and sleep and
earlier shutdowns, and possible differences between Save and Save As.

-- 
You are receiving this mail because:
You are the assignee for the issue.

Reply via email to