Bug 32308 - Libreoffice 7.5.6.2 opencl not working
Summary: Libreoffice 7.5.6.2 opencl not working
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-21 09:34 CEST by Ezequiel Partida
Modified: 2023-11-03 08:09 CET (History)
3 users (show)

See Also:
Source RPM: libreoffice-7.5.6.2-1.mga9.src.rpm
CVE:
Status comment:


Attachments
LibreOffice Impress 3D Slide Test. (21.34 KB, application/vnd.oasis.opendocument.presentation)
2023-10-16 05:40 CEST, Ezequiel Partida
Details

Description Ezequiel Partida 2023-09-21 09:34:07 CEST
Description of problem:

In libreoffice if I activate opencl and restart it shows it is activated but once I use 3D slides in Presenter they just don't work.

For example Cube, Fall, 3D venetian. It only shows a flash screen with no effect.

If this is done with LibreOffice 7.6 in flatpak everything works great.

It seeams something is missing since it does show opencl as active.

I am using OpenCL 3.0 CUDA 12.2.138

On another PC with amdgpu and lib64opencl1 installed LibreOffice doesn't even activates opencl.

Probably a library is missing that it is included on the flatpak release.

Regards
ZekeMX
Comment 1 Lewis Smith 2023-09-21 21:02:37 CEST
Thank you for the report. 3D graphics I know about; but not OpenCL. Please excuse the following questions, which may help looking into this. I can do 3D in Draw without OpenCL;  what more is that supposed to offer?

"if I activate opencl and restart it shows it is activated"
How do you activate it?
What shows it is active?

"For example Cube, Fall, 3D venetian"
Where do these come from, how should they function?

For your graphics, please post the output of:
 $ inxi -G

Source RPM: (none) => libreoffice-7.5.6.2-1.mga9.src.rpm
CC: (none) => lewyssmith

Comment 2 Ezequiel Partida 2023-09-22 07:10:15 CEST
(In reply to Lewis Smith from comment #1)

Hello Lewis

> Thank you for the report. 3D graphics I know about; but not OpenCL. Please
> excuse the following questions, which may help looking into this. I can do
> 3D in Draw without OpenCL;  what more is that supposed to offer?
> 
> "if I activate opencl and restart it shows it is activated"
> How do you activate it?
> What shows it is active?

In Libreoffice Impress / Tools / Options / OpenCl  checkmark Allow OpenCl and Apply. Once restarted if I go to the same config it says it is activated, on my AMD GPU I could not activate it even if I had lib64mesaopencl1 installed but I guess something was not right, now I have Nvidia 2060 GPU.


> 
> "For example Cube, Fall, 3D venetian"
> Where do these come from, how should they function?

In LibreOffice Impress there is a Menu on the right side called Slide Transition, in this transitions you can find Fall, Cube and other 3D transitions that won´t work but they do on the flatpak version of libreoffice impress.
> 
> For your graphics, please post the output of:
>  $ inxi -G


$inxi -G
Graphics:
  Device-1: NVIDIA GP106 [GeForce GTX 1060 3GB] driver: nvidia v: 535.104.05
  Display: x11 server: X.org v: 1.21.1.8 with: Xwayland v: 22.1.9 driver: X:
    loaded: nvidia unloaded: modesetting gpu: nvidia,nvidia-nvswitch
    resolution: 1920x1080~60Hz
  API: OpenGL v: 4.6.0 NVIDIA 535.104.05 renderer: NVIDIA GeForce GTX 1060
    3GB/PCIe/SSE2
Comment 3 Lewis Smith 2023-09-23 21:25:32 CEST
Thanks for the extra info, which I have tried.
To start with, do I have openCL? Perhaps:
 $ rpm -qa | grep opencl | sort
 lib64opencl1-2.3.1-2.mga9
but all relevant packages look like:
 $ urpmq -y opencl
lib64mesaopencl-devel
lib64mesaopencl1
lib64opencl-devel
lib64opencl1
nvidia-current-cuda-opencl
nvidia470-cuda-opencl
opencl-headers
python3-opencl

Please say which ones you have installed (first rpm command above).

My graphics, no nVidia:
 $ inxi -G
Graphics:
  Device-1: Intel GeminiLake [UHD Graphics 600] driver: i915 v: kernel
  Display: x11 server: X.org v: 1.21.1.8 with: Xwayland v: 22.1.9 driver: X:
    loaded: intel,v4l dri: iris gpu: i915 resolution: 1366x768~60Hz
  API: OpenGL v: 4.6 Mesa 23.1.5 renderer: Mesa Intel UHD Graphics 600 (GLK
    2)

I created a basic few slides, and played with the options you describe:
* Tools-Preferences-LibreOffice-OpenCL
Despite ticking & applying this, upon restarting Impress, it always disappeared. Not a good start.
* Trying some of the Transitions RH icon, they got demonstrated once on the current slide - not convincingly. Then trying slideshow F5, the effect was shown (poorly) for entry to the first slide, but not at all between subsequent ones. Do you have to define the transition from every slide? Not a good continuation.

Need to clear up my opencl packages.
Comment 4 Ezequiel Partida 2023-10-16 05:40:35 CEST
Created attachment 14063 [details]
LibreOffice Impress 3D Slide Test.
Comment 5 Ezequiel Partida 2023-10-16 05:44:21 CEST
Hello,

I had lib64opencl1 in my AMD VideoCard PC, but I also tested this on my PC with Nvidia.

clinfo will let you know it everything is working fine.


On my AMD I installed a test package squid-f created from AMDGPU PRO opencl with is much faster than the opensource opencl.

I created a test I just send you before this message, I recommend you to also test it with flathubs version to see the difference.

Regads
zekemx
Comment 6 Ezequiel Partida 2023-10-16 08:12:11 CEST
Since I had a fresh reinstall I tried with libreoffice from flathub and no opencl effects until I installed libreoffice not just impress, so I guess something in tha package got installed so I tried doing the same and installed the mageia package and still no opencl 3d effects.

Regards
Comment 7 Lewis Smith 2023-10-16 11:01:51 CEST
Thank you for the work you did on this.
(In reply to Ezequiel Partida from comment #5)
> clinfo will let you know it everything is working fine.
 $ clinfo
Number of platforms                               0
ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.3.1
  ICD loader Profile                              OpenCL 3.0

> I created a test I just send you before this message, I recommend you to
> also test it with flathubs version to see the difference.
Well, your test slideshow worked fine when viewed via F5 with my standard Mageia LibreOffice 7.5.6.2-1, fullscreen with all transitions correct.
[However, in comment 3 I could not create them).

I am unclear whether you are saying that if you install just Impress, the transitions do not work:
? cannot create them ?
? they do not view ?
but that if you install all of LibreOffice, they do:
? you can create them ?
? they view correctly ?

Unclear also what difference you are noting between the Mageia & Flatpack versions.
? With Flatpack, the 3D transitions worked after installing all of LibreOffice ? ? But not under Mageia ?
Comment 8 Ezequiel Partida 2023-10-17 08:20:14 CEST
(In reply to Lewis Smith from comment #7)
> Thank you for the work you did on this.
> (In reply to Ezequiel Partida from comment #5)
> > clinfo will let you know it everything is working fine.
>  $ clinfo
> Number of platforms                               0
> ICD loader properties
>   ICD loader Name                                 OpenCL ICD Loader
>   ICD loader Vendor                               OCL Icd free software
>   ICD loader Version                              2.3.1
>   ICD loader Profile                              OpenCL 3.0
> 
> > I created a test I just send you before this message, I recommend you to
> > also test it with flathubs version to see the difference.
> Well, your test slideshow worked fine when viewed via F5 with my standard
> Mageia LibreOffice 7.5.6.2-1, fullscreen with all transitions correct.
> [However, in comment 3 I could not create them).
> 
> I am unclear whether you are saying that if you install just Impress, the
> transitions do not work:
> ? cannot create them ?
> ? they do not view ?
> but that if you install all of LibreOffice, they do:
> ? you can create them ?
> ? they view correctly ?

In Mageia I kept the packages that install by degault, I noticed that the package called Libreoffice was not installed.

On flatpack I just installed libreoffie impress and I noticed I did not see the 3D effects either so I installed the one called Libreoffice so that all others (Calc, writer, etc was installed and I was ablet to see the 3D effects

So I tought that was necesary so I did the same on Mageia but still did not work.

I plan to make a fresh install on another PC to test and take note of the steps.



> 
> Unclear also what difference you are noting between the Mageia & Flatpack
> versions.
> ? With Flatpack, the 3D transitions worked after installing all of
> LibreOffice ? ? But not under Mageia ?

This is what clinfo give me



ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.3.1
  ICD loader Profile                              OpenCL 3.0

$ inxi -G
Graphics:
  Device-1: NVIDIA GP106 [GeForce GTX 1060 3GB] driver: nvidia v: 535.113.01
  Display: x11 server: X.org v: 1.21.1.8 with: Xwayland v: 22.1.9 driver: X:
    loaded: nvidia unloaded: modesetting gpu: nvidia,nvidia-nvswitch
    resolution: 1920x1080~60Hz
  API: OpenGL v: 4.6.0 NVIDIA 535.113.01 renderer: NVIDIA GeForce GTX 1060
    3GB/PCIe/SSE2
Comment 9 Lewis Smith 2023-11-02 17:23:52 CET
Sorry for leaving you.
(In reply to Ezequiel Partida from comment #8)
> In Mageia I kept the packages that install by degault, I noticed that the
> package called Libreoffice was not installed.
> On flatpack ... I installed the one called Libreoffice so that all
> others (Calc, writer, etc was installed and I was ablet to see the 3D effects
> So I tought that was necesary so I did the same on Mageia but still did not
> work.
There is no single 'libreoffice' package, but a lot starting 'libreoffice-'. I am surprised you did not get LibreOffice anyway, it is surely installed by default on the Live ISOs.

Without having done anything special beyond selecting 'office applications' using the Classic installer, this is what I have (which seems to work):
 $ rpm -qa | grep libreoffice | grep -v -E 'help|langpack'
libreoffice-data-7.5.6.2-1.mga9
libreoffice-opensymbol-fonts-7.5.6.2-1.mga9
libreoffice-ure-common-7.5.6.2-1.mga9
libreoffice-ure-7.5.6.2-1.mga9
libreoffice-kf5-7.5.6.2-1.mga9
libreoffice-gtk3-7.5.6.2-1.mga9
libreoffice-core-7.5.6.2-1.mga9
libreoffice-pyuno-7.5.6.2-1.mga9
libreoffice-pdfimport-7.5.6.2-1.mga9
libreoffice-graphicfilter-7.5.6.2-1.mga9
libreoffice-calc-7.5.6.2-1.mga9
libreoffice-ogltrans-7.5.6.2-1.mga9
libreoffice-impress-7.5.6.2-1.mga9
libreoffice-base-7.5.6.2-1.mga9
libreoffice-draw-7.5.6.2-1.mga9
libreoffice-math-7.5.6.2-1.mga9
libreoffice-writer-7.5.6.2-1.mga9
libreoffice-xsltfilter-7.5.6.2-1.mga9
libreofficekit-7.5.6.2-1.mga9

Await your re-try.
Comment 10 Dave Hodgins 2023-11-02 18:26:53 CET
The libreoffice package is a task package.
$ rpm -q libreoffice
libreoffice-7.5.6.2-1.mga9
[dave@x3 m9]$ urpmq -l libreoffice
[dave@x3 m9]$ urpmq --requires libreoffice
libreoffice: libreoffice-base(x86-64)[== 1:7.5.4.2-1.mga9]
libreoffice: libreoffice-calc(x86-64)[== 1:7.5.4.2-1.mga9]
libreoffice: libreoffice-draw(x86-64)[== 1:7.5.4.2-1.mga9]
libreoffice: libreoffice-emailmerge(x86-64)[== 1:7.5.4.2-1.mga9]
libreoffice: libreoffice-impress(x86-64)[== 1:7.5.4.2-1.mga9]
libreoffice: libreoffice-math(x86-64)[== 1:7.5.4.2-1.mga9]
libreoffice: libreoffice-writer(x86-64)[== 1:7.5.4.2-1.mga9]
libreoffice: libreoffice-base(x86-64)[== 1:7.5.6.2-1.mga9]
libreoffice: libreoffice-calc(x86-64)[== 1:7.5.6.2-1.mga9]
libreoffice: libreoffice-draw(x86-64)[== 1:7.5.6.2-1.mga9]
libreoffice: libreoffice-emailmerge(x86-64)[== 1:7.5.6.2-1.mga9]
libreoffice: libreoffice-impress(x86-64)[== 1:7.5.6.2-1.mga9]
libreoffice: libreoffice-math(x86-64)[== 1:7.5.6.2-1.mga9]
libreoffice: libreoffice-writer(x86-64)[== 1:7.5.6.2-1.mga9]

It seems the libreoffice task package is missing from all of the iso images,
though all of the packages it requires are present. Something missed during
qa testing.

Assigning to iso builders for Mageia 10.

Please do confirm if installing the task package and all of it's requires
fixes the issue.

Version: 9 => Cauldron
CC: (none) => davidwhodgins
Assignee: bugsquad => isobuild

Comment 11 Martin Whitaker 2023-11-02 20:32:00 CET
The libreoffice package has never been included on the classical installer ISOs. The packages included are those listed with a sufficiently high priority in rpmsrate and their dependencies (requires only, not recommends), plus a handful of extras (which really should be handled via rpmsrate too).

In any case, as of Mageia 9 the classical installer ISO no longer includes all the dependencies of the libreoffice package. David Walser chose to exclude libreoffice-base, because he didn't like the Java runtime being installed by default.

Assigning back to bugsquad until the real cause of this issue is identified.

Assignee: isobuild => bugsquad
CC: (none) => mageia

Comment 12 Lewis Smith 2023-11-03 08:09:14 CET
Thanks to Dave & Martin for their clarifications. I stand corrected...
I do not understand how I wrongly concluded (I did check somehow):
> There is no single 'libreoffice' package,
Wrong.

Note You need to log in before you can comment on or make changes to this bug.