Bug 155831 - libreoffice does not start on intel i7-3520M integrated graphics except hardware accel is disabled
Summary: libreoffice does not start on intel i7-3520M integrated graphics except hardw...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
7.5.4.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: haveBacktrace
Depends on:
Blocks: OpenCL
  Show dependency treegraph
 
Reported: 2023-06-14 13:47 UTC by krumelmonster
Modified: 2024-03-04 10:45 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
backtrace of the frozen libreoffice (2.57 KB, text/plain)
2023-12-12 12:34 UTC, krumelmonster
Details
trace produced by soffice --backtrace (10.60 KB, text/x-log)
2023-12-12 12:35 UTC, krumelmonster
Details
backtrace for libreoffice-fresh 7.6.4-1 (arch linux) (2.56 KB, text/plain)
2023-12-12 15:01 UTC, krumelmonster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description krumelmonster 2023-06-14 13:47:23 UTC
After deletion of ~/.config/libreoffice the loading dialog freezes if I don't start in safe mode and disable hardware acceleration.

This issue only occured after I deleted ~/.config/libreoffice and I didn't have to disable hardware acceleration before so I assume that on earlier setups on this device, libreoffice automatically disabled hardware acceleration (because of a different LO version or different graphics drivers.

OpenGL version 3.0 Mesa 21.3.9 Amber

$ sudo lshw -c video
  *-display
       description: VGA compatible controller
       product: 3rd Gen Core processor Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 09
       width: 64 bits
       clock: 33MHz
       capabilities: msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:28 memory:f0000000-f03fffff memory:e0000000-efffffff ioport:6000(size=64) memory:c0000-dffff
Comment 1 Julien Nabet 2023-06-14 13:57:41 UTC
Could you please follow https://wiki.documentfoundation.org/QA/FirstSteps#Graphics-related_issues_(_Skia_) ? 
Considering you seem to have done first steps:
- upgrade graphic driver
- test with hardware rendering disabled
so now we just need skia.log
Comment 2 krumelmonster 2023-06-14 14:05:48 UTC
I believe no skia.log file is created during a such failed attempt to start LO.
Comment 3 Julien Nabet 2023-06-14 14:50:27 UTC
Does it freeze too even if you just launch startcenter + avoiding LO splashscreen by typing on a console/terminal:
soffice --nologo

?

If yes, would it be possible you retrieve a backtrace by following https://wiki.documentfoundation.org/QA/BugReport/Debug_Information#GNU/Linux:_How_to_get_a_backtrace ?
Comment 4 QA Administrators 2023-12-12 03:14:05 UTC Comment hidden (obsolete)
Comment 5 krumelmonster 2023-12-12 12:34:53 UTC
Created attachment 191386 [details]
backtrace of the frozen libreoffice
Comment 6 krumelmonster 2023-12-12 12:35:42 UTC
Created attachment 191387 [details]
trace produced by soffice --backtrace
Comment 7 krumelmonster 2023-12-12 12:39:00 UTC
Hi Julien,

Sorry for missing out on your questions. After renaming ~/.config/libreoffice again, again neither `soffice --nologo` nor `libreoffice` bring up a window.

The gdbtrace.log produced by `soffice --backtrace` method (with archs debuginfod attached) seemed inconclusive to me so I also created the gdb.txt by attaching gdb to a soffice process intiated by running `libreoffice` and calling backtrace.

Let me know if there's any other debug info that may prove useful.
Comment 8 Julien Nabet 2023-12-12 13:33:42 UTC
On which Linux distrib are you and with which version?

Taking a look at the traces, it seems the pb isn't Skia but OpenCL.

Could you apply this part?
https://wiki.documentfoundation.org/QA/FirstSteps#Computation-related_issues_in_Calc_(_OpenCL_)
Comment 9 krumelmonster 2023-12-12 15:01:22 UTC
Created attachment 191389 [details]
backtrace for libreoffice-fresh 7.6.4-1 (arch linux)
Comment 10 krumelmonster 2023-12-12 15:06:32 UTC
I'm on arch linux.

Earlier today that was libreoffice-still-7.5.9-1 from the repositories, I now switched to libreoffice-fresh-7.6.4-1 where I observe the same issues. The backtrace for libreoffice-fresh-7.6.4-1 is attached above.

I ran lo in safe mode to get to the configuration dialog. I followed
Uncheck Tools ▸ Options... ▸ LibreOffice ▸ OpenCL ▸ Allow use of OpenCL.
Restart LibreOffice, check if issue still occurs.
after unchecking the option I restarted to normal and the issue persists.

Step three was not applicable.

"If it does, uncheck Tools ▸ Options... ▸ LibreOffice ▸ OpenCL ▸ Allow use of Software Interpreter (even when OpenCL is not available)." This option is unavailable, presumably because OpenCL is unavailable in safe mode anyways.

I was unable to locate a file named opencl_devices.log or opencl_profile.xml anywhere within my home directory or the /tmp directory.
Comment 11 Julien Nabet 2023-12-12 15:23:58 UTC
(In reply to krumelmonster from comment #10)
> I'm on arch linux.
> 
> Earlier today that was libreoffice-still-7.5.9-1 from the repositories, I
> now switched to libreoffice-fresh-7.6.4-1 where I observe the same issues.
> The backtrace for libreoffice-fresh-7.6.4-1 is attached above.
> 
Ok, it's indeed related to OpenCL.

> I ran lo in safe mode to get to the configuration dialog. I followed
> Uncheck Tools ▸ Options... ▸ LibreOffice ▸ OpenCL ▸ Allow use of OpenCL.
> Restart LibreOffice, check if issue still occurs.
> after unchecking the option I restarted to normal and the issue persists.
Ok

> 
> Step three was not applicable.
> 
> "If it does, uncheck Tools ▸ Options... ▸ LibreOffice ▸ OpenCL ▸ Allow use
> of Software Interpreter (even when OpenCL is not available)." This option is
> unavailable, presumably because OpenCL is unavailable in safe mode anyways.
> 
> I was unable to locate a file named opencl_devices.log or opencl_profile.xml
> anywhere within my home directory or the /tmp directory.

Could you do these 2 last tests but not in safe mode? (so if unchecking "Allow use of OpenCL" + restart doesn't work as I expect, at least, you may be able to uncheck "Allow use of Software Interpreter..."
Comment 12 krumelmonster 2023-12-14 13:28:07 UTC
In safe mode, only "Allow use of OpenCL" is available as an option in the OpenCL settings and it says "OpenCL is not used". When I turn off safe mode, I can't get to the configuration screen.

Is not being able to configure OpenCL in safe an issue on its own?
Comment 13 Julien Nabet 2023-12-14 13:34:39 UTC
Ok, I got no other idea then.
Can't help here=>uncc myself.
Comment 14 Buovjaga 2024-01-17 17:03:53 UTC
(In reply to krumelmonster from comment #12)
> In safe mode, only "Allow use of OpenCL" is available as an option in the
> OpenCL settings and it says "OpenCL is not used". When I turn off safe mode,
> I can't get to the configuration screen.
> 
> Is not being able to configure OpenCL in safe an issue on its own?

You can launch in normal mode, but force disabling OpenCL like this, from a terminal:

SAL_DISABLE_OPENCL=1 libreoffice