Bug 117865 - image caption disappears randomly when moving whole frame, reappears when switching focus
Summary: image caption disappears randomly when moving whole frame, reappears when swi...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.0.0.1 rc
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Caption Regress-Rotated-Images
  Show dependency treegraph
 
Reported: 2018-05-29 02:32 UTC by Stéphane Guillou (stragu)
Modified: 2022-03-04 14:01 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments
test writer file with blue shape to move around (32.42 KB, application/vnd.oasis.opendocument.text)
2018-05-29 02:35 UTC, Stéphane Guillou (stragu)
Details
caption visible (29.07 KB, image/png)
2018-05-29 02:36 UTC, Stéphane Guillou (stragu)
Details
caption disappeared (26.87 KB, image/png)
2018-05-29 02:36 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stéphane Guillou (stragu) 2018-05-29 02:32:25 UTC
Description:
An image caption placed above the object randomly disappears when moving the whole surrounding frame. The caption reappears after focusing a different window and focusing the LibreOffice window again

Steps to Reproduce:
1. Insert a picture (for example with the Gallery side menu)
2. Right click on picture, select "Insert Caption"
3. Select "Above" and right some text in the caption
4. Select the surrounding box/frame and move it around until the caption disappears
5. Bring the caption back by further moving the frame or changing window focus

The attached file reproduces the bug fairly consistently when moving the frame around the blue shape and its caption.

Actual Results:  
Sometimes, the caption disappears, but it is not lost. It sometimes reappears when further moving the frame around, or when focusing a different window and coming back to Writer.

Expected Results:
The caption should always be visible.


Reproducible: Sometimes


User Profile Reset: No



Additional Info:
This was tested with a newly created ODT file on the following:

Version: 6.1.0.0.alpha1
Build ID: cb47f0d320994e001bc38dc2ee9b7d957b15e6ab
CPU threads: 2; OS: Linux 3.13; UI render: default; VCL: kde4; 
Locale: en-GB (en_GB.UTF-8); Calc: group

It doesn't happen in: 

Version: 5.4.6.2
Build ID: 4014ce260a04f1026ba855d3b8d91541c224eab8
CPU threads: 2; OS: Linux 3.13; UI render: default; VCL: kde4; 
Locale: en-GB (en_GB.UTF-8); Calc: group


User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0
Comment 1 Stéphane Guillou (stragu) 2018-05-29 02:35:59 UTC
Created attachment 142363 [details]
test writer file with blue shape to move around
Comment 2 Stéphane Guillou (stragu) 2018-05-29 02:36:31 UTC
Created attachment 142364 [details]
caption visible
Comment 3 Stéphane Guillou (stragu) 2018-05-29 02:36:59 UTC
Created attachment 142365 [details]
caption disappeared
Comment 4 Stéphane Guillou (stragu) 2018-05-29 02:50:54 UTC
Confirmed in 6.1 beta:

Version: 6.1.0.0.beta1
Build ID: 8c76dfe1284e211954c30f219b3a38dcdd82f8a0
CPU threads: 2; OS: Linux 3.13; UI render: default; VCL: kde4; 
Locale: en-GB (en_GB.UTF-8); Calc: group
Comment 5 Buovjaga 2018-06-20 18:11:18 UTC
To repro, I sometimes had to move the frame more than 3 times. It was not consistent.

Bisected with Win 6.0 repo to https://cgit.freedesktop.org/libreoffice/core/commit/?id=d45631314cef00008a538900800561b435202917

commit d45631314cef00008a538900800561b435202917 (patch)
tree 76345d6a75c1b2c52ce3fcb90e1146fb752d0a16
parent 353a736b719167ce1caac9cb20a607e3aeda6dca (diff)
RotateFlyFrameFix: Add RotCenter info to ODF export
Since the WriterFlyFrames are implicitly rotated around
their center in the Writer UI this has to be added to the
transformation in ODF expressing this. The saved data
now contains the shape data in svg:x/y/width/height statements
(and thus back-compatible AFAP) and a draw:transform statement
(that is to be applied to the defined shape) containing the
rotation around the object's center.

Change-Id: Iccfc70924364f1d58995fce180bce9b6e7643ff4
Reviewed-on: https://gerrit.libreoffice.org/47742

Adding Cc: to Armin Le Grand
Comment 6 QA Administrators 2019-06-21 02:53:11 UTC Comment hidden (obsolete)
Comment 7 Stéphane Guillou (stragu) 2019-06-24 07:03:08 UTC
Can reproduce with:

Version: 6.2.4.2
Build ID: 1:6.2.4-0ubuntu0.18.04.1~lo1
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: en-AU (en_AU.UTF-8); UI-Language: en-GB
Calc: threaded

and:

Version: 6.3.0.0.beta1
Build ID: a187af327633f5f00363be5131bd21a13e0f1a7b
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: en-AU (en_AU.UTF-8); UI-Language: en-US
Calc: threaded

The behaviour is slightly different: to make the caption reappear, changing window focus does not work. However, resizing the Writer window does work.

Note that, even if the caption disappears, it is still visible when using Toggle Print Preview.
Comment 8 Stéphane Guillou (stragu) 2019-07-11 13:22:31 UTC
Confirmed with:

Version: 6.3.0.1
Build ID: 41ac97386aba908b6db860cfb4cfe2da871886ae
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: en-AU (en_AU.UTF-8); UI-Language: en-US
Calc: threaded
Comment 9 Stéphane Guillou (stragu) 2019-10-22 13:43:40 UTC
Still confirming with:

Version: 6.4.0.0.alpha1
Build ID: cc57df8f942f239d29cb575ea5a7cb01405db787
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: en-AU (en_AU.UTF-8); UI-Language: en-US
Calc: threaded

Another way to bring back the caption is to zoom in or out (as well a moving the frame, or resizing the window).
Comment 10 Stéphane Guillou (stragu) 2020-10-15 13:38:41 UTC
Reproducible with:

Version: 7.0.2.2
Build ID: 00(Build:2)
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Ubuntu package version: 1:7.0.2_rc2-0ubuntu0.18.04.2
Calc: threaded
Comment 11 Stéphane Guillou (stragu) 2021-12-10 22:33:50 UTC
Still reproducible in:

Version: 7.3.0.0.beta1 / LibreOffice Community
Build ID: 436f14c25ec1847646b953cf13d0db4f7ca3be57
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded