Bug 118363 - Smiley shape with background image displayed as polygon in slideshow when hardware acceleration is disabled
Summary: Smiley shape with background image displayed as polygon in slideshow when har...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
(earliest affected)
3.5.0 release
Hardware: All All
: medium minor
Assignee: Not Assigned
Depends on:
Blocks: Slide-Show
  Show dependency treegraph
Reported: 2018-06-25 07:43 UTC by Jean-Sebastien Bevilacqua
Modified: 2019-04-08 10:53 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:

Bad rendering of the slideshow (272.40 KB, image/png)
2018-06-25 07:43 UTC, Jean-Sebastien Bevilacqua
Expected result (203.60 KB, image/png)
2018-06-25 08:00 UTC, Jean-Sebastien Bevilacqua
Example file (531.01 KB, application/vnd.oasis.opendocument.presentation)
2018-06-28 09:41 UTC, Buovjaga
bad rendering with hardware acceleration disabled (412.29 KB, image/png)
2019-04-08 10:52 UTC, BogdanB

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Sebastien Bevilacqua 2018-06-25 07:43:12 UTC
Created attachment 143085 [details]
Bad rendering of the slideshow


There is a bug in the slideshow when you render a shape with a bitmap as background.
This bug appears only if OpenGL is disabled. When you enable OpenGL, the rendering is correct.

To reproduce it:

1 - Open Impress and disable Hardware rendering (restart)
2 - Open Impress and Insert -> Shape -> Symbol -> Smiley Face
3 - Right click on the Smiley Face and select Area
4 - Select a bitmap
5 - Now go in the menu: SlideShow -> SlideShow settings
6 - Set the presentation mode to "In a window"
7 - Start the Presentation

You will see the picture that I join here.
Like you can see, it's not the expected result.

Things to note: This bug appears not only with bitmap background but with Pattern background too. 

Comment 1 Jean-Sebastien Bevilacqua 2018-06-25 07:47:34 UTC
Still valids on Master.
Reproduced on Windows and Linux
Comment 2 Jean-Sebastien Bevilacqua 2018-06-25 07:55:58 UTC
The smiley should be a round, not a polygon
Comment 3 Jean-Sebastien Bevilacqua 2018-06-25 08:00:42 UTC
I add the expected result
Comment 4 Jean-Sebastien Bevilacqua 2018-06-25 08:00:56 UTC
Created attachment 143087 [details]
Expected result
Comment 5 mh rony 2018-06-27 07:51:40 UTC Comment hidden (obsolete)
Comment 6 Jean-Sebastien Bevilacqua 2018-06-27 08:37:54 UTC
I found a hack:

In the file canvas/source/factory/cf_service.cxx:lookUpAndUse

Force bUseAcceleratedEntry = true; and bForceLastEntry = false;

The problem comes from a canvas which not display well this kind of shapes.
Comment 7 Buovjaga 2018-06-28 09:41:44 UTC
Created attachment 143182 [details]
Example file

Repro with hw accel disabled (note that you don't need to restart after disabling)

Arch Linux 64-bit
Build ID: 4600b07c1d787f959618d9ecf54161e4ea4ffa61
CPU threads: 8; OS: Linux 4.17; UI render: default; VCL: gtk3; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group threaded
Built on June 28th 2018

Arch Linux 64-bit
Version (Build ID: e183d5b)
Comment 8 Buovjaga 2018-06-28 09:42:56 UTC
Probably inherited
Comment 9 Buovjaga 2018-06-28 10:02:51 UTC
At least it is in oldest 3.5.0 in 43all bibiset repo.
Comment 10 Jean-Sebastien Bevilacqua 2019-04-08 08:39:01 UTC

I can't reproduce it on master
Comment 11 Buovjaga 2019-04-08 09:14:29 UTC
I can still repro

Arch Linux 64-bit
Build ID: e967aea2d8cc4f9fc608cb726cb474c184fb61de
CPU threads: 8; OS: Linux 5.0; UI render: default; VCL: gtk3; 
Locale: fi-FI (fi_FI.UTF-8); UI-Language: en-US
Calc: threaded
Built on 7 April 2019
Comment 12 BogdanB 2019-04-08 10:52:27 UTC
Created attachment 150608 [details]
bad rendering with hardware acceleration disabled

It is bad rendered with hardware acceleration disabled. See the screenshot.

Build ID: 84d4125b28c384f9ac6285737a5bb9093978798e
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2019-04-06_20:07:58
Locale: ro-RO (ro_RO.UTF-8); UI-Language: en-US
Calc: threaded
Comment 13 BogdanB 2019-04-08 10:53:07 UTC
And is good rendered with Hardware acceleration activated.