You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2015/11/23 18:27:05 UTC

[Issue 126682] New: After inserting picture from file, after save, within an hour, the graphic is gone

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

          Issue ID: 126682
        Issue Type: DEFECT
           Summary: After inserting picture from file, after save, within
                    an hour, the graphic is gone
           Product: Writer
           Version: 4.1.2
          Hardware: PC
                OS: Windows 10
            Status: UNCONFIRMED
          Severity: Major
          Priority: P5 (lowest)
         Component: editing
          Assignee: issues@openoffice.apache.org
          Reporter: raschultz@cox.net

Created attachment 85149
  --> https://bz.apache.org/ooo/attachment.cgi?id=85149&action=edit
Errors shown

I use the insert picture from file command and after saving (.odt) then, about
an hour later, looking back at my document, the photo is missing but place
holder is still there. Error says "Graphic Cannot Be Displayed" or "Read
Error". Nothing else has changed, the graphic is still in the same directory,
etc. I have tried different file extensions (.gif, .png, .jpg, .bmp) and same
thing happens to each one of them.

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

[Issue 126682] After inserting picture from file, after save, within an hour, the graphic is gone

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126682

--- Comment #9 from John <jo...@yahoo.co.uk> ---
This "fault" can always be reproduced by:

1  Open a .odt file containing one image
2  Wait until the image is flushed from memory (Tools > Options > Memory ...)
3  Navigate to the Temp folder defined in Tools > Options > Paths
4  Find the temp folder being used - it will have a name of the form
sv4890tv.tmp
5  When the image is flushed to the folder - it will be a name like
sv48gg75.tmp - delete the temporary file
6  Note how the document still shows the image.
7  Scroll the image off screen.  Scroll back.  Note the image is replaced by
Error Message and frame as in the image posted by the OP. 
8  File > Save.  File > Open.  Note how the error message is gone and there is
no image stored in the .odt file \Pictures folder.

The questions are:

1  Why does Writer use a generally available folder on the PC accessible to any
application for these temporary files?  Surely it would be better to use a
temporary folder in the AOO User Profile where files will be safe from
accidental deletion.  Note that some disk cleaning utilities delete *.* from
the temporary folder, some only delted files aged over 24 hours.

2  What is deleting temporary image files from the "available to anyone on the
PC" temporary folder?  

3  Why does Writer not mark these temporary IMAGE files as WRITE PROTECT or
OPEN IN AOO to prevent them being deleted?

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

[Issue 126682] After inserting picture from file, after save, within an hour, the graphic is gone

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126682

oooforum <oo...@free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |oooforum@free.fr
         Resolution|---                         |NOT_AN_ISSUE
             Status|UNCONFIRMED                 |RESOLVED
           Severity|Major                       |Normal

--- Comment #1 from oooforum <oo...@free.fr> ---
With your screenshot, we saw the problem but we cannot reproduce.
Please attach a sample file and a provide a step-by-step procedure.

Once all of this is done, please set the bug back to UNCONFIRMED and we will
attempt to reproduce the issue.

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

[Issue 126682] After inserting picture from file, after save, within an hour, the graphic is gone

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126682

--- Comment #3 from RS <ra...@cox.net> ---
Created attachment 85156
  --> https://bz.apache.org/ooo/attachment.cgi?id=85156&action=edit
Attached is the graphic that goes into this placeholder

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

[Issue 126682] After inserting picture from file, after save, within an hour, the graphic is gone

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126682

Em <eb...@my.fit.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebroom2014@my.fit.edu

--- Comment #6 from Em <eb...@my.fit.edu> ---
I could not confirm this bug. Here is my attempted replication.

Configuration:
I used a Windows 10 PC, using the same 4.1.2 version of OpenOffice Writer.
I used the sample file attached.
I also used the graphic that was attached.
Under Tools > Options > OpenOffice Writer > General > Update "On Request" is
checked.

Steps:
1. I opened the sample test document.
2. I saved the sample test document in a new location, different than where the
graphic was located but on the same C:/ drive.
3. I used Insert > Picture > From File to insert the sample graphic in both the
upper left corner and in the middle of the document. The same places that the
error occurred in the "Errors shown" attachment. The "Link" box when inserting
was not checked. (Note: I did not save the document after the pictures were
inserted)
4. I left the computer on for one hour, not touching the Writer at all during
this time, leaving it on full screen. 
5. I checked an hour later and the image was still there. I then proceeded to
leave the computer on for one more hour without changing anything and the image
was still there.

Variations:
I tried again to replicate the bug, using the exact same steps except I had the
Writer running in the background, minimized, as I did other tasks on the
computer. The image was not broken here either.
I tried once more to replicate the bug with the same steps (1-5), but this time
saving the document after I had inserted the pictures. This, too, failed to
replicate.

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

[Issue 126682] After inserting picture from file, after save, within an hour, the graphic is gone

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126682

RS <ra...@cox.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|NOT_AN_ISSUE                |---

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

[Issue 126682] After inserting picture from file, after save, within an hour, the graphic is gone

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126682

RS <ra...@cox.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |raschultz@cox.net

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

[Issue 126682] After inserting picture from file, after save, within an hour, the graphic is gone

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126682

John <jo...@yahoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |john.ha24@yahoo.co.uk

--- Comment #7 from John <jo...@yahoo.co.uk> ---
This is a common fault reported on the forum - search with lost images etc, and
you will get many posts including Images disappeared again today at
https://forum.openoffice.org/en/forum/viewtopic.php?f=7&t=80925.

I have done some analysis of the problem as a forum volunteer and I believe it
may be related to the use of the generic (ie available to all including disk
cleaning utilities) C:\Users\John\AppData\Local\Temp\ folder for Writer
temporary files (Windows 7).

Writer creates a FOLDER with a name like ...\Temp\sv1kposb.tmp for its
temporary files, and places its temporary files in that folder.  Whereas the
temporary file for the .odt is protected by being set to OPEN, none of the tmp
files for the images are so protected.  All images can therefore be deleted by
any rogue application on the PC.

When the image temporary files are so deleted, the user gets the empty frames
plus error message.

Images are flushed from memory to the temporary folder after the time set in
Tools > Options > OpenOffice > Memory > Graphics cache ..., which is set to 10
minutes by default.

Some disk cleaning utilities will delete anything in
C:\Users\John\AppData\Local\Temp\ which is over 24 hours old - if you hibernate
a laptop with an open document the images become EXTREMELY vulnerable when
older than 24.

The other settings in Tools > Options > OpenOffice > Memory > Graphics cache
..., look very small for today's PCs - only 20 MB for graphics is very small. 
LibreOffice now defaults to 200 MB and I think even that could be sensibly
increased.

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

[Issue 126682] After inserting picture from file, after save, within an hour, the graphic is gone

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126682

--- Comment #10 from John <jo...@yahoo.co.uk> ---
4  Note that Writer marks the file in the temporary folder which contains the
text as OPEN IN AOO so if you do try to delete *.*, the text content is not
lost.  

I am sure this explains why images alone disappear and not text.

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

[Issue 126682] After inserting picture from file, after save, within an hour, the graphic is gone

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126682

orcmid <or...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |orcmid@apache.org

--- Comment #4 from orcmid <or...@apache.org> ---
(In reply to RS from comment #0)
> Created attachment 85149 [details]
> Errors shown
> 
> I use the insert picture from file command and after saving (.odt) then,
> about an hour later, looking back at my document, the photo is missing but
> place holder is still there. Error says "Graphic Cannot Be Displayed" or
> "Read Error". Nothing else has changed, the graphic is still in the same
> directory, etc. I have tried different file extensions (.gif, .png, .jpg,
> .bmp) and same thing happens to each one of them.

Some additional questions.

1. Is this problem new to 4.1.2?  If so, it may be related to a change that was
made concerning security vulnerabilities involving links to external files.

2. When you did insert from file, did you check the link box?  That is, the
image is kept external from the document and not embedded in the document?

3. When you say, "looking back at [your] document" do you mean a still-open
document or a re-opened document?

4. On your system, with a Writer document open, what do you have under Tools >
Options > OpenOffice Writer > General > Update?

ATTEMPTED REPRODUCTION

 a. I created an empty document using Apache OpenOffice 4.1.2 for Windows on
Windows 10 Pro.  Using Insert from File with the Link option, I inserted a PNG
from my Pictures library on my D:\ drive.  

 b. I saved the document in a different folder location also on my D:\ drive.

 c. I successfully re-opened the saved .ODT document and the correct image
appeared automatically.

 d. I inspected the .ODT package and confirmed that there is a relative link
from the document, where it was saved, to the picture, where it is located.  So
if either moves from their original relative folder locations when the ODT is
closed, the image will not be found the next time.  

 e. I am leaving the document open and waiting to see if anything happens.

 f. PS: I have Quickstarter turned off and my Graphics cache does removals
after 10 minutes, no backup copies, and 15 minutes for AutoRecovery.  On
Load/Save I have Save URLs relative to ... for both options.

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

[Issue 126682] After inserting picture from file, after save, within an hour, the graphic is gone

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126682

--- Comment #2 from RS <ra...@cox.net> ---
Created attachment 85155
  --> https://bz.apache.org/ooo/attachment.cgi?id=85155&action=edit
Attached is a sample file

I will attach 2 files, one the writer file, the other the graphic.
Happened again this morning 5 minutes ago.

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

[Issue 126682] After inserting picture from file, after save, within an hour, the graphic is gone

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126682

--- Comment #5 from RS <ra...@cox.net> ---
> Some additional questions.
> 
> 1. Is this problem new to 4.1.2?  If so, it may be related to a change that
> was made concerning security vulnerabilities involving links to external
> files.
>
Yes, I believe it started with this version.
In the past, I never had an issue with this happening.
> 
> 2. When you did insert from file, did you check the link box?  That is, the
> image is kept external from the document and not embedded in the document?
> 
Link Box is not checked
>
> 3. When you say, "looking back at [your] document" do you mean a still-open
> document or a re-opened document?
>
Already opened document. Not re-opened, although this will cause the same
issue.
> 
> 4. On your system, with a Writer document open, what do you have under Tools
> > Options > OpenOffice Writer > General > Update?
>
'On request' is checked. I'm sure that's a default?
> 
> ATTEMPTED REPRODUCTION
> 
>  a. I created an empty document using Apache OpenOffice 4.1.2 for Windows on
> Windows 10 Pro.  Using Insert from File with the Link option, I inserted a
> PNG from my Pictures library on my D:\ drive.  
> 
>  b. I saved the document in a different folder location also on my D:\ drive.
> 
>  c. I successfully re-opened the saved .ODT document and the correct image
> appeared automatically.
> 
>  d. I inspected the .ODT package and confirmed that there is a relative link
> from the document, where it was saved, to the picture, where it is located. 
> So if either moves from their original relative folder locations when the
> ODT is closed, the image will not be found the next time.  
> 
>  e. I am leaving the document open and waiting to see if anything happens.
> 
>  f. PS: I have Quickstarter turned off and my Graphics cache does removals
> after 10 minutes, no backup copies, and 15 minutes for AutoRecovery.  On
> Load/Save I have Save URLs relative to ... for both options.

Thank you

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

[Issue 126682] After inserting picture from file, after save, within an hour, the graphic is gone

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126682

ericamcard@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ericamcard@gmail.com

--- Comment #8 from ericamcard@gmail.com ---
I have not been able to acheive the same results

1. I installed Windows 10 
2. Opened 4.1.2 Open Office 
3. Went to Insert, picture, from file
4. Chose a photo, and open.
5. Save photo 
6. Close 
7. Wait 1 hour
8. Photo was still available.

I will retry with not closing, I will leave open and see if photo disappears.

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

[Issue 126682] After inserting picture from file, after save, within an hour, the graphic is gone

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126682

orcmid <or...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |CONFIRMED
     Ever confirmed|0                           |1

--- Comment #11 from orcmid <or...@apache.org> ---
(In reply to John from comment #9)
> This "fault" can always be reproduced by:
[ ... ]
> The questions are:
> 
> 1  Why does Writer use a generally available folder on the PC accessible to
> any application for these temporary files?  Surely it would be better to use
> a temporary folder in the AOO User Profile where files will be safe from
> accidental deletion.  Note that some disk cleaning utilities delete *.* from
> the temporary folder, some only deleted files aged over 24 hours.
> 
> 2  What is deleting temporary image files from the "available to anyone on
> the PC" temporary folder?  
> 
> 3  Why does Writer not mark these temporary IMAGE files as WRITE PROTECT or
> OPEN IN AOO to prevent them being deleted?

(In reply to John from comment #10)
> 4  Note that Writer marks the file in the temporary folder which contains
> the text as OPEN IN AOO so if you do try to delete *.*, the text content is
> not lost.  
> 
> I am sure this explains why images alone disappear and not text.

Thanks for the great forensic work, John.

This might not be the whole story, but arranging for temporary files to not be
deleted automatically may be very effective.  

Keeping very many files open might be an issue, but there may be a way to keep
the folder from being deleted until the application is ready to do so.

There are some edge cases that need to be looked into, such as the folder being
forgotten and not deleted as the result of a mishap.  We need to look into the
use of the user profile for this as an alternative, since it should be easier
to clean up any dangling residue from no-longer-open documents.

Thanks again.  I am going to mark this as confirmed even though we will need to
see if that is verifiable by the reporters after any remedy is released in a
future AOO version.

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