Bug 114988 - Hang on startup of every component due to OpenCL
Summary: Hang on startup of every component due to OpenCL
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
5.3.7.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: OpenCL
  Show dependency treegraph
 
Reported: 2018-01-13 15:39 UTC by Simon
Modified: 2018-01-23 06:32 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
OpenCL log (1.97 KB, text/plain)
2018-01-13 15:40 UTC, Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon 2018-01-13 15:39:30 UTC
Description:
Any Component of LibreOffice (including the "launcher") hangs on startup due to an issue with OpenCL (works fine when OpenCL is turned off). OpenCL was on by default for me, so with a fresh installation LibreOffice was not working at all for me. My OpenCL-Info is below. Since this is on a laptop with nvidia optimus: It doesn't matter if I choose to start LibreOffice with my Intel integrated graphics or the dedicated nvidia GPU. 

Cheers!

OpenCL platform
Name: Intel(R) OpenCL
Vendor: Intel(R) Corporation
OpenCL version: OpenCL 1.1 
Extensions: cl_khr_fp64 cl_khr_icd cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_intel_printf cl_ext_device_fission cl_intel_exec_by_local_thread cl_khr_gl_sharing cl_intel_dx9_media_sharing

  OpenCL device
   Name:       Intel(R) Core(TM) i7-2670QM CPU @ 2.20GHz
   Version: OpenCL 1.1 (Build 37149.37214)
   Vendor: Intel(R) Corporation
   Compute Units: 8
   Driver: 1.1
   Extensions: cl_khr_fp64 cl_khr_icd cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_intel_printf cl_ext_device_fission cl_intel_exec_by_local_thread cl_khr_gl_sharing cl_intel_dx9_media_sharing


OpenCL platform
Name: NVIDIA CUDA
Vendor: NVIDIA Corporation
OpenCL version: OpenCL 1.2 CUDA 9.1.104
Extensions: cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_d3d9_sharing cl_nv_d3d10_sharing cl_khr_d3d10_sharing cl_nv_d3d11_sharing cl_nv_copy_opts cl_nv_create_buffer

  OpenCL device
   Name: GeForce GT 540M
   Version: OpenCL 1.1 CUDA
   Vendor: NVIDIA Corporation
   Compute Units: 2
   Driver: 388.59
   Extensions: cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_d3d9_sharing cl_nv_d3d10_sharing cl_khr_d3d10_sharing cl_nv_d3d11_sharing cl_nv_copy_opts cl_nv_create_buffer


success


Steps to Reproduce:
1. Have specified hardware
2. Have OpenCL turned on
3. Start any component of LibreOffice

Actual Results:  
LibreOffice hangs (inactive) and produces high CPU load

Expected Results:
LibreOffice just starts normally
(I read there's a blacklist for non-working OpenCL devices/drivers? So maybe in this case the expected result would be that OpenCL is turned off per default with this particular OpenCL configuration?)


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:


User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
Comment 1 Simon 2018-01-13 15:40:33 UTC
Created attachment 139081 [details]
OpenCL log
Comment 2 tommy27 2018-01-16 08:49:45 UTC Comment hidden (obsolete)
Comment 3 Simon 2018-01-16 18:32:38 UTC
(In reply to tommy27 from comment #2)
> did you try upgrading to 5.4.4? 
> is the issue still present?

I did not realize 5.4.4 was a stable release as well, my bad. I uninstalled 5.3.7 and installed 5.4.4, OpenCL appears to be off by default after the installation, LibreOffice started normally.
Comment 4 tommy27 2018-01-17 08:14:32 UTC Comment hidden (obsolete)
Comment 5 Simon 2018-01-17 08:56:50 UTC
(In reply to tommy27 from comment #4)
> ok, but what happens if you enable it?
> do you still experience issues?

Yeah, it doesn't work for me. When manually enabling OpenCL, the LibreOffice "launcher" (I'm not sure how it's officially called) goes through the green splash-screen, then opens an empty LibreOffice window and hangs. When opening Writer or other tools directly, it hangs at the green splash screen without the "splash screen progress bar" visible.
Comment 6 Simon 2018-01-17 09:02:11 UTC
I have to admit though I've always had issues with graphics-intensive programs on this particular machine, went through many different drivers and major windows versions, it's still unresolved. Maybe my machine just does weird things when asked to process anything on GPU. I don't 100% trust it anyway.
Comment 7 Michael Meeks 2018-01-22 09:01:42 UTC
Hi Simon:

> installed 5.4.4, OpenCL appears to be off by default after the installation,
> LibreOffice started normally.

   Sounds like the black-list is doing its job then =) Thanks for attaching the log - can you report your version of Windows too ?

> I have to admit though I've always had issues with graphics-intensive programs
> on this particular machine, went through many different drivers and major
> windows versions, it's still unresolved. Maybe my machine just does 
> weird things when asked to process anything on GPU. I don't 100% trust
> it anyway.

   Could easily be a H/W issue then I guess; certainly we don't do anything that should hang your GPU, it seems we don't enable CL on this machine by default.

Thanks for filing though ! =) and always good to keep up-to-date with versions.
Comment 8 Simon 2018-01-23 06:32:12 UTC
(In reply to Michael Meeks from comment #7)
>    Sounds like the black-list is doing its job then =) Thanks for attaching
> the log - can you report your version of Windows too ?

Sorry for not replying earlier, I run Windows 8.1 pro, 64 bit, build 9600. 

Thanks for your support and an awesome product in general! I really appreciate it.