Mailspring causes AMD GPU to crash

Description

I’ll be using mailspring, minding my business and then my whole computer will lock up. This has happened several times in different places in the program.

To Reproduce…

Since it doesn’t happen in the same place constantly, I don’t have anything other than that it’ll happen relatively soon after I open the application and my journalctl messages.

amdgpu 0000:04:00.0: amdgpu: [mmhub0] retry page fault (src_id:0 ring:0 vmid:1 pasid:32782, for process mailspring pid 23463 thread mailspring:cs0 pid 23567)
amdgpu 0000:04:00.0: amdgpu:   in page starting at address 0x0000800103c20000 from IH client 0x12 (VMC)
amdgpu 0000:04:00.0: amdgpu: VM_L2_PROTECTION_FAULT_STATUS:0x00140051
amdgpu 0000:04:00.0: amdgpu:          Faulty UTCL2 client ID: MP1 (0x0)
amdgpu 0000:04:00.0: amdgpu:          MORE_FAULTS: 0x1
amdgpu 0000:04:00.0: amdgpu:          WALKER_ERROR: 0x0
amdgpu 0000:04:00.0: amdgpu:          PERMISSION_FAULTS: 0x5
amdgpu 0000:04:00.0: amdgpu:          MAPPING_ERROR: 0x0
amdgpu 0000:04:00.0: amdgpu:          RW: 0x1
amdgpu 0000:04:00.0: amdgpu: [mmhub0] retry page fault (src_id:0 ring:0 vmid:1 pasid:32782, for process mailspring pid 23463 thread mailspring:cs0 pid 23567)
amdgpu 0000:04:00.0: amdgpu:   in page starting at address 0x0000800103c20000 from IH client 0x12 (VMC)
amdgpu 0000:04:00.0: amdgpu: VM_L2_PROTECTION_FAULT_STATUS:0x00140051
amdgpu 0000:04:00.0: amdgpu:          Faulty UTCL2 client ID: MP1 (0x0)
amdgpu 0000:04:00.0: amdgpu:          MORE_FAULTS: 0x1
amdgpu 0000:04:00.0: amdgpu:          WALKER_ERROR: 0x0
amdgpu 0000:04:00.0: amdgpu:          PERMISSION_FAULTS: 0x5
amdgpu 0000:04:00.0: amdgpu:          MAPPING_ERROR: 0x0
amdgpu 0000:04:00.0: amdgpu:          RW: 0x1
amdgpu 0000:04:00.0: amdgpu: [mmhub0] retry page fault (src_id:0 ring:0 vmid:1 pasid:32782, for process mailspring pid 23463 thread mailspring:cs0 pid 23567)
amdgpu 0000:04:00.0: amdgpu:   in page starting at address 0x0000800103c20000 from IH client 0x12 (VMC)
amdgpu 0000:04:00.0: amdgpu: VM_L2_PROTECTION_FAULT_STATUS:0x00140051
amdgpu 0000:04:00.0: amdgpu:          Faulty UTCL2 client ID: MP1 (0x0)
amdgpu 0000:04:00.0: amdgpu:          MORE_FAULTS: 0x1
amdgpu 0000:04:00.0: amdgpu:          WALKER_ERROR: 0x0
amdgpu 0000:04:00.0: amdgpu:          PERMISSION_FAULTS: 0x5
amdgpu 0000:04:00.0: amdgpu:          MAPPING_ERROR: 0x0
amdgpu 0000:04:00.0: amdgpu:          RW: 0x1
amdgpu 0000:04:00.0: amdgpu: [mmhub0] retry page fault (src_id:0 ring:0 vmid:1 pasid:32782, for process mailspring pid 23463 thread mailspring:cs0 pid 23567)

It’ll do this several times and then it’ll give me this trace and message:

CPU: 7 PID: 14172 Comm: kworker/u32:1 Tainted: P           O      5.19.0-32-generic #33~22.04.1-Ubuntu
 Hardware name: HP HP ENVY x360 Convertible
 Workqueue: amdgpu-reset-dev drm_sched_job_timedout [gpu_sched]
 Call Trace:
  <TASK>
  show_stack+0x52/0x69
  dump_stack_lvl+0x49/0x6d
  dump_stack+0x10/0x18
  amdgpu_do_asic_reset+0x2b/0x441 [amdgpu]
  amdgpu_device_gpu_recover_imp.cold+0x4e4/0x7e1 [amdgpu]
  amdgpu_job_timedout+0x15e/0x190 [amdgpu]
  ? finish_task_switch.isra.0+0x84/0x290
  drm_sched_job_timedout+0x6d/0x120 [gpu_sched]
  process_one_work+0x21f/0x400
  worker_thread+0x50/0x3f0
  ? rescuer_thread+0x3a0/0x3a0
  kthread+0xee/0x120
  ? kthread_complete_and_exit+0x20/0x20
  ret_from_fork+0x22/0x30
  </TASK>
amdgpu 0000:04:00.0: amdgpu: GPU reset succeeded, trying to resume
[drm] PCIE GART of 1024M enabled.
[drm] PTB located at 0x000000F400900000
[drm] PSP is resuming...
[drm] reserve 0x400000 from 0xf43fc00000 for PSP TMR
amdgpu 0000:04:00.0: amdgpu: RAS: optional ras ta ucode is not available
amdgpu 0000:04:00.0: amdgpu: RAP: optional rap ta ucode is not available
amdgpu 0000:04:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
[drm] kiq ring mec 2 pipe 1 q 0
amdgpu 0000:04:00.0: [drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring gfx test failed (-110)
[drm:amdgpu_device_ip_resume_phase2 [amdgpu]] *ERROR* resume of IP block <gfx_v9_0> failed -110
amdgpu 0000:04:00.0: amdgpu: GPU reset(1) failed
amdgpu 0000:04:00.0: amdgpu: GPU reset end with ret = -110
[drm:amdgpu_job_timedout [amdgpu]] *ERROR* GPU Recovery Failed: -110

Setup

HP ENVY x360 AMD Ryzen 2700U w/ Radeon 10

  • OS and Version: Ubuntu Linux 20.10, Kernel 5.19.0-32
    • Installation Method: Snap
  • Mailspring Version: 1.10.8

Same here, a laptop with a Ryzen 5000 processor. Every was working fine (I’ve been using Mailspring for the last year) till today… The entire computer freezes (I can only move the mouse).

Oh, I can’t even move the mouse. It just fully locks and I need to hard boot

Hello, exactly same issue happens to me
ThinkPad P14s Gen 1 AMD Ryzen 7 PRO 4750U with Radeon Graphics

  • OS and Version : Ubuntu 22.04.2 LTS x86_64, Linux 5.19.0-35-generic
    • installed with snap
    • installed via deb package
  • Mailspring version: 1.10.8-8ea2a61f

This seems to be an issue with various apps on recent versions of the Linux kernel shipped with Ubuntu (e.g. 22.04.x), at least, when using an AMD processor. Here’s an example:

It looks like there has been resolution by upgrading to a newer kernel (and/or newer drivers), but I haven’t confirmed this myself. Example here:

FWIW, I’m using Mailspring 1.10.8 with a modern Linux 6.x kernel and an AMD Ryzen 5700 and haven’t experienced the problems.

thanks Greg, I checked the thread and I already installed Linux 6.1.0-1007-oem x86_64
I will try it out and let you it fixed the issue.
The issue used to occurred when I was deleting messages or when I was marking them as read.
I will be testing this for a few days and then I will post the update if the issue is fixed.

1 Like

Okay after 10 days of daily usage there were no crashes.
I think the solution can be accepted.

1 Like