Libreoffice hangs entire system on startup

Hello!

So this is a really weird problem… Ever since I’ve got different laptop (AMD Ryzen 7 3750H + RX 5500M), I can’t get LibreOffice to work.

If I launch LibreOffice from console, a blank window titled Libreoffice appears and than nothing ever happens. If I try to open any file with LibreOffice - screen flickers once and than entire system just hangs, not even responding to CTRL+ALT+F$n or anything else.

In either case there’s no output in console, no error message, nothing. If I check logs from last boot after restart, there are messages that seem to be indicating crashes in amd gpu driver. See those messages below

> Apr 07 22:48:12 hunger kernel: [drm:amdgpu_dm_atomic_commit_tail [amdgpu]] *ERROR* Waiting for fences timed out!
> Apr 07 22:48:12 hunger kernel: [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout, signaled seq=17727, emitted seq=17729
> Apr 07 22:48:12 hunger kernel: [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information: process gnome-shell pid 1610 thread gnome-shel:cs0 pid 1619
> Apr 07 22:48:12 hunger kernel: amdgpu 0000:07:00.0: amdgpu: GPU reset begin!
> Apr 07 22:48:12 hunger kernel: [drm] free PSP TMR buffer
> Apr 07 22:48:12 hunger kernel: amdgpu 0000:07:00.0: amdgpu: MODE2 reset
> Apr 07 22:48:12 hunger kernel: amdgpu 0000:07:00.0: amdgpu: GPU reset succeeded, trying to resume
> Apr 07 22:48:12 hunger kernel: [drm] PCIE GART of 1024M enabled (table at 0x000000F400900000).
> Apr 07 22:48:12 hunger kernel: [drm] PSP is resuming...
> Apr 07 22:48:12 hunger kernel: [drm] reserve 0x400000 from 0xf47fc00000 for PSP TMR
> Apr 07 22:48:12 hunger kernel: amdgpu 0000:07:00.0: amdgpu: RAS: optional ras ta ucode is not available
> Apr 07 22:48:12 hunger kernel: amdgpu 0000:07:00.0: amdgpu: RAP: optional rap ta ucode is not available
> Apr 07 22:48:13 hunger kernel: [drm] kiq ring mec 2 pipe 1 q 0
> Apr 07 22:48:13 hunger kernel: [drm] VCN decode and encode initialized successfully(under SPG Mode).
> Apr 07 22:48:13 hunger kernel: amdgpu 0000:07:00.0: amdgpu: ring gfx uses VM inv eng 0 on hub 0
> Apr 07 22:48:13 hunger kernel: amdgpu 0000:07:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
> Apr 07 22:48:13 hunger kernel: amdgpu 0000:07:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
> Apr 07 22:48:13 hunger kernel: amdgpu 0000:07:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
> Apr 07 22:48:13 hunger kernel: amdgpu 0000:07:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
> Apr 07 22:48:13 hunger kernel: amdgpu 0000:07:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
> Apr 07 22:48:13 hunger kernel: amdgpu 0000:07:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
> Apr 07 22:48:13 hunger kernel: amdgpu 0000:07:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
> Apr 07 22:48:13 hunger kernel: amdgpu 0000:07:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
> Apr 07 22:48:13 hunger kernel: amdgpu 0000:07:00.0: amdgpu: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
> Apr 07 22:48:13 hunger kernel: amdgpu 0000:07:00.0: amdgpu: ring sdma0 uses VM inv eng 0 on hub 1
> Apr 07 22:48:13 hunger kernel: amdgpu 0000:07:00.0: amdgpu: ring vcn_dec uses VM inv eng 1 on hub 1
> Apr 07 22:48:13 hunger kernel: amdgpu 0000:07:00.0: amdgpu: ring vcn_enc0 uses VM inv eng 4 on hub 1
> Apr 07 22:48:13 hunger kernel: amdgpu 0000:07:00.0: amdgpu: ring vcn_enc1 uses VM inv eng 5 on hub 1
> Apr 07 22:48:13 hunger kernel: amdgpu 0000:07:00.0: amdgpu: ring jpeg_dec uses VM inv eng 6 on hub 1
> Apr 07 22:48:13 hunger kernel: amdgpu 0000:07:00.0: amdgpu: recover vram bo from shadow start
> Apr 07 22:48:13 hunger kernel: amdgpu 0000:07:00.0: amdgpu: recover vram bo from shadow done
> Apr 07 22:48:13 hunger kernel: [drm] Skip scheduling IBs!
> Apr 07 22:48:13 hunger kernel: [drm] Skip scheduling IBs!
> Apr 07 22:48:13 hunger kernel: amdgpu 0000:07:00.0: amdgpu: GPU reset(2) succeeded!
> Apr 07 22:48:13 hunger kernel: amdgpu 0000:07:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x123680840 flags=0x0070]
> Apr 07 22:48:13 hunger kernel: amdgpu 0000:07:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x123680860 flags=0x0070]
> Apr 07 22:48:13 hunger kernel: amdgpu 0000:07:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x123680880 flags=0x0070]
> Apr 07 22:48:13 hunger kernel: amdgpu 0000:07:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x1236808c0 flags=0x0070]
> Apr 07 22:48:13 hunger kernel: amdgpu 0000:07:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x123680820 flags=0x0070]
> Apr 07 22:48:13 hunger kernel: amdgpu 0000:07:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x1236808e0 flags=0x0070]
> Apr 07 22:48:13 hunger kernel: amdgpu 0000:07:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x123680900 flags=0x0070]
> Apr 07 22:48:13 hunger kernel: amdgpu 0000:07:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x1236808a0 flags=0x0070]
> Apr 07 22:48:13 hunger kernel: amdgpu 0000:07:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x123680940 flags=0x0070]
> Apr 07 22:48:13 hunger kernel: amdgpu 0000:07:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x123680920 flags=0x0070]
> Apr 07 22:48:13 hunger kernel: AMD-Vi: Event logged [IO_PAGE_FAULT device=07:00.0 domain=0x0000 address=0x123680980 flags=0x0070]
> Apr 07 22:48:13 hunger kernel: AMD-Vi: Event logged [IO_PAGE_FAULT device=07:00.0 domain=0x0000 address=0x1236809a0 flags=0x0070]
> Apr 07 22:48:13 hunger kernel: AMD-Vi: Event logged [IO_PAGE_FAULT device=07:00.0 domain=0x0000 address=0x1236809c0 flags=0x0070]
> Apr 07 22:48:13 hunger kernel: AMD-Vi: Event logged [IO_PAGE_FAULT device=07:00.0 domain=0x0000 address=0x1236809e0 flags=0x0070]
> Apr 07 22:48:13 hunger kernel: AMD-Vi: Event logged [IO_PAGE_FAULT device=07:00.0 domain=0x0000 address=0x123680960 flags=0x0070]
> Apr 07 22:48:13 hunger kernel: AMD-Vi: Event logged [IO_PAGE_FAULT device=07:00.0 domain=0x0000 address=0x123680a40 flags=0x0070]
> Apr 07 22:48:13 hunger kernel: AMD-Vi: Event logged [IO_PAGE_FAULT device=07:00.0 domain=0x0000 address=0x123680a00 flags=0x0070]
> Apr 07 22:48:13 hunger kernel: AMD-Vi: Event logged [IO_PAGE_FAULT device=07:00.0 domain=0x0000 address=0x123680a60 flags=0x0070]
> Apr 07 22:48:13 hunger kernel: AMD-Vi: Event logged [IO_PAGE_FAULT device=07:00.0 domain=0x0000 address=0x123680a80 flags=0x0070]
> Apr 07 22:48:13 hunger kernel: AMD-Vi: Event logged [IO_PAGE_FAULT device=07:00.0 domain=0x0000 address=0x123680ac0 flags=0x0070]
> Apr 07 22:48:13 hunger gnome-shell[1610]: amdgpu: amdgpu_cs_query_fence_status failed.

There are absolutely no other issues with gpu otherwise. It seems to be functioning in all other instances, except for this one. System is up to date, running default 5.10.23-1-MANJARO kernel and GNOME. Same issue happens with both libreoffice-fresh and libreoffice-stable.

I’m really clueless where to dig next, to be honest. Does anyone have any idea what could be causing it?

I don’t suppose you enabled OpenCL support? That will create havoc if you don’t have the proper drivers installed.

Actually, you’re absolutely right.
It seem to have enabled some sort of hardware acceleration by default, that lead to that crash.

I’ve launched LibreOffice in safe mode
libreoffice --safe-mode
And set "Configure -> Disable hardware acceleration" and it worked after restart! Just disabling OpenCL in options didn’t do the trick, but this works now! Thanks for pointing me to the right direction!

1 Like