Bug 150280 - After pasting shape 3x, save, close and reopen, middle copy has no fill
Summary: After pasting shape 3x, save, close and reopen, middle copy has no fill
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.5.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Authors
  Show dependency treegraph
 
Reported: 2022-08-06 01:06 UTC by Hildo
Modified: 2023-08-30 22:03 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Test file (43.62 KB, application/vnd.oasis.opendocument.text)
2022-08-06 01:06 UTC, Hildo
Details
pdf conversion after close and reopen (26.69 KB, application/pdf)
2022-08-06 01:16 UTC, Hildo
Details
pdf conversion after close and reopen (26.69 KB, application/pdf)
2022-08-06 01:22 UTC, Hildo
Details
pdf conversion BEFORE close and reopen (26.69 KB, application/pdf)
2022-08-06 01:25 UTC, Hildo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hildo 2022-08-06 01:06:43 UTC
Created attachment 181631 [details]
Test file

The attached file have the same image add several times, by copy and past of the first added one.
The image is a simple space for student write a chart in the laboratory report...
See that Figure 1 e 3 are OK bu Figure 2 does not appear. They are all the same image and was added by one time, after a close and reopen the file the Figure 2 was "hidden" (it still used the correct space in the page but is a "empty image").
Comment 1 Hildo 2022-08-06 01:16:05 UTC
Created attachment 181632 [details]
pdf conversion after close and reopen
Comment 2 Hildo 2022-08-06 01:22:59 UTC
Created attachment 181633 [details]
pdf conversion after close and reopen
Comment 3 Hildo 2022-08-06 01:25:47 UTC
Created attachment 181634 [details]
pdf conversion BEFORE close and reopen
Comment 4 BogdanB 2022-08-07 20:14:13 UTC
When I open this file with  dbg version I get this messages.: 
Version 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 641d92a73e5b3d0e062e16ed4b42236e1a4796a5
CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded 


warn:stoc:19200:19200:stoc/source/javaloader/javaloader.cxx:381: getJavaVM returned null
warn:sfx.dialog:19200:19200:sfx2/source/dialog/filtergrouping.cxx:359: already have an element for WordPerfect
warn:sfx.dialog:19200:19200:sfx2/source/dialog/filtergrouping.cxx:359: already have an element for writerweb8_writer_template
warn:sfx.dialog:19200:19200:sfx2/source/dialog/filtergrouping.cxx:359: already have an element for writerglobal8
warn:xmloff:19200:19200:xmloff/source/draw/shapeimport.cxx:354: unknown attribute urn:oasis:names:tc:opendocument:xmlns:text:1.0 text:anchor-type value=char
warn:xmloff:19200:19200:xmloff/source/draw/ximpshap.cxx:687: DBG_UNHANDLED_EXCEPTION in SetStyle
    when: finding style for shape exception: com.sun.star.container.NoSuchElementException message: "at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/sw/source/core/unocore/unostyle.cxx:506"
warn:sw.core:19200:19200:sw/source/core/doc/textboxhelper.cxx:917: SwTextBoxHelper::syncProperty: unhandled which-id: 123 (member-id: 0)
warn:sw.core:19200:19200:sw/source/core/doc/textboxhelper.cxx:917: SwTextBoxHelper::syncProperty: unhandled which-id: 22428 (member-id: 0)
warn:sw.core:19200:19200:sw/source/core/doc/textboxhelper.cxx:917: SwTextBoxHelper::syncProperty: unhandled which-id: 92 (member-id: 4)
warn:sw.core:19200:19200:sw/source/core/doc/textboxhelper.cxx:917: SwTextBoxHelper::syncProperty: unhandled which-id: 123 (member-id: 0)
warn:sw.core:19200:19200:sw/source/core/doc/textboxhelper.cxx:759: SwTextBoxHelper::syncProperty: unhandled member-id: 3 (which-id: 103)
warn:sw.core:19200:19200:sw/source/core/doc/textboxhelper.cxx:917: SwTextBoxHelper::syncProperty: unhandled which-id: 101 (member-id: 1)
warn:sw.core:19200:19200:sw/source/core/doc/textboxhelper.cxx:917: SwTextBoxHelper::syncProperty: unhandled which-id: 101 (member-id: 2)
warn:sw.core:19200:19200:sw/source/core/doc/textboxhelper.cxx:917: SwTextBoxHelper::syncProperty: unhandled which-id: 101 (member-id: 0)
warn:sw.core:19200:19200:sw/source/core/doc/textboxhelper.cxx:917: SwTextBoxHelper::syncProperty: unhandled which-id: 92 (member-id: 3)
warn:sw.core:19200:19200:sw/source/core/doc/textboxhelper.cxx:910: SwTextBoxHelper::syncProperty: unhandled member-id: 0 (which-id: 125)
warn:sw.core:19200:19200:sw/source/core/docnode/node.cxx:2002: Wrong cond collection, skipping check of Cond Colls.
warn:sw.core:19200:19200:sw/source/core/docnode/node.cxx:2002: Wrong cond collection, skipping check of Cond Colls.
warn:xmloff:19200:19200:xmloff/source/draw/shapeimport.cxx:354: unknown attribute urn:oasis:names:tc:opendocument:xmlns:text:1.0 text:anchor-type value=as-char
warn:xmloff:19200:19200:xmloff/source/draw/shapeimport.cxx:346: unknown element urn:oasis:names:tc:opendocument:xmlns:text:1.0 text:soft-page-break
warn:sw.core:19200:19200:sw/source/core/docnode/node.cxx:2002: Wrong cond collection, skipping check of Cond Colls.
warn:sw.core:19200:19200:sw/source/core/doc/textboxhelper.cxx:1820: SwTextBoxNode::GetTextBox(): Not found!
warn:sw.core:19200:19200:sw/source/core/doc/textboxhelper.cxx:1820: SwTextBoxNode::GetTextBox(): Not found!
warn:sw.core:19200:19200:sw/source/core/doc/textboxhelper.cxx:1820: SwTextBoxNode::GetTextBox(): Not found!
warn:sw.core:19200:19200:sw/source/core/doc/textboxhelper.cxx:1820: SwTextBoxNode::GetTextBox(): Not found!
warn:sw.core:19200:19200:sw/source/core/doc/textboxhelper.cxx:1132: SwTextBoxHelper::syncFlyFrameAttr: The anchor of the shape different from the textframe!
warn:sw.core:19200:19200:sw/source/core/doc/textboxhelper.cxx:1132: SwTextBoxHelper::syncFlyFrameAttr: The anchor of the shape different from the textframe!
warn:sw.core:19200:19200:sw/source/core/doc/textboxhelper.cxx:1132: SwTextBoxHelper::syncFlyFrameAttr: The anchor of the shape different from the textframe!
warn:sw.core:19200:19200:sw/source/core/doc/textboxhelper.cxx:1820: SwTextBoxNode::GetTextBox(): Not found!
warn:sw.core:19200:19200:sw/source/core/doc/textboxhelper.cxx:1820: SwTextBoxNode::GetTextBox(): Not found!
warn:sw.core:19200:19200:sw/source/core/doc/textboxhelper.cxx:1820: SwTextBoxNode::GetTextBox(): Not found!
warn:sw.core:19200:19200:sw/source/core/doc/textboxhelper.cxx:1132: SwTextBoxHelper::syncFlyFrameAttr: The anchor of the shape different from the textframe!
warn:sw.core:19200:19200:sw/source/core/doc/textboxhelper.cxx:1820: SwTextBoxNode::GetTextBox(): Not found!
warn:legacy.osl:19200:19200:sw/source/core/layout/anchoredobject.cxx:564: <SwAnchoredObject::GetObjRectWithSpaces> - cache for object rectangle inclusive spaces marked as valid, but it couldn't be. Missing invalidation of cache.
warn:stoc:19200:19200:stoc/source/javaloader/javaloader.cxx:381: getJavaVM returned null
warn:sw.core:19200:19200:sw/source/core/doc/textboxhelper.cxx:1132: SwTextBoxHelper::syncFlyFrameAttr: The anchor of the shape different from the textframe!
warn:sw.core:19200:19200:sw/source/core/doc/textboxhelper.cxx:1820: SwTextBoxNode::GetTextBox(): Not found!
warn:legacy.osl:19200:19200:sw/source/core/layout/anchoredobject.cxx:564: <SwAnchoredObject::GetObjRectWithSpaces> - cache for object rectangle inclusive spaces marked as valid, but it couldn't be. Missing invalidation of cache.
warn:sw.core:19200:19200:sw/source/core/doc/textboxhelper.cxx:1132: SwTextBoxHelper::syncFlyFrameAttr: The anchor of the shape different from the textframe!
warn:sw.core:19200:19200:sw/source/core/doc/textboxhelper.cxx:1820: SwTextBoxNode::GetTextBox(): Not found!
warn:legacy.osl:19200:19200:sw/source/core/layout/anchoredobject.cxx:564: <SwAnchoredObject::GetObjRectWithSpaces> - cache for object rectangle inclusive spaces marked as valid, but it couldn't be. Missing invalidation of cache.
Comment 5 BogdanB 2022-08-08 05:03:22 UTC
When I try to click on each shape in Navigator I get this messages

warn:stoc:3732:3732:stoc/source/javaloader/javaloader.cxx:381: getJavaVM returned null
warn:legacy.osl:3732:3732:sfx2/source/sidebar/DeckLayouter.cxx:493: OSL_ASSERT: nRemainingHeightToDistribute==0
warn:sfx.dialog:3732:3732:sfx2/source/dialog/filtergrouping.cxx:359: already have an element for WordPerfect
warn:sfx.dialog:3732:3732:sfx2/source/dialog/filtergrouping.cxx:359: already have an element for writerweb8_writer_template
warn:sfx.dialog:3732:3732:sfx2/source/dialog/filtergrouping.cxx:359: already have an element for writerglobal8
warn:xmloff:3732:3732:xmloff/source/draw/shapeimport.cxx:354: unknown attribute urn:oasis:names:tc:opendocument:xmlns:text:1.0 text:anchor-type value=char
warn:xmloff:3732:3732:xmloff/source/draw/ximpshap.cxx:687: DBG_UNHANDLED_EXCEPTION in SetStyle
    when: finding style for shape exception: com.sun.star.container.NoSuchElementException message: "at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/sw/source/core/unocore/unostyle.cxx:506"
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:917: SwTextBoxHelper::syncProperty: unhandled which-id: 123 (member-id: 0)
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:917: SwTextBoxHelper::syncProperty: unhandled which-id: 22428 (member-id: 0)
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:917: SwTextBoxHelper::syncProperty: unhandled which-id: 92 (member-id: 4)
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:917: SwTextBoxHelper::syncProperty: unhandled which-id: 123 (member-id: 0)
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:759: SwTextBoxHelper::syncProperty: unhandled member-id: 3 (which-id: 103)
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:917: SwTextBoxHelper::syncProperty: unhandled which-id: 101 (member-id: 1)
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:917: SwTextBoxHelper::syncProperty: unhandled which-id: 101 (member-id: 2)
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:917: SwTextBoxHelper::syncProperty: unhandled which-id: 101 (member-id: 0)
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:917: SwTextBoxHelper::syncProperty: unhandled which-id: 92 (member-id: 3)
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:910: SwTextBoxHelper::syncProperty: unhandled member-id: 0 (which-id: 125)
warn:sw.core:3732:3732:sw/source/core/docnode/node.cxx:2002: Wrong cond collection, skipping check of Cond Colls.
warn:sw.core:3732:3732:sw/source/core/docnode/node.cxx:2002: Wrong cond collection, skipping check of Cond Colls.
warn:xmloff:3732:3732:xmloff/source/draw/shapeimport.cxx:354: unknown attribute urn:oasis:names:tc:opendocument:xmlns:text:1.0 text:anchor-type value=as-char
warn:xmloff:3732:3732:xmloff/source/draw/shapeimport.cxx:346: unknown element urn:oasis:names:tc:opendocument:xmlns:text:1.0 text:soft-page-break
warn:sw.core:3732:3732:sw/source/core/docnode/node.cxx:2002: Wrong cond collection, skipping check of Cond Colls.
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:1820: SwTextBoxNode::GetTextBox(): Not found!
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:1820: SwTextBoxNode::GetTextBox(): Not found!
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:1820: SwTextBoxNode::GetTextBox(): Not found!
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:1820: SwTextBoxNode::GetTextBox(): Not found!
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:1132: SwTextBoxHelper::syncFlyFrameAttr: The anchor of the shape different from the textframe!
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:1132: SwTextBoxHelper::syncFlyFrameAttr: The anchor of the shape different from the textframe!
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:1132: SwTextBoxHelper::syncFlyFrameAttr: The anchor of the shape different from the textframe!
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:1820: SwTextBoxNode::GetTextBox(): Not found!
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:1820: SwTextBoxNode::GetTextBox(): Not found!
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:1820: SwTextBoxNode::GetTextBox(): Not found!
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:1132: SwTextBoxHelper::syncFlyFrameAttr: The anchor of the shape different from the textframe!
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:1820: SwTextBoxNode::GetTextBox(): Not found!
warn:legacy.osl:3732:3732:sw/source/core/layout/anchoredobject.cxx:564: <SwAnchoredObject::GetObjRectWithSpaces> - cache for object rectangle inclusive spaces marked as valid, but it couldn't be. Missing invalidation of cache.
warn:stoc:3732:3732:stoc/source/javaloader/javaloader.cxx:381: getJavaVM returned null
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:1132: SwTextBoxHelper::syncFlyFrameAttr: The anchor of the shape different from the textframe!
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:1820: SwTextBoxNode::GetTextBox(): Not found!
warn:legacy.osl:3732:3732:sw/source/core/layout/anchoredobject.cxx:564: <SwAnchoredObject::GetObjRectWithSpaces> - cache for object rectangle inclusive spaces marked as valid, but it couldn't be. Missing invalidation of cache.
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:1132: SwTextBoxHelper::syncFlyFrameAttr: The anchor of the shape different from the textframe!
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:1820: SwTextBoxNode::GetTextBox(): Not found!
warn:legacy.osl:3732:3732:sw/source/core/layout/anchoredobject.cxx:564: <SwAnchoredObject::GetObjRectWithSpaces> - cache for object rectangle inclusive spaces marked as valid, but it couldn't be. Missing invalidation of cache.
warn:legacy.osl:3732:3732:sw/source/core/doc/doclay.cxx:1600: Found a FlySection but not a Format!
warn:legacy.osl:3732:3732:sw/source/core/doc/doclay.cxx:1600: Found a FlySection but not a Format!
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:1132: SwTextBoxHelper::syncFlyFrameAttr: The anchor of the shape different from the textframe!
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:1820: SwTextBoxNode::GetTextBox(): Not found!
warn:legacy.osl:3732:3732:sw/source/core/layout/anchoredobject.cxx:564: <SwAnchoredObject::GetObjRectWithSpaces> - cache for object rectangle inclusive spaces marked as valid, but it couldn't be. Missing invalidation of cache.
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:1132: SwTextBoxHelper::syncFlyFrameAttr: The anchor of the shape different from the textframe!
warn:sw.core:3732:3732:sw/source/core/doc/textboxhelper.cxx:1820: SwTextBoxNode::GetTextBox(): Not found!
warn:legacy.osl:3732:3732:sw/source/core/layout/anchoredobject.cxx:564: <SwAnchoredObject::GetObjRectWithSpaces> - cache for object rectangle inclusive spaces marked as valid, but it couldn't be. Missing invalidation of cache.
warn:legacy.osl:3732:3732:sfx2/source/sidebar/DeckLayouter.cxx:493: OSL_ASSERT: nRemainingHeightToDistribute==0
warn:legacy.osl:3732:3732:sw/source/core/doc/doclay.cxx:1600: Found a FlySection but not a Format!
warn:legacy.osl:3732:3732:sw/source/core/doc/doclay.cxx:1600: Found a FlySection but not a Format!
Comment 6 Scott Clewell 2022-08-11 17:00:48 UTC
Hello Hildo,
I see don't see image #2 using:
Version: 7.3.2.2 (x86) / LibreOffice Community
Build ID: 49f2b1bff42cfccbd8f788c8dc32c1c309559be0
CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

To reproduce the bug action could you please attach the file before the second image is hidden and maybe clearer steps to reproduce?

I'm confused how Android editor comes into play here.
Comment 7 Hildo 2022-08-22 16:00:33 UTC
All images are copy of the first one.

I can't send a ODT file "before the issue" this happens on the save-close-reopen process.

The attached PDF was from before and after close, save and reopen the ODT file.

To reproduce, I just had the original ODT file with the image, I copied and pasted the image with the legend several times.
Comment 8 Scott Clewell 2022-08-22 21:59:26 UTC
I understand. I've added more of your details in the bug summary and placed this back to "UNCONFIRMED" so others may help out.
Thank you
Comment 9 Stéphane Guillou (stragu) 2023-08-29 10:04:20 UTC
I am setting the component from Android Editor to Writer because I doubt it was done on Android.

The example file has shapes, not images. The middle shape ("Shape 1" in the Navigator) does exit but displays no fill. Looking at the area settings of those shapes, the fill is set to "none", so I am unsure where the pattern comes from or was created.

I could not reproduce the issue with:

Version: 7.6.0.2 (X86_64) / LibreOffice Community
Build ID: 41d6f628ba3f046f16b5fa9fa8db8d4c2ab3b582
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

....nor with 7.3.7.2. I copied and pasted the first shape several times, saved and reloaded the document. All were still displayed as the original.

Hildo:
- can you still reproduce with a recent version of LibreOffice? Please test the recently released version 7.6.
- can you tell us how those shapes were created in the first place?
Comment 10 Hildo 2023-08-30 21:39:17 UTC
No. I can not reproduce the error anymore.
Comment 11 Stéphane Guillou (stragu) 2023-08-30 22:03:39 UTC
Ok, let's close as "works for me" then.
The sample document is interesting though, might be worth opening a new report related to the missing shape style and related error messages Bogdan shared.
Any info about how those shapes were created would be helpful.
Thanks!